aboutsummaryrefslogtreecommitdiffstats
path: root/mkdeb.sh
diff options
context:
space:
mode:
authorLibravatar Topi Miettinen <toiwoton@gmail.com>2020-05-13 13:07:07 +0300
committerLibravatar Topi Miettinen <topimiettinen@users.noreply.github.com>2020-05-14 13:10:14 +0000
commit87e7b313997b1d2be6553cfb22fef71b74c84ea6 (patch)
treecf1fc8d97a0f414a589043a0664d427b0009d997 /mkdeb.sh
parentadd new profile: plv (#3410) (diff)
downloadfirejail-87e7b313997b1d2be6553cfb22fef71b74c84ea6.tar.gz
firejail-87e7b313997b1d2be6553cfb22fef71b74c84ea6.tar.zst
firejail-87e7b313997b1d2be6553cfb22fef71b74c84ea6.zip
Configure Debian package with AA and SELinux options
Configure Debian package with AA and SELinux options if they are enabled.
Diffstat (limited to 'mkdeb.sh')
-rwxr-xr-xmkdeb.sh56
1 files changed, 0 insertions, 56 deletions
diff --git a/mkdeb.sh b/mkdeb.sh
deleted file mode 100755
index dd784eb8a..000000000
--- a/mkdeb.sh
+++ /dev/null
@@ -1,56 +0,0 @@
1#!/bin/sh
2# This file is part of Firejail project
3# Copyright (C) 2014-2020 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
9set -e
10
11TOP=`pwd`
12CODE_ARCHIVE="$1-$2.tar.xz"
13CODE_DIR="$1-$2"
14INSTALL_DIR="${INSTALL_DIR}${CODE_DIR}/debian"
15DEBIAN_CTRL_DIR="${DEBIAN_CTRL_DIR}${CODE_DIR}/debian/DEBIAN"
16
17echo "*****************************************"
18echo "code archive: $CODE_ARCHIVE"
19echo "code directory: $CODE_DIR"
20echo "install directory: $INSTALL_DIR"
21echo "debian control directory: $DEBIAN_CTRL_DIR"
22echo "*****************************************"
23
24tar -xJvf $CODE_ARCHIVE
25#mkdir -p $INSTALL_DIR
26cd $CODE_DIR
27./configure --prefix=/usr
28make -j2
29mkdir debian
30DESTDIR=debian make install-strip
31
32cd ..
33echo "*****************************************"
34SIZE=`du -s $INSTALL_DIR`
35echo "install size $SIZE"
36echo "*****************************************"
37
38mv $INSTALL_DIR/usr/share/doc/firejail/RELNOTES $INSTALL_DIR/usr/share/doc/firejail/changelog.Debian
39gzip -9 -n $INSTALL_DIR/usr/share/doc/firejail/changelog.Debian
40rm $INSTALL_DIR/usr/share/doc/firejail/COPYING
41install -m644 platform/debian/copyright $INSTALL_DIR/usr/share/doc/firejail/.
42mkdir -p $DEBIAN_CTRL_DIR
43sed "s/FIREJAILVER/$2/g" platform/debian/control.$(dpkg-architecture -qDEB_HOST_ARCH) > $DEBIAN_CTRL_DIR/control
44
45mkdir -p $INSTALL_DIR/usr/share/lintian/overrides/
46install -m644 platform/debian/firejail.lintian-overrides $INSTALL_DIR/usr/share/lintian/overrides/firejail
47
48find $INSTALL_DIR/etc -type f | sed "s,^$INSTALL_DIR,," | LC_ALL=C sort > $DEBIAN_CTRL_DIR/conffiles
49chmod 644 $DEBIAN_CTRL_DIR/conffiles
50find $INSTALL_DIR -type d | xargs chmod 755
51cd $CODE_DIR
52fakeroot dpkg-deb --build debian
53lintian debian.deb
54mv debian.deb ../firejail_$2_1_$(dpkg-architecture -qDEB_HOST_ARCH).deb
55cd ..
56rm -fr $CODE_DIR