diff options
-rw-r--r-- | security/orthrus/Makefile | 33 | ||||
-rw-r--r-- | security/orthrus/pkg-plist | 12 |
2 files changed, 25 insertions, 20 deletions
diff --git a/security/orthrus/Makefile b/security/orthrus/Makefile index fde13500463c..10c774b6b4a7 100644 --- a/security/orthrus/Makefile +++ b/security/orthrus/Makefile @@ -3,38 +3,37 @@ PORTNAME= orthrus PORTVERSION= 0.8.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= security MASTER_SITES= GOOGLE_CODE \ http://16degrees.com.au/${PORTNAME}/ -MAINTAINER= ports@FreeBSD.org +MAINTAINER= ports@FreeBSD.org COMMENT= One-Time Password System (OTP) alternative to OPIE or S/Key LICENSE= APACHE20 LIB_DEPENDS= libapr-1.so:${PORTSDIR}/devel/apr1 -USE_LDCONFIG= yes USES= iconv scons tar:bzip2 -PORTDOCS= * - -NO_STAGE= yes +MAKE_ARGS= DEBUG=False --install-sandbox=${STAGEDIR} +USE_LDCONFIG= yes OPTIONS_DEFINE= DOCS -.include <bsd.port.options.mk> +post-patch: + @${REINPLACE_CMD} -e \ + 's|-O[0-9]|| ; \ + /chmod/d' ${WRKSRC}/SConstruct post-install: -.if ${PORT_OPTIONS:MDOCS} - @${MKDIR} ${DOCSDIR} - (cd ${WRKSRC} && \ - ${INSTALL_DATA} NOTICE README TODO ${DOCSDIR}) -.endif - ${TOUCH} ${PREFIX}/etc/orthruskeys - - @${ECHO_CMD} - @${CAT} ${PKGMESSAGE} - @${ECHO_CMD} + @${MKDIR} ${STAGEDIR}${DOCSDIR} + (cd ${WRKSRC} && ${INSTALL_DATA} NOTICE README TODO \ + ${STAGEDIR}${DOCSDIR}) + @${ECHO_CMD} -n > ${STAGEDIR}${PREFIX}/etc/orthruskeys +.for i in bin/ortcalc bin/ortpasswd lib/liborthrus-0.so \ + lib/security/pam_orthrus.so + @${STRIP_CMD} ${STAGEDIR}${PREFIX}/${i} +.endfor .include <bsd.port.mk> diff --git a/security/orthrus/pkg-plist b/security/orthrus/pkg-plist index b9d26f450253..5ee36e5ad22a 100644 --- a/security/orthrus/pkg-plist +++ b/security/orthrus/pkg-plist @@ -1,11 +1,17 @@ bin/ortcalc +@mode 4555 bin/ortpasswd +@mode etc/orthruskeys -lib/liborthrus-0.so -lib/security/pam_orthrus.so include/orthrus-0/context.h include/orthrus-0/orthrus.h include/orthrus-0/orthrus_error.h include/orthrus-0/orthrus_version.h -@dirrm include/orthrus-0 +lib/liborthrus-0.so +lib/security/pam_orthrus.so +%%PORTDOCS%%%%DOCSDIR%%/NOTICE +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/TODO +%%PORTDOCS%%@dirrm %%DOCSDIR%% @dirrm lib/security +@dirrm include/orthrus-0 |