diff options
author | lippe <lippe@FreeBSD.org> | 2009-11-05 05:08:12 +0800 |
---|---|---|
committer | lippe <lippe@FreeBSD.org> | 2009-11-05 05:08:12 +0800 |
commit | 5a915cdc63f1d7da500f0503c529c05a62da47e8 (patch) | |
tree | c8f8aee1801019afe58d6abbe46bb3820006fe19 /net | |
parent | ffe88dd7e1afb2bd7a455b7bae5f5450fe579169 (diff) | |
download | freebsd-ports-gnome-5a915cdc63f1d7da500f0503c529c05a62da47e8.tar.gz freebsd-ports-gnome-5a915cdc63f1d7da500f0503c529c05a62da47e8.tar.zst freebsd-ports-gnome-5a915cdc63f1d7da500f0503c529c05a62da47e8.zip |
- Install missing manpages.
- Install custom files and respect PORTDOCS.
- Fix pkg-plist.
- Fix PREFIX hardcoded in pptp scripts(should fix ports/137115).
- Bump PORTREVISION.
Submitted by: myself
Diffstat (limited to 'net')
-rw-r--r-- | net/pptpclient/Makefile | 25 | ||||
-rw-r--r-- | net/pptpclient/pkg-plist | 3 |
2 files changed, 22 insertions, 6 deletions
diff --git a/net/pptpclient/Makefile b/net/pptpclient/Makefile index acef3e920708..219d6e6b9e97 100644 --- a/net/pptpclient/Makefile +++ b/net/pptpclient/Makefile @@ -7,7 +7,7 @@ PORTNAME= pptpclient PORTVERSION= 1.7.2 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= net MASTER_SITES= SF/${PORTNAME}/pptp/pptp-${PORTVERSION} DISTNAME= pptp-${PORTVERSION} @@ -17,15 +17,28 @@ COMMENT= PPTP client for establishing a VPN link with an NT server USE_PERL5= yes -MAN8= pptp.8 +MAN8= pptp.8 pptpsetup.8 +FILES= README ppp.conf +PORTDOCS= AUTHORS COPYING ChangeLog DEVELOPERS INSTALL NEWS \ + PROTOCOL-SECURITY README TODO USING MAKE_ARGS= DEBUG="" +post-patch: + ${REINPLACE_CMD} -e 's|/usr|/usr/local|g' -e 's|/etc|/usr/local/etc|g' \ + ${WRKSRC}/Makefile + ${REINPLACE_CMD} 's|/etc|/usr/local/etc|g' ${WRKSRC}/pptpsetup + do-install: + ${MKDIR} ${EXAMPLESDIR} ${ETCDIR} ${INSTALL_PROGRAM} ${WRKSRC}/pptp ${PREFIX}/sbin - ${MKDIR} ${PREFIX}/share/examples/pptpclient - ${INSTALL_DATA} ${FILESDIR}/README ${PREFIX}/share/examples/pptpclient - ${INSTALL_DATA} ${FILESDIR}/ppp.conf ${PREFIX}/share/examples/pptpclient - ${INSTALL_MAN} ${WRKSRC}/pptp.8 ${PREFIX}/man/man8 + ${INSTALL_SCRIPT} ${WRKSRC}/pptpsetup ${PREFIX}/sbin + ${INSTALL_MAN} ${MAN8:S,^,${WRKSRC}/,} ${MAN8PREFIX}/man/man8 + ${INSTALL_DATA} ${FILES:S,^,${FILESDIR}/,} ${EXAMPLESDIR} + ${CP} ${FILESDIR}/ppp.conf ${ETCDIR} +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR} +.endif .include <bsd.port.mk> diff --git a/net/pptpclient/pkg-plist b/net/pptpclient/pkg-plist index a1d7a93067f7..332892c398f0 100644 --- a/net/pptpclient/pkg-plist +++ b/net/pptpclient/pkg-plist @@ -1,4 +1,7 @@ sbin/pptp +sbin/pptpsetup %%EXAMPLESDIR%%/README %%EXAMPLESDIR%%/ppp.conf +%%ETCDIR%%/ppp.conf +@dirrm %%ETCDIR%% @dirrm %%EXAMPLESDIR%% |