pkgsrc/security/easy-rsa/Makefile
jnemeth e9cb7c49f2 Import easy-rsa 3.0.3.
This is a shell script to aid with creating a Certificate Authority
and certificates for use with an OpenVPN server.  See
http://openvpn.net/howto.html for usage instructions along with
the documentation provided in this package.
2017-12-04 06:15:23 +00:00

52 lines
1.5 KiB
Makefile

# $NetBSD: Makefile,v 1.1.1.1 2017/12/04 06:15:23 jnemeth Exp $
DISTNAME= v3.0.3
PKGNAME= ${GITHUB_PROJECT}-${DISTNAME}
#PKGREVISION= 1
CATEGORIES= security
MASTER_SITES= ${MASTER_SITE_GITHUB:=OpenVPN/}
DIST_SUBDIR= ${GITHUB_PROJECT}
COMMENT= CLI utility to build and manage a PKI CA
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/OpenVPN/easy-rsa/
LICENSE= gnu-gpl-v2
GITHUB_PROJECT= easy-rsa
WRKSRC= ${WRKDIR}/easy-rsa-3.0.3
USE_LANGUAGES= # none
EASYRSA_DOC_FILES= COPYING.md ChangeLog KNOWN_ISSUES README.md
EASYRSA_DOC_FILES+= README.quickstart.md
EASYRSA_CNF_FILES= openssl-1.0.cnf vars.example x509-types/COMMON
EASYRSA_CNF_FILES+= x509-types/ca x509-types/client x509-types/server
INSTALLATION_DIRS+= ${BINDIR} ${DOCDIR} ${EGDIR} # ${PKGMANDIR}/man1
BINDIR= ${PREFIX}/bin
DOCDIR= ${PREFIX}/share/doc/easyrsa
EGDIR= ${PREFIX}/share/examples/easyrsa
PKG_SYSCONFSUBDIR= easyrsa
OWN_DIRS= ${PKG_SYSCONFDIR}/x509-types
.for f in ${EASYRSA_CNF_FILES}
REQD_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/${f}
.endfor
NO_CONFIGURE= yes
NO_BUILD= yes
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/easyrsa3/easyrsa ${DESTDIR}${BINDIR}/easyrsa
# ${INSTALL_MAN} ${FILESDIR}/easyrsa.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}/x509-types
.for f in ${EASYRSA_CNF_FILES}
${INSTALL_DATA} ${WRKSRC}/easyrsa3/${f} ${DESTDIR}${EGDIR}/${f}
.endfor
.for f in ${EASYRSA_DOC_FILES}
${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${DOCDIR}
.endfor
${INSTALL_DATA} ${WRKSRC}/doc/* ${DESTDIR}${DOCDIR}
.include "../../mk/bsd.pkg.mk"