summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimMayle(Max_) <max-lists@ycom.ch>2008-01-15 14:22:58 +0000
committerTimMayle(Max_) <max-lists@ycom.ch>2008-01-15 14:22:58 +0000
commite81c3a55ed976f2bd9a7130914fc3cf5cd3a35e5 (patch)
tree1f698ccfe0041422133951ef1bdab0a279011ce6
parentdev-libs/uthash: New Ebuild for bug 205911 (diff)
downloadsunrise-e81c3a55ed976f2bd9a7130914fc3cf5cd3a35e5.tar.gz
sunrise-e81c3a55ed976f2bd9a7130914fc3cf5cd3a35e5.tar.bz2
sunrise-e81c3a55ed976f2bd9a7130914fc3cf5cd3a35e5.zip
net-misc/openlldp: New Ebuild for bug 203903 thanks to Tommy[D],bonzaikitten and jokey
svn path=/sunrise/; revision=5428
-rw-r--r--net-misc/openlldp/ChangeLog8
-rw-r--r--net-misc/openlldp/Manifest6
-rw-r--r--net-misc/openlldp/files/openlldp.confd5
-rw-r--r--net-misc/openlldp/files/openlldp.initd18
-rw-r--r--net-misc/openlldp/metadata.xml5
-rw-r--r--net-misc/openlldp/openlldp-0.3_alpha.ebuild42
6 files changed, 84 insertions, 0 deletions
diff --git a/net-misc/openlldp/ChangeLog b/net-misc/openlldp/ChangeLog
new file mode 100644
index 000000000..184cce39a
--- /dev/null
+++ b/net-misc/openlldp/ChangeLog
@@ -0,0 +1,8 @@
+# ChangeLog for net-misc/openlldp
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 15 Jan 2008; TimMayle(Max_) <max-lists@ycom.ch> +files/openlldp.confd,
+ +files/openlldp.initd, +metadata.xml, +openlldp-0.3_alpha.ebuild:
+ New Ebuild for bug 203903 thanks to Tommy[D],bonzaikitten and jokey
+
diff --git a/net-misc/openlldp/Manifest b/net-misc/openlldp/Manifest
new file mode 100644
index 000000000..e2180b08e
--- /dev/null
+++ b/net-misc/openlldp/Manifest
@@ -0,0 +1,6 @@
+AUX openlldp.confd 98 RMD160 268b187f555bcbf36d7e78dfeb8200a73df1c21a SHA1 0fe7b6b407d27d75b85300cc79d3469212a5b8e6 SHA256 927824d42f5dfd1b457ee7d1050c9b1a5f62e76135a90b49cfc43914cec7724b
+AUX openlldp.initd 322 RMD160 598ff5ba2707d9bcc8d4dc715743f2f167c2d4da SHA1 41796ab0786bc5bf7feefbd4dce2f8d98ab4956e SHA256 f567883e4e1ece4ae29ceddeb7c0fd41979d671efd4d6fbfa14dcfd6c950345c
+DIST openlldp-0.3alpha.tar.gz 103523 RMD160 04f5d6bf0d089c58513505302b234e5fd48b1e5a SHA1 9d4a85be1d8e98d3ea832d531bc784ce952d32e2 SHA256 2ecc1967be52078c5357540763e2b3c5ff8554161fe8dcac8952b60a0cd016f1
+EBUILD openlldp-0.3_alpha.ebuild 1021 RMD160 17d68a808fbc8acf9bf8ec578257c112fa0a5ae3 SHA1 cb4abb859baa25d9fb9497afa327327b1f315e88 SHA256 a987a99556460cef2b5fb34f750177804034b95cc2885e176a8aec9d8241a1a9
+MISC ChangeLog 330 RMD160 b6073bc1bd5c79d73626c4a3b7c93a15b76d3363 SHA1 cd86045cd881cc7db702a29d1bb093507992f1a2 SHA256 42cef7e62a0d8039f4e5ff70efaf0b8072a75d6bbab4ffd5f85c92df28b6b533
+MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42
diff --git a/net-misc/openlldp/files/openlldp.confd b/net-misc/openlldp/files/openlldp.confd
new file mode 100644
index 000000000..75ee979de
--- /dev/null
+++ b/net-misc/openlldp/files/openlldp.confd
@@ -0,0 +1,5 @@
+# Config file for /etc/init.d/openlldp
+
+# Set preferred options here
+#OPTS="-s"
+OPTS="-s -i eth0"
diff --git a/net-misc/openlldp/files/openlldp.initd b/net-misc/openlldp/files/openlldp.initd
new file mode 100644
index 000000000..116952cf3
--- /dev/null
+++ b/net-misc/openlldp/files/openlldp.initd
@@ -0,0 +1,18 @@
+#!/sbin/runscript
+
+depend() {
+ need net
+}
+
+
+start() {
+ ebegin "Starting LLDP"
+ start-stop-daemon --start --quiet --background --exec /usr/lib/openlldp/sbin/lldpd -- ${OPTS} >/dev/null
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping LLDP"
+ start-stop-daemon --stop --quiet --retry 20 --exec /usr/lib/openlldp/sbin/lldpd
+ eend $?
+}
diff --git a/net-misc/openlldp/metadata.xml b/net-misc/openlldp/metadata.xml
new file mode 100644
index 000000000..7e3286984
--- /dev/null
+++ b/net-misc/openlldp/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>maintainer-wanted</herd>
+</pkgmetadata>
diff --git a/net-misc/openlldp/openlldp-0.3_alpha.ebuild b/net-misc/openlldp/openlldp-0.3_alpha.ebuild
new file mode 100644
index 000000000..726303ac4
--- /dev/null
+++ b/net-misc/openlldp/openlldp-0.3_alpha.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+DESCRIPTION="The Link Layer Discovery Protocol"
+HOMEPAGE="http://openlldp.sourceforge.net"
+MY_P=${P/_/}
+SRC_URI="http://downloads.sourceforge.net/${PN}/${MY_P}.tar.gz"
+S=${WORKDIR}/${MY_P}
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="libpcap debug"
+
+DEPEND="libpcap? ( net-libs/libpcap )"
+RDEPEND=${DEPEND}
+
+src_compile() {
+ use libpcap && myconf=" --enable-generic-framer"
+ use debug && myconf="${myconf} --enable-efence"
+
+ econf --prefix=/usr/lib/openlldp \
+ ${myconf} \
+ || die "Error: econf failed!"
+ emake || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "emake install failed"
+
+ dodoc README
+ newinitd "${FILESDIR}"/openlldp.initd lldpd
+ newconfd "${FILESDIR}"/openlldp.confd openlldp
+}
+
+pkg_postinst() {
+ elog "This is an experimental ebuild. Use with caution."
+ elog ""
+ !use libpcap && elog "The kernel module \"af_packet\" is needed for this tool to run."
+}
+