diff options
author | crees <crees@FreeBSD.org> | 2013-12-30 00:29:03 +0800 |
---|---|---|
committer | crees <crees@FreeBSD.org> | 2013-12-30 00:29:03 +0800 |
commit | e76e55df89ccd29049a058e2ece26c5731db1aaa (patch) | |
tree | 88f9df977ab1c71137f45e7bc31b3cf0a8492801 /net/ssltunnel-client | |
parent | 04f732400fdca7750be0ac2e229d9073fffd35b8 (diff) | |
download | freebsd-ports-gnome-e76e55df89ccd29049a058e2ece26c5731db1aaa.tar.gz freebsd-ports-gnome-e76e55df89ccd29049a058e2ece26c5731db1aaa.tar.zst freebsd-ports-gnome-e76e55df89ccd29049a058e2ece26c5731db1aaa.zip |
More staging and minor improvements
Diffstat (limited to 'net/ssltunnel-client')
-rw-r--r-- | net/ssltunnel-client/Makefile | 44 | ||||
-rw-r--r-- | net/ssltunnel-client/pkg-plist | 3 |
2 files changed, 21 insertions, 26 deletions
diff --git a/net/ssltunnel-client/Makefile b/net/ssltunnel-client/Makefile index 7d9b7639d77e..4946b129ce87 100644 --- a/net/ssltunnel-client/Makefile +++ b/net/ssltunnel-client/Makefile @@ -11,45 +11,37 @@ PKGNAMESUFFIX= -client MAINTAINER= crees@FreeBSD.org COMMENT= PPP over SSL virtual private networking (client part) -LICENSE= BSD +LICENSE= BSD3CLAUSE + +OPTIONS_DEFINE= GUI +GUI_DESC= GTK 1.2 graphical interface CONFIGURE_ARGS= --disable-server --with-iconv=${ICONV_PREFIX} GNU_CONFIGURE= yes USES= iconv -MAN1= pppclient.1 -MAN5= ssltunnelrc.5 - -WANT_GNOME= yes - -.if defined(PACKAGE_BUILDING) -WITHOUT_GNOME= yes -.endif - -NO_STAGE= yes -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> -.if ${HAVE_GNOME:Mgtk12}!="" +.if ${PORT_OPTIONS:MGUI} USE_GNOME= gtk12 USES+= perl5 RUN_DEPENDS= p5-Gtk>=0:${PORTSDIR}/x11-toolkits/p5-Gtk MAN1+= gpppclient.1 -BUILD_PERLGTK= yes +PLIST_SUB+= PERLGTK="" +.else +PLIST_SUB+= PERLGTK="@comment " .endif post-patch: ${REINPLACE_CMD} -e 's|with_iconv|with-iconv|g' ${WRKSRC}/configure post-install: -.if defined(BUILD_PERLGTK) - ${ECHO_CMD} "bin/gpppclient" >> ${TMPPLIST} -.endif -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} - ${INSTALL_MAN} ${WRKSRC}/LISEZ-MOI ${DOCSDIR}/client.LISEZ-MOI - ${INSTALL_MAN} ${WRKSRC}/README ${DOCSDIR}/client.README -.endif - @${MKDIR} ${ETCDIR}/ - ${INSTALL_DATA} ${WRKSRC}/client/tunnel.conf ${ETCDIR}/client.conf.sample - -.include <bsd.port.post.mk> + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_MAN} ${WRKSRC}/LISEZ-MOI \ + ${STAGEDIR}${DOCSDIR}/client.LISEZ-MOI + ${INSTALL_MAN} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}/client.README + ${MKDIR} ${STAGEDIR}${ETCDIR}/ + ${INSTALL_DATA} ${WRKSRC}/client/tunnel.conf \ + ${STAGEDIR}${ETCDIR}/client.conf.sample + +.include <bsd.port.mk> diff --git a/net/ssltunnel-client/pkg-plist b/net/ssltunnel-client/pkg-plist index f268d9ebd611..adfb35fea9ea 100644 --- a/net/ssltunnel-client/pkg-plist +++ b/net/ssltunnel-client/pkg-plist @@ -1,5 +1,8 @@ bin/pppclient +%%PERLGTK%%bin/gpppclient @unexec if cmp -s %D/%%ETCDIR%%/client.conf %D/%%ETCDIR%%/client.conf.sample; then rm -f %D/%%ETCDIR%%/client.conf; fi +man/man1/pppclient.1.gz +man/man5/ssltunnelrc.5.gz %%ETCDIR%%/client.conf.sample %%PORTDOCS%%%%DOCSDIR%%/client.LISEZ-MOI %%PORTDOCS%%%%DOCSDIR%%/client.README |