summaryrefslogtreecommitdiff
path: root/community/ndisc6/PKGBUILD
blob: df7d0ce4507cee01790b5f234aee8af90feebca9 (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
# $Id: PKGBUILD 60785 2011-12-17 22:54:36Z cbrannon $
# Maintainer: Chris Brannon <chris@the-brannons.com>
# Contributor: Mark Smith <markzzzsmith@yahoo.com.au>
pkgname=ndisc6
pkgver=1.0.2
pkgrel=2
pkgdesc="A collection of IPv6 networking utilities - ndisc6, rdisc6, tcptraceroute6, tracert6, rltraceroute6, tcpspray6"
arch=('i686' 'x86_64')
url="http://www.remlab.net/ndisc6/"
license=("GPL")
depends=('glibc' 'perl')
makedepends=('glibc' 'gcc')
options=(emptydirs)
source=(http://www.remlab.net/files/ndisc6/$pkgname-$pkgver.tar.bz2
        rdnssd.rc.d
	rdnssd.confd)

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

  ./configure --localstatedir=/var --sysconfdir=/etc --prefix=/usr
  make

}

package() {
  cd "$srcdir/$pkgname-$pkgver"

  make DESTDIR="$pkgdir" install
  install -Dm755 "$srcdir/rdnssd.rc.d" "$pkgdir/etc/rc.d/rdnssd"
  install -Dm644 "$srcdir/rdnssd.confd" "$pkgdir/etc/conf.d/rdnssd"
  install -Dm644 /dev/null "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf"
  echo "d /var/run/rdnssd 0755 nobody root" > "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf"
}

md5sums=('50cb4c19606cf6ff2b7388e71832f579'
         '3421fd731c4da4f9e07fc6b6ff4e5084'
         'f1910902932e2622fc166960819db6c4')