pkgsrc/comms/mgetty+sendfax/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

60 lines
1.6 KiB
Makefile

# $NetBSD: Makefile,v 1.52 2006/03/14 01:14:27 jlam Exp $
DISTNAME= mgetty1.1.31-Jul24
PKGNAME= mgetty-1.1.31
PKGREVISION= 3
CATEGORIES= comms
MASTER_SITES= ftp://ftp.leo.org/pub/comp/os/unix/networking/mgetty/ \
ftp://alpha.greenie.net/pub/mgetty/source/1.1/
MAINTAINER= jwise@NetBSD.org
HOMEPAGE= http://alpha.greenie.net/mgetty/
COMMENT= Handle external logins, send and receive faxes
BUILD_DEPENDS+= texi2roff-[0-9]*:../../textproc/texi2roff
CONFLICTS= hylafax-[0-9]*
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
MAKE_ENV+= MGETTY_CONFDIR=${PKG_SYSCONFDIR:Q}
USE_TOOLS+= makeinfo
INFO_FILES= mgetty.info
PKG_SYSCONFSUBDIR= mgetty+sendfax
.if !defined(CONF_FILES)
. for cfg in dialin.config \
faxheader \
faxrunq.config \
faxspool.rules.sample \
login.config \
mgetty.config \
voice.conf
CONF_FILES+= ${_EXAMPLES_DIR}/${cfg} ${PKG_SYSCONFDIR}/${cfg}
. endfor
.endif
PKG_GROUPS= dialer
PKG_USERS= fax:dialer
_EXAMPLES_DIR= ${PREFIX}/share/examples/mgetty+sendfax
MAKE_DIRS_PERMS+= /var/spool/fax ${ROOT_USER} ${ROOT_GROUP} 755
MAKE_DIRS_PERMS+= /var/spool/fax/incoming ${ROOT_USER} ${ROOT_GROUP} 755
MAKE_DIRS_PERMS+= /var/spool/fax/outgoing fax ${ROOT_GROUP} 755
do-configure:
${MV} ${WRKSRC}/doc/fax.1in ${WRKSRC}/doc/sendfax.1in
cd ${WRKSRC} \
&& for _file in faxrunq.config policy.h-dist; \
do \
${MV} $$_file $${_file}.orig; \
${SED} 's|/usr/local|${PREFIX}|' \
$${_file}.orig > $$_file; \
done \
&& cd ${.CURDIR} \
&& ${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure
.include "../../graphics/netpbm/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"