diff --git a/net/lldpd/Portfile b/net/lldpd/Portfile new file mode 100644 index 0000000000000..877def3655b5e --- /dev/null +++ b/net/lldpd/Portfile @@ -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. \ +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