openbsd-ports/security/yubiserve/Makefile
2013-03-11 11:35:43 +00:00

51 lines
1.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.2 2013/03/11 11:41:29 espie Exp $
COMMENT= standalone Yubikey and OATH/HOTP validation server
DISTNAME= yubico-yubiserve-3.1
EXTRACT_SUFX= .zip
UNZIP= unzip -a
PKGNAME= ${DISTNAME:S/yubico-//}
CATEGORIES= security www
HOMEPAGE= http://code.google.com/p/yubico-yubiserve/
MAINTAINER= Stuart Henderson <sthen@openbsd.org>
# GPLv3
PERMIT_PACKAGE_CDROM= Yes
MASTER_SITES= http://yubico-yubiserve.googlecode.com/files/
MODULES= lang/python
RUN_DEPENDS= databases/py-sqlite \
security/py-crypto \
security/py-openssl
NO_BUILD= Yes
NO_TEST= Yes
PKG_ARCH= *
WRKDIST= ${WRKDIR}/yubico-yubiserve
MODPY_ADJ_FILES= yubiserve.py dbconf.py
pre-patch:
perl -pi -e 's,\? ,\t,g' ${WRKSRC}/dbconf.py
do-configure:
@cd ${WRKSRC}; ${SUBST_CMD} -c yubiserve.py yubiserve \
dbconf.py yubiserve-dbconf
cd ${WRKSRC}; sqlite3 yubikeys.sqlite3 < src/dump.sqlite
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/yubiserve \
${PREFIX}/share/examples/yubiserve
cd ${WRKSRC}; ${INSTALL_DATA} LICENSE README \
src/* ${PREFIX}/share/doc/yubiserve; \
${INSTALL_DATA} yubiserve.cfg yubikeys.sqlite3 \
${PREFIX}/share/examples/yubiserve; \
${INSTALL_SCRIPT} yubiserve-dbconf ${PREFIX}/bin/yubiserve-dbconf; \
${INSTALL_SCRIPT} yubiserve ${PREFIX}/sbin/yubiserve
.include <bsd.port.mk>