the scripts/ directory, it will be run automatically as part of the build process, by bsd.pkg.mk. There are now exactly 5 packages in pkgsrc which use this facility, and yet, for every package build, the existence of a script is checked by bsd.pkg.mk once before the target is executed, and once afterwards. This incurs needless overhead. Move the separate pre- and post- script handling out of bsd.pkg.mk into the individual package Makefiles, where it's much more obvious what is happening, anyway.
47 lines
1.4 KiB
Makefile
47 lines
1.4 KiB
Makefile
# $NetBSD: Makefile,v 1.18 2001/10/26 14:10:00 agc Exp $
|
|
# FreeBSD Id: Makefile,v 1.25 1998/07/16 06:44:37 vanilla Exp
|
|
#
|
|
|
|
DISTNAME= mgetty1.1.26-Apr16
|
|
PKGNAME= mgetty-1.1.26
|
|
CATEGORIES= comms
|
|
MASTER_SITES= ftp://ftp.leo.org/pub/comp/os/unix/networking/mgetty/ \
|
|
ftp://alpha.greenie.net/pub/mgetty/source/1.1/
|
|
|
|
MAINTAINER= packages@netbsd.org
|
|
HOMEPAGE= http://alpha.greenie.net/mgetty/
|
|
COMMENT= Handle external logins, send and receive faxes
|
|
|
|
CONFLICTS= hylafax-[0-9]*
|
|
|
|
WRKSRC= ${WRKDIR}/${PKGNAME}
|
|
INFO_FILES= mgetty.info
|
|
INSTALL_FILE= ${WRKDIR}/INSTALL
|
|
|
|
MGETTY_CONFDIR= ${PREFIX}/etc/mgetty+sendfax
|
|
#MGETTY_CONFDIR=/etc/mgetty
|
|
MAKE_ENV+= MGETTY_CONFDIR=${MGETTY_CONFDIR}
|
|
|
|
USE_BUILDLINK_ONLY= # defined
|
|
|
|
do-configure:
|
|
cd ${.CURDIR} && ${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure
|
|
|
|
post-configure:
|
|
${SED} -e 's#$${INSTALL_DATA_DIR}#${INSTALL_DATA_DIR}#' \
|
|
-e 's#$${MGETTY_CONFDIR}#${MGETTY_CONFDIR}#' \
|
|
-e 's#$${PAX}#${PAX}#' \
|
|
-e 's#$${PREFIX}#${PREFIX}#' \
|
|
${PKGDIR}/INSTALL > ${INSTALL_FILE}
|
|
cd ${WRKSRC}; \
|
|
${MV} faxrunq.config faxrunq.config.old; \
|
|
${SED} 's#/usr/local#${PREFIX}#' \
|
|
faxrunq.config.old > faxrunq.config
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${MGETTY_CONFDIR}
|
|
cd ${PREFIX}/share/examples/mgetty+sendfax; \
|
|
${PAX} -r -w -pe -k * ${MGETTY_CONFDIR}
|
|
|
|
.include "../../graphics/netpbm/buildlink.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|