blob: ec5ac658b32a6d8cc7a35b6cec70ad4b5e04d9a0 (
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
|
# $Id: PKGBUILD 106348 2014-02-28 21:36:16Z seblu $
# Maintainer: Sébastien Luttringer
# Contributor: Kaiting Chen <kaitocracy@gmail.com>
# Contributor: Mark Smith <markzzzsmith@yahoo.com.au>
pkgname=radvd
pkgver=1.9.9
pkgrel=1
pkgdesc='IPv6 Router Advertisement Daemon'
url='http://www.litech.org/radvd/'
license=('custom')
depends=('glibc' 'libdaemon')
arch=('i686' 'x86_64')
backup=('etc/radvd.conf')
source=("http://www.litech.org/radvd/dist/$pkgname-$pkgver.tar.xz"{,.asc}
"$pkgname.service")
sha1sums=('373f7b1b6b2c6efbf8dc253f90b466703526d9b4'
'SKIP'
'2fdba3b0ed28c67dc1c04bfd1439fa4dece88bbc')
build() {
cd ${pkgname}-${pkgver}
./configure \
--prefix=/usr \
--sbindir=/usr/bin \
--sysconfdir=/etc \
--with-pidfile=/run/radvd.pid \
--mandir=/usr/share/man
make
}
package() {
cd ${pkgname}-${pkgver}
make DESTDIR="$pkgdir" install
# default config
install -D -m 644 radvd.conf.example "$pkgdir/etc/radvd.conf"
# license
install -D -m 644 COPYRIGHT "$pkgdir/usr/share/licenses/$pkgname/COPYRIGHT"
# systemd
install -D -m 644 ../$pkgname.service \
"$pkgdir/usr/lib/systemd/system/$pkgname.service"
}
# vim:set ts=2 sw=2 et:
|