Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new Portfile lldpd: LLDP Daemon and client #27718

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions net/lldpd/Portfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem 1.0
PortGroup github 1.0

github.setup lldpd lldpd 1.0.19
revision 0
categories net
maintainers {@akkornel stanford.edu:akkornel} openmaintainer
license ISC

description LLDP allows you to know exactly on which port is a \
machine (and reciprocally).
long_description lldpd is an 802.1ab implementation (LLDP) to help you \
locate neighbors of all your equipments. Proprietary \
protocols (like EDP and CDP) are supported. \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line continuation (\) will interfere with the homepage line.

homepage https://lldpd.github.io

depends_build path:bin/pkg-config:pkgconfig

# The distribution does bring its own libevent, which we could use instead of
# the port.
depends_lib port:libevent \
port:libxml2 \
port:readline

github.tarball_from releases

checksums rmd160 76faefbcc0587dd6b5563bdd8c16c450a1118c28 \
sha256 4de17fe5137b4d44a7bd57f8dfc80cffe2c8bb3691b4ae3012b5a6ea20d79ee0 \
size 1987102

# libevent, libxml2, and readline are detected automatically by configure
configure.args --prefix=${prefix} \
--with-privsep-chroot=/var/empty \
--with-privsep-user=nobody \
--with-privsep-group=nogroup \
--with-launchddaemonsdir=no

build.target all-recursive

installs_libs no

startupitem.create yes
startupitem.autostart yes
startupitem.executable ${prefix}/sbin/lldpd