summaryrefslogtreecommitdiffstats
path: root/radvd/PKGBUILD
blob: 8a36e8c3102d16241f98bc227ddcb17b56c08fbf (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
# Contributor: Mark Smith <markzzzsmith@yahoo.com.au>
pkgname=radvd
pkgver=1.6
pkgrel=1
pkgdesc="IPv6 Router Advertisement / Router Solicitation daemon"
url="http://www.litech.org/radvd/"
license="custom"
arch=('i686' 'x86_64')
makedepends=('automake' 'gcc' 'coreutils' 'sed' 'bison' 'flex' \
  'tar' 'gzip' 'glibc' )
depends=('glibc')
backup=(etc/$pkgname/radvd.conf)
install=radvd.install
source=(http://www.litech.org/radvd/dist/$pkgname-$pkgver.tar.gz
	radvd.rc.d
	radvd.install)
md5sums=('987e0660d68b4501b24dc5a068cea83c'
	 '0ceec38160497fb99ca6879c27e9255a'
	 'b02517cc251dba4a2910395de878bde9')

build() {

  cd $startdir/src/$pkgname-$pkgver

  ./configure --prefix=/usr\
  	--sysconfdir=/etc/$pkgname \
	--mandir=/usr/share/man

  make

  make DESTDIR=$startdir/pkg install

  install -D -m444 COPYRIGHT $startdir/pkg/usr/share/licenses/$pkgname/COPYRIGHT 
  install -D -m444 $startdir/src/$pkgname-$pkgver/radvd.conf.example \
  	$startdir/pkg/etc/$pkgname/radvd.conf.example

  install -D -m755 $startdir/radvd.rc.d $startdir/pkg/etc/rc.d/radvd

}