-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-deb.sh
executable file
·37 lines (33 loc) · 1.08 KB
/
build-deb.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
#!/usr/bin/env bash
set -e
if ! [ -d conf/debian ];then
echo "ERROR: this script must be run from the root of the repo"
exit 1
fi
source build-config.sh
echo "[+] Building Effing debian package..."
fpm --input-type virtualenv \
--output-type deb \
--package dist/ \
--iteration `date +%s` \
--log info \
--depends python \
--depends adduser \
--depends tor \
--deb-recommends obfs4proxy \
--name "$PKG_NAME" \
--description "$PKG_DESCRIPTION" \
--version "$PKG_VERSION" \
--maintainer "$PKG_MAINTAINER" \
--url "$PKG_URL" \
--deb-systemd conf/debian/systemd/ooniprobe.service \
--deb-upstart conf/debian/upstart/ooniprobe.conf \
--after-install conf/debian/after-install \
--before-install conf/debian/before-install \
--after-upgrade conf/debian/after-upgrade \
--after-remove conf/debian/after-remove \
--virtualenv-install-location /usr/share/ooniprobe/venv \
--no-deb-systemd-restart-after-upgrade \
--virtualenv-other-files-dir conf/debian/extra-files \
--force \
"ooniprobe==$OONIPROBE_VERSION"