openbsd-ports/security/yubiserve/Makefile
sthen ffbfde3b63 import ports/security/yubiserve, ok jsaper@
YubiServe is a lightweight Validation Server supporting both OATH/HOTP
and Yubico Yubikey implementations, written in Python that uses an
SQLite database or, optionally, a MySQL database. It has an integrated
threaded webserver, with HTTPS/SSL support, compatible with the
Yubico validation protocol 2.0 including HMAC SHA-1 signatures to
provide for authentication of the server.
2012-07-18 08:25:07 +00:00

54 lines
1.4 KiB
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2012/07/18 08:25:07 sthen 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
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= 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_REGRESS= 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>