diff options
Diffstat (limited to 'mkdeb.sh')
-rwxr-xr-x | mkdeb.sh | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -1,12 +1,12 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/sh |
2 | # based on http://tldp.org/HOWTO/html_single/Debian-Binary-Package-Building-HOWTO/ | 2 | # based on http://tldp.org/HOWTO/html_single/Debian-Binary-Package-Building-HOWTO/ |
3 | # a code archive should already be available | 3 | # a code archive should already be available |
4 | 4 | ||
5 | TOP=`pwd` | 5 | TOP=`pwd` |
6 | CODE_ARCHIVE="$1-$2.tar.bz2" | 6 | CODE_ARCHIVE="$1-$2.tar.bz2" |
7 | CODE_DIR="$1-$2" | 7 | CODE_DIR="$1-$2" |
8 | INSTALL_DIR+="$CODE_DIR/debian" | 8 | INSTALL_DIR="${INSTALL_DIR}${CODE_DIR}/debian" |
9 | DEBIAN_CTRL_DIR+="$CODE_DIR/debian/DEBIAN" | 9 | DEBIAN_CTRL_DIR="${DEBIAN_CTRL_DIR}${CODE_DIR}/debian/DEBIAN" |
10 | 10 | ||
11 | echo "*****************************************" | 11 | echo "*****************************************" |
12 | echo "code archive: $CODE_ARCHIVE" | 12 | echo "code archive: $CODE_ARCHIVE" |
@@ -36,6 +36,8 @@ cp platform/debian/copyright $INSTALL_DIR/usr/share/doc/firejail/. | |||
36 | mkdir -p $DEBIAN_CTRL_DIR | 36 | mkdir -p $DEBIAN_CTRL_DIR |
37 | sed "s/FIREJAILVER/$2/g" platform/debian/control > $DEBIAN_CTRL_DIR/control | 37 | sed "s/FIREJAILVER/$2/g" platform/debian/control > $DEBIAN_CTRL_DIR/control |
38 | 38 | ||
39 | mkdir -p $INSTALL_DIR/usr/share/lintian/overrides/ | ||
40 | cp platform/debian/firejail.lintian-overrides $INSTALL_DIR/usr/share/lintian/overrides/firejail | ||
39 | 41 | ||
40 | cp platform/debian/conffiles $DEBIAN_CTRL_DIR/. | 42 | cp platform/debian/conffiles $DEBIAN_CTRL_DIR/. |
41 | find $INSTALL_DIR -type d | xargs chmod 755 | 43 | find $INSTALL_DIR -type d | xargs chmod 755 |