annotate debian/build.sh @ 55:5685fad38195

Fixed compiler warnings from clang (including small bug in private key loading)
author Ivo Smits <Ivo@UCIS.nl>
date Fri, 31 Jan 2014 22:52:46 +0100
parents 3115f8af98bb
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
65c01f57bdce Initial commit
ivo <ivo@UFO-Net.nl>
parents:
diff changeset
1 #!/bin/sh
48
f80422b612ab Abort build scripts on error, added quicktun (main) executable
Ivo Smits <Ivo@UCIS.nl>
parents: 24
diff changeset
2 set -e
0
65c01f57bdce Initial commit
ivo <ivo@UFO-Net.nl>
parents:
diff changeset
3 VERSION=`cat ../version`-0
65c01f57bdce Initial commit
ivo <ivo@UFO-Net.nl>
parents:
diff changeset
4 ARCH=`dpkg --print-architecture`
52
3115f8af98bb Added support for libsodium, fixed bug in USE_PI compatibility mode, improved timestamp checking in nacltai protocol
Ivo Smits <Ivo@UCIS.nl>
parents: 48
diff changeset
5 rm -r data 2>/dev/null || true
0
65c01f57bdce Initial commit
ivo <ivo@UFO-Net.nl>
parents:
diff changeset
6 cp -r static data
65c01f57bdce Initial commit
ivo <ivo@UFO-Net.nl>
parents:
diff changeset
7 mkdir -p data/usr data/usr/sbin data/DEBIAN
65c01f57bdce Initial commit
ivo <ivo@UFO-Net.nl>
parents:
diff changeset
8 sed "s/%ARCHITECTURE%/${ARCH}/" -i data/DEBIAN/control
65c01f57bdce Initial commit
ivo <ivo@UFO-Net.nl>
parents:
diff changeset
9 sed "s/%VERSION%/${VERSION}/" -i data/DEBIAN/control
24
dfac56805c77 Fixed support for shared NaCl library, explicitly refer to cryptographic primitives
Ivo Smits <Ivo@UCIS.nl>
parents: 20
diff changeset
10 if [ -n "${NACL_SHARED}" ]; then
dfac56805c77 Fixed support for shared NaCl library, explicitly refer to cryptographic primitives
Ivo Smits <Ivo@UCIS.nl>
parents: 20
diff changeset
11 sed "s/\\(Depends: .*\\)/\\1, libnacl | libnacl-ref | libnacl-build/" -i data/DEBIAN/control
dfac56805c77 Fixed support for shared NaCl library, explicitly refer to cryptographic primitives
Ivo Smits <Ivo@UCIS.nl>
parents: 20
diff changeset
12 fi
20
d2b0f399a9aa Include single protocol raw, nacl0 and nacltai binaries in debian package
Ivo Smits <Ivo@UCIS.nl>
parents: 0
diff changeset
13 cp ../out/quicktun.raw data/usr/sbin/
d2b0f399a9aa Include single protocol raw, nacl0 and nacltai binaries in debian package
Ivo Smits <Ivo@UCIS.nl>
parents: 0
diff changeset
14 cp ../out/quicktun.nacl0 data/usr/sbin/
d2b0f399a9aa Include single protocol raw, nacl0 and nacltai binaries in debian package
Ivo Smits <Ivo@UCIS.nl>
parents: 0
diff changeset
15 cp ../out/quicktun.nacltai data/usr/sbin/
0
65c01f57bdce Initial commit
ivo <ivo@UFO-Net.nl>
parents:
diff changeset
16 cp ../out/quicktun.debian data/usr/sbin/
65c01f57bdce Initial commit
ivo <ivo@UFO-Net.nl>
parents:
diff changeset
17 cp ../out/quicktun.keypair data/usr/sbin/
48
f80422b612ab Abort build scripts on error, added quicktun (main) executable
Ivo Smits <Ivo@UCIS.nl>
parents: 24
diff changeset
18 cp ../out/quicktun data/usr/sbin/
0
65c01f57bdce Initial commit
ivo <ivo@UFO-Net.nl>
parents:
diff changeset
19 fakeroot dpkg-deb --build data quicktun-${VERSION}_${ARCH}.deb
65c01f57bdce Initial commit
ivo <ivo@UFO-Net.nl>
parents:
diff changeset
20 mv quicktun*.deb ../out/