2015-02-17 14:30:42 +00:00
|
|
|
# Template file for 'firejail'
|
|
|
|
pkgname=firejail
|
2015-08-31 13:33:43 +00:00
|
|
|
version=0.9.28
|
|
|
|
revision=1
|
2015-02-17 14:30:42 +00:00
|
|
|
build_style=gnu-configure
|
2015-04-06 18:24:47 +00:00
|
|
|
build_pie=yes
|
2015-02-17 14:30:42 +00:00
|
|
|
conf_files="
|
2015-08-31 18:30:57 +00:00
|
|
|
/etc/firejail/disable-secret.inc
|
|
|
|
/etc/firejail/chromium.profile
|
|
|
|
/etc/firejail/midori.profile
|
|
|
|
/etc/firejail/vlc.profile
|
|
|
|
/etc/firejail/chromium-browser.profile
|
2015-08-31 18:24:18 +00:00
|
|
|
/etc/firejail/totem.profile
|
2015-08-31 18:30:57 +00:00
|
|
|
/etc/firejail/rhythmbox.profile
|
|
|
|
/etc/firejail/transmission-qt.profile
|
2015-08-31 18:24:18 +00:00
|
|
|
/etc/firejail/icedove.profile
|
2015-08-31 18:30:57 +00:00
|
|
|
/etc/firejail/transmission-gtk.profile
|
|
|
|
/etc/firejail/clementine.profile
|
|
|
|
/etc/firejail/dropbox.profile
|
2015-02-17 14:30:42 +00:00
|
|
|
/etc/firejail/evince.profile
|
2015-08-31 18:30:57 +00:00
|
|
|
/etc/firejail/login.users
|
2015-02-17 14:30:42 +00:00
|
|
|
/etc/firejail/disable-mgmt.inc
|
2015-08-31 18:30:57 +00:00
|
|
|
/etc/firejail/audacious.profile
|
|
|
|
/etc/firejail/gnome-mplayer.profile
|
|
|
|
/etc/firejail/firefox.profile
|
|
|
|
/etc/firejail/iceweasel.profile
|
2015-04-06 18:24:47 +00:00
|
|
|
/etc/firejail/thunderbird.profile
|
2015-08-31 18:30:57 +00:00
|
|
|
/etc/firejail/opera.profile
|
2015-08-31 18:24:18 +00:00
|
|
|
/etc/firejail/deluge.profile
|
|
|
|
/etc/firejail/generic.profile
|
2015-08-31 18:30:57 +00:00
|
|
|
/etc/firejail/qbittorrent.profile"
|
2015-02-17 14:30:42 +00:00
|
|
|
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"
|
2015-08-31 13:33:43 +00:00
|
|
|
checksum=bd91888aff9abbfce0d2963c7d28bedf4362fd29976ca8ede80c6f59a3ac4cad
|
2015-02-17 14:50:10 +00:00
|
|
|
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
2015-02-17 14:57:23 +00:00
|
|
|
arm*)
|
|
|
|
configure_args+=" --disable-seccomp"
|
|
|
|
;;
|
2015-02-17 14:50:10 +00:00
|
|
|
esac
|
2015-02-17 14:57:23 +00:00
|
|
|
|
2015-08-31 13:33:43 +00:00
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2015-02-17 14:57:23 +00:00
|
|
|
pre_install() {
|
|
|
|
# remove hardcoded strip(1)
|
2015-02-17 15:01:11 +00:00
|
|
|
sed -i '/strip .*/d' Makefile
|
2015-02-17 14:57:23 +00:00
|
|
|
}
|