Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add make target install and uninstall, update readme
- Loading branch information
1 parent
0bb27c1
commit 8d6575b
Showing
8 changed files
with
35 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,26 @@ | ||
all: clean deb | ||
all: | ||
@echo "Usage: make (clean|install|uninstall|deb)" | ||
|
||
clean: | ||
rm -rf build | ||
|
||
install: | ||
@test `id -u` = 0 || (echo "make install: Need to be root" && exit 1) | ||
cp -a files/etc/init.d/socksproxy /etc/init.d/socksproxy | ||
cp -a files/sbin/socksproxy /sbin/socksproxy | ||
cp -a files/etc/socksproxy.conf /etc/socksproxy.conf | ||
debian/postinst configure | ||
|
||
uninstall: | ||
@test `id -u` = 0 || (echo "make install: Need to be root" && exit 1) | ||
debian/prerm remove | ||
rm /etc/init.d/socksproxy 2> /dev/null || true | ||
rm /sbin/socksproxy 2> /dev/null || true | ||
cp -a /etc/socksproxy.conf /etc/socksproxy.conf.`date +%s` || true | ||
debian/postrm remove | ||
|
||
deb: | ||
mkdir -p build/debian 2> /dev/null || true | ||
cp -a files build/debian/files | ||
cp -a debian build/debian/debian | ||
cd build/debian; debuild -us -uc -i | ||
cd build/debian; debuild -us -uc -i |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
Empty file.