summaryrefslogtreecommitdiff
path: root/mail/mreport/Makefile
blob: 0a95af7132c97e9f92fb111f8e11806b9a6743c9 (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
# Created by: Will Andrews <andrews@technologist.com>
# $FreeBSD$

PORTNAME=	mreport
PORTVERSION=	0.9
CATEGORIES=	mail sysutils
MASTER_SITES=	http://yenigul.net/mreport/

MAINTAINER=	ismail@EnderUNIX.org
COMMENT=	Sendmail logfile summary tool

ALL_TARGET=	ALL
MAN8=		mreport.8
PLIST_FILES=	sbin/mreport

NO_STAGE=	yes
post-patch:
	@${REINPLACE_CMD} -e "s/^.TH mreport 1/.TH mreport 8/g; s/^.LO 1/.LO 8/g;" \
		${WRKSRC}/mreport.1
	@${REINPLACE_CMD} -E -e "s/^CC.+//g; s|-Wall -c -O2|${CFLAGS} -c|g;" \
		${WRKSRC}/Makefile

do-install:
	@${INSTALL_PROGRAM} ${WRKSRC}/mreport ${PREFIX}/sbin
	@${INSTALL_MAN} ${WRKSRC}/mreport.1 ${PREFIX}/man/man8/mreport.8

.include <bsd.port.mk>