aboutsummaryrefslogtreecommitdiffstats
path: root/testing/openlldp/APKBUILD
blob: 651f90c288846d9cc4c19ef53d025eb2a84dd80d (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
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=openlldp
pkgver=0.4a
_realver=0.4alpha
pkgrel=2
pkgdesc="Open Source implementation of the IEEE standard 802.1AB Link Layer Discovery Protocol (LLDP)"
url="http://openlldp.sourceforge.net/"
arch="all"
license="GPL"
depends=
makedepends=
install=
subpackages=""
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$_realver.tar.gz
	$pkgname.initd
	$pkgname.confd"

_builddir="$srcdir"/$pkgname-$_realver

#prepare() {
#	cd "$_builddir"
#	apply patches here
#}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
	install -m755 -D ../../$pkgname.initd "$pkgdir"/etc/init.d/lldpd
	install -m644 -D ../../$pkgname.confd "$pkgdir"/etc/conf.d/lldpd
}

md5sums="f48ffd632b96246cbf0f5c485dea3b01  openlldp-0.4alpha.tar.gz
7e1a489d8ccdd204cac68ce87e0ce360  openlldp.initd
7ac497e5a8b2f68532816c5718f5bf62  openlldp.confd"