Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Jan 2014 17:56:19 +0000 (UTC)
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r340434 - head/net/l2tpd
Message-ID:  <201401201756.s0KHuJce093799@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mat
Date: Mon Jan 20 17:56:19 2014
New Revision: 340434
URL: http://svnweb.freebsd.org/changeset/ports/340434
QAT: https://qat.redports.org/buildarchive/r340434/

Log:
  * Fix build on 10
  * Stagify
  
  Sponsored by:	Absolight

Modified:
  head/net/l2tpd/Makefile
  head/net/l2tpd/pkg-plist

Modified: head/net/l2tpd/Makefile
==============================================================================
--- head/net/l2tpd/Makefile	Mon Jan 20 17:25:08 2014	(r340433)
+++ head/net/l2tpd/Makefile	Mon Jan 20 17:56:19 2014	(r340434)
@@ -10,11 +10,10 @@ MASTER_SITES=	SF/${PORTNAME}/L2TPd/${POR
 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>

Modified: head/net/l2tpd/pkg-plist
==============================================================================
--- head/net/l2tpd/pkg-plist	Mon Jan 20 17:25:08 2014	(r340433)
+++ head/net/l2tpd/pkg-plist	Mon Jan 20 17:56:19 2014	(r340434)
@@ -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%%



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401201756.s0KHuJce093799>