New port: <net-mgmt>/<openlldp><New FreeBSD port for OpenLLDP (Link Layer Discovery Protocol)>
Responsible Changed From-To: freebsd-ports-bugs->mm I'll take it.
Here is a reworked port to fit the FreeBSD port tree, maintainer please approve. Changes include: - strings like alpha are not allowed in ${PORTVERSION}, so used .a - comment line should not exceed 70 characters, 60 is even better - files/ replaced with ${FILESDIR}/ - added $FreeBSD$ tags where missing - redirected output to /dev/null from the startup file - added WWW: in front of the URL in pkg-descr - cosmetic fixes like tabs and whitespace Index: ports/net/openlldp/Makefile =================================================================== RCS file: ports/net/openlldp/Makefile diff -N ports/net/openlldp/Makefile --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ ports/net/openlldp/Makefile 26 Jun 2007 15:58:20 -0000 @@ -0,0 +1,29 @@ +# New ports collection makefile for: openlldp +# Date created: 27 May 2007 +# Whom: Roar Pettersen (roar@uib.no) +# +# $FreeBSD$ +# + +PORTNAME= openlldp +PORTVERSION= 0.3.a +CATEGORIES= net-mgmt +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} +DISTNAME= ${PORTNAME}-${PORTVERSION:S/.a/alpha/} + +MAINTAINER= roar.pettersen@it.uib.no +COMMENT= Link Layer Discovery Protocol daemon + +GNU_CONFIGURE= yes + +USE_RC_SUBR= lldpd +PLIST_FILES= sbin/lldpd + +MAN8= lldpd.8 + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/src/lldpd ${PREFIX}/sbin + ${INSTALL_MAN} ${FILESDIR}/lldpd.8 ${MAN8PREFIX}/man/man8 + +.include <bsd.port.mk> Index: ports/net/openlldp/distinfo =================================================================== RCS file: ports/net/openlldp/distinfo diff -N ports/net/openlldp/distinfo --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ ports/net/openlldp/distinfo 26 Jun 2007 15:58:20 -0000 @@ -0,0 +1,3 @@ +MD5 (openlldp-0.3alpha.tar.gz) = 131abc8c2563d33c4537d1c6dcb5c121 +SHA256 (openlldp-0.3alpha.tar.gz) = 2ecc1967be52078c5357540763e2b3c5ff8554161fe8dcac8952b60a0cd016f1 +SIZE (openlldp-0.3alpha.tar.gz) = 103523 Index: ports/net/openlldp/pkg-descr =================================================================== RCS file: ports/net/openlldp/pkg-descr diff -N ports/net/openlldp/pkg-descr --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ ports/net/openlldp/pkg-descr 26 Jun 2007 15:58:20 -0000 @@ -0,0 +1,4 @@ +A program designed to send 'Link Layer Discovery Protocol' packets +on network. + +WWW: http://sourceforge.net/projects/openlldp/ Index: ports/net/openlldp/files/lldpd.8 =================================================================== RCS file: ports/net/openlldp/files/lldpd.8 diff -N ports/net/openlldp/files/lldpd.8 --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ ports/net/openlldp/files/lldpd.8 26 Jun 2007 15:58:20 -0000 @@ -0,0 +1,62 @@ +.Dd May 27, 2007 +.Dt lldpd 8 +.Sh NAME +.Nm lldpd +.Nd Send Link Layer Discovery Protocol packets over ethernet. +.Sh SYNOPSIS +.Nm lldpd +.Op Fl c +.Op Fl i Ar interface +.Op Fl d +.Op Fl f +.Op Fl s +.Sh DESCRIPTION +The +.Nm +utiliy used to generate Link Layer Discovery Protocol packets and +send them over ethernet. +.Pp +The options are as follows: +.Bl -tag -width Ds +.It Fl c +Use the config file <path> instead of the default. +.It Fl i Ar interface +set interface, over that packets will be sent +.It Fl d +Set debug verbosity + +<debug_level> can be any of : + A : Enable ALL debug flags. + c : Enable CONFIG debug flag. + s : Enable STATE debug flag. + t : Enable TLV debug flag. + i : Enable INT debug flag. + n : Enable SNMP debug flag. + x : Enable EXCESSIVE debug flag. +.It Fl f +Run in forground mode +.It Fl s +Remove the existing control socket if found (Should only be used in system init scripts!) +.El +.Sh DIAGNOSTICS +When everything is ok, +and +.Nm +program is started with (default) daemon mode, it justs +daemonises with return code 0. +In case of errors they are printed to stderr and program exists +with non-zero status. Most errors caused by the fact that +the +.Nm +needs access to /dev/bpf*, so it must be started by root, and +Berkeley Packet Filter must be enabled in kernel (by adding +.Sy pseudo-device bpf +into kernel configuration). +.Sh SEE ALSO +.Sy http://www.lldp.org/ +for information about Link Layer Discovery Protocol. +.Sy http://www.tcpdump.org/ +- tcpdump home page. +.Sh AUTHOR +OpenLLDP +http://openlldp.sourceforge.net/ Index: ports/net/openlldp/files/lldpd.in =================================================================== RCS file: ports/net/openlldp/files/lldpd.in diff -N ports/net/openlldp/files/lldpd.in --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ ports/net/openlldp/files/lldpd.in 26 Jun 2007 15:58:20 -0000 @@ -0,0 +1,33 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# PROVIDE: lldpd +# REQUIRE: NETWORKING +# KEYWORD: shutdown + +# +# Add the following lines to /etc/rc.conf to enable lldpd: +# +# lldpd_enable="YES" +# +# You can define flags for lldpd running. See lldpd(8) for details. +# +# Example: +# lldpd_flags="-i em0" + +. %%RC_SUBR%% + +name=lldpd +rcvar=`set_rcvar` + +command=%%PREFIX%%/sbin/$name +command_args=">/dev/null 2>/dev/null &" + +# set defaults + +lldpd_enable=${lldpd_enable:-"NO"} +lldpd_flags=${lldpd_flags:-""} + +load_rc_config $name +run_rc_command "$1"
I also suggest changing pkg-descr to the following text (taken from the openlldp homepage): -- The OpenLLDP project aims to provide a comprehensive implementation of the IEEE standard 802.1AB Link Layer Discovery Protocol. LLDP 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). WWW: http://sourceforge.net/projects/openlldp/ -- Maintainer please approve (just submit a follow to this PR).
Hello ! Changed the pkg-desc as sugested : --- ports/net/openlldp/pkg-descr.orig Tue Jun 26 21:45:28 2007 +++ ports/net/openlldp/pkg-descr Tue Jun 26 22:24:26 2007 @@ -1,4 +1,7 @@ -A program designed to send 'Link Layer Discovery Protocol' packets -on network. +The OpenLLDP project aims to provide a comprehensive implementation of the +IEEE standard 802.1AB Link Layer Discovery Protocol. LLDP 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). WWW: http://sourceforge.net/projects/openlldp/
mm 2007-06-27 13:54:23 UTC FreeBSD ports repository Modified files: net-mgmt Makefile Added files: net-mgmt/openlldp Makefile distinfo pkg-descr net-mgmt/openlldp/files lldpd.8 lldpd.in Log: The OpenLLDP project aims to provide a comprehensive implementation of the IEEE standard 802.1AB Link Layer Discovery Protocol. LLDP 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). WWW: http://sourceforge.net/projects/openlldp/ PR: ports/113063 Submitted by: Roar Pettersen <roar at uib.no> Approved by: garga (mentor) Revision Changes Path 1.126 +1 -0 ports/net-mgmt/Makefile 1.1 +31 -0 ports/net-mgmt/openlldp/Makefile (new) 1.1 +3 -0 ports/net-mgmt/openlldp/distinfo (new) 1.1 +62 -0 ports/net-mgmt/openlldp/files/lldpd.8 (new) 1.1 +33 -0 ports/net-mgmt/openlldp/files/lldpd.in (new) 1.1 +7 -0 ports/net-mgmt/openlldp/pkg-descr (new) _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
State Changed From-To: open->closed Commited with changes, thanks!