Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
binwalk
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fact-gitdep
binwalk
Commits
2d653a91
Commit
2d653a91
authored
Dec 22, 2013
by
devttys0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updating build/install tools
parent
d3a03b2d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
64 additions
and
51 deletions
+64
-51
Makefile.in
Makefile.in
+29
-0
configure
configure
+3
-0
deps.sh
deps.sh
+29
-48
Makefile.in
src/C/Makefile.in
+3
-3
No files found.
Makefile.in
0 → 100644
View file @
2d653a91
PYTHON
=
"python"
SRC_C_DIR
=
"./src/C"
.PHONY
:
all install build dependencies clean uninstall
all
:
install
install
:
build
make
-c
$(SRC_C_DIR)
install
$(PYTHON)
./setup.py install
build
:
make
-C
$(SRC_C_DIR)
$(PYTHON)
./setup.py build
dependencies
:
./deps.sh
clean
:
make
-C
$(SRC_C_DIR)
clean
$(PYTHON)
./setup.py clean
distclean
:
clean
make
-C
$(SRC_C_DIR)
distclean
rm
-f
Makefile
uninstall
:
make
-C
$(SRC_C_DIR)
uninstall
$(PYTHON)
./setup.py uninstall
configure
0 → 100755
View file @
2d653a91
#!/bin/sh
cd
./src/C/
&&
./configure
&&
cd
-
&&
cp Makefile.in Makefile
easy_install
.sh
→
deps
.sh
View file @
2d653a91
...
...
@@ -35,37 +35,27 @@ function fmk
cd
-
}
function
libmagic
{
SITE
=
"ftp://ftp.astron.com/pub/file/"
VERSION
=
"5.11"
OUTFILE
=
"file-
$VERSION
.tar.gz"
URL
=
"
$SITE$OUTFILE
"
echo
"Downloading '
$URL
'..."
wget
"
$URL
"
if
[
-e
"
$OUTFILE
"
]
then
echo
"Installing libmagic / python-magic..."
tar
-zxvf
"
$OUTFILE
"
cd
"file-
$VERSION
"
&&
./configure
&&
make
&&
$SUDO
make install
&&
cd
python
&&
$SUDO
python ./setup.py install
&&
cd
../..
$SUDO
rm
-rf
"file-
$VERSION
"
"
$OUTFILE
"
else
echo
"ERROR: Failed to download '
$URL
'!"
echo
"libmagic not installed."
fi
}
function
libfuzzy
{
VERSION
=
"ssdeep-2.10"
cd
./C
tar
-zxvf
$VERSION
.tar.gz
&&
cd
$VERSION
&&
./configure
&&
make
&&
$SUDO
make install
cd
..
rm
-rf
$VERSION
cd
..
}
#function libmagic
#{
# SITE="ftp://ftp.astron.com/pub/file/"
# VERSION="5.11"
# OUTFILE="file-$VERSION.tar.gz"
# URL="$SITE$OUTFILE"
#
# echo "Downloading '$URL'..."
# wget "$URL"
#
# if [ -e "$OUTFILE" ]
# then
# echo "Installing libmagic / python-magic..."
# tar -zxvf "$OUTFILE"
# cd "file-$VERSION" && ./configure && make && $SUDO make install && cd python && $SUDO python ./setup.py install && cd ../..
# $SUDO rm -rf "file-$VERSION" "$OUTFILE"
# else
# echo "ERROR: Failed to download '$URL'!"
# echo "libmagic not installed."
# fi
#}
function
pyqtgraph
{
...
...
@@ -186,27 +176,18 @@ case $DISTRO in
exit
1
esac
if
[
"
$(
python
-c
'import magic; print (magic.MAGIC_NO_CHECK_TEXT)'
2>/dev/null
)
"
==
""
]
then
echo
"python-magic not installed, or wrong version; building from source..."
libmagic
fi
if
[
"
$(
python
-c
'import pyqtgraph; print (pyqtgraph.__file__)'
2>/dev/null
)
"
==
""
]
then
echo
"pyqtgraph not installed; building from source..."
pyqtgraph
fi
#if [ "$(python -c 'import ctypes.util; print (ctypes.util.find_library("fuzzy"))')" == "None" ]
#if [ "$(python -c 'import magic; print (magic.MAGIC_NO_CHECK_TEXT)' 2>/dev/null)" == "" ]
#then
# echo "
libfuzzy not installed
; building from source..."
# lib
fuzzy
# echo "
python-magic not installed, or wrong version
; building from source..."
# lib
magic
#fi
# Get and build the firmware mod kit
fmk
# Install binwalk
$SUDO
python setup.py install
if
[
"
$(
python
-c
'import pyqtgraph; print (pyqtgraph.__file__)'
2>/dev/null
)
"
==
""
]
then
echo
"pyqtgraph not installed; building from source..."
pyqtgraph
fi
src/C/Makefile.in
View file @
2d653a91
...
...
@@ -7,7 +7,9 @@ export exec_prefix=@exec_prefix@
export
LIBDIR
=
@libdir@
export
INSTALL_OPTIONS
=
@INSTALL_OPTIONS@
all
:
clean
.PHONY
:
all install clean distclean
all
:
make
-C
miniz
make
-C
compress
make
-C
fuzzy
...
...
@@ -17,8 +19,6 @@ install:
make
-C
compress install
make
-C
fuzzy install
.PHONY
:
clean distclean
clean
:
make
-C
miniz clean
make
-C
compress clean
...
...
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