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.
/}
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
17 .
include "../../mk/bsd.prefs.mk"
19 PKG_SYSCONFVAR
= openssl
20 PKG_SYSCONFSUBDIR
= openssl
22 .if
${OPSYS} == "NetBSD"
23 PKG_SYSCONFDIR.openssl?
= /etc
/openssl
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 \
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}; \
45 post-configure
: pyca-script-fixup
48 cd
${WRKSRC}; for file in bin
/*.py
; do \
49 ${INSTALL_SCRIPT} $${file} ${DESTDIR}${PREFIX}/bin
; \
51 cd
${WRKSRC}; for file in cgi-bin
/*.py
; do \
52 ${INSTALL_SCRIPT} $${file} ${DESTDIR}${PREFIX}/libexec
/cgi-bin
; \
54 cd
${WRKSRC}; for file in sbin
/*.py
; do \
55 ${INSTALL_SCRIPT} $${file} ${DESTDIR}${PREFIX}/sbin
; \
57 cd
${WRKSRC}; for file in pylib
/*.py
; do \
58 ${INSTALL_DATA} $${file} ${DESTDIR}${PREFIX}/lib
/pyca
; \
60 cd
${WRKSRC}; for file in pylib
/openssl
/*.py
; do \
61 ${INSTALL_DATA} $${file} ${DESTDIR}${PREFIX}/lib
/pyca
/openssl
; \
63 cd
${WRKSRC}; for file in conf
/*.cnf
; do \
64 ${INSTALL_DATA} $${file} ${DESTDIR}${PREFIX}/share
/examples
/pyca
; \
66 cd
${WRKSRC}; for file in htdocs
/*.html
; do \
67 ${INSTALL_DATA} $${file} ${DESTDIR}${PREFIX}/share
/doc
/html
/pyca
; \
69 cd
${WRKSRC}; for file in htdocs
/help
/*; do \
70 ${INSTALL_DATA} $${file} ${DESTDIR}${PREFIX}/share
/doc
/html
/pyca
/help
; \
72 cd
${WRKSRC}; for file in htdocs
/ssi
/*.html
; do \
73 ${INSTALL_DATA} $${file} ${DESTDIR}${PREFIX}/share
/doc
/html
/pyca
/ssi
; \
76 .
include "../../lang/python/application.mk"
77 .
include "../../mk/bsd.pkg.mk"