blob: 08101e8879202fc50004dd0cdc0f915bb686919a (
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# $NetBSD: Makefile,v 1.1 2013/05/07 08:49:28 wiz Exp $
#
DISTNAME= logrider-0.2
CATEGORIES= sysutils
MASTER_SITES= http://ilya-evseev.narod.ru/posix/logrider/
EXTRACT_SUFX= .zip
MAINTAINER= francksys@free.fr
HOMEPAGE= http://ilya-evseev.narod.ru/posix/logrider/
COMMENT= Monitor system logs for alerts
LICENSE= gnu-gpl-v2
NO_CHECKSUM=yes
EXTRACT_DIR= ${WRKDIR}/${DISTNAME}
USE_LANGUAGES= # none
NO_BUILD= YES
USE_TOOLS+= bash
REPLACE_BASH= logrider.sh logtail.sh
PATCH_STRIP= -p1
SUBST_CLASSES+= config_dir
SUBST_STAGE.config_dir= post-extract
SUBST_MESSAGE.config_dir= Replacing directories
SUBST_FILES.config_dir= logrider.conf logrider.sh
SUBST_SED.config_dir= -E -e 's|CONF_DIR(:?)=/etc|CONF_DIR\1=${PKG_SYSCONFDIR}|'
SUBST_CLASSES+= conf_bin_tail
SUBST_STAGE.conf_bin_tail= post-extract
SUBST_MESSAGE.conf_bin_tail= Replacing directories
SUBST_FILES.conf_bin_tail= logrider.conf logrider.sh
SUBST_SED.conf_bin_tail= -E -e 's|LOGTAIL(:?)=/usr|LOGTAIL\1=${PREFIX}|'
BUILD_DEFS+= VARBASE
EGDIR= ${PREFIX}/share/examples/logrider
INSTALLATION_DIRS= bin ${EGDIR} ${EGDIR}/violations_ignore
OWN_DIRS= ${PKG_SYSCONFDIR}/logrider ${PKG_SYSCONFDIR}/logrider/violations_ignore ${VARBASE}/lib/logrider
CONF_FILES= ${EGDIR}/logrider.conf ${PKG_SYSCONFDIR}/logrider/logrider.conf
CONF_FILES+= ${EGDIR}/hacking ${PKG_SYSCONFDIR}/logrider/hacking
CONF_FILES+= ${EGDIR}/ignore ${PKG_SYSCONFDIR}/logrider/ignore
CONF_FILES+= ${EGDIR}/violations ${PKG_SYSCONFDIR}/logrider/violations
CONF_FILES+= ${EGDIR}/violations_ignore/cvspserver ${PKG_SYSCONFDIR}/logrider/violations_ignore/cvspserver
CONF_FILES+= ${EGDIR}/violations_ignore/ftp ${PKG_SYSCONFDIR}/logrider/violations_ignore/ftp
CONF_FILES+= ${EGDIR}/violations_ignore/misc ${PKG_SYSCONFDIR}/logrider/violations_ignore/misc
CONF_FILES+= ${EGDIR}/violations_ignore/nsfbackup ${PKG_SYSCONFDIR}/logrider/violations_ignore/nsfbackup
CONF_FILES+= ${EGDIR}/violations_ignore/postfix ${PKG_SYSCONFDIR}/logrider/violations_ignore/postfix
CONF_FILES+= ${EGDIR}/violations_ignore/drweb-postfix ${PKG_SYSCONFDIR}/logrider/violations_ignore/drweb-postfix
CONF_FILES+= ${EGDIR}/violations_ignore/microbackup ${PKG_SYSCONFDIR}/logrider/violations_ignore/microbackup
CONF_FILES+= ${EGDIR}/violations_ignore/named ${PKG_SYSCONFDIR}/logrider/violations_ignore/named
CONF_FILES+= ${EGDIR}/violations_ignore/pam ${PKG_SYSCONFDIR}/logrider/violations_ignore/pam
CONF_FILES+= ${EGDIR}/violations_ignore/sshd ${PKG_SYSCONFDIR}/logrider/violations_ignore/sshd
V_IGNORE= ${WRKSRC}/violations_ignore
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/logtail.sh ${DESTDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/logrider.sh ${DESTDIR}${PREFIX}/bin
${INSTALL_DATA} ${WRKSRC}/ignore ${DESTDIR}${EGDIR}
${INSTALL_DATA} ${WRKSRC}/logrider.conf ${DESTDIR}${EGDIR}
${INSTALL_DATA} ${WRKSRC}/hacking ${DESTDIR}${EGDIR}
${INSTALL_DATA} ${WRKSRC}/violations ${DESTDIR}${EGDIR}
cd ${V_IGNORE} && for example in *; do \
${INSTALL_DATA} "$${example}" ${DESTDIR}${EGDIR}/violations_ignore; \
done
.include "../../mk/bsd.pkg.mk"
|