Mercurial > hg > quicktun
view debian/build.sh @ 34:b876afa5a72a
Fixed the build script and FreeBSD tun mode
author | Ivo Smits <Ivo@UCIS.nl> |
---|---|
date | Wed, 12 Oct 2011 03:47:18 +0200 |
parents | dfac56805c77 |
children | f80422b612ab |
line wrap: on
line source
#!/bin/sh VERSION=`cat ../version`-0 ARCH=`dpkg --print-architecture` rm -r data 2>/dev/null cp -r static data mkdir -p data/usr data/usr/sbin data/DEBIAN sed "s/%ARCHITECTURE%/${ARCH}/" -i data/DEBIAN/control sed "s/%VERSION%/${VERSION}/" -i data/DEBIAN/control if [ -n "${NACL_SHARED}" ]; then sed "s/\\(Depends: .*\\)/\\1, libnacl | libnacl-ref | libnacl-build/" -i data/DEBIAN/control fi cp ../out/quicktun.raw data/usr/sbin/ cp ../out/quicktun.nacl0 data/usr/sbin/ cp ../out/quicktun.nacltai data/usr/sbin/ cp ../out/quicktun.debian data/usr/sbin/ cp ../out/quicktun.keypair data/usr/sbin/ fakeroot dpkg-deb --build data quicktun-${VERSION}_${ARCH}.deb mv quicktun*.deb ../out/