summaryrefslogtreecommitdiff
path: root/pcr/memlockd/PKGBUILD
blob: 86ed0601f65bc67a9c4a8aaee66d6d8348934789 (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
# Contributor: fauno <fauno@parabola.nu>
# Maintainers: Parabola hackers <dev@lists.parabola.nu>

pkgname=memlockd
pkgver=1.1.1
pkgrel=1
pkgdesc="daemon that locks files into memory"
arch=('i686' 'x86_64')
url="http://doc.coker.com.au/projects/memlockd/"
license=('GPL3')
depends=('glibc')
# main site doesn't announce 1.1.1
source=(http://ftp.de.debian.org/debian/pool/main/${pkgname:0:1}/${pkgname}/${pkgname}_${pkgver}.tar.gz)
install=${pkgname}.install
backup=(etc/memlockd.cfg)

build() {
  cd "$srcdir/$pkgname-$pkgver"
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  install -d -m 750 "${pkgdir}/usr/lib/memlockd" "${pkgdir}/etc/memlockd.d"
  install -D -m 644 memlockd.8 "${pkgdir}/usr/share/man/man8/memlockd.8"
  install -D -m 755 memlockd "${pkgdir}/usr/bin/memlockd"
  install -D -m 640 memlockd.cfg "${pkgdir}/etc/memlockd.cfg"
  install -D -m 644 memlockd.service "${pkgdir}/usr/lib/systemd/system/memlockd.service"
}
sha512sums=('836530c7ec2ea0efbf408e53d2b4617d7154e9c7a2c88546848c2759febe9735b0c46e61ad144c37e64ab0126314bf7927bf49d373b7a8801bd899e2ab88de6c')