From 18d9f9af03c9797a0cb68c105b281e52900564fd Mon Sep 17 00:00:00 2001 From: Leonardo Arena Date: Mon, 19 Jul 2010 12:15:20 +0000 Subject: testing/openlldp: new aport --- testing/openlldp/APKBUILD | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 testing/openlldp/APKBUILD (limited to 'testing/openlldp') diff --git a/testing/openlldp/APKBUILD b/testing/openlldp/APKBUILD new file mode 100644 index 0000000000..140ff91d96 --- /dev/null +++ b/testing/openlldp/APKBUILD @@ -0,0 +1,40 @@ +# Maintainer: Leonardo Arena +pkgname=openlldp +pkgver=0.4a +_realver=0.4alpha +pkgrel=0 +pkgdesc="Open Source implementation of the IEEE standard 802.1AB Link Layer Discovery Protocol (LLDP)" +url="http://openlldp.sourceforge.net/" +license="GPL" +depends= +makedepends= +install= +subpackages="" +source="http://downloads.sourceforge.net/$pkgname/$pkgname-$_realver.tar.gz" + +_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 + + # remove the 2 lines below (and this) if there is no init.d script + # install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname + # install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname +} + +md5sums="f48ffd632b96246cbf0f5c485dea3b01 openlldp-0.4alpha.tar.gz" -- cgit v1.2.3 From fb990d5ea38fb4a596478e81de3dc5ffaf0319ee Mon Sep 17 00:00:00 2001 From: Leonardo Arena Date: Thu, 28 Oct 2010 11:12:09 +0000 Subject: testing/openlldp: init added --- testing/openlldp/APKBUILD | 16 +++++++--------- testing/openlldp/openlldp.confd | 2 ++ testing/openlldp/openlldp.initd | 24 ++++++++++++++++++++++++ 3 files changed, 33 insertions(+), 9 deletions(-) create mode 100644 testing/openlldp/openlldp.confd create mode 100755 testing/openlldp/openlldp.initd (limited to 'testing/openlldp') diff --git a/testing/openlldp/APKBUILD b/testing/openlldp/APKBUILD index 140ff91d96..570e66a1b9 100644 --- a/testing/openlldp/APKBUILD +++ b/testing/openlldp/APKBUILD @@ -2,7 +2,7 @@ pkgname=openlldp pkgver=0.4a _realver=0.4alpha -pkgrel=0 +pkgrel=1 pkgdesc="Open Source implementation of the IEEE standard 802.1AB Link Layer Discovery Protocol (LLDP)" url="http://openlldp.sourceforge.net/" license="GPL" @@ -14,10 +14,10 @@ source="http://downloads.sourceforge.net/$pkgname/$pkgname-$_realver.tar.gz" _builddir="$srcdir"/$pkgname-$_realver -prepare() { - cd "$_builddir" - # apply patches here -} +#prepare() { +# cd "$_builddir" +# apply patches here +#} build() { cd "$_builddir" @@ -31,10 +31,8 @@ build() { package() { cd "$_builddir" make DESTDIR="$pkgdir" install - - # remove the 2 lines below (and this) if there is no init.d script - # install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname - # install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname + 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" diff --git a/testing/openlldp/openlldp.confd b/testing/openlldp/openlldp.confd new file mode 100644 index 0000000000..38d9613483 --- /dev/null +++ b/testing/openlldp/openlldp.confd @@ -0,0 +1,2 @@ +# Remove existing pid file at startup +OPTS="-s" diff --git a/testing/openlldp/openlldp.initd b/testing/openlldp/openlldp.initd new file mode 100755 index 0000000000..4ab856addc --- /dev/null +++ b/testing/openlldp/openlldp.initd @@ -0,0 +1,24 @@ +#!/sbin/runscript + +NAME="lldpd" +DAEMON="/usr/sbin/$NAME" +pidfile=/var/run/$NAME.pid + +depend() { + need net + after firewall +} + +start() { + ebegin "Starting ${NAME}" + start-stop-daemon --start --quiet --pidfile ${pidfile} \ + --exec ${DAEMON} -- ${OPTS} + eend $? +} + +stop() { + ebegin "Stopping ${NAME}" + start-stop-daemon --stop --exec ${DAEMON} + eend $? +} + -- cgit v1.2.3 From c9e97cb90ef4f9bf2cfb78a01c9384a5d1a78608 Mon Sep 17 00:00:00 2001 From: Leonardo Arena Date: Thu, 28 Oct 2010 11:14:45 +0000 Subject: testing/openlldp: cheksum update --- testing/openlldp/APKBUILD | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'testing/openlldp') diff --git a/testing/openlldp/APKBUILD b/testing/openlldp/APKBUILD index 570e66a1b9..f07f87ddcb 100644 --- a/testing/openlldp/APKBUILD +++ b/testing/openlldp/APKBUILD @@ -2,7 +2,7 @@ pkgname=openlldp pkgver=0.4a _realver=0.4alpha -pkgrel=1 +pkgrel=2 pkgdesc="Open Source implementation of the IEEE standard 802.1AB Link Layer Discovery Protocol (LLDP)" url="http://openlldp.sourceforge.net/" license="GPL" @@ -10,7 +10,9 @@ depends= makedepends= install= subpackages="" -source="http://downloads.sourceforge.net/$pkgname/$pkgname-$_realver.tar.gz" +source="http://downloads.sourceforge.net/$pkgname/$pkgname-$_realver.tar.gz + $pkgname.initd + $pkgname.confd" _builddir="$srcdir"/$pkgname-$_realver @@ -35,4 +37,6 @@ package() { install -m644 -D ../../$pkgname.confd "$pkgdir"/etc/conf.d/lldpd } -md5sums="f48ffd632b96246cbf0f5c485dea3b01 openlldp-0.4alpha.tar.gz" +md5sums="f48ffd632b96246cbf0f5c485dea3b01 openlldp-0.4alpha.tar.gz +7e1a489d8ccdd204cac68ce87e0ce360 openlldp.initd +7ac497e5a8b2f68532816c5718f5bf62 openlldp.confd" -- cgit v1.2.3 From 8457985d612531269ceca5b651073448f435f7e7 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Mon, 13 Dec 2010 16:02:13 +0000 Subject: testing/*: add arch --- testing/openlldp/APKBUILD | 1 + 1 file changed, 1 insertion(+) (limited to 'testing/openlldp') diff --git a/testing/openlldp/APKBUILD b/testing/openlldp/APKBUILD index f07f87ddcb..caa36e4b74 100644 --- a/testing/openlldp/APKBUILD +++ b/testing/openlldp/APKBUILD @@ -5,6 +5,7 @@ _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="x86 x86_64" license="GPL" depends= makedepends= -- cgit v1.2.3