summaryrefslogtreecommitdiffstats
path: root/net/l2tpd/Makefile
blob: 2f46028f17b70b44c58163173c2f0916971d2f43 (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
# New ports collection makefile for:	l2tpd
# Date created:				22 October 2002
# Whom:					Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	l2tpd
PORTVERSION=	0.69
PORTREVISION=	1
CATEGORIES=	net
MASTER_SITES=	http://www.l2tpd.org/downloads/

MAINTAINER=	sobomax@FreeBSD.org
COMMENT=	An implementation of the layer two tunneling protocol

USE_REINPLACE=	yes

MAN5=	l2tp-secrets.5 l2tpd.conf.5
MAN8=	l2tpd.8

do-configure:
	${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/doc/l2tpd.8 \
		${WRKSRC}/doc/l2tpd.conf.sample ${WRKSRC}/doc/l2tp-secrets.5 \
		${WRKSRC}/doc/l2tpd.conf.5

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/l2tpd ${PREFIX}/bin
	${MKDIR} ${DOCSDIR}
	${INSTALL_MAN} ${WRKSRC}/README ${DOCSDIR}
	${INSTALL_MAN} ${WRKSRC}/doc/l2tpd.8 ${PREFIX}/man/man8
	${INSTALL_MAN} ${WRKSRC}/doc/l2tp-secrets.5 ${PREFIX}/man/man5
	${INSTALL_MAN} ${WRKSRC}/doc/l2tpd.conf.5 ${PREFIX}/man/man5
	${MKDIR} ${PREFIX}/etc/l2tp
	${INSTALL_DATA} ${WRKSRC}/doc/l2tpd.conf.sample ${PREFIX}/etc/l2tp
	${INSTALL_DATA} ${WRKSRC}/doc/l2tp-secrets.sample ${PREFIX}/etc/l2tp

.include <bsd.port.mk>
OpenPOWER on IntegriCloud