summaryrefslogtreecommitdiff
path: root/opt/firejail/MAKEPKG
blob: 93c7ea1e551b736a0d78145ca784eda7ccaf84f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/mkpkg
# description: SUID sandbox using Linux namespaces and seccomp-bpf
# url: https://github.com/netblue30/firejail

name=firejail
version=0.9.80
release=1
depends=()
makedeps=(autoconf automake)
permissions=(
    /usr/bin/firejail:root:root:4755
    /usr/bin/firecfg:root:root:755
    /usr/bin/firemon:root:root:755
    /usr/bin/jailcheck:root:root:755
    /etc/firejail/firejail.config:root:root:644
)
source=(
    https://github.com/netblue30/firejail/releases/download/$version/$name-$version.tar.xz
)
sha256sums=(
    "0ccfb835c7a33c0dd5b4c522b8677c8af867eb65d4ef97a726d13cbc251164db"
)

build() {
    cd $name-$version

    autoreconf -fiv
    GAWK=mawk \
    ./configure \
        --prefix=/usr \
        --sysconfdir=/etc \
        --enable-dbusproxy \
        --disable-apparmor \
        --disable-selinux \
        --disable-x11
    make
    make DESTDIR=$PKG install

    # Remove shell completions
    rm -rf $PKG/usr/share/bash-completion
    rm -rf $PKG/usr/share/zsh
}

signify() {
    untrusted comment: public key
    RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
}

# vim: filetype=sh