diff options
author | ohauer <ohauer@FreeBSD.org> | 2014-04-15 21:34:54 +0800 |
---|---|---|
committer | ohauer <ohauer@FreeBSD.org> | 2014-04-15 21:34:54 +0800 |
commit | 7a445414298de76f87f155f387cca1daf12c0c50 (patch) | |
tree | 6f2006fc58fe5758a1a4a9f8957bf0145b41555b /security/tinyca | |
parent | 5f3f363ad218cbf5f3ab10bd810636e6d9f23e31 (diff) | |
download | freebsd-ports-gnome-7a445414298de76f87f155f387cca1daf12c0c50.tar.gz freebsd-ports-gnome-7a445414298de76f87f155f387cca1daf12c0c50.tar.zst freebsd-ports-gnome-7a445414298de76f87f155f387cca1daf12c0c50.zip |
- add stage support
- use shebangfix
Diffstat (limited to 'security/tinyca')
-rw-r--r-- | security/tinyca/Makefile | 31 | ||||
-rw-r--r-- | security/tinyca/pkg-plist | 14 |
2 files changed, 17 insertions, 28 deletions
diff --git a/security/tinyca/Makefile b/security/tinyca/Makefile index 0b672ed043be..213f3732cdbb 100644 --- a/security/tinyca/Makefile +++ b/security/tinyca/Makefile @@ -17,37 +17,26 @@ RUN_DEPENDS= p5-Gtk2>=0:${PORTSDIR}/x11-toolkits/p5-Gtk2 \ zip:${PORTSDIR}/archivers/zip \ p5-MIME-Base64>=0:${PORTSDIR}/converters/p5-MIME-Base64 -USE_BZIP2= yes -USES= perl5 +USES= perl5 tar:bzip2 shebangfix USE_OPENSSL= yes +SHEBANG_FILES= tinyca2 NO_BUILD= yes + DOC_FILES= INSTALL LIB_FILES= CA.pm CERT.pm GUI.pm HELPERS.pm KEY.pm OpenSSL.pm REQ.pm TCONFIG.pm LIB2_FILES= CALLBACK.pm HELPERS.pm TCONFIG.pm WORDS.pm X509_browser.pm X509_infobox.pm -NO_STAGE= yes do-install: - @${MKDIR} ${SITE_PERL}/${PORTNAME}/ - @${MKDIR} ${SITE_PERL}/${PORTNAME}/GUI -.for file in ${LIB_FILES} - @${INSTALL_DATA} ${WRKSRC}/lib/${file} ${SITE_PERL}/${PORTNAME} -.endfor -.for file in ${LIB2_FILES} - @${INSTALL_DATA} ${WRKSRC}/lib/GUI/${file} ${SITE_PERL}/${PORTNAME}/GUI -.endfor - @${INSTALL_DATA} ${WRKSRC}/templates/openssl.cnf ${PREFIX}/etc/tinyca.cnf.sample + @${MKDIR} ${STAGEDIR}${SITE_PERL}/${PORTNAME}/GUI + ${INSTALL_DATA} ${LIB_FILES:S|^|${WRKSRC}/lib/|} ${STAGEDIR}${SITE_PERL}/${PORTNAME} + ${INSTALL_DATA} ${LIB2_FILES:S|^|${WRKSRC}/lib/GUI/|} ${STAGEDIR}${SITE_PERL}/${PORTNAME}/GUI + ${INSTALL_DATA} ${WRKSRC}/templates/openssl.cnf ${STAGEDIR}${PREFIX}/etc/tinyca.cnf.sample @${SED} -e "s:%%PREFIX%%:${PREFIX}:g" \ -e "s:%%SITE_PERL%%:${SITE_PERL}:g" \ -e "s:%%OPENSSLBASE%%:${OPENSSLBASE}:g" \ ${WRKSRC}/tinyca2 >${WRKSRC}/tinyca.new - @${INSTALL_SCRIPT} ${WRKSRC}/tinyca.new ${PREFIX}/bin/tinyca - -post-install: -.ifndef(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} -.for file in ${DOC_FILES} - @${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} -.endfor -.endif + ${INSTALL_SCRIPT} ${WRKSRC}/tinyca.new ${STAGEDIR}${PREFIX}/bin/tinyca + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${DOC_FILES:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} .include <bsd.port.mk> diff --git a/security/tinyca/pkg-plist b/security/tinyca/pkg-plist index 584c7234deb0..caaf23fca4f4 100644 --- a/security/tinyca/pkg-plist +++ b/security/tinyca/pkg-plist @@ -3,18 +3,18 @@ etc/tinyca.cnf.sample %%SITE_PERL%%/tinyca/CA.pm %%SITE_PERL%%/tinyca/CERT.pm %%SITE_PERL%%/tinyca/GUI.pm -%%SITE_PERL%%/tinyca/HELPERS.pm -%%SITE_PERL%%/tinyca/KEY.pm -%%SITE_PERL%%/tinyca/OpenSSL.pm -%%SITE_PERL%%/tinyca/REQ.pm -%%SITE_PERL%%/tinyca/TCONFIG.pm %%SITE_PERL%%/tinyca/GUI/CALLBACK.pm %%SITE_PERL%%/tinyca/GUI/HELPERS.pm %%SITE_PERL%%/tinyca/GUI/TCONFIG.pm %%SITE_PERL%%/tinyca/GUI/WORDS.pm %%SITE_PERL%%/tinyca/GUI/X509_browser.pm %%SITE_PERL%%/tinyca/GUI/X509_infobox.pm -@dirrm %%SITE_PERL%%/tinyca/GUI -@dirrm %%SITE_PERL%%/tinyca/ +%%SITE_PERL%%/tinyca/HELPERS.pm +%%SITE_PERL%%/tinyca/KEY.pm +%%SITE_PERL%%/tinyca/OpenSSL.pm +%%SITE_PERL%%/tinyca/REQ.pm +%%SITE_PERL%%/tinyca/TCONFIG.pm %%PORTDOCS%%%%DOCSDIR%%/INSTALL %%PORTDOCS%%@dirrm %%DOCSDIR%% +@dirrm %%SITE_PERL%%/tinyca/GUI +@dirrm %%SITE_PERL%%/tinyca |