pkgsrc/security/AiCA/Makefile
jlam daad0f3d6c Modify the pkginstall framework so that it manages all aspects of
INSTALL/DEINSTALL script creation within pkgsrc.

If an INSTALL or DEINSTALL script is found in the package directory,
it is automatically used as a template for the pkginstall-generated
scripts.  If instead, they should be used simply as the full scripts,
then the package Makefile should set INSTALL_SRC or DEINSTALL_SRC
explicitly, e.g.:

	INSTALL_SRC=	${PKGDIR}/INSTALL
	DEINSTALL_SRC=	# emtpy

As part of the restructuring of the pkginstall framework internals,
we now *always* generate temporary INSTALL or DEINSTALL scripts.  By
comparing these temporary scripts with minimal INSTALL/DEINSTALL
scripts formed from only the base templates, we determine whether or
not the INSTALL/DEINSTALL scripts are actually needed by the package
(see the generate-install-scripts target in bsd.pkginstall.mk).

In addition, more variables in the framework have been made private.
The *_EXTRA_TMPL variables have been renamed to *_TEMPLATE, which are
more sensible names given the very few exported variables in this
framework.  The only public variables relating to the templates are:

	INSTALL_SRC		INSTALL_TEMPLATE
	DEINSTALL_SRC		DEINSTALL_TEMPLATE
				HEADER_TEMPLATE

The packages in pkgsrc have been modified to reflect the changes in
the pkginstall framework.
2006-03-14 01:14:26 +00:00

58 lines
1.7 KiB
Makefile

# $NetBSD: Makefile,v 1.15 2006/03/14 01:14:33 jlam Exp $
#
DISTNAME= AiCA-0.81
CATEGORIES= security
MASTER_SITES= http://mars.elcom.nitech.ac.jp/security/
MAINTAINER= tech-pkg-ja@jp.NetBSD.org
HOMEPAGE= http://mars.elcom.nitech.ac.jp/security/
COMMENT= Manage Certification Authority and PKI utilities
GNU_CONFIGURE= yes
WRKSRC= ${WRKDIR}/AiCA
PKG_SYSCONFSUBDIR?= AiCA
CONF_FILES+= ${EXAMPLESDIR}/aica.cnf ${PKG_SYSCONFDIR}/aica.cnf
OWN_DIRS+= ${PKG_SYSCONFDIR} ${PKG_SYSCONFDIR}/store
DOCDIR= ${PREFIX}/share/doc/AiCA
EXAMPLESDIR= ${PREFIX}/share/examples/AiCA
COMMANDS= aica/aica bin/aistore bin/asn1view bin/certconv \
bin/certreq bin/certvfy bin/certview
LIBRARIES= libaica.a libaicrypto.a libaissl.a
DOCS= COPYRIGHT README README.j
EXAMPLES= lib/aica.cnf sample.csv
INSTALLATION_DIRS= bin include lib
pre-configure:
cd ${WRKSRC}; \
${ECHO} >> aicrypto/ecdsa/Makefile.in; \
${CP} README README.in; ${CP} README.j README.j.in
do-install:
.for f in ${LIBRARIES}
${INSTALL_LIB} ${WRKSRC}/lib/${f} ${PREFIX}/lib
.endfor
.for f in ${COMMANDS}
${INSTALL_PROGRAM} ${WRKSRC}/${f} ${PREFIX}/bin
.endfor
${INSTALL_SCRIPT} ${WRKSRC}/bin/newca.sh ${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/aicrypto/include/*.h ${PREFIX}/include
${INSTALL_DATA} ${WRKSRC}/aiconfig.h ${PREFIX}/include
${INSTALL_DATA_DIR} ${PREFIX}/certs
${CP} ${WRKSRC}/certs/* ${PREFIX}/certs
${INSTALL_DATA_DIR} ${PREFIX}/templates
${CP} ${WRKSRC}/templates/* ${PREFIX}/templates
${INSTALL_DATA_DIR} ${DOCDIR}
.for f in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCDIR}
.endfor
${INSTALL_DATA_DIR} ${EXAMPLESDIR}
.for f in ${EXAMPLES}
${INSTALL_DATA} ${WRKSRC}/${f} ${EXAMPLESDIR}
.endfor
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"