aboutsummaryrefslogtreecommitdiffstats
path: root/net/mpd5/Makefile
blob: 6551d7ce907ccebc264fef5748833fa3c4d375b0 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Created by: Archie Cobbs
# $FreeBSD$

PORTNAME=   mpd
DISTVERSION=    5.8
PORTREVISION=   10
CATEGORIES= net
MASTER_SITES=   SF/${PORTNAME}/Mpd5/Mpd-${PORTVERSION}
PKGNAMESUFFIX=  5
DIST_SUBDIR=    mpd5

MAINTAINER= eugen@FreeBSD.org
COMMENT=    Multi-link PPP daemon based on netgraph(4)

LICENSE=    BSD3CLAUSE

OPTIONS_DEFINE= DOCS NG_IPACCT
NG_IPACCT_DESC= Use ng_ipacct kernel module from port

HAS_CONFIGURE=  YES
CONFIGURE_WRKSRC=   "${WRKSRC}/src"

USES=       ssl

.include <bsd.port.options.mk>

MAKE_ARGS+= OSVERSION=${OSVERSION}

.if ${PORT_OPTIONS:MNG_IPACCT}
BUILD_DEPENDS+= ${LOCALBASE}/include/netgraph/ng_ipacct.h:net-mgmt/ng_ipacct
.if exists(${KMODDIR}/ng_ipacct.ko)
RUN_DEPENDS+=   ${KMODDIR}/ng_ipacct.ko:net-mgmt/ng_ipacct
.else
RUN_DEPENDS+=   /boot/modules/ng_ipacct.ko:net-mgmt/ng_ipacct
.endif
.else
CONFIGURE_ENV+= USE_NG_IPACCT=no
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-no-ng_ipacct
.endif

USE_RC_SUBR=    mpd5
CONFSUF=    conf secret script
DOCSDIR=    ${PREFIX}/share/doc/mpd5
PORTDOCS=   README mpd*
PLIST_FILES=    ${CONFSUF:S/^/etc\/mpd5\/mpd./:S/$/.sample/} sbin/mpd5

.if !defined(WITHOUT_MAN)
PLIST_FILES+=   man/man8/mpd5.8.gz
.endif

.include <bsd.port.mk>