summaryrefslogtreecommitdiff
path: root/comms/mgetty+sendfax/Makefile
blob: bc32100d2d56d1e5ae11e5b5673bbbc0a08fed1e (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
# $NetBSD: Makefile,v 1.22 2002/03/13 17:36:43 fredb Exp $
# FreeBSD Id: Makefile,v 1.25 1998/07/16 06:44:37 vanilla Exp
#

DISTNAME=	mgetty1.1.28-Jan10
PKGNAME=	mgetty-1.1.28
PKGREVISION=	1
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

pre-patch:
	${MV} ${WRKSRC}/doc/fax.1in ${WRKSRC}/doc/sendfax.1in

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/texinfo.mk"
.include "../../mk/bsd.pkg.mk"