diff --git a/security/pam_pkcs11/Makefile b/security/pam_pkcs11/Makefile index 3c279020ad70..826e08c465dd 100644 --- a/security/pam_pkcs11/Makefile +++ b/security/pam_pkcs11/Makefile @@ -1,98 +1,100 @@ PORTNAME= pam_pkcs11 PORTVERSION= 0.6.12 +PORTREVISION= 1 DISTVERSIONPREFIX= ${PORTNAME}- CATEGORIES= security MAINTAINER= khng@FreeBSD.org COMMENT= PAM module using crypto tokens for auth WWW= https://github.com/OpenSC/pam_pkcs11 LICENSE= LGPL21 RUN_DEPENDS= bash:shells/bash USES= autoreconf gmake libtool pkgconfig shebangfix USE_GITHUB= yes GH_ACCOUNT= OpenSC GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-confdir=${ETCDIR} CONFIGURE_ENV= OPENSSL_CFLAGS="-I${OPENSSLINC}" \ OPENSSL_LIBS="-L${OPENSSLLIB} -lcrypto" +GNU_CONFIGURE_MANPREFIX= ${PREFIX}/share SHEBANG_FILES= tools/pkcs11_make_hash_link OPTIONS_DEFINE= CURL DEBUG DOCS LDAP NLS NSS PCSC SSL OPTIONS_DEFAULT= PCSC SSL OPTIONS_SUB= yes CURL_LIB_DEPENDS= libcurl.so:ftp/curl CURL_CONFIGURE_WITH= curl LDAP_USES= ldap LDAP_CONFIGURE_WITH= ldap # Users can only choose either NSS or SSL NSS_DESC= Enable Mozilla's NSS support NSS_CONFIGURE_WITH= nss NSS_LIB_DEPENDS= libnss3.so:security/nss \ libnspr4.so:devel/nspr NSS_PREVENTS= SSL PCSC_DESC= Enable PC/SC support PCSC_LIB_DEPENDS= libpcsclite.so:devel/pcsc-lite PCSC_CONFIGURE_WITH= pcsclite SSL_USES= ssl NLS_CONFIGURE_ENABLE= nls NLS_USES= gettext DOCS_CONFIGURE_ENABLE= doc PORTDOCS= * PAM_PKCS11_EXAMPLEDOCS= \ etc/card_eventmgr.conf.example \ etc/digest_mapping.example \ etc/mail_mapping.example \ etc/pam.d_login.example.in \ etc/pam_pkcs11.conf.example.in \ etc/pkcs11_eventmgr.conf.example \ etc/subject_mapping.example .include .if ! ${PORT_OPTIONS:MDEBUG} INSTALL_TARGET= install-strip .else CONFIGURE_ARGS+= --with-debug=yes .endif .if ${PORT_OPTIONS:MDOCS} BUILD_DEPENDS+= xsltproc:textproc/libxslt \ ${LOCALBASE}/share/xsl/docbook/html/docbook.xsl:textproc/docbook-xsl CONFIGURE_ENV+= XSLTPROC="${LOCALBASE}/bin/xsltproc" CONFIGURE_ARGS+=--with-xsl-stylesheetsdir=${LOCALBASE}/share/xsl/docbook .else CONFIGURE_ENV+= XSLTPROC="${FALSE}" CONFIGURE_ARGS+=--without-xsl-stylesheetsdir .endif post-patch: .for f in ${PAM_PKCS11_EXAMPLEDOCS} @${REINPLACE_CMD} -e 's|/etc/${PORTNAME}|${ETCDIR}|g' \ -e 's|file:///etc/${PORTNAME}/|file://${ETCDIR}/|g' \ -e 's|/usr/lib|${PREFIX}/lib|g' \ -e 's|/usr/share|${PREFIX}/share|g' \ ${WRKSRC}/${f} .endfor @${REINPLACE_CMD} -e 's|/etc/|${PREFIX}/etc/|g' \ ${WRKSRC}/doc/pam_pkcs11.8.in pre-configure: @(cd ${WRKSRC} && ./bootstrap) .include diff --git a/security/pam_pkcs11/pkg-plist b/security/pam_pkcs11/pkg-plist index ffa4413461bd..42c47b8504b3 100644 --- a/security/pam_pkcs11/pkg-plist +++ b/security/pam_pkcs11/pkg-plist @@ -1,26 +1,26 @@ bin/card_eventmgr bin/pkcs11_eventmgr bin/pkcs11_inspect bin/pkcs11_listcerts bin/pkcs11_make_hash_link bin/pkcs11_setup bin/pklogin_finder lib/pam_pkcs11/opensc_mapper.so lib/pam_pkcs11/openssh_mapper.so lib/security/pam_pkcs11.so -man/man1/card_eventmgr.1.gz -man/man1/pkcs11_eventmgr.1.gz -man/man1/pkcs11_inspect.1.gz -man/man1/pkcs11_listcerts.1.gz -man/man1/pkcs11_make_hash_link.1.gz -man/man1/pkcs11_setup.1.gz -man/man1/pklogin_finder.1.gz -man/man8/pam_pkcs11.8.gz %%NLS%%share/locale/de/LC_MESSAGES/pam_pkcs11.mo %%NLS%%share/locale/pt_BR/LC_MESSAGES/pam_pkcs11.mo %%NLS%%share/locale/ru/LC_MESSAGES/pam_pkcs11.mo %%NLS%%share/locale/it/LC_MESSAGES/pam_pkcs11.mo %%NLS%%share/locale/tr/LC_MESSAGES/pam_pkcs11.mo %%NLS%%share/locale/pl/LC_MESSAGES/pam_pkcs11.mo %%NLS%%share/locale/fr/LC_MESSAGES/pam_pkcs11.mo %%NLS%%share/locale/nl/LC_MESSAGES/pam_pkcs11.mo +share/man/man1/card_eventmgr.1.gz +share/man/man1/pkcs11_eventmgr.1.gz +share/man/man1/pkcs11_inspect.1.gz +share/man/man1/pkcs11_listcerts.1.gz +share/man/man1/pkcs11_make_hash_link.1.gz +share/man/man1/pkcs11_setup.1.gz +share/man/man1/pklogin_finder.1.gz +share/man/man8/pam_pkcs11.8.gz