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.
59 lines
1.6 KiB
Makefile
59 lines
1.6 KiB
Makefile
# $NetBSD: Makefile,v 1.16 2006/03/14 01:14:30 jlam Exp $
|
|
#
|
|
|
|
DISTNAME= yatsvrs-5.00p6
|
|
PKGNAME= ${DISTNAME:S/p/./}
|
|
PKGREVISION= 4
|
|
CATEGORIES= mail
|
|
MASTER_SITES= ftp://ftp.jone-system.com/pub/jepro/yatsvr/
|
|
|
|
MAINTAINER= taca@NetBSD.org
|
|
HOMEPAGE= # not available
|
|
COMMENT= Extended POP3 server and some supporting servers
|
|
|
|
CONFLICTS= ascyd-* yatsvr4-*
|
|
|
|
GNU_CONFIGURE= yes
|
|
DOCS= IMPORTANT README UPDATE doc/YATCONF doc/YATEXT4
|
|
DOCDIR= ${PREFIX}/share/doc/yatsvr5
|
|
EXAMPLES= yatrc2 yatsvrrc
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/yatsvr5
|
|
|
|
CONFIGURE_ARGS+= --enable-popper-xmit
|
|
CONFIGURE_ARGS+= --with-log-facility=${YATSVR_LOGFAC:Q}
|
|
CONFIGURE_ARGS+= --with-yat-sys-dir=${PKG_SYSCONFDIR:Q}
|
|
CONFIGURE_ARGS+= --with-yat-sys-old-dir-v4=${OLDCONFDIR:Q}
|
|
CONFIGURE_ARGS+= --enable-shadow-password
|
|
|
|
DEINSTALL_FILE= ${WRKDIR}/DEINSTALL
|
|
INSTALL_FILE= ${WRKDIR}/INSTALL
|
|
|
|
FILES_SUBST+= DEFAULT_ADMIN=${DEFAULT_YATADMIN:Q}
|
|
FILES_SUBST+= YATSVR_MINGID=${YATSVR_MINGID:Q}
|
|
FILES_SUBST+= YATSVR_MAXGID=${YATSVR_MAXGID:Q}
|
|
|
|
.for f in ${EXAMPLES}
|
|
CONF_FILES+= ${EXAMPLESDIR}/${f} ${PKG_SYSCONFDIR}/${f}
|
|
.endfor
|
|
OWN_DIRS+= ${PKG_SYSCONFDIR}
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
YATSVR_LOGFAC?= LOG_LOCAL4
|
|
YATSVR_MINGID?= 1001
|
|
YATSVR_MAXGID?= 64999
|
|
DEFAULT_YATADMIN?= root
|
|
PKG_SYSCONFSUBDIR?= yatsvr5
|
|
OLDCONFDIR?= ${PKG_SYSCONFBASE}/yat
|
|
|
|
post-install:
|
|
${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}/sample/${f} ${EXAMPLESDIR}/${f}
|
|
.endfor
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|