blob: 1f593b57f7d407e8bbe268d94e079943d7312706 (
plain) (
blame)
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
|
# $FreeBSD$
PORTNAME= sma
PORTVERSION= 1.4
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_LOCAL} \
ftp://ftp.dinoex.de/pub/FreeBSD/distfiles/
MASTER_SITE_SUBDIR= dinoex
MAINTAINER= dinoex@FreeBSD.org
COMMENT= Program that analyses Sendmail log entries
ALL_TARGET= sma
SAMPLEFILES= sma.conf
DOCSFILES= BUGS COPYRIGHT HISTORY README TODO
OPTIONS_DEFINE= DOCS EXAMPLES
.include <bsd.port.options.mk>
do-configure:
${REINPLACE_CMD} -e "s,CC =,CC?= ," \
-e "s,CFLAGS = -Wall -O,CFLAGS+= ," \
${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/sma ${STAGEDIR}${PREFIX}/bin/sma
${INSTALL_MAN} ${WRKSRC}/sma.8 ${STAGEDIR}${PREFIX}/man/man8/
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in ${DOCSFILES}
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}/
.endfor
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.for i in ${SAMPLEFILES}
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${EXAMPLESDIR}/
.endfor
.endif
.include <bsd.port.mk>
|