diff options
-rw-r--r-- | net-misc/lldpd/ChangeLog | 8 | ||||
-rw-r--r-- | net-misc/lldpd/files/lldpd-0.7.11-zsh-completion-dir.patch | 7 | ||||
-rw-r--r-- | net-misc/lldpd/lldpd-0.7.11.ebuild | 99 |
3 files changed, 113 insertions, 1 deletions
diff --git a/net-misc/lldpd/ChangeLog b/net-misc/lldpd/ChangeLog index 206b06313b6e..57235bd5271a 100644 --- a/net-misc/lldpd/ChangeLog +++ b/net-misc/lldpd/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-misc/lldpd # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/lldpd/ChangeLog,v 1.19 2014/10/09 09:54:59 ago Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/lldpd/ChangeLog,v 1.20 2014/10/09 21:38:31 chutzpah Exp $ + +*lldpd-0.7.11 (09 Oct 2014) + + 09 Oct 2014; Patrick McLean <chutzpah@gentoo.org> +lldpd-0.7.11.ebuild, + +files/lldpd-0.7.11-zsh-completion-dir.patch: + Version bump. 09 Oct 2014; Agostino Sarubbo <ago@gentoo.org> lldpd-0.7.9-r3.ebuild: Stable for amd64, wrt bug #522704 diff --git a/net-misc/lldpd/files/lldpd-0.7.11-zsh-completion-dir.patch b/net-misc/lldpd/files/lldpd-0.7.11-zsh-completion-dir.patch new file mode 100644 index 000000000000..ff20d9aabc75 --- /dev/null +++ b/net-misc/lldpd/files/lldpd-0.7.11-zsh-completion-dir.patch @@ -0,0 +1,7 @@ +diff --git a/src/client/Makefile.am b/src/client/Makefile.am +index 454bdeb..fd391fd 100644 +--- a/src/client/Makefile.am ++++ b/src/client/Makefile.am +@@ -46 +46 @@ dist_bashcompletion_DATA = lldpcli.bash-completion +-zshcompletiondir = $(datadir)/zsh/vendor-completions ++zshcompletiondir = $(datadir)/zsh/site-functions diff --git a/net-misc/lldpd/lldpd-0.7.11.ebuild b/net-misc/lldpd/lldpd-0.7.11.ebuild new file mode 100644 index 000000000000..f6d30d1b7afd --- /dev/null +++ b/net-misc/lldpd/lldpd-0.7.11.ebuild @@ -0,0 +1,99 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/lldpd/lldpd-0.7.11.ebuild,v 1.1 2014/10/09 21:38:31 chutzpah Exp $ + +EAPI=5 + +inherit eutils user systemd bash-completion-r1 autotools + +DESCRIPTION="Implementation of IEEE 802.1ab (LLDP)" +HOMEPAGE="http://vincentbernat.github.com/lldpd/" +SRC_URI="http://media.luffy.cx/files/${PN}/${P}.tar.gz" + +LICENSE="ISC" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="cdp doc +dot1 +dot3 edp fdp graph jansson json-c +lldpmed seccomp sonmp + snmp static-libs readline xml zsh-completion" + +RDEPEND=">=dev-libs/libevent-2.0.5 + snmp? ( net-analyzer/net-snmp[extensible(+)] ) + xml? ( dev-libs/libxml2 ) + jansson? ( dev-libs/jansson ) + json-c? ( dev-libs/json-c ) + seccomp? ( sys-libs/libseccomp ) + zsh-completion? ( app-shells/zsh )" +DEPEND="${RDEPEND} + virtual/pkgconfig + doc? ( + graph? ( app-doc/doxygen[dot] ) + !graph? ( app-doc/doxygen ) + )" + +REQUIRED_USE="graph? ( doc ) json-c? ( !jansson )" + +PATCHES=( + "${FILESDIR}"/${P}-zsh-completion-dir.patch +) + +pkg_setup() { + ebegin "Creating lldpd user and group" + enewgroup ${PN} + enewuser ${PN} -1 -1 -1 ${PN} + eend $? +} + +src_prepare() { + epatch "${PATCHES[@]}" + epatch_user + eautoreconf +} + +src_configure() { + econf \ + --without-embedded-libevent \ + --with-privsep-user=${PN} \ + --with-privsep-group=${PN} \ + --with-privsep-chroot=/run/${PN} \ + --with-lldpd-ctl-socket=/run/${PN}.socket \ + --with-lldpd-pid-file=/run/${PN}.pid \ + --docdir=/usr/share/doc/${PF} \ + $(use_enable graph doxygen-dot) \ + $(use_enable doc doxygen-man) \ + $(use_enable doc doxygen-pdf) \ + $(use_enable doc doxygen-html) \ + $(use_enable cdp) \ + $(use_enable dot1) \ + $(use_enable dot3) \ + $(use_enable edp) \ + $(use_enable fdp) \ + $(use_enable lldpmed) \ + $(use_enable sonmp) \ + $(use_enable static-libs static) \ + $(use_with json-c) \ + $(use_with jansson) \ + $(use_with readline) \ + $(use_with seccomp) \ + $(use_with snmp) \ + $(use_with xml) +} + +src_compile() { + emake + use doc && emake doxygen-doc +} + +src_install() { + emake DESTDIR="${D}" install + prune_libtool_files + + newinitd "${FILESDIR}"/${PN}-initd-3 ${PN} + newconfd "${FILESDIR}"/${PN}-confd-1 ${PN} + newbashcomp src/client/lldpcli.bash-completion lldpcli + + use doc && dohtml -r doxygen/html/* + + keepdir /etc/${PN}.d + + systemd_dounit "${FILESDIR}"/${PN}.service +} |