Lines 6-38
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= arping |
8 |
PORTNAME= arping |
9 |
PORTVERSION= 2.08 |
9 |
PORTVERSION= 2.09 |
10 |
CATEGORIES= net |
10 |
CATEGORIES= net |
11 |
MASTER_SITES= ftp://ftp.habets.pp.se/pub/synscan/ |
11 |
MASTER_SITES= http://www.habets.pp.se/synscan/files/ |
12 |
|
12 |
|
13 |
MAINTAINER= gavin@FreeBSD.org |
13 |
MAINTAINER= gavin@FreeBSD.org |
14 |
COMMENT= ARP level "ping" utility |
14 |
COMMENT= ARP level "ping" utility |
15 |
|
15 |
|
16 |
BUILD_DEPENDS= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet |
16 |
BUILD_DEPENDS= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet |
17 |
|
17 |
|
18 |
LDFLAGS+= -lpcap |
18 |
GNU_CONFIGURE= yes |
19 |
|
19 |
CONFIGURE_ENV= CFLAGS+="`${LIBNET_CONFIG} --defines`" \ |
20 |
MAN8= arping.8 |
20 |
CPPFLAGS="-I${LOCALBASE}/include `${LIBNET_CONFIG} --cflags`" \ |
21 |
PLIST_FILES= sbin/arping |
21 |
LDFLAGS="-L${LOCALBASE}/lib" \ |
|
|
22 |
LIBS="`${LIBNET_CONFIG} --libs` -lpcap" |
22 |
|
23 |
|
23 |
LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet11-config |
24 |
LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet11-config |
24 |
|
25 |
|
25 |
do-build: |
26 |
MAN8= arping.8 |
26 |
cd ${WRKSRC} && \ |
27 |
PLIST_FILES= sbin/arping |
27 |
${CC} ${CFLAGS} -I${LOCALBASE}/include -L${LOCALBASE}/lib \ |
|
|
28 |
-c `${LIBNET_CONFIG} --defines` \ |
29 |
`${LIBNET_CONFIG} --cflags` ${PORTNAME}-2/${PORTNAME}.c && \ |
30 |
${CC} ${CFLAGS} -I${LOCALBASE}/include -L${LOCALBASE}/lib \ |
31 |
-o ${PORTNAME} ${PORTNAME}.o \ |
32 |
`${LIBNET_CONFIG} --libs` ${LDFLAGS} |
33 |
|
34 |
do-install: |
35 |
${INSTALL_PROGRAM} ${WRKSRC}/arping ${PREFIX}/sbin |
36 |
${INSTALL_MAN} ${WRKSRC}/arping.8 ${PREFIX}/man/man8 |
37 |
|
28 |
|
38 |
.include <bsd.port.mk> |
29 |
.include <bsd.port.mk> |