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
daf3dd0f
Commit
daf3dd0f
authored
Oct 22, 2014
by
devttys0
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed now-defunct deps.sh
parent
aa92a63f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
153 deletions
+1
-153
Makefile.in
Makefile.in
+1
-4
deps.sh
deps.sh
+0
-149
No files found.
Makefile.in
View file @
daf3dd0f
...
...
@@ -29,7 +29,7 @@ else
PREFIX
=
"--prefix=
$(DESTDIR)$(prefix)
"
endif
.PHONY
:
all install build
deps
clean uninstall
.PHONY
:
all install build clean uninstall
all
:
build
...
...
@@ -45,9 +45,6 @@ build:
if
[
"
$(BUILD_BUNDLES)
"
=
"yes"
]
;
then
make
-C
$(SRC_BUNDLES_DIR)
;
fi
$(PYTHON)
./setup.py build
deps
:
./deps.sh
clean
:
if
[
"
$(BUILD_C_LIBS)
"
=
"yes"
]
;
then
make
-C
$(SRC_C_DIR)
clean
;
fi
if
[
"
$(BUILD_BUNDLES)
"
=
"yes"
]
;
then
make
-C
$(SRC_BUNDLES_DIR)
clean
;
fi
...
...
deps.sh
deleted
100755 → 0
View file @
aa92a63f
#!/bin/bash
# Easy installer script for installing binwalk extraction utilities on Debian/RedHat systems.
SUDO
=
$(
which
sudo
)
SUMOUNT
=
"
$1
$2
"
function
fmk
{
# Get and build the firmware mod kit
if
[
-e
/opt/firmware-mod-kit
]
then
if
[
!
-e
/opt/firmware-mod-kit/.git
]
then
$SUDO
rm
-rf
/opt/firmware-mod-kit/
fi
fi
if
[
!
-e
/opt/firmware-mod-kit
]
then
$SUDO
mkdir
-p
/opt/firmware-mod-kit
$SUDO
chown
$USER
/opt/firmware-mod-kit
$SUDO
chmod o+rwx /opt/firmware-mod-kit
fi
if
[
!
-e
/opt/firmware-mod-kit/.git
]
then
git clone http://code.google.com/p/firmware-mod-kit /opt/firmware-mod-kit/
fi
cd
/opt/firmware-mod-kit/src
./configure
&&
$SUDO
make
if
[
"
$(
echo
"
$SUMOUNT
"
|
grep
-e
'--sumount'
)
"
!=
""
]
then
# The following will allow you - and others - to mount/unmount file systems without root permissions.
# This may be problematic, especially on a multi-user system, so think about it first.
$SUDO
chown root ./mountcp/mountsu
$SUDO
chmod u+s ./mountcp/mountsu
$SUDO
chmod o-w ./mountcp/mountsu
$SUDO
chown root ./mountcp/umountsu
$SUDO
chmod u+s ./mountcp/umountsu
$SUDO
chmod o-w ./mountcp/umountsu
$SUDO
chown root ./jffs2/sunjffs2
$SUDO
chmod u+s ./jffs2/sunjffs2
$SUDO
chmod o-w ./jffs2/sunjffs2
fi
cd
-
}
function
debian
{
# First make sure the repos are up to date
$SUDO
apt-get update
# The appropriate unrar package goes under different names in Debian vs Ubuntu
$SUDO
apt-get
-y
install unrar
if
[
"
$?
"
!=
"0"
]
then
echo
"WARNING: Failed to install 'unrar' package, trying 'unrar-free' instead..."
$SUDO
apt-get
-y
install unrar-free
fi
# Install binwalk/fmk pre-requisites and extraction tools
# lha isn't in newer ubuntu repos, so install it separately in case it fails
$SUDO
apt-get
-y
install lha
$SUDO
apt-get
-y
install git build-essential libtool autoconf mtd-utils zlib1g-dev liblzma-dev ncompress gzip bzip2
tar
arj p7zip p7zip-full openjdk-6-jdk
$SUDO
apt-get
-y
install python-opengl python-qt4 python-qt4-gl python-numpy python-scipy
if
[
"
$(
which python3
)
"
!=
""
]
then
$SUDO
apt-get
-y
install python3-pyqt4 python3-numpy python3-scipy
fi
}
function
redhat
{
$SUDO
yum groupinstall
-y
"Development Tools"
$SUDO
yum install
-y
git libtool autoconf mtd-utils unrar zlib1g-dev liblzma-dev xz-devel compress gzip bzip2
tar
arj lha p7zip p7zip-full openjdk-6-jdk
$SUDO
yum install
-y
libqt4-opengl python-opengl python-qt4 python-qt4-gl python-numpy python-scipy
if
[
"
$(
which python3
)
"
!=
""
]
then
$SUDO
yum
-y
install python3-pyqt4 python3-numpy python3-scipy
fi
}
if
[
"
$1
"
==
""
]
||
[
"
$1
"
==
"--sumount"
]
then
PLATFORM
=
$(
python
-c
'import platform; print (platform.system().lower())'
)
DISTRO
=
$(
python
-c
'import platform; print (platform.linux_distribution()[0].strip("\"").split()[0].lower())'
)
else
DISTRO
=
"
$1
"
fi
if
[
"
$DISTRO
"
==
""
]
then
DISTRO
=
"
$PLATFORM
"
fi
echo
"Detected
$DISTRO
$PLATFORM
"
case
$DISTRO
in
debian
)
debian
;;
ubuntu
)
debian
;;
linuxmint
)
debian
;;
knoppix
)
debian
;;
aptosid
)
debian
;;
elementary
)
debian
;;
redhat
)
redhat
;;
rhel
)
redhat
;;
fedora
)
redhat
;;
centos
)
redhat
;;
*
)
echo
""
echo
"This system is not recognized by easy install! You may need to install dependent packages manually."
echo
""
echo
"If your system is a derivative of Debian or RedHat, you can try manually specifying your system type on the command line:"
echo
""
echo
-e
"
\t
$0
[debian | redhat] [--sumount]"
echo
""
exit
1
esac
# Get and build the firmware mod kit
fmk
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