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

Collapse All | Expand All

(-)b/security/crowdsec-firewall-bouncer/Makefile (-1 / +2 lines)
Lines 1-6 Link Here
1
PORTNAME=	crowdsec-firewall-bouncer
1
PORTNAME=	crowdsec-firewall-bouncer
2
PORTVERSION=	0.0.22  # NOTE: change BUILD_VERSION and BUILD_TAG as well
2
PORTVERSION=	0.0.22  # NOTE: change BUILD_VERSION and BUILD_TAG as well
3
#PORTREVISION=	
3
PORTREVISION=	1
4
DISTVERSIONPREFIX=	v
4
DISTVERSIONPREFIX=	v
5
CATEGORIES=	security
5
CATEGORIES=	security
6
6
Lines 26-31 GH_TAGNAME= v0.0.22-freebsd Link Here
26
USE_RC_SUBR=	crowdsec_firewall
26
USE_RC_SUBR=	crowdsec_firewall
27
27
28
SUB_FILES=	pkg-message \
28
SUB_FILES=	pkg-message \
29
		pkg-install \
29
		pkg-deinstall
30
		pkg-deinstall
30
31
31
# BUILD_VERSION=$(git describe --tags $(git rev-list --tags --max-count=1))
32
# BUILD_VERSION=$(git describe --tags $(git rev-list --tags --max-count=1))
(-)b/security/crowdsec-firewall-bouncer/files/pkg-deinstall.in (-1 / +2 lines)
Lines 1-7 Link Here
1
#!/bin/sh
1
#!/bin/sh
2
2
3
case $2 in
3
case $2 in
4
       DEINSTALL)
4
       "DEINSTALL")
5
               service crowdsec_firewall status && touch /var/run/crowdsec_firewall.running
5
               service crowdsec_firewall stop || :
6
               service crowdsec_firewall stop || :
6
               ;;
7
               ;;
7
esac
8
esac
(-)b/security/crowdsec-firewall-bouncer/files/pkg-install.in (+10 lines)
Added Link Here
1
#!/bin/sh
2
3
case $2 in
4
        "POST-INSTALL")
5
                if [ -e /var/run/crowdsec_firewall.running ]; then
6
                        service crowdsec_firewall start
7
                        rm -f /var/run/crowdsec_firewall.running
8
                fi
9
                ;;
10
esac
(-)b/security/crowdsec/Makefile (-1 / +3 lines)
Lines 1-5 Link Here
1
PORTNAME=	crowdsec
1
PORTNAME=	crowdsec
2
PORTVERSION=	1.2.3	# NOTE: change BUILD_VERSION and BUILD_TAG as well
2
PORTVERSION=	1.2.3	# NOTE: change BUILD_VERSION and BUILD_TAG as well
3
PORTREVISION=	1
3
DISTVERSIONPREFIX=	v
4
DISTVERSIONPREFIX=	v
4
CATEGORIES=	security
5
CATEGORIES=	security
5
6
Lines 24-29 GH_TAGNAME= v1.2.3-freebsd Link Here
24
USE_RC_SUBR=	crowdsec
25
USE_RC_SUBR=	crowdsec
25
26
26
SUB_FILES=	pkg-message \
27
SUB_FILES=	pkg-message \
28
		pkg-install \
27
		pkg-deinstall
29
		pkg-deinstall
28
30
29
# BUILD_VERSION=$(git describe --tags $(git rev-list --tags --max-count=1))
31
# BUILD_VERSION=$(git describe --tags $(git rev-list --tags --max-count=1))
Lines 129-133 do-install: Link Here
129
131
130
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
132
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
131
	${INSTALL_DATA} ${FILESDIR}/crowdsec.conf-newsyslog ${STAGEDIR}${PREFIX}/etc/newsyslog.conf.d/crowdsec.conf.sample
133
	${INSTALL_DATA} ${FILESDIR}/crowdsec.conf-newsyslog ${STAGEDIR}${PREFIX}/etc/newsyslog.conf.d/crowdsec.conf.sample
132
134
	
133
.include <bsd.port.mk>
135
.include <bsd.port.mk>
(-)b/security/crowdsec/files/crowdsec.conf-newsyslog (-2 / +2 lines)
Lines 1-3 Link Here
1
# logfilename			[owner:group]	mode	count	size(kb)	when	flags	[/pid_file]				[sig_num]
1
# logfilename			[owner:group]	mode	count	size(kb)	when	flags	[/pid_file]				[sig_num]
2
/var/log/crowdsec.log		root:wheel	644  	10	5120		*	JC	/var/run/crowdsec.pid
2
/var/log/crowdsec.log		root:wheel	644  	10	20480		*	JC	/var/run/crowdsec.pid
3
/var/log/crowdsec_api.log	root:wheel	644  	10	5120		*	JC	/var/run/crowdsec.pid
3
/var/log/crowdsec_api.log	root:wheel	644  	10	20480		*	JC	/var/run/crowdsec.pid
(-)b/security/crowdsec/files/crowdsec.in (-1 / +1 lines)
Lines 72-78 crowdsec_precmd() { Link Here
72
crowdsec_start()
72
crowdsec_start()
73
{
73
{
74
    /usr/sbin/daemon -f -p ${pidfile} -t "${desc}" -- \
74
    /usr/sbin/daemon -f -p ${pidfile} -t "${desc}" -- \
75
        ${command} -c ${crowdsec_config} ${crowdsec_flags}
75
        ${command} -c "${crowdsec_config}" ${crowdsec_flags}
76
}
76
}
77
77
78
crowdsec_configtest()
78
crowdsec_configtest()
(-)b/security/crowdsec/files/pkg-deinstall.in (-1 / +2 lines)
Lines 1-7 Link Here
1
#!/bin/sh
1
#!/bin/sh
2
2
3
case $2 in
3
case $2 in
4
       DEINSTALL)
4
       "DEINSTALL")
5
               service crowdsec status && touch /var/run/crowdsec.running
5
               service crowdsec stop || :
6
               service crowdsec stop || :
6
               ;;
7
               ;;
7
esac
8
esac
(-)b/security/crowdsec/files/pkg-install.in (+10 lines)
Added Link Here
1
#!/bin/sh
2
3
case $2 in
4
        "POST-INSTALL")
5
                if [ -e /var/run/crowdsec.running ]; then
6
                        service crowdsec start
7
                        rm -f /var/run/crowdsec.running
8
                fi
9
                ;;
10
esac
(-)b/security/crowdsec/pkg-plist (-4 lines)
Lines 14-22 bin/crowdsec-cli Link Here
14
@sample %%ETCDIR%%/notifications/http/http.yaml.sample
14
@sample %%ETCDIR%%/notifications/http/http.yaml.sample
15
@sample %%ETCDIR%%/notifications/slack/slack.yaml.sample
15
@sample %%ETCDIR%%/notifications/slack/slack.yaml.sample
16
@sample %%ETCDIR%%/notifications/splunk/splunk.yaml.sample
16
@sample %%ETCDIR%%/notifications/splunk/splunk.yaml.sample
17
%%ETCDIR%%/dev.yaml
18
%%ETCDIR%%/user.yaml
19
%%ETCDIR%%/crowdsec.service
20
%%ETCDIR%%/patterns/aws
17
%%ETCDIR%%/patterns/aws
21
%%ETCDIR%%/patterns/bacula
18
%%ETCDIR%%/patterns/bacula
22
%%ETCDIR%%/patterns/bro
19
%%ETCDIR%%/patterns/bro
23
- 

Return to bug 261304