aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/openlldp/Makefile
blob: 3810155eafdbbac63b342b142f74cb5b18f1f3a9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Created by: Roar Pettersen <roar@uib.no>
# $FreeBSD$

PORTNAME=   openlldp
DISTVERSION=    0.4alpha
PORTREVISION=   1
CATEGORIES= net-mgmt
MASTER_SITES=   SF/${PORTNAME}

MAINTAINER= roar.pettersen@it.uib.no
COMMENT=    Link Layer Discovery Protocol daemon

GNU_CONFIGURE=  yes

USE_RC_SUBR=    lldpd
PLIST_FILES=    sbin/lldpd bin/lldpneighbors man/man8/lldpd.8.gz

post-patch:
    @${REINPLACE_CMD} -e 's/^CFLAGS =/CFLAGS +=/g' \
        ${WRKSRC}/src/Makefile.in

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/src/lldpd ${STAGEDIR}${PREFIX}/sbin
    ${INSTALL_PROGRAM} ${WRKSRC}/src/lldpneighbors ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_MAN} ${FILESDIR}/lldpd.8 ${STAGEDIR}${MANPREFIX}/man/man8

.include <bsd.port.mk>