blob: 18f7a437fd38aa2de672b87eac86d6d8dddeb6b0 (
plain)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# $NetBSD: Makefile,v 1.23 2019/11/03 11:45:40 rillig Exp $
DISTNAME= lldpd-1.0.1
PKGREVISION= 2
CATEGORIES= net
MASTER_SITES= http://media.luffy.cx/files/lldpd/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://vincentbernat.github.com/lldpd/
COMMENT= 802.1ab (LLDP) implementation
LICENSE= isc
# `lldpcli` will be linked to GNU Readline (which is GPL licensed)
# if available. To avoid this, use `--without-readline` as a configure
# option.
# interfaces-bsd.c:45:34: error: net/agr/if_agrioctl.h: No such file or directory
NOT_FOR_PLATFORM= NetBSD-5*-*
USE_LIBTOOL= yes
USE_LANGUAGES= c c++
USE_TOOLS+= pkg-config
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --with-privsep-chroot=${PKG_HOME._lldpd}
# Leave pkgsrc to handle security features.
CONFIGURE_ARGS+= --disable-hardening
# run/lldpd.socket is created under this directory
# (the default is ${PRERIX}/var, changed since 0.7.9)
CONFIGURE_ARGS+= --localstatedir=${VARBASE}
BUILD_DEFS+= VARBASE
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
CONF_FILES= ${EGDIR}/README.conf ${PKG_SYSCONFDIR}/lldpd.d/README.conf
# CCLD lldpd
# ld: cannot find -lperl
LDFLAGS+= -L${PREFIX}/${PERL5_SUB_INSTALLARCHLIB}/CORE
RCD_SCRIPTS= lldpd
PKG_GROUPS= _lldpd
PKG_USERS= _lldpd:_lldpd
PKG_HOME._lldpd= ${VARBASE}/chroot/lldpd
OWN_DIRS= ${VARBASE}/chroot/lldpd
AUTO_MKDIRS= yes
TEST_TARGET= check
INSTALLATION_DIRS+= sbin ${PKGMANDIR}/man5 ${PKGMANDIR}/man8
INSTALLATION_DIRS+= ${EGDIR}
.include "options.mk"
post-install:
${MV} ${DESTDIR}${PREFIX}/etc/lldpd.d/README.conf ${DESTDIR}${EGDIR}
BUILDLINK_API_DEPENDS.libevent+= libevent>=2.0.5
.include "../../devel/libevent/buildlink3.mk"
.include "../../mk/readline.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|