Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / security / pyca / Makefile
blobcdc3124ba4cd3877fc89b2e50ab89441c6544ef1
1 # $NetBSD: Makefile,v 1.19 2012/03/15 11:53:37 obache Exp $
3 # Date-based distfile name for pre-releases leading to 0.6.6.
4 DISTNAME= pyca-20031118
5 PKGNAME= ${DISTNAME:S/pyca-/pyca-0.6.6./}
6 PKGREVISION= 1
7 CATEGORIES= security python
8 MASTER_SITES= http://www.pyca.de/download/
10 MAINTAINER= pkgsrc-users@NetBSD.org
11 HOMEPAGE= http://www.pyca.de/
12 COMMENT= Administration tools for X.509/PKIX CA
13 LICENSE= gnu-gpl-v2
15 NO_BUILD= yes
17 .include "../../mk/bsd.prefs.mk"
19 PKG_SYSCONFVAR= openssl
20 PKG_SYSCONFSUBDIR= openssl
22 .if ${OPSYS} == "NetBSD"
23 PKG_SYSCONFDIR.openssl?= /etc/openssl
24 .endif
26 PYTHON_PATCH_SCRIPTS= bin/*.py cgi-bin/*.py sbin/*.py
28 PYCA_SCRIPT_FIXUP_SED= \
29 -e "s|/usr/local/pyca/pylib|${PREFIX}/lib/pyca|g" \
30 -e "s|/etc/openssl/openssl.cnf|${PKG_SYSCONFDIR}/openssl.cnf|g" \
31 -e "s|/home/.*/openssl.cnf|${PKG_SYSCONFDIR}/openssl.cnf|g" \
32 -e "s|/home/.*/pylib|${PREFIX}/lib/pyca|g"
34 INSTALLATION_DIRS= bin lib/pyca/openssl libexec/cgi-bin sbin \
35 share/doc/html/pyca/help share/doc/html/pyca/ssi \
36 share/examples/pyca
38 pyca-script-fixup:
39 cd ${WRKSRC}; for file in ${PYTHON_PATCH_SCRIPTS}; do \
40 ${SED} ${PYCA_SCRIPT_FIXUP_SED} \
41 <$${file} >$${file}.fixed; \
42 ${MV} $${file}.fixed $${file}; \
43 done
45 post-configure: pyca-script-fixup
47 do-install:
48 cd ${WRKSRC}; for file in bin/*.py; do \
49 ${INSTALL_SCRIPT} $${file} ${DESTDIR}${PREFIX}/bin; \
50 done
51 cd ${WRKSRC}; for file in cgi-bin/*.py; do \
52 ${INSTALL_SCRIPT} $${file} ${DESTDIR}${PREFIX}/libexec/cgi-bin; \
53 done
54 cd ${WRKSRC}; for file in sbin/*.py; do \
55 ${INSTALL_SCRIPT} $${file} ${DESTDIR}${PREFIX}/sbin; \
56 done
57 cd ${WRKSRC}; for file in pylib/*.py; do \
58 ${INSTALL_DATA} $${file} ${DESTDIR}${PREFIX}/lib/pyca; \
59 done
60 cd ${WRKSRC}; for file in pylib/openssl/*.py; do \
61 ${INSTALL_DATA} $${file} ${DESTDIR}${PREFIX}/lib/pyca/openssl; \
62 done
63 cd ${WRKSRC}; for file in conf/*.cnf; do \
64 ${INSTALL_DATA} $${file} ${DESTDIR}${PREFIX}/share/examples/pyca; \
65 done
66 cd ${WRKSRC}; for file in htdocs/*.html; do \
67 ${INSTALL_DATA} $${file} ${DESTDIR}${PREFIX}/share/doc/html/pyca; \
68 done
69 cd ${WRKSRC}; for file in htdocs/help/*; do \
70 ${INSTALL_DATA} $${file} ${DESTDIR}${PREFIX}/share/doc/html/pyca/help; \
71 done
72 cd ${WRKSRC}; for file in htdocs/ssi/*.html; do \
73 ${INSTALL_DATA} $${file} ${DESTDIR}${PREFIX}/share/doc/html/pyca/ssi; \
74 done
76 .include "../../lang/python/application.mk"
77 .include "../../mk/bsd.pkg.mk"