diff options
author | Alex Dupre <ale@FreeBSD.org> | 2006-06-12 16:53:46 +0000 |
---|---|---|
committer | Alex Dupre <ale@FreeBSD.org> | 2006-06-12 16:53:46 +0000 |
commit | ef91311262c095a338eef3cfee01da59a7fd55b4 (patch) | |
tree | eec3b487580e58a3e21fdd60990a2b79d5135c9f /security/openct/Makefile | |
parent | 1035e1fb057a29adce6386e919eb2146032630de (diff) |
Update to 0.6.7 release:
- OPTIONS'ify
- convert startup script to rcNG
- take maintainership
- add sample script for hot-plug support
Approved by: maintainer timeout
Notes
Notes:
svn path=/head/; revision=165240
Diffstat (limited to 'security/openct/Makefile')
-rw-r--r-- | security/openct/Makefile | 51 |
1 files changed, 28 insertions, 23 deletions
diff --git a/security/openct/Makefile b/security/openct/Makefile index ac119f97f70b..029fac1ce3b3 100644 --- a/security/openct/Makefile +++ b/security/openct/Makefile @@ -6,49 +6,54 @@ # PORTNAME= openct -PORTVERSION= 0.6.6 -PORTREVISION= 1 +PORTVERSION= 0.6.7 CATEGORIES= security -MASTER_SITES= http://www.opensc-project.org/files/openct/ +MASTER_SITES= http://www.opensc-project.org/files/${PORTNAME}/ -MAINTAINER= janos.mohacsi@bsd.hu +MAINTAINER= ale@FreeBSD.org COMMENT= A middleware framework for smart card terminals +OPTIONS= USB "Install libusb for USB tokens/readers support" on \ + PCSC "Install pcsc-lite to build the PC/SC -> openCT frontend" off + USE_AUTOTOOLS= libltdl:15 GNU_CONFIGURE= yes USE_GMAKE= yes -USE_GNOME= pkgconfig +USE_GNOME= gnomehack pkgconfig INSTALLS_SHLIB= yes +USE_RC_SUBR= openct +SUB_FILES= etoken.conf -CONFIGURE_ENV= CFLAGS="-I${LOCALBASE}/include -L${LOCALBASE}/lib" +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" MAN1= openct-tool.1 -DOC_FILES= README export-wiki.sh export-wiki.xsl ${HTML_FILES} +DOC_FILES= README export-wiki.sh export-wiki.xsl trac.css *.html api + +PORTDOCS= * -HTML_FILES= AuthorsAndCredits.html DevelopmentPolicy.html FilesTools.html \ - LicenseText.html MailingLists.html OperatingSystems.html \ - OverView.html QuickStart.html RemoteAccess.html \ - ResourcesLinks.html SecureSetup.html \ - TroubleShooting.html cardman.html ccid.html egate.html \ - etoken.html eutron.html gempc.html ikey2032.html \ - ikey3000.html index.html kaan.html pertosmart1030.html smartboard.html \ - towitoko.html trac.css +.include <bsd.port.pre.mk> + +.if !defined(WITHOUT_USB) || exists(${LOCALBASE}/lib/libusb-0.1.so) +LIB_DEPENDS+= usb-0.1.8:${PORTSDIR}/devel/libusb +.endif -.if !defined(WITHOUT_PCSC_LITE) +.if defined(WITH_PCSC) || exists(${LOCALBASE}/lib/libpcsclite.so) LIB_DEPENDS+= pcsclite.1:${PORTSDIR}/devel/pcsc-lite +PLIST_SUB+= PCSC="" +.else +PLIST_SUB+= PCSC="@comment " .endif post-install: - #run files - ${MKDIR} /var/run/${PORTNAME} - #sample config file ${INSTALL_DATA} ${WRKSRC}/etc/openct.conf ${PREFIX}/etc/openct.conf-sample - #start daemons script - ${INSTALL_SCRIPT} ${WRKSRC}/etc/init-script ${PREFIX}/etc/rc.d/openct.sh + @${MKDIR} ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKDIR}/etoken.conf ${EXAMPLESDIR} .ifndef(NOPORTDOCS) @${MKDIR} ${DOCSDIR} - cd ${WRKSRC}/doc && ${INSTALL_DATA} ${DOC_FILES} ${DOCSDIR} + @(cd ${WRKSRC}/doc && ${CP} -R ${DOC_FILES} ${DOCSDIR}) .endif + @${CAT} ${PKGMESSAGE} -.include <bsd.port.mk> +.include <bsd.port.post.mk> |