daad0f3d6c
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.
42 lines
1.2 KiB
Makefile
42 lines
1.2 KiB
Makefile
# $NetBSD: Makefile,v 1.44 2006/03/14 01:14:30 jlam Exp $
|
|
#
|
|
|
|
DISTNAME= popa3d-1.0
|
|
CATEGORIES= mail
|
|
MASTER_SITES= http://www.openwall.com/popa3d/ \
|
|
ftp://ftp.openwall.com/pub/projects/popa3d/ \
|
|
ftp://ftp.false.com/pub/security/popa3d/
|
|
|
|
MAINTAINER= wiz@NetBSD.org
|
|
HOMEPAGE= http://www.openwall.com/popa3d/
|
|
COMMENT= Secure, reliable, performant, and small pop3 server
|
|
|
|
POPA3D_USER?= popa3d
|
|
POPA3D_GROUP?= popa3d
|
|
|
|
PKG_GROUPS= ${POPA3D_GROUP}
|
|
PKG_USERS= ${POPA3D_USER}:${POPA3D_GROUP}
|
|
|
|
RCD_SCRIPTS= popa3d
|
|
|
|
FILES_SUBST+= POPA3D_USER=${POPA3D_USER:Q}
|
|
FILES_SUBST+= POPA3D_GROUP=${POPA3D_GROUP:Q}
|
|
|
|
SUBST_CLASSES+= params
|
|
SUBST_STAGE.params= post-patch
|
|
SUBST_FILES.params= params.h
|
|
SUBST_SED.params= -e 's,/var/empty,${PREFIX}/share/empty,' \
|
|
-e 's,@@POPA3D_USER@@,"${POPA3D_USER}",'
|
|
|
|
INSTALLATION_DIRS= man/man8 sbin
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} -m 500 ${WRKSRC}/popa3d ${PREFIX}/sbin
|
|
${INSTALL_DATA} ${WRKSRC}/popa3d.8 ${PREFIX}/man/man8/
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/popa3d
|
|
cd ${WRKSRC} && ${INSTALL_DATA} DESIGN INSTALL LICENSE \
|
|
${PREFIX}/share/doc/popa3d
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/empty
|
|
|
|
.include "../../security/tcp_wrappers/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|