summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick McLean <chutzpah@gentoo.org>2012-02-09 23:34:41 +0000
committerPatrick McLean <chutzpah@gentoo.org>2012-02-09 23:34:41 +0000
commitd654a7f4ee8d238e9c54ccd58511662a23c44b87 (patch)
treeb5fea01ccd2064f4ba186d77425ae77c99a3b05f /net-misc/lldpd
parentadd licenses/lldpd for net-misc/lldpd, seems to be a variant of the ISC license (diff)
downloadgentoo-2-d654a7f4ee8d238e9c54ccd58511662a23c44b87.tar.gz
gentoo-2-d654a7f4ee8d238e9c54ccd58511662a23c44b87.tar.bz2
gentoo-2-d654a7f4ee8d238e9c54ccd58511662a23c44b87.zip
added new package net-misc/lldpd
(Portage version: 2.1.10.44/cvs/Linux x86_64)
Diffstat (limited to 'net-misc/lldpd')
-rw-r--r--net-misc/lldpd/ChangeLog10
-rw-r--r--net-misc/lldpd/Manifest5
-rw-r--r--net-misc/lldpd/files/lldpd-confd-15
-rwxr-xr-xnet-misc/lldpd/files/lldpd-initd-122
-rw-r--r--net-misc/lldpd/lldpd-0.5.6.ebuild49
-rw-r--r--net-misc/lldpd/metadata.xml25
6 files changed, 116 insertions, 0 deletions
diff --git a/net-misc/lldpd/ChangeLog b/net-misc/lldpd/ChangeLog
new file mode 100644
index 000000000000..78a2ace48e46
--- /dev/null
+++ b/net-misc/lldpd/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for net-misc/lldpd
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/lldpd/ChangeLog,v 1.1 2012/02/09 23:34:41 chutzpah Exp $
+
+*lldpd-0.5.6 (09 Feb 2012)
+
+ 09 Feb 2012; Patrick McLean <chutzpah@gentoo.org> +files/lldpd-confd-1,
+ +files/lldpd-initd-1, +lldpd-0.5.6.ebuild, +metadata.xml:
+ added new package net-misc/lldpd
+
diff --git a/net-misc/lldpd/Manifest b/net-misc/lldpd/Manifest
new file mode 100644
index 000000000000..de73cd771e9a
--- /dev/null
+++ b/net-misc/lldpd/Manifest
@@ -0,0 +1,5 @@
+AUX lldpd-confd-1 142 RMD160 1d432ff2853fd7c3a59c3f84b4ce96761d37041c SHA1 e4c8985b4afbbd49580e7db16e95ce94bbc8370f SHA256 b1680fcf0395fc681bfb3283df7c86ac873aa105a9c92be37c41475b9ba9ee4c
+AUX lldpd-initd-1 448 RMD160 a05f0a9522217edefbdfa4b30be64fa80560b7d6 SHA1 661ceb2c0c6965c124d4adaf65cb6adf7c16159a SHA256 f1837466cae516c640e4622826218d76f0e1e6cb6fa85610d474fe30fcf79258
+DIST lldpd-0.5.6.tar.gz 482633 RMD160 4ee1ba1f6c84466f0a0e9c198feff4c611134762 SHA1 bac4bdc65745f8c05c7db5f2064f68e9501fc7e4 SHA256 3dc9ec3a1be937c3e9256a6f4ced07d250e17ea58f1e81b19a308dbef272059b
+EBUILD lldpd-0.5.6.ebuild 954 RMD160 e0cd36701c1451af591cdf54457ece325ccbfdee SHA1 069882ce54c906623c0c77ce8010e08de1abdae5 SHA256 98d4d3375bae882fea1a91ae920ffb566fc1cc5eae91828a2ef5e381af03f630
+MISC metadata.xml 2094 RMD160 36c023952a0a63551cc30b10aebeb0b205eb12b4 SHA1 4f185fbef6a706d2cb515025c4c526b2c73f7e24 SHA256 42fb7c0b949848d23ccccba68d59f2a8e3c2ddc026ba33d12b1005f8c10f3685
diff --git a/net-misc/lldpd/files/lldpd-confd-1 b/net-misc/lldpd/files/lldpd-confd-1
new file mode 100644
index 000000000000..f719a1381d80
--- /dev/null
+++ b/net-misc/lldpd/files/lldpd-confd-1
@@ -0,0 +1,5 @@
+# /etc/conf.d/lldpd: config file for /etc/init.d/lldpd
+
+# see man page for lldpd or run `lldpd -h`
+# for valid cmdline options
+#LLDPD_OPTS=""
diff --git a/net-misc/lldpd/files/lldpd-initd-1 b/net-misc/lldpd/files/lldpd-initd-1
new file mode 100755
index 000000000000..90e5a6f1b7a6
--- /dev/null
+++ b/net-misc/lldpd/files/lldpd-initd-1
@@ -0,0 +1,22 @@
+#!/sbin/runscript
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/lldpd/files/lldpd-initd-1,v 1.1 2012/02/09 23:34:41 chutzpah Exp $
+
+depend() {
+ use net
+}
+start() {
+ ebegin "Starting lldpd"
+ start-stop-daemon --start --exec /usr/sbin/lldpd \
+ --pidfile /var/run/lldpd.pid \
+ -- ${LLDPD_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping lldpd"
+ start-stop-daemon --stop --exec /usr/sbin/lldpd \
+ --pidfile /var/run/lldpd.pid
+ eend $?
+}
diff --git a/net-misc/lldpd/lldpd-0.5.6.ebuild b/net-misc/lldpd/lldpd-0.5.6.ebuild
new file mode 100644
index 000000000000..0599cb7d667f
--- /dev/null
+++ b/net-misc/lldpd/lldpd-0.5.6.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/lldpd/lldpd-0.5.6.ebuild,v 1.1 2012/02/09 23:34:41 chutzpah Exp $
+
+EAPI=4
+
+inherit eutils
+
+DESCRIPTION="Implementation of IEEE 802.1ab (LLDP)"
+HOMEPAGE="http://github.com/vincentbernat/lldpd/wiki"
+SRC_URI="http://media.luffy.cx/files/${PN}/${P}.tar.gz"
+
+LICENSE="lldpd"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="snmp xml"
+
+DEPEND="snmp? ( net-analyzer/net-snmp[extensible] )
+ xml? ( dev-libs/libxml2 )"
+RDEPEND="${DEPEND}"
+
+pkg_setup() {
+ ebegin "Creating lldpd user and group"
+ enewgroup ${PN}
+ enewuser ${PN} -1 -1 -1 ${PN}
+ eend $?
+}
+
+src_prepare() {
+ epatch_user
+}
+
+src_configure() {
+ econf \
+ --with-privsep-user=${PN} \
+ --with-privsep-group=${PN} \
+ --with-privsep-chroot=/var/lib/${PN} \
+ $(use_with snmp) \
+ $(use_with xml)
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ newinitd "${FILESDIR}"/${PN}-initd-1 ${PN}
+ newconfd "${FILESDIR}"/${PN}-confd-1 ${PN}
+
+ keepdir /var/lib/${PN}
+}
diff --git a/net-misc/lldpd/metadata.xml b/net-misc/lldpd/metadata.xml
new file mode 100644
index 000000000000..9b4c480b9816
--- /dev/null
+++ b/net-misc/lldpd/metadata.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>chutzpah@gentoo.org</email>
+ <name>Patrick McLean</name>
+ </maintainer>
+ <longdescription lang="en">
+LLDP (Link Layer Discovery Protocol) (also known as 802.1ab) is an industry standard protocol designed to supplant proprietary Link-Layer protocols such as Extreme's EDP (Extreme Discovery Protocol) and CDP (Cisco Discovery Protocol). The goal of LLDP is to provide an inter-vendor compatible mechanism to deliver Link-Layer notifications to adjacent network devices.
+
+lldpd is a lldp daemon for GNU/Linux and implements both reception and sending. It supports both LLDP and LLDP-MED (contributed by Michael Hanig). It also implements an SNMP subagent for net-snmp to get local and remote LLDP information. The LLDP MIB is partially implemented but the most useful tables are here.
+
+lldpd supports bridge, vlan and bonding. bonding need to be done on real physical devices, not on bridges, vlans, etc. However, vlans can be mapped on the bonding device. You can bridge vlan but not add vlans on bridges. More complex setups may give false results.
+
+A small utility, lldpctl, allows to query information collected through the command line.
+
+lldpd also implements CDP (Cisco Discovery Protocol), FDP (Foundry Discovery Protocol), SONMP (Nortel Discovery Protocol) and EDP (Extreme Discovery Protocol). However, recent versions of IOS should support LLDP and most Extreme stuff support LLDP. When a EDP, CDP or SONMP frame is received on a given interface, lldpd starts sending EDP, CDP or SONMP frame on this interface. Informations collected through EDP/CDP/FDP/SONMP are integrated with other informations and can be queried with lldpctl or through SNMP.
+
+ With the help of lldpd, you can get a map of your network. You may also want to look at Wiremaps or NetDisco which are a web application that helps you to see what is connected to where.
+ </longdescription>
+ <use>
+ <flag name='snmp'>Enable the use of SNMP</flag>
+ </use>
+</pkgmetadata>
+