blob: 1c86831c1102ef9ed9c35df818eb93571e4e111f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# $NetBSD: Makefile,v 1.50 2006/02/05 23:08:27 joerg 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}
DEINSTALL_EXTRA_TMPL+= ${.CURDIR}/DEINSTALL
INSTALL_EXTRA_TMPL+= ${.CURDIR}/INSTALL
MAKE_ENV+= MGETTY_CONFDIR=${PKG_SYSCONFDIR:Q}
USE_MAKEINFO= YES
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"
|