View | Details | Raw Unified | Return to bug 50915
Collapse All | Expand All

(-)Makefile (-6 / +8 lines)
Lines 7-13 Link Here
7
7
8
PORTNAME=	logcheck
8
PORTNAME=	logcheck
9
PORTVERSION=	1.1.1
9
PORTVERSION=	1.1.1
10
PORTREVISION=	1
10
PORTREVISION=	2
11
CATEGORIES=	security
11
CATEGORIES=	security
12
MASTER_SITES=	ftp://sensimilia.eu.org/pub/software/sys/ \
12
MASTER_SITES=	ftp://sensimilia.eu.org/pub/software/sys/ \
13
		http://www.ukc.mirror.ac.uk/sites/ftp.freebsd.org/pub/FreeBSD/ports/distfiles/ \
13
		http://www.ukc.mirror.ac.uk/sites/ftp.freebsd.org/pub/FreeBSD/ports/distfiles/ \
Lines 42-55 Link Here
42
do-install:
42
do-install:
43
	${INSTALL_PROGRAM} ${WRKSRC}/src/logtail ${PREFIX}/bin
43
	${INSTALL_PROGRAM} ${WRKSRC}/src/logtail ${PREFIX}/bin
44
	${INSTALL_SCRIPT} ${WRKSRC}/systems/freebsd/logcheck.sh ${PREFIX}/etc
44
	${INSTALL_SCRIPT} ${WRKSRC}/systems/freebsd/logcheck.sh ${PREFIX}/etc
45
	${MKDIR} ${EXAMPLESDIR}
45
	@${MKDIR} ${EXAMPLESDIR}
46
	cd ${WRKSRC}/systems/freebsd && \
46
.for file in ${CONFIG_FILES}
47
		${INSTALL_DATA} ${CONFIG_FILES} ${EXAMPLESDIR} && \
47
	@${INSTALL_DATA} ${WRKSRC}/systems/freebsd/${file} ${EXAMPLESDIR}
48
		${INSTALL_DATA} ${CONFIG_FILES} ${PREFIX}/etc
48
	@${TEST} -f ${PREFIX}/etc/${file} || \
49
	  ${INSTALL_DATA} ${WRKSRC}/systems/freebsd/${file} ${PREFIX}/etc
50
.endfor
49
	${TEST} -d ${LOGCHECK_TMP} || ${MKDIR} -m 700 ${LOGCHECK_TMP}
51
	${TEST} -d ${LOGCHECK_TMP} || ${MKDIR} -m 700 ${LOGCHECK_TMP}
50
	${CHOWN} root:wheel ${LOGCHECK_TMP}
52
	${CHOWN} root:wheel ${LOGCHECK_TMP}
51
.if !defined(NOPORTDOCS)
53
.if !defined(NOPORTDOCS)
52
	${MKDIR} ${DOCSDIR}
54
	@${MKDIR} ${DOCSDIR}
53
	cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
55
	cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
54
.endif
56
.endif
55
57
(-)pkg-plist (-4 / +8 lines)
Lines 1-13 Link Here
1
bin/logtail
1
bin/logtail
2
etc/logcheck.sh
2
etc/logcheck.sh
3
etc/logcheck.hacking
4
etc/logcheck.ignore
5
etc/logcheck.violations
6
etc/logcheck.violations.ignore
7
%%EXAMPLESDIR%%/logcheck.hacking
3
%%EXAMPLESDIR%%/logcheck.hacking
4
@exec test -f %D/etc/%f || cp %D/%f %D/etc
5
@unexec cmp -s %D/etc/%f %D/%F && rm %D/etc/%f
8
%%EXAMPLESDIR%%/logcheck.ignore
6
%%EXAMPLESDIR%%/logcheck.ignore
7
@exec test -f %D/etc/%f || cp %D/%f %D/etc
8
@unexec cmp -s %D/etc/%f %D/%F && rm %D/etc/%f
9
%%EXAMPLESDIR%%/logcheck.violations.ignore
9
%%EXAMPLESDIR%%/logcheck.violations.ignore
10
@exec test -f %D/etc/%f || cp %D/%f %D/etc
11
@unexec cmp -s %D/etc/%f %D/%F && rm %D/etc/%f
10
%%EXAMPLESDIR%%/logcheck.violations
12
%%EXAMPLESDIR%%/logcheck.violations
13
@exec test -f %D/etc/%f || cp %D/%f %D/etc
14
@unexec cmp -s %D/etc/%f %D/%F && rm %D/etc/%f
11
@dirrm %%EXAMPLESDIR%%
15
@dirrm %%EXAMPLESDIR%%
12
%%PORTDOCS%%%%DOCSDIR%%/CREDITS
16
%%PORTDOCS%%%%DOCSDIR%%/CREDITS
13
%%PORTDOCS%%%%DOCSDIR%%/INSTALL
17
%%PORTDOCS%%%%DOCSDIR%%/INSTALL

Return to bug 50915