-
Notifications
You must be signed in to change notification settings - Fork 742
/
Makefile
49 lines (38 loc) · 1.41 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
PORTNAME= easy-rsa
DISTVERSION= 3.1.4
CATEGORIES= security net-mgmt
MASTER_SITES= https://github.com/OpenVPN/easy-rsa/releases/download/v${DISTVERSION}/ \
LOCAL/mandree/
DISTNAME= EasyRSA-${DISTVERSION}
MAINTAINER= mandree@FreeBSD.org
COMMENT= Small RSA key management package based on openssl
WWW= https://github.com/OpenVPN/easy-rsa
LICENSE= GPLv2
USES= tar:tgz
CONFLICTS_INSTALL=easy-rsa2
NO_BUILD= yes
NO_ARCH= yes
WRKSRC= ${WRKDIR}/EasyRSA-${DISTVERSION}
OPTIONS_DEFINE= DOCS EXAMPLES
PORTDATA= x509-types/
_pd_files= ChangeLog COPYING.md README.md README.quickstart.md mktemp.txt
_pd_dirs= doc/
PORTDOCS= ${_pd_files} ${_pd_dirs}
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/bin
${MKDIR} ${STAGEDIR}${DATADIR}/x509-types/
${INSTALL_SCRIPT} ${WRKSRC}/easyrsa ${STAGEDIR}${PREFIX}/bin/
${LN} -fh ${STAGEDIR}${PREFIX}/bin/easyrsa ${STAGEDIR}${PREFIX}/bin/easy-rsa
${INSTALL_DATA} ${WRKSRC}/vars.example ${STAGEDIR}${DATADIR}/
${INSTALL_DATA} ${WRKSRC}/openssl-easyrsa.cnf ${STAGEDIR}${DATADIR}/openssl-easyrsa.cnf.example
(cd ${WRKSRC}/x509-types/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/x509-types/)
do-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in ${_pd_files}
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor
.for i in ${_pd_dirs}
${MKDIR} ${STAGEDIR}${DOCSDIR}/${i}
(cd ${WRKSRC}/${i} && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}/${i})
.endfor
.include <bsd.port.mk>