View | Details | Raw Unified | Return to bug 191728 | Differences between
and this patch

Collapse All | Expand All

(-)./Makefile (-17 / +16 lines)
Lines 7-13 Link Here
7
MASTER_SITES=	SF/logreporters/${PORTNAME}/release/${PORTVERSION}
7
MASTER_SITES=	SF/logreporters/${PORTNAME}/release/${PORTVERSION}
8
EXTRACT_SUFX=	.tgz
8
EXTRACT_SUFX=	.tgz
9
9
10
MAINTAINER= ports@FreeBSD.org
10
MAINTAINER=	ports@FreeBSD.org
11
COMMENT=	Postfix MTA log parser
11
COMMENT=	Postfix MTA log parser
12
12
13
LICENSE=	MIT
13
LICENSE=	MIT
Lines 16-51 Link Here
16
PORTDOCS=	Bugs Changes README
16
PORTDOCS=	Bugs Changes README
17
PORTEXAMPLES=	${PORTNAME}.conf ${PORTNAME}.conf-topn
17
PORTEXAMPLES=	${PORTNAME}.conf ${PORTNAME}.conf-topn
18
18
19
MAN1=		${PORTNAME}.1
19
USES=		perl5 shebangfix
20
21
USES=		perl5
22
USE_PERL5=	run
20
USE_PERL5=	run
23
NO_BUILD=	yes
21
NO_BUILD=	yes
22
SHEBANG_FILES=	${PORTNAME}
23
24
.include <bsd.port.options.mk>
24
25
25
NO_STAGE=	yes
26
post-patch:
26
post-patch:
27
	@cd ${WRKSRC} && ${REINPLACE_CMD} -e '\
27
	@cd ${WRKSRC} && ${REINPLACE_CMD} -e '\
28
		s!/usr/local/etc!${ETCDIR}! \
28
		s!/usr/local/etc!${ETCDIR}! \
29
		' ${PORTNAME} ${PORTNAME}.1 README
29
		' ${PORTNAME} ${PORTNAME}.1 README
30
30
31
do-install:
31
do-install:
32
	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
32
	${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
33
	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MANPREFIX}/man/man1
33
	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1
34
	@${CP} ${WRKSRC}/${PORTNAME}.conf ${WRKSRC}/${PORTNAME}.conf.sample
34
	@${MKDIR} ${STAGEDIR}${ETCDIR}
35
	@${MKDIR} ${ETCDIR}
35
	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf ${STAGEDIR}${ETCDIR}/${PORTNAME}.conf.sample
36
	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf.sample ${ETCDIR}
37
36
38
post-install:
37
post-install:
39
	@if [ ! -f ${ETCDIR}/${PORTNAME}.conf ]; then \
38
	@if [ ! -f ${ETCDIR}/${PORTNAME}.conf ]; then \
40
		${CP} -p ${ETCDIR}/${PORTNAME}.conf.sample ${ETCDIR}/${PORTNAME}.conf; \
39
		${CP} -p ${STAGEDIR}${ETCDIR}/${PORTNAME}.conf.sample ${STAGEDIR}${ETCDIR}/${PORTNAME}.conf; \
41
	fi
40
	fi
42
.if !defined(NOPORTDOCS)
41
.if ${PORT_OPTIONS:MDOCS}
43
	@${MKDIR} ${DOCSDIR}
42
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
44
	cd ${WRKSRC} && ${INSTALL_MAN} ${PORTDOCS} ${DOCSDIR}
43
	cd ${WRKSRC} && ${INSTALL_MAN} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
45
.endif
44
.endif
46
.if !defined(NOPORTEXAMPLES)
45
.if ${PORT_OPTIONS:MEXAMPLES}
47
	@${MKDIR} ${EXAMPLESDIR}
46
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
48
	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTEXAMPLES} ${EXAMPLESDIR}
47
	cd ${WRKSRC} && ${INSTALL_DATA} ${PORTEXAMPLES} ${STAGEDIR}${EXAMPLESDIR}
49
.endif
48
.endif
50
49
51
.include <bsd.port.mk>
50
.include <bsd.port.mk>
(-)./pkg-plist (-3 / +2 lines)
Lines 1-5 Link Here
1
@unexec if cmp -s %D/%%ETCDIR%%/postfix-logwatch.conf.sample %D/%%ETCDIR%%/postfix-logwatch.conf; then rm -f %D/%%ETCDIR%%/postfix-logwatch.conf; fi
1
@sample %%ETCDIR%%/postfix-logwatch.conf.sample
2
%%ETCDIR%%/postfix-logwatch.conf.sample
3
@exec if [ ! -f %B/postfix-logwatch.conf ] ; then cp -p %B/%f %B/postfix-logwatch.conf; fi
4
@dirrmtry %%ETCDIR%%
2
@dirrmtry %%ETCDIR%%
5
bin/postfix-logwatch
3
bin/postfix-logwatch
4
man/man1/postfix-logwatch.1.gz

Return to bug 191728