void-packages/srcpkgs/firejail/template

63 lines
1.9 KiB
Bash

# Template file for 'firejail'
pkgname=firejail
version=0.9.28
revision=1
build_style=gnu-configure
build_pie=yes
conf_files="
/etc/firejail/disable-secret.inc
/etc/firejail/chromium.profile
/etc/firejail/midori.profile
/etc/firejail/vlc.profile
/etc/firejail/chromium-browser.profile
/etc/firejail/totem.profile
/etc/firejail/rhythmbox.profile
/etc/firejail/transmission-qt.profile
/etc/firejail/icedove.profile
/etc/firejail/transmission-gtk.profile
/etc/firejail/clementine.profile
/etc/firejail/dropbox.profile
/etc/firejail/evince.profile
/etc/firejail/login.users
/etc/firejail/disable-mgmt.inc
/etc/firejail/audacious.profile
/etc/firejail/gnome-mplayer.profile
/etc/firejail/firefox.profile
/etc/firejail/iceweasel.profile
/etc/firejail/thunderbird.profile
/etc/firejail/opera.profile
/etc/firejail/deluge.profile
/etc/firejail/generic.profile
/etc/firejail/qbittorrent.profile"
short_desc="SUID security sandbox program"
maintainer="Duncaen <mail@duncano.de>"
license="GPL-2"
homepage="https://l3net.wordpress.com/projects/firejail/"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
checksum=bd91888aff9abbfce0d2963c7d28bedf4362fd29976ca8ede80c6f59a3ac4cad
case "$XBPS_TARGET_MACHINE" in
arm*)
configure_args+=" --disable-seccomp"
;;
esac
pre_configure() {
case "$XBPS_TARGET_MACHINE" in
*-musl) # XXX: dirty hack - very limited stdio.h definitions
# to avoid redefinition of intercepted libc functions
cp ${FILESDIR}/musl_defs.h ${wrksrc}/src/libtrace
# Include our header instead of stdio.h and sys/stat.h
# Use struct stat instead of struct stat64 (they are equal)
sed -i ${wrksrc}/src/libtrace/libtrace.c \
-e 's;#include <stdio.h>;#include "musl_defs.h";' \
-e 's;#include <sys/stat.h>;;' \
-e 's;struct stat64;struct stat;g'
esac
}
pre_install() {
# remove hardcoded strip(1)
sed -i '/strip .*/d' Makefile
}