have it be automatically included by bsd.pkg.mk if USE_PKGINSTALL is set to "YES". This enforces the requirement that bsd.pkg.install.mk be included at the end of a package Makefile. Idea suggested by Julio M. Merino Vidal <jmmv at menta.net>.
41 lines
1.1 KiB
Makefile
41 lines
1.1 KiB
Makefile
# $NetBSD: Makefile,v 1.9 2003/01/28 22:03:28 jlam Exp $
|
|
|
|
PKGNAME= courier-auth-${BASE_VERS}
|
|
PKGREVISION?= 1
|
|
CATEGORIES= security
|
|
COMMENT= authentication modules for Courier mail packages
|
|
|
|
CONFLICTS= courier-imap<=1.4.0
|
|
CONFLICTS+= courier-imap-ldap-*
|
|
|
|
USE_PERL5= yes
|
|
USE_PKGINSTALL= yes
|
|
REPLACE_PERL= sysconftool
|
|
|
|
.include "../../mail/courier-auth/Makefile.authdaemond"
|
|
|
|
.if defined(_STRIPFLAG_INSTALL) && !empty(_STRIPFLAG_INSTALL:M-s)
|
|
INSTALL_TARGET= install-strip
|
|
.endif
|
|
|
|
GEN_FILES= authdaemonrc
|
|
OWN_DIRS_PERMS= /var/authdaemon ${ROOT_USER} ${ROOT_GROUP} 700
|
|
|
|
CONF_FILES_PERMS= # empty
|
|
.for FILE in ${GEN_FILES}
|
|
CONF_FILES_PERMS+= ${EGDIR}/${FILE}.dist ${PKG_SYSCONFDIR}/${FILE} \
|
|
${ROOT_USER} ${ROOT_GROUP} 0600
|
|
.endfor
|
|
RCD_SCRIPTS= authdaemond
|
|
|
|
FILES_SUBST+= GEN_FILES=${GEN_FILES:Q}
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${EGDIR}
|
|
${INSTALL_SCRIPT} ${WRKSRC}/sysconftool ${SYSCONFTOOL}
|
|
for file in authdaemonrc.dist; do \
|
|
${INSTALL_DATA} ${PKG_SYSCONFDIR}/$${file} ${EGDIR}; \
|
|
${RM} -f ${PKG_SYSCONFDIR}/$${file}; \
|
|
done
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|