aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/dhcdrop/Makefile
blob: f9b60cf2ae69667a8a5e7d812b538a61f2b0fdfb (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
28
29
30
31
32
33
34
35
36
37
# Created by: Nick F <ffault@gmail.com>
# $FreeBSD$

PORTNAME=	dhcdrop
PORTVERSION=	0.5
PORTREVISION=	3
CATEGORIES=	net-mgmt sysutils
MASTER_SITES=	http://www.netpatch.ru/projects/dhcdrop/

MAINTAINER=	ffault@gmail.com
COMMENT=	Tool for searching and suppressing false DHCP servers

LICENSE=	GPLv2

USES=		autoreconf libtool tar:bzip2
USE_CSTD=	gnu89
GNU_CONFIGURE=	yes

PLIST_FILES=	sbin/dhcdrop man/man8/dhcdrop.8.gz \
		man/ru/man8/dhcdrop.8.gz

OPTIONS_DEFINE=	STATIC
STATIC_DESC=	Build a static version of dhcdrop

# --disable-static-build is broken and has the same effect as
# --enable-static-build, so do not use STATIC_CONFIGURE_ENABLE
# here.
STATIC_CONFIGURE_ON=	--enable-static-build

.if exists(/usr/lib/libibverbs.a)
# Link with libibverbs too needed by static libpcap
post-patch-STATIC-on:
	@${REINPLACE_CMD} -e 's,^dhcdrop_LDADD.*,& -libverbs,' \
		${WRKSRC}/src/Makefile.am
.endif

.include <bsd.port.mk>