blob: 928d4db27c2fc30bde3df3c70ebb7562e37225c2 (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=open-lldp
_realname=lldpad
pkgver=0.9.45
pkgrel=2
pkgdesc="Open Source implementation of the IEEE standard 802.1AB Link Layer Discovery Protocol (LLDP)"
url="http://www.open-lldp.org"
arch="all"
license="GPL"
depends=
makedepends="autoconf automake bash flex libtool libconfig-dev libnl-dev
readline-dev linux-headers bsd-compat-headers"
install=
subpackages="$pkgname-dev $pkgname-doc"
source="http://dev.alpinelinux.org/archive/open-lldp/lldpad-$pkgver.tar.gz
$pkgname.initd
$pkgname.confd"
_builddir="$srcdir/lldpad-$pkgver"
prepare() {
cd "$_builddir"
sed -i 's/ln -T -s/ln -s/' Makefile.am || return 1
#sed -i 's/ln -T -s/ln -s/' Makefile.in || return 1
sed -i -e 's/-Werror//' Makefile.am configure.ac || return 1
libtoolize --force && aclocal && autoconf --force && automake --add-missing
}
build() {
cd "$_builddir"
./bootstrap.sh || return 1
# aclocal -W all && automake -W all && autoconf -W all
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
|| return 1
make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install
mkdir -p "$pkgdir"/usr/include/dcbd
# ln -s /usr/include/lldpad "$pkgdir"/usr/include/dcbd
ln -s /usr/include/lldpad/lldp_dcbx_cmds.h "$pkgdir"/usr/include/dcbd/clif_cmds.h
install -m755 -D ../../$pkgname.initd "$pkgdir"/etc/init.d/$_realname
install -m644 -D ../../$pkgname.confd "$pkgdir"/etc/conf.d/$_realname
find "$pkgdir" -name *.la -delete
}
md5sums="b06621c730a5e6f575755b061676ac5e lldpad-0.9.45.tar.gz
1d6cdac5614860629fd2a5bbe02d9263 open-lldp.initd
a1d2e351028d39193fc0a3466ba4db33 open-lldp.confd"
sha256sums="823f65f317f65888a1fb887fe030d1ff3215e2e1ae18f68e2c8519f92a5dc8a8 lldpad-0.9.45.tar.gz
5f7a6f265afc16051066c1890c49f330f1fb79cce4fc9a0880aec161eb00d27c open-lldp.initd
f914e08fb444ee398727fabdf6bd84df2f66087ba5ce35872452859ed06e9890 open-lldp.confd"
sha512sums="5ce0019ac8726238d446b985edadce3da0f831f9e7e3f69c0bb16ea64ec4228418f43455a5174af87f3d579c1950f0bef0d8ac75b07f666fb1fbcc31977daf4e lldpad-0.9.45.tar.gz
cfd618d2414ec1624e66105b5357de93414b0320badf63b78cbab9b5bb493bd8ef7cac9a22ba4d60418037d2d6636469a20dc288906348c2332beb786f67f808 open-lldp.initd
8f8a68b9764e3b2be0cc01a37debb099e3d9021c354eb8d584a5123c470002f1f61ecc5688e5d958c8c576fd36df7a65233192221849a8fc51e999a7c5ea5678 open-lldp.confd"
|