summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD35
2 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..f065a85d46b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = firejail-apparmor-git
+ pkgdesc = Linux namespaces sandbox program (GIT version with AppArmor support)
+ pkgver = r2937.83afac08
+ pkgrel = 1
+ url = https://github.com/netblue30/firejail
+ arch = i686
+ arch = x86_64
+ license = GPL2
+ depends = apparmor
+ provides = firejail
+ conflicts = firejail
+ backup = etc/firejail/login.users
+ backup = etc/firejail/firejail.config
+ backup = etc/apparmor.d/local/firejail-local
+ source = firejail-apparmor-git::git+https://github.com/netblue30/firejail.git
+ sha512sums = SKIP
+
+pkgname = firejail-apparmor-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..b15f402299d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: algebro <algebro at tuta dot io>
+
+pkgname=firejail-apparmor-git
+pkgver=r4928.1b4e80e3
+pkgrel=1
+pkgdesc="Linux namespaces sandbox program (GIT version with AppArmor support)"
+arch=(i686 x86_64)
+license=(GPL2)
+url="https://github.com/netblue30/firejail"
+source=("${pkgname}::git+https://github.com/netblue30/firejail.git")
+sha512sums=('SKIP')
+depends=('apparmor')
+conflicts=('firejail')
+provides=('firejail')
+backup=('etc/firejail/login.users'
+ 'etc/firejail/firejail.config'
+ 'etc/apparmor.d/local/firejail-local')
+
+pkgver() {
+ cd "${srcdir}/${pkgname}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" | sed 's/^v//;s/-/./g'
+}
+
+build() {
+ cd "${srcdir}/${pkgname}"
+ # fix build
+ export CFLAGS=${CFLAGS/-fsanitize=undefined/}
+ ./configure --prefix=/usr --enable-apparmor
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}"
+ make DESTDIR="${pkgdir}" install
+} \ No newline at end of file