diff options
Diffstat (limited to 'mkdeb.sh.in')
-rwxr-xr-x | mkdeb.sh.in | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/mkdeb.sh.in b/mkdeb.sh.in deleted file mode 100755 index a98261ba6..000000000 --- a/mkdeb.sh.in +++ /dev/null | |||
@@ -1,61 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | # This file is part of Firejail project | ||
3 | # Copyright (C) 2014-2022 Firejail Authors | ||
4 | # License GPL v2 | ||
5 | |||
6 | # based on http://tldp.org/HOWTO/html_single/Debian-Binary-Package-Building-HOWTO/ | ||
7 | # a code archive should already be available | ||
8 | |||
9 | set -e | ||
10 | |||
11 | . "$(dirname "$0")/config.sh" | ||
12 | |||
13 | EXTRA_VERSION=$1 | ||
14 | |||
15 | test "$#" -gt 0 && shift | ||
16 | |||
17 | CODE_ARCHIVE="$NAME-$VERSION.tar.xz" | ||
18 | CODE_DIR="$NAME-$VERSION" | ||
19 | INSTALL_DIR="${INSTALL_DIR}${CODE_DIR}/debian" | ||
20 | DEBIAN_CTRL_DIR="${DEBIAN_CTRL_DIR}${CODE_DIR}/debian/DEBIAN" | ||
21 | |||
22 | echo "*****************************************" | ||
23 | echo "code archive: $CODE_ARCHIVE" | ||
24 | echo "code directory: $CODE_DIR" | ||
25 | echo "install directory: $INSTALL_DIR" | ||
26 | echo "debian control directory: $DEBIAN_CTRL_DIR" | ||
27 | echo "*****************************************" | ||
28 | |||
29 | tar -xJvf "$CODE_ARCHIVE" | ||
30 | #mkdir -p "$INSTALL_DIR" | ||
31 | cd "$CODE_DIR" | ||
32 | ./configure --prefix=/usr "$@" | ||
33 | make -j2 | ||
34 | mkdir debian | ||
35 | DESTDIR=debian make install-strip | ||
36 | |||
37 | cd .. | ||
38 | echo "*****************************************" | ||
39 | SIZE="$(du -s "$INSTALL_DIR")" | ||
40 | echo "install size $SIZE" | ||
41 | echo "*****************************************" | ||
42 | |||
43 | mv "$INSTALL_DIR/usr/share/doc/firejail/RELNOTES" "$INSTALL_DIR/usr/share/doc/firejail/changelog.Debian" | ||
44 | gzip -9 -n "$INSTALL_DIR/usr/share/doc/firejail/changelog.Debian" | ||
45 | rm "$INSTALL_DIR/usr/share/doc/firejail/COPYING" | ||
46 | install -m644 "$CODE_DIR/platform/debian/copyright" "$INSTALL_DIR/usr/share/doc/firejail/." | ||
47 | mkdir -p "$DEBIAN_CTRL_DIR" | ||
48 | sed "s/FIREJAILVER/$VERSION/g" "$CODE_DIR/platform/debian/control.$(dpkg-architecture -qDEB_HOST_ARCH)" > "$DEBIAN_CTRL_DIR/control" | ||
49 | |||
50 | mkdir -p "$INSTALL_DIR/usr/share/lintian/overrides/" | ||
51 | install -m644 "$CODE_DIR/platform/debian/firejail.lintian-overrides" "$INSTALL_DIR/usr/share/lintian/overrides/firejail" | ||
52 | |||
53 | find "$INSTALL_DIR/etc" -type f | sed "s,^$INSTALL_DIR,," | LC_ALL=C sort > "$DEBIAN_CTRL_DIR/conffiles" | ||
54 | chmod 644 "$DEBIAN_CTRL_DIR/conffiles" | ||
55 | find "$INSTALL_DIR" -type d -exec chmod 755 '{}' + | ||
56 | cd "$CODE_DIR" | ||
57 | fakeroot dpkg-deb --build debian | ||
58 | lintian --no-tag-display-limit debian.deb | ||
59 | mv debian.deb "../firejail_${VERSION}${EXTRA_VERSION}_1_$(dpkg-architecture -qDEB_HOST_ARCH).deb" | ||
60 | cd .. | ||
61 | rm -fr "$CODE_DIR" | ||