Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # $OpenBSD: Makefile,v 1.14 2017/05/27 19:57:07 ajacoutot Exp $
  2. COMMENT= standalone Yubikey and OATH/HOTP validation server
  3. DISTNAME= yubico-yubiserve-3.1
  4. REVISION= 8
  5. EXTRACT_SUFX= .zip
  6. UNZIP= unzip -a
  7. PKGNAME= ${DISTNAME:S/yubico-//}
  8. CATEGORIES= security www
  9. HOMEPAGE= https://code.google.com/p/yubico-yubiserve/
  10. MAINTAINER= Stuart Henderson <sthen@openbsd.org>
  11. # GPLv3
  12. PERMIT_PACKAGE_CDROM= Yes
  13. MASTER_SITES= ${MASTER_SITE_GOOGLECODE:=yubico-yubiserve/}
  14. MODULES= lang/python
  15. BUILD_DEPENDS= databases/sqlite3
  16. RUN_DEPENDS= databases/py-sqlite \
  17. security/py-crypto \
  18. security/py-openssl
  19. NO_BUILD= Yes
  20. NO_TEST= Yes
  21. PKG_ARCH= *
  22. WRKDIST= ${WRKDIR}/yubico-yubiserve
  23. MODPY_ADJ_FILES= yubiserve.py dbconf.py
  24. pre-patch:
  25. perl -pi -e 's,\? ,\t,g' ${WRKSRC}/dbconf.py
  26. echo >> ${WRKSRC}/yubiserve.py
  27. do-configure:
  28. @cd ${WRKSRC}; ${SUBST_CMD} -m 555 -c yubiserve.py yubiserve \
  29. dbconf.py yubiserve-dbconf
  30. cd ${WRKSRC}; sqlite3 yubikeys.sqlite3 < src/dump.sqlite
  31. do-install:
  32. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/yubiserve \
  33. ${PREFIX}/share/examples/yubiserve
  34. cd ${WRKSRC}; ${INSTALL_DATA} LICENSE README \
  35. src/* ${PREFIX}/share/doc/yubiserve; \
  36. ${INSTALL_DATA} yubiserve.cfg yubikeys.sqlite3 \
  37. ${PREFIX}/share/examples/yubiserve; \
  38. ${INSTALL_SCRIPT} yubiserve-dbconf ${PREFIX}/bin/yubiserve-dbconf; \
  39. ${INSTALL_SCRIPT} yubiserve ${PREFIX}/sbin/yubiserve
  40. .include <bsd.port.mk>