-
Notifications
You must be signed in to change notification settings - Fork 50
/
debpkg-setup.sh
executable file
·41 lines (31 loc) · 1.32 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
#!/bin/bash
set -x -e -o pipefail
export DEBEMAIL='[email protected]'
export DEBFULLNAME='Shane Alcock'
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 \
pkg-config sed clang
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
DISTRO=$(lsb_release -sc)
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 -t xenial-backports
sed -i 's/debhelper-compat (= 12)/debhelper (>= 10)/' debian/control
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
echo "10" > debian/compat
;;
bionic )
apt-get install -y debhelper -t bionic-backports
;;
esac
apt-get update
apt-get upgrade -y