freebsd-ports/security/orthrus/Makefile
2018-04-03 08:56:11 +00:00

39 lines
1 KiB
Makefile

# Created by: Gavin McDonald <gavin@16degrees.com.au>
# $FreeBSD$
PORTNAME= orthrus
PORTVERSION= 0.8.0
PORTREVISION= 5
CATEGORIES= security
MASTER_SITES= https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/orthrus/ \
http://16degrees.com.au/${PORTNAME}/
MAINTAINER= gavin@16degrees.com.au
COMMENT= One-Time Password System (OTP) alternative to OPIE or S/Key
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libapr-1.so:devel/apr1
USES= iconv scons tar:bzip2
MAKE_ARGS= DEBUG=False --install-sandbox=${STAGEDIR}
USE_LDCONFIG= yes
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's|-O[0-9]||; /chmod/d' ${WRKSRC}/SConstruct
post-install:
@${TOUCH} ${STAGEDIR}${PREFIX}/etc/orthruskeys
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/liborthrus-0.so
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/security/pam_orthrus.so
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} NOTICE README TODO \
${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>