pkgsrc/comms/mgetty+sendfax/Makefile
wiz e8d8834f6a Bump PKGREVISION for libpng shlib name change.
Also add some patches to remove use of deprecated symbols and fix other
problems when looking for or compiling against libpng-1.4.x.
2010-06-13 22:43:46 +00:00

69 lines
1.9 KiB
Makefile

# $NetBSD: Makefile,v 1.68 2010/06/13 22:43:59 wiz Exp $
DISTNAME= mgetty1.1.36-Jun15
PKGNAME= mgetty-1.1.36
PKGREVISION= 4
CATEGORIES= comms
MASTER_SITES= ftp://alpha.greenie.net/pub/mgetty/source/1.1/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://mgetty.greenie.net/
COMMENT= Handle external logins, send and receive faxes
MAKE_JOBS_SAFE= no
BUILD_DEPENDS+= texi2roff-[0-9]*:../../textproc/texi2roff
CONFLICTS= hylafax-[0-9]*
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
MAKE_ENV+= MGETTY_CONFDIR=${PKG_SYSCONFDIR:Q} PERL5=${PERL5:Q}
MAKE_FLAGS+= prefix=${PREFIX:Q} \
INFODIR=${PREFIX:Q}/${PKGINFODIR:Q} \
MAN1DIR=${PREFIX:Q}/${PKGMANDIR:Q}/man1 \
MAN4DIR=${PREFIX:Q}/${PKGMANDIR:Q}/man4 \
MAN5DIR=${PREFIX:Q}/${PKGMANDIR:Q}/man5 \
MAN8DIR=${PREFIX:Q}/${PKGMANDIR:Q}/man8
BUILD_MAKE_FLAGS= ${MAKE_FLAGS} CONFDIR=${PKG_SYSCONFDIR:Q}
INSTALL_MAKE_FLAGS= ${MAKE_FLAGS} CONFDIR=${EXAMPLES_DIR:Q}
USE_TOOLS+= makeinfo perl:run
INFO_FILES= yes
PKG_SYSCONFSUBDIR= mgetty+sendfax
.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
PKG_GROUPS= dialer
PKG_USERS= fax:dialer
EXAMPLES_DIR= ${PREFIX}/share/examples/mgetty+sendfax
OWN_DIRS_PERMS+= /var/spool/fax ${ROOT_USER} ${ROOT_GROUP} 755
OWN_DIRS_PERMS+= /var/spool/fax/incoming ${ROOT_USER} ${ROOT_GROUP} 755
OWN_DIRS_PERMS+= /var/spool/fax/outgoing fax ${ROOT_GROUP} 755
SUBST_CLASSES+= prefix
SUBST_FILES.prefix= faxrunq.config policy.h
SUBST_SED.prefix= -e 's|/usr/local|${PREFIX}|'
SUBST_STAGE.prefix= pre-configure
SUBST_MESSAGE.prefix= Fixing hardcoded installation prefix.
.include "../../graphics/netpbm/buildlink3.mk"
post-extract:
cd ${WRKSRC} && cp policy.h-dist policy.h
do-configure:
mv ${WRKSRC}/doc/fax.1in ${WRKSRC}/doc/sendfax.1in
.include "../../mk/bsd.pkg.mk"