updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / lldpd / PKGBUILD
blob013cf9c9e066cf010057ccf35275eed17bb92386
1 # Maintainer: Pierre Carrier <pierre@spotify.com>
3 pkgname=lldpd
4 pkgver=0.5.5
5 pkgrel=2
6 pkgdesc="LLDP daemon for GNU/Linux implementing both reception and sending"
7 arch=('i686' 'x86_64')
8 url="https://github.com/vincentbernat/lldpd/wiki"
9 license=('custom:"ISC"')
10 install=lldpd.install
11 source=(http://media.luffy.cx/files/$pkgname/$pkgname-$pkgver.tar.gz
12         rc.d
13         lldpd.install
14         LICENSE)
15 md5sums=('f5db42784c59610c1cc61d3bae396ec2'
16          'f2cecfee2c1a922de9029b6203ffb687'
17          '0b06475bc2048aa29fb1d8c660446f87'
18          '8ae98663bac55afe5d989919d296f28a')
20 build() {
21   cd "$srcdir/$pkgname-$pkgver"
22   ./configure --prefix=/usr
23   make
26 package() {
27   cd "$srcdir/$pkgname-$pkgver"
28   make DESTDIR="$pkgdir/" install
29   install -dm644 "$pkgdir/var/run/lldpd"
30   install -Dm755 ../rc.d "${pkgdir}"/etc/rc.d/lldpd
31   install -Dm644 ../LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"