blob: 145575240f13b5eead50109c954572d771eb9f32 (
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
|
# Maintainer (Arch): Daniel Micay <danielmicay@gmail.com>
# Maintainer: André Silva <emulatorman@parabola.nu>
# Contributor: Gaming4JC <gaming4jc2@yahoo.com>
_pkgname=paxd
pkgname=paxd-libre
pkgver=1.5
pkgrel=2
pkgdesc='PaX exception daemon (a libre fork of paxd)'
arch=(i686 x86_64)
url='https://github.com/g4jc/paxd-libre/'
license=(MIT)
replaces=($_pkgname linux-pax-flags)
conflicts=($_pkgname linux-pax-flags)
provides=($_pkgname linux-pax-flags)
depends=(glib2)
source=(https://github.com/g4jc/paxd-libre/archive/$pkgver.tar.gz 10-enable-pax.conf)
sha1sums=('b25b021658bc8e92f8f738cd6e9d2311d0177db2'
'8ee73dd288bc32438078e032dfc50a2f8ea6a5f2')
backup=(etc/paxd-libre.conf)
build() {
cd $pkgname-$pkgver
make CC=gcc
}
package() {
cd $pkgname-$pkgver
mkdir -p "$pkgdir/usr/lib/systemd/system/sysinit.target.wants"
make PREFIX=/usr DESTDIR="$pkgdir" install
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 ../10-enable-pax.conf "$pkgdir/usr/lib/sysctl.d/10-enable-pax.conf"
ln -s paxd-libre.conf "$pkgdir/etc/paxd.conf"
install -Dm644 "$pkgdir/usr/lib/systemd/system/paxd-libre.service" "$pkgdir/usr/lib/systemd/system/paxd.service"
ln -s ../paxd.service "$pkgdir/usr/lib/systemd/system/sysinit.target.wants/paxd.service"
install -Dm644 "$pkgdir/usr/lib/systemd/user/paxd-libre.service" "$pkgdir/usr/lib/systemd/user/paxd.service"
}
|