openbsd-ports/security/easy-rsa/Makefile

32 lines
637 B
Makefile

# $OpenBSD: Makefile,v 1.10 2019/07/12 20:49:01 sthen Exp $
COMMENT = small RSA key management package
V = 3.0.6
PKGNAME = easy-rsa-$V
DISTNAME = EasyRSA-unix-v$V
EXTRACT_SUFX = .tgz
CATEGORIES = security
HOMEPAGE = https://openvpn.net/
# GPLv2 only
PERMIT_PACKAGE = Yes
MASTER_SITES = https://github.com/OpenVPN/easy-rsa/releases/download/v$V/
NO_BUILD = Yes
NO_TEST = Yes
WRKDIST = ${WRKDIR}/${DISTNAME:S/unix-//}
I = ${PREFIX}/share/easy-rsa
do-install:
sed -i s,/usr/local,${LOCALBASE},g ${WRKSRC}/easyrsa
${INSTALL_DATA_DIR} $I
cd ${WRKSRC}; pax -rw * $I
chown -R ${SHAREOWN}:${SHAREGRP} $I/*
.include <bsd.port.mk>