summaryrefslogtreecommitdiff
path: root/libre/paxd-libre/PKGBUILD
blob: e77ccedcbe74c6c2411bb6cbf6ffa87a6a7b05b3 (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
50
51
52
53
# Maintainer (Arch): Daniel Micay <danielmicay@gmail.com>
# Maintainer: André Silva <emulatorman@hyperbola.info>
# Maintainer: Luke R. <g4jc@openmailbox.org> GPG: rsa4096/3EAE8697

_pkgname=paxd
pkgname=paxd-libre
pkgver=1.14
pkgrel=1
pkgdesc='PaX exception daemon (a libre fork of paxd)'
arch=(i686 x86_64 armv7h)
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)
validpgpkeys=("CB6E213A349B8DF9E96B622AC3F4FFCF3EAE8697") # Luke R.
source=("$pkgname-$pkgver.tar.gz::https://github.com/g4jc/paxd-libre/archive/$pkgver.tar.gz"
	"https://github.com/g4jc/paxd-libre/releases/download/1.14/$pkgname-$pkgver.tar.gz.sig"
	10-enable-pax.conf)
whirlpoolsums=('a6e92277620476d4f5aa40e8fb854aa7f24371c88e245ea76e326460f1d0d273e5f971a5dc5e853a73554191c3cd7bd35d7fa96444ecc58a3f2a4671fb426a7f'
               '6b542767ddc559c066f8b478087e1a322701ebc82a01dadc3ca9ae997cad3b1d96125f928d951dab2aac210c14f848a85dd9190f71192fbef9dff03268be3125'
               '27c8a3b49cbbf56cf28552360c8b1151bef7fb4c309fa51a3d5a08b3121f64d3ebd21d3ad9138ac679920edf2a7b2399bc3ea155d98623b57f311d2f4d89202c')
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"
  mkdir -p "$pkgdir/usr/lib/sysctl.d/"
  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"
}
whirlpoolsums=('a6e92277620476d4f5aa40e8fb854aa7f24371c88e245ea76e326460f1d0d273e5f971a5dc5e853a73554191c3cd7bd35d7fa96444ecc58a3f2a4671fb426a7f'
               'SKIP'
               '27c8a3b49cbbf56cf28552360c8b1151bef7fb4c309fa51a3d5a08b3121f64d3ebd21d3ad9138ac679920edf2a7b2399bc3ea155d98623b57f311d2f4d89202c')
whirlpoolsums=('a6e92277620476d4f5aa40e8fb854aa7f24371c88e245ea76e326460f1d0d273e5f971a5dc5e853a73554191c3cd7bd35d7fa96444ecc58a3f2a4671fb426a7f'
               'SKIP'
               '27c8a3b49cbbf56cf28552360c8b1151bef7fb4c309fa51a3d5a08b3121f64d3ebd21d3ad9138ac679920edf2a7b2399bc3ea155d98623b57f311d2f4d89202c')
whirlpoolsums=('a6e92277620476d4f5aa40e8fb854aa7f24371c88e245ea76e326460f1d0d273e5f971a5dc5e853a73554191c3cd7bd35d7fa96444ecc58a3f2a4671fb426a7f'
               'SKIP'
               '27c8a3b49cbbf56cf28552360c8b1151bef7fb4c309fa51a3d5a08b3121f64d3ebd21d3ad9138ac679920edf2a7b2399bc3ea155d98623b57f311d2f4d89202c')
whirlpoolsums=('a6e92277620476d4f5aa40e8fb854aa7f24371c88e245ea76e326460f1d0d273e5f971a5dc5e853a73554191c3cd7bd35d7fa96444ecc58a3f2a4671fb426a7f'
               'SKIP'
               '27c8a3b49cbbf56cf28552360c8b1151bef7fb4c309fa51a3d5a08b3121f64d3ebd21d3ad9138ac679920edf2a7b2399bc3ea155d98623b57f311d2f4d89202c')
whirlpoolsums=('a6e92277620476d4f5aa40e8fb854aa7f24371c88e245ea76e326460f1d0d273e5f971a5dc5e853a73554191c3cd7bd35d7fa96444ecc58a3f2a4671fb426a7f'
               'SKIP'
               '27c8a3b49cbbf56cf28552360c8b1151bef7fb4c309fa51a3d5a08b3121f64d3ebd21d3ad9138ac679920edf2a7b2399bc3ea155d98623b57f311d2f4d89202c')