aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2014-01-21 01:56:19 +0800
committermat <mat@FreeBSD.org>2014-01-21 01:56:19 +0800
commit6a9763ec184d0cf05e036bd4edd52a5c4568532d (patch)
treeeccdfb464846fb31bb7258b17bac9525602650a9
parent05087c81f72159bff2a787e224ca620659acd431 (diff)
downloadfreebsd-ports-gnome-6a9763ec184d0cf05e036bd4edd52a5c4568532d.tar.gz
freebsd-ports-gnome-6a9763ec184d0cf05e036bd4edd52a5c4568532d.tar.zst
freebsd-ports-gnome-6a9763ec184d0cf05e036bd4edd52a5c4568532d.zip
* Fix build on 10
* Stagify Sponsored by: Absolight
-rw-r--r--net/l2tpd/Makefile29
-rw-r--r--net/l2tpd/pkg-plist11
2 files changed, 19 insertions, 21 deletions
diff --git a/net/l2tpd/Makefile b/net/l2tpd/Makefile
index e88c83c0d6f9..8d0d54935aef 100644
--- a/net/l2tpd/Makefile
+++ b/net/l2tpd/Makefile
@@ -10,11 +10,10 @@ MASTER_SITES= SF/${PORTNAME}/L2TPd/${PORTVERSION}
MAINTAINER= sobomax@FreeBSD.org
COMMENT= An implementation of the layer two tunneling protocol
-MAN5= l2tp-secrets.5 l2tpd.conf.5
-MAN8= l2tpd.8
+USES= compiler:nestedfct
-NO_STAGE= yes
-.include <bsd.port.pre.mk>
+PORTDOCS= README
+ETCDIR= ${PREFIX}/etc/l2tp
do-configure:
${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/doc/l2tpd.8 \
@@ -22,16 +21,14 @@ do-configure:
${WRKSRC}/doc/l2tpd.conf.5
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/l2tpd ${PREFIX}/bin
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
-.endif
- ${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
+ ${INSTALL_PROGRAM} ${WRKSRC}/l2tpd ${STAGEDIR}${PREFIX}/bin
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_MAN} ${WRKSRC}/doc/l2tpd.8 ${STAGEDIR}${PREFIX}/man/man8
+ ${INSTALL_MAN} ${WRKSRC}/doc/l2tp-secrets.5 ${STAGEDIR}${PREFIX}/man/man5
+ ${INSTALL_MAN} ${WRKSRC}/doc/l2tpd.conf.5 ${STAGEDIR}${PREFIX}/man/man5
+ @${MKDIR} ${STAGEDIR}${ETCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/l2tpd.conf.sample ${STAGEDIR}${ETCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/l2tp-secrets.sample ${STAGEDIR}${ETCDIR}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/net/l2tpd/pkg-plist b/net/l2tpd/pkg-plist
index c5c429d7dc21..eb4bbc0848c8 100644
--- a/net/l2tpd/pkg-plist
+++ b/net/l2tpd/pkg-plist
@@ -1,6 +1,7 @@
bin/l2tpd
-etc/l2tp/l2tp-secrets.sample
-etc/l2tp/l2tpd.conf.sample
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
-@dirrm etc/l2tp
+%%ETCDIR%%/l2tp-secrets.sample
+%%ETCDIR%%/l2tpd.conf.sample
+man/man5/l2tp-secrets.5.gz
+man/man5/l2tpd.conf.5.gz
+man/man8/l2tpd.8.gz
+@dirrm %%ETCDIR%%