mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-22 06:05:38 -06:00
porting make deb-apparmor from LTS build
This commit is contained in:
parent
198368d6c2
commit
ed4a24ce7a
2 changed files with 54 additions and 1 deletions
|
|
@ -190,7 +190,7 @@ uninstall:
|
|||
rm -f $(DESTDIR)/$(datarootdir)/bash-completion/completions/firemon
|
||||
rm -f $(DESTDIR)/$(datarootdir)/bash-completion/completions/firecfg
|
||||
|
||||
DISTFILES = "src etc platform contrib configure configure.ac dummy.c Makefile.in install.sh mkman.sh mketc.sh mkdeb.sh COPYING README RELNOTES"
|
||||
DISTFILES = "src etc platform contrib configure configure.ac dummy.c Makefile.in install.sh mkman.sh mketc.sh mkdeb.sh mkdeb-apparmor.sh COPYING README RELNOTES"
|
||||
DISTFILES_TEST = "test/apps test/apps-x11 test/apps-x11-xorg test/root test/fcopy test/environment test/profiles test/utils test/compile test/filters test/network test/arguments test/fs test/sysutils test/chroot"
|
||||
|
||||
dist:
|
||||
|
|
@ -211,6 +211,9 @@ asc:; ./mkasc.sh $(VERSION)
|
|||
deb: dist
|
||||
./mkdeb.sh $(NAME) $(VERSION)
|
||||
|
||||
deb-apparmor: dist
|
||||
./mkdeb-apparmor.sh $(NAME) $(VERSION)
|
||||
|
||||
snap: all
|
||||
cd platform/snap; ./snap.sh
|
||||
|
||||
|
|
|
|||
50
mkdeb-apparmor.sh
Executable file
50
mkdeb-apparmor.sh
Executable file
|
|
@ -0,0 +1,50 @@
|
|||
#!/bin/sh
|
||||
# based on http://tldp.org/HOWTO/html_single/Debian-Binary-Package-Building-HOWTO/
|
||||
# a code archive should already be available
|
||||
|
||||
TOP=`pwd`
|
||||
CODE_ARCHIVE="$1-$2.tar.xz"
|
||||
CODE_DIR="$1-$2"
|
||||
INSTALL_DIR="${INSTALL_DIR}${CODE_DIR}/debian"
|
||||
DEBIAN_CTRL_DIR="${DEBIAN_CTRL_DIR}${CODE_DIR}/debian/DEBIAN"
|
||||
|
||||
echo "*****************************************"
|
||||
echo "code archive: $CODE_ARCHIVE"
|
||||
echo "code directory: $CODE_DIR"
|
||||
echo "install directory: $INSTALL_DIR"
|
||||
echo "debian control directory: $DEBIAN_CTRL_DIR"
|
||||
echo "*****************************************"
|
||||
|
||||
tar -xJvf $CODE_ARCHIVE
|
||||
#mkdir -p $INSTALL_DIR
|
||||
cd $CODE_DIR
|
||||
./configure --prefix=/usr --enable-apparmor
|
||||
make -j2
|
||||
mkdir debian
|
||||
DESTDIR=debian make install-strip
|
||||
|
||||
cd ..
|
||||
echo "*****************************************"
|
||||
SIZE=`du -s $INSTALL_DIR`
|
||||
echo "install size $SIZE"
|
||||
echo "*****************************************"
|
||||
|
||||
mv $INSTALL_DIR/usr/share/doc/firejail/RELNOTES $INSTALL_DIR/usr/share/doc/firejail/changelog.Debian
|
||||
gzip -9 -n $INSTALL_DIR/usr/share/doc/firejail/changelog.Debian
|
||||
rm $INSTALL_DIR/usr/share/doc/firejail/COPYING
|
||||
install -m644 platform/debian/copyright $INSTALL_DIR/usr/share/doc/firejail/.
|
||||
mkdir -p $DEBIAN_CTRL_DIR
|
||||
sed "s/FIREJAILVER/$2/g" platform/debian/control.$(dpkg-architecture -qDEB_HOST_ARCH) > $DEBIAN_CTRL_DIR/control
|
||||
|
||||
mkdir -p $INSTALL_DIR/usr/share/lintian/overrides/
|
||||
install -m644 platform/debian/firejail.lintian-overrides $INSTALL_DIR/usr/share/lintian/overrides/firejail
|
||||
|
||||
find $INSTALL_DIR/etc -type f | sed "s,^$INSTALL_DIR,," | LC_ALL=C sort > $DEBIAN_CTRL_DIR/conffiles
|
||||
chmod 644 $DEBIAN_CTRL_DIR/conffiles
|
||||
find $INSTALL_DIR -type d | xargs chmod 755
|
||||
cd $CODE_DIR
|
||||
fakeroot dpkg-deb --build debian
|
||||
lintian debian.deb
|
||||
mv debian.deb ../firejail-apparmor_$2_1_$(dpkg-architecture -qDEB_HOST_ARCH).deb
|
||||
cd ..
|
||||
rm -fr $CODE_DIR
|
||||
Loading…
Add table
Add a link
Reference in a new issue