ports/113063: new port

Roar Pettersen roar.pettersen at it.uib.no
Sun May 27 18:00:12 UTC 2007


>Number:         113063
>Category:       ports
>Synopsis:       new port
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 27 18:00:09 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Roar Pettersen
>Release:        FreeBSD-6.2
>Organization:
University of Bergen
>Environment:
FreeBSD safir.uib.no 6.2-STABLE FreeBSD 6.2-STABLE #2: Tue May  1 19:38:44 CEST 2007     root at safir.uib.no:/usr/obj/usr/src/sys/SAFIR  i386
>Description:
New port: <net-mgmt>/<openlldp><New FreeBSD port for OpenLLDP (Link Layer Discovery Protocol)>
>How-To-Repeat:

>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#       openlldp
#       openlldp/Makefile
#       openlldp/distinfo
#       openlldp/files
#       openlldp/files/lldpd.8
#       openlldp/files/lldpd.in
#       openlldp/pkg-descr
#
echo c - openlldp
mkdir -p openlldp > /dev/null 2>&1
echo x - openlldp/Makefile
sed 's/^X//' >openlldp/Makefile << 'END-of-openlldp/Makefile'
X# New ports collection makefile for:   openlldp
X# Date created:                                27 May 2007
X# Whom:                                        Roar Pettersen (roar at uib.no)
X#
X
XPORTNAME=      openlldp
XPORTVERSION=   0.3alpha
XPORTREVISION=  1
XCATEGORIES=    net-mgmt
XMASTER_SITES=  http://dfn.dl.sourceforge.net/sourceforge/openlldp/
X
XMAINTAINER=    roar.pettersen at it.uib.no
XCOMMENT=       A daemon to send Link Layer Discovery Protocol announces over ethernet
X
XGNU_CONFIGURE= yes
X
XUSE_RC_SUBR=   lldpd
XPLIST_FILES=   sbin/lldpd
X
XMAN8=  lldpd.8
X
Xdo-install:
X       ${INSTALL_PROGRAM} ${WRKSRC}/src/lldpd ${PREFIX}/sbin
X       ${INSTALL_MAN} files/lldpd.8 ${MAN8PREFIX}/man/man8
X
X.include <bsd.port.mk>
END-of-openlldp/Makefile
echo x - openlldp/distinfo
sed 's/^X//' >openlldp/distinfo << 'END-of-openlldp/distinfo'
XMD5 (openlldp-0.3alpha.tar.gz) = 131abc8c2563d33c4537d1c6dcb5c121
XSHA256 (openlldp-0.3alpha.tar.gz) = 2ecc1967be52078c5357540763e2b3c5ff8554161fe8dcac8952b60a0cd016f1
XSIZE (openlldp-0.3alpha.tar.gz) = 103523
END-of-openlldp/distinfo
echo c - openlldp/files
mkdir -p openlldp/files > /dev/null 2>&1
echo x - openlldp/files/lldpd.8
sed 's/^X//' >openlldp/files/lldpd.8 << 'END-of-openlldp/files/lldpd.8'
X.Dd May 27, 2007
X.Dt lldpd 8
X.Sh NAME
X.Nm lldpd
X.Nd Send Link Layer Discovery Protocol packets over ethernet.
X.Sh SYNOPSIS
X.Nm lldpd
X.Op Fl c
X.Op Fl i Ar interface
X.Op Fl d 
X.Op Fl f 
X.Op Fl s 
X.Sh DESCRIPTION
XThe 
X.Nm
Xutiliy used to generate Link Layer Discovery Protocol packets and
Xsend them over ethernet.
X.Pp
XThe options are as follows:
X.Bl -tag -width Ds
X.It Fl c 
XUse the config file <path> instead of the default.
X.It Fl i Ar interface
Xset interface, over that packets will be sent
X.It Fl d 
XSet debug verbosity
X
X<debug_level> can be any of : 
X       A : Enable ALL debug flags.
X       c : Enable CONFIG debug flag.
X       s : Enable STATE debug flag.
X       t : Enable TLV debug flag.
X       i : Enable INT debug flag.
X       n : Enable SNMP debug flag.
X       x : Enable EXCESSIVE debug flag.
X.It Fl f
XRun in forground mode
X.It Fl s
XRemove the existing control socket if found (Should only be used in system init scripts!)
X.El
X.Sh DIAGNOSTICS
XWhen everything is ok, 
Xand 
X.Nm
Xprogram is started with (default) daemon mode, it justs
Xdaemonises with return code 0. 
XIn case of errors they are printed to stderr and program exists
Xwith non-zero status. Most errors caused by the fact that
Xthe 
X.Nm
Xneeds access to /dev/bpf*, so it must be started by root, and
XBerkeley Packet Filter must be enabled in kernel (by adding 
X.Sy pseudo-device bpf
Xinto kernel configuration).
X.Sh SEE ALSO
X.Sy http://www.lldp.org/
Xfor information about Link Layer Discovery Protocol.
X.Sy http://www.tcpdump.org/
X- tcpdump home page.
X.Sh AUTHOR
XOpenLLDP
Xhttp://openlldp.sourceforge.net/
END-of-openlldp/files/lldpd.8
echo x - openlldp/files/lldpd.in
sed 's/^X//' >openlldp/files/lldpd.in << 'END-of-openlldp/files/lldpd.in'
X#!/bin/sh
X
X# PROVIDE: lldpd
X# REQUIRE: NETWORKING
X# KEYWORD: shutdown
X
X#
X# Add the following lines to /etc/rc.conf to enable lldpd:
X#
X# lldpd_enable="YES"
X#
X# You can define flags for lldpd running. See lldpd(8) for details.
X#
X# Example:
X# lldpd_flags="-i em0"
X
X. %%RC_SUBR%%
X
Xname=lldpd
Xrcvar=`set_rcvar`
X
Xcommand=%%PREFIX%%/sbin/$name
Xcommand_args="&"
X
X# set defaults
X
Xlldpd_enable=${lldpd_enable:-"NO"}
Xlldpd_flags=${lldpd_flags:-""}
X
Xload_rc_config $name
Xrun_rc_command "$1"
END-of-openlldp/files/lldpd.in
echo x - openlldp/pkg-descr
sed 's/^X//' >openlldp/pkg-descr << 'END-of-openlldp/pkg-descr'
XA program designed to send 'Link Layer Discovery Protocol' packets
Xon network. 
X
Xhttp://sourceforge.net/projects/openlldp/
END-of-openlldp/pkg-descr
exit


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list