| @@ -1,35 +1,37 @@ | | | @@ -1,35 +1,37 @@ |
1 | # $NetBSD: Makefile,v 1.18 2017/06/05 14:24:16 ryoon Exp $ | | 1 | # $NetBSD: Makefile,v 1.19 2018/02/02 13:55:04 jperkin Exp $ |
2 | | | 2 | |
3 | DISTNAME= lldpd-0.7.15 | | 3 | DISTNAME= lldpd-0.7.15 |
4 | PKGREVISION= 4 | | 4 | PKGREVISION= 4 |
5 | CATEGORIES= net | | 5 | CATEGORIES= net |
6 | MASTER_SITES= http://media.luffy.cx/files/lldpd/ | | 6 | MASTER_SITES= http://media.luffy.cx/files/lldpd/ |
7 | | | 7 | |
8 | MAINTAINER= pkgsrc-users@NetBSD.org | | 8 | MAINTAINER= pkgsrc-users@NetBSD.org |
9 | HOMEPAGE= http://vincentbernat.github.com/lldpd/ | | 9 | HOMEPAGE= http://vincentbernat.github.com/lldpd/ |
10 | COMMENT= 802.1ab (LLDP) implementation | | 10 | COMMENT= 802.1ab (LLDP) implementation |
11 | LICENSE= isc | | 11 | LICENSE= isc |
12 | # `lldpcli` will be linked to GNU Readline (which is GPL licensed) | | 12 | # `lldpcli` will be linked to GNU Readline (which is GPL licensed) |
13 | # if available. To avoid this, use `--without-readline` as a configure | | 13 | # if available. To avoid this, use `--without-readline` as a configure |
14 | # option. | | 14 | # option. |
15 | | | 15 | |
16 | # interfaces-bsd.c:45:34: error: net/agr/if_agrioctl.h: No such file or directory | | 16 | # interfaces-bsd.c:45:34: error: net/agr/if_agrioctl.h: No such file or directory |
17 | NOT_FOR_PLATFORM= NetBSD-5*-* | | 17 | NOT_FOR_PLATFORM= NetBSD-5*-* |
18 | USE_LIBTOOL= yes | | 18 | USE_LIBTOOL= yes |
19 | USE_LANGUAGES= c c++ | | 19 | USE_LANGUAGES= c c++ |
20 | USE_TOOLS+= pkg-config | | 20 | USE_TOOLS+= pkg-config |
21 | GNU_CONFIGURE= yes | | 21 | GNU_CONFIGURE= yes |
22 | CONFIGURE_ARGS+= --with-privsep-chroot=${PKG_HOME._lldpd} | | 22 | CONFIGURE_ARGS+= --with-privsep-chroot=${PKG_HOME._lldpd} |
| | | 23 | # Leave pkgsrc to handle security features. |
| | | 24 | CONFIGURE_ARGS+= --disable-hardening |
23 | # run/lldpd.socket is created under this directory | | 25 | # run/lldpd.socket is created under this directory |
24 | # (the default is ${PRERIX}/var, changed since 0.7.9) | | 26 | # (the default is ${PRERIX}/var, changed since 0.7.9) |
25 | CONFIGURE_ARGS+= --localstatedir=${VARBASE} | | 27 | CONFIGURE_ARGS+= --localstatedir=${VARBASE} |
26 | BUILD_DEFS+= VARBASE | | 28 | BUILD_DEFS+= VARBASE |
27 | | | 29 | |
28 | CONF_FILES= ${EXAMPLE_DIR}/README.conf etc/lldpd.d/README.conf | | 30 | CONF_FILES= ${EXAMPLE_DIR}/README.conf etc/lldpd.d/README.conf |
29 | CONF_FILES+= ${EXAMPLE_DIR}/lldpcli.bash-completion \ | | 31 | CONF_FILES+= ${EXAMPLE_DIR}/lldpcli.bash-completion \ |
30 | etc/bash_completion.d/lldpcli.bash-completion | | 32 | etc/bash_completion.d/lldpcli.bash-completion |
31 | EXAMPLE_DIR= ${PREFIX}/share/${PKGBASE}/conf | | 33 | EXAMPLE_DIR= ${PREFIX}/share/${PKGBASE}/conf |
32 | | | 34 | |
33 | # CCLD lldpd | | 35 | # CCLD lldpd |
34 | # ld: cannot find -lperl | | 36 | # ld: cannot find -lperl |
35 | LDFLAGS+= -L${PREFIX}/${PERL5_SUB_INSTALLARCHLIB}/CORE | | 37 | LDFLAGS+= -L${PREFIX}/${PERL5_SUB_INSTALLARCHLIB}/CORE |