summaryrefslogtreecommitdiffstats
path: root/comms/mgetty+sendfax/Makefile
blob: 8af7130bee2da9c12930488b720cd0d040104117 (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
# Created by: rkw
# $FreeBSD$

PORTNAME=	mgetty
PORTVERSION=	1.1.35
PORTREVISION=	7
CATEGORIES=	comms
MASTER_SITES=	ftp://mgetty.greenie.net/pub/mgetty/source/1.1/
DISTNAME=	${PORTNAME}${PORTVERSION}-Feb22

MAINTAINER=	olgeni@FreeBSD.org
COMMENT=	Handle external logins, send and receive faxes

LICENSE=	GPLv2

USE_CSTD=	gnu89
USES=		makeinfo perl5

SUB_FILES=	pkg-message mgettycfg
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
MAKE_FLAGS=	CFLAGS="${CFLAGS}" prefix=${PREFIX} LOCALBASE=${LOCALBASE} STAGEDIR=${STAGEDIR} -f
ALL_TARGET=	noident all
INFO=		mgetty

MAKE_JOBS_UNSAFE=	yes

OPTIONS_DEFINE=	FIDO

FIDO_DESC=	Enable FIDO EMSI support

.include <bsd.port.options.mk>

CFLAGS+=	-DAUTO_PPP

.if ${PORT_OPTIONS:MFIDO}
CFLAGS+=	-DFIDO
.endif

.include <bsd.port.pre.mk>

pre-install:
	@(cd ${WRKSRC}/doc; ${MAKE} manpages)

post-install:
	@${MV} ${STAGEDIR}${PREFIX}/etc/mgetty+sendfax/dialin.config \
		${STAGEDIR}${PREFIX}/etc/mgetty+sendfax/dialin.config.sample
	@${MV} ${STAGEDIR}${PREFIX}/etc/mgetty+sendfax/faxheader \
		${STAGEDIR}${PREFIX}/etc/mgetty+sendfax/faxheader.sample
	@${MV} ${STAGEDIR}${PREFIX}/etc/mgetty+sendfax/faxrunq.config \
		${STAGEDIR}${PREFIX}/etc/mgetty+sendfax/faxrunq.config.sample
	@${MV} ${STAGEDIR}${PREFIX}/etc/mgetty+sendfax/login.config \
		${STAGEDIR}${PREFIX}/etc/mgetty+sendfax/login.config.sample
	${INSTALL_DATA} -m 600 ${WRKSRC}/voice/voice.conf-dist \
		${STAGEDIR}${PREFIX}/etc/mgetty+sendfax/voice.conf.sample
	${TAR}  -cf - -C ${WRKSRC} samples | ${TAR}  -xf - -C ${STAGEDIR}${PREFIX}/lib/mgetty+sendfax/
	${INSTALL_SCRIPT} ${WRKDIR}/mgettycfg ${STAGEDIR}${PREFIX}/bin
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/mgetty+sendfax/faxq-helper

.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud