annotate debian/build.sh @ 20:d2b0f399a9aa

Include single protocol raw, nacl0 and nacltai binaries in debian package
author Ivo Smits <Ivo@UCIS.nl>
date Sun, 27 Feb 2011 22:47:22 +0100
parents 65c01f57bdce
children dfac56805c77
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
65c01f57bdce Initial commit
ivo <ivo@UFO-Net.nl>
parents:
diff changeset
2 VERSION=`cat ../version`-0
65c01f57bdce Initial commit
ivo <ivo@UFO-Net.nl>
parents:
diff changeset
3 ARCH=`dpkg --print-architecture`
65c01f57bdce Initial commit
ivo <ivo@UFO-Net.nl>
parents:
diff changeset
4 rm -r data 2>/dev/null
65c01f57bdce Initial commit
ivo <ivo@UFO-Net.nl>
parents:
diff changeset
5 cp -r static data
65c01f57bdce Initial commit
ivo <ivo@UFO-Net.nl>
parents:
diff changeset
6 mkdir -p data/usr data/usr/sbin data/DEBIAN
65c01f57bdce Initial commit
ivo <ivo@UFO-Net.nl>
parents:
diff changeset
7 sed "s/%ARCHITECTURE%/${ARCH}/" -i data/DEBIAN/control
65c01f57bdce Initial commit
ivo <ivo@UFO-Net.nl>
parents:
diff changeset
8 sed "s/%VERSION%/${VERSION}/" -i data/DEBIAN/control
20
d2b0f399a9aa Include single protocol raw, nacl0 and nacltai binaries in debian package
Ivo Smits <Ivo@UCIS.nl>
parents: 0
diff changeset
9 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
10 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
11 cp ../out/quicktun.nacltai data/usr/sbin/
0
65c01f57bdce Initial commit
ivo <ivo@UFO-Net.nl>
parents:
diff changeset
12 cp ../out/quicktun.debian data/usr/sbin/
65c01f57bdce Initial commit
ivo <ivo@UFO-Net.nl>
parents:
diff changeset
13 cp ../out/quicktun.keypair data/usr/sbin/
65c01f57bdce Initial commit
ivo <ivo@UFO-Net.nl>
parents:
diff changeset
14 fakeroot dpkg-deb --build data quicktun-${VERSION}_${ARCH}.deb
65c01f57bdce Initial commit
ivo <ivo@UFO-Net.nl>
parents:
diff changeset
15 mv quicktun*.deb ../out/