aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorwg <wg@FreeBSD.org>2014-08-31 21:35:16 +0800
committerwg <wg@FreeBSD.org>2014-08-31 21:35:16 +0800
commitc6ecc0f77d271bec26e4a9adced7d0260d3fb891 (patch)
tree79ad2692ccfc658b7183855059a458e2793f3955 /security
parent8cac7d51bc85f2dee585b55d0b41c0d58c82f113 (diff)
downloadfreebsd-ports-gnome-c6ecc0f77d271bec26e4a9adced7d0260d3fb891.tar.gz
freebsd-ports-gnome-c6ecc0f77d271bec26e4a9adced7d0260d3fb891.tar.zst
freebsd-ports-gnome-c6ecc0f77d271bec26e4a9adced7d0260d3fb891.zip
security/orthrus: support stage
- Allow package as a regular user PR: 193164 Submitted by: Ports Fury
Diffstat (limited to 'security')
-rw-r--r--security/orthrus/Makefile33
-rw-r--r--security/orthrus/pkg-plist12
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