Mercurial > hg > quicktun
diff build.sh @ 11:5be1ecb80cc9
Fixed build script for debian systems without packaging tools, removed packet logging from nacltai
author | root <root@Really.UFO-Net.nl> |
---|---|
date | Sat, 04 Dec 2010 02:10:00 +0000 |
parents | fd7c60905b13 |
children | f7e0145d8e2a |
line wrap: on
line diff
--- a/build.sh Sat Dec 04 03:01:46 2010 +0100 +++ b/build.sh Sat Dec 04 02:10:00 2010 +0000 @@ -48,12 +48,14 @@ ##echo Building frontends... ##gcc -o out/quicktun.debian src/run.debian.c -ldl -if [ -x /usr/bin/dpkg-deb -a -x /usr/bin/fakeroot ]; then +if [ -f /etc/network/interfaces ]; then echo Building debian binary... gcc -c -DCOMBINED_BINARY -DDEBIAN_BINARY src/run.combined.c -o obj/run.debian.o gcc -o out/quicktun.debian obj/common.o obj/run.debian.o obj/proto.raw.o obj/proto.nacl0.o obj/proto.nacltai.o obj/crypto_scalarmult_curve25519.o -lnacl - echo -n Building debian package... - cd debian - ./build.sh - cd .. + if [ -x /usr/bin/dpkg-deb -a -x /usr/bin/fakeroot ]; then + echo -n Building debian package... + cd debian + ./build.sh + cd .. + fi fi