Mercurial > hg > quicktun
annotate debian/build.sh @ 37:bb4bbf380938
Added option PRIVATE_KEY_FILE to read private key from file
author | Ivo Smits <Ivo@UCIS.nl> |
---|---|
date | Mon, 06 May 2013 21:28:45 +0200 |
parents | dfac56805c77 |
children | f80422b612ab |
rev | line source |
---|---|
0 | 1 #!/bin/sh |
2 VERSION=`cat ../version`-0 | |
3 ARCH=`dpkg --print-architecture` | |
4 rm -r data 2>/dev/null | |
5 cp -r static data | |
6 mkdir -p data/usr data/usr/sbin data/DEBIAN | |
7 sed "s/%ARCHITECTURE%/${ARCH}/" -i data/DEBIAN/control | |
8 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
|
9 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
|
10 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
|
11 fi |
20
d2b0f399a9aa
Include single protocol raw, nacl0 and nacltai binaries in debian package
Ivo Smits <Ivo@UCIS.nl>
parents:
0
diff
changeset
|
12 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
|
13 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
|
14 cp ../out/quicktun.nacltai data/usr/sbin/ |
0 | 15 cp ../out/quicktun.debian data/usr/sbin/ |
16 cp ../out/quicktun.keypair data/usr/sbin/ | |
17 fakeroot dpkg-deb --build data quicktun-${VERSION}_${ARCH}.deb | |
18 mv quicktun*.deb ../out/ |