-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdebpkg-setup.sh
executable file
·43 lines (33 loc) · 1.55 KB
/
debpkg-setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/bash
set -x -e -o pipefail
export DEBEMAIL='[email protected]'
export DEBFULLNAME='WAND Packaging'
export DEBIAN_FRONTEND=noninteractive
export SOURCENAME=`echo ${GITHUB_REF##*/} | cut -d '-' -f 1`
apt-get update
apt-get install -y equivs devscripts dpkg-dev quilt curl apt-transport-https \
apt-utils ssl-cert ca-certificates gnupg lsb-release debhelper git
DISTRO=$(lsb_release -sc)
curl -1sLf 'https://dl.cloudsmith.io/public/wand/libwandio/cfg/setup/bash.deb.sh' | bash
curl -1sLf 'https://dl.cloudsmith.io/public/wand/libwandder/cfg/setup/bash.deb.sh' | bash
curl -1sLf 'https://dl.cloudsmith.io/public/wand/libtrace/cfg/setup/bash.deb.sh' | bash
case ${DISTRO} in
xenial )
curl -1sLf 'https://dl.cloudsmith.io/public/wand/dpdk-wand/cfg/setup/bash.deb.sh' | bash
apt-get install -y debhelper dh-systemd -t xenial-backports
sed -i 's/debhelper-compat (= 12)/debhelper (>= 10)/' debian/control
sed -i 's/--with auto/--with=systemd --with auto/' debian/rules
echo "10" > debian/compat
;;
stretch )
curl -1sLf 'https://dl.cloudsmith.io/public/wand/dpdk-wand/cfg/setup/bash.deb.sh' | bash
sed -i 's/debhelper-compat (= 12)/debhelper (>= 10)/' debian/control
sed -i 's/--with auto/--with=systemd --with auto/' debian/rules
echo "10" > debian/compat
;;
bionic )
apt-get install -y debhelper -t bionic-backports
;;
esac
apt-get update
apt-get upgrade -y