blob: c4c511dcd8686f6d7f9716824fe44af1865b6f10 (
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
43
44
45
|
# Created by: Masaki TAGAWA <masaki@club.kyutech.ac.jp>
# $FreeBSD$
PORTNAME= amavis-logwatch
PORTVERSION= 1.51.03
PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= SF/logreporters/${PORTNAME}/release/${PORTVERSION}
MAINTAINER= danilo@FreeBSD.org
COMMENT= Amavisd-new log parser
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
PORTDOCS= Bugs Changes README
PORTEXAMPLES= ${PORTNAME}.conf
USES= perl5 shebangfix tar:tgz
USE_PERL5= run
NO_BUILD= yes
SHEBANG_FILES= amavis-logwatch
OPTIONS_DEFINE= EXAMPLES DOCS
post-patch:
@cd ${WRKSRC} && ${REINPLACE_CMD} -e '\
s!/usr/local/etc!${ETCDIR}! \
' ${PORTNAME} ${PORTNAME}.1 README
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
@${CP} ${WRKSRC}/${PORTNAME}.conf ${WRKSRC}/${PORTNAME}.conf.sample
@${MKDIR} ${STAGEDIR}${ETCDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf.sample ${STAGEDIR}${ETCDIR}
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>
|