Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chromebrew
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
chromebrew
Commits
483a4aa1
Commit
483a4aa1
authored
May 05, 2019
by
Ed Reel
Committed by
Chris Thurber
May 05, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add gittools package (#3261)
parent
ead14597
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
0 deletions
+44
-0
packages/gittools.rb
packages/gittools.rb
+44
-0
No files found.
packages/gittools.rb
0 → 100644
View file @
483a4aa1
require
'package'
class
Gittools
<
Package
description
'Tools for analyzing .git repositories'
homepage
'https://github.com/internetwache/GitTools'
version
'37487'
source_url
'https://github.com/internetwache/GitTools/archive/37487f603d1ba1bc5d7f7c94e9aa4b8e3beec413.tar.gz'
source_sha256
'f445be1294a2b22dda860c8e9f8a3e891d24150b0dd591d9a0373711bf9f8b7c'
binary_url
({
})
binary_sha256
({
})
depends_on
'python3'
def
self
.
build
system
"echo '#!/bin/bash' > gitfinder"
system
"echo 'if test
\"\$
@
\"
; then' >> gitfinder"
system
"echo ' python3
#{
CREW_PREFIX
}
/bin/gitfinder.py
\"\$
@
\"
' >> gitfinder"
system
"echo 'else' >> gitfinder"
system
"echo ' python3
#{
CREW_PREFIX
}
/bin/gitfinder.py -h' >> gitfinder"
system
"echo 'fi' >> gitfinder"
end
def
self
.
install
system
"install -Dm755 Dumper/gitdumper.sh
#{
CREW_DEST_PREFIX
}
/bin/gitdumper"
system
"install -Dm755 Extractor/extractor.sh
#{
CREW_DEST_PREFIX
}
/bin/extractor"
system
"install -Dm755 Finder/gitfinder.py
#{
CREW_DEST_PREFIX
}
/bin/gitfinder.py"
system
"install -Dm755 gitfinder
#{
CREW_DEST_PREFIX
}
/bin/gitfinder"
Dir
.
chdir
'Finder'
do
system
"pip3 install -r requirements.txt --root
#{
CREW_DEST_DIR
}
--prefix
#{
CREW_PREFIX
}
"
end
end
def
self
.
postinstall
puts
puts
"The following tools are available:"
.
lightblue
puts
"gitfinder - identifies websites with publicly accessible .git repositories"
.
lightblue
puts
"gitdumper - downloads .git repositories from webservers which do not have directory listing enabled"
.
lightblue
puts
"extractor - attempts to recover incomplete git repositories"
.
lightblue
puts
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment