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

(-)security/honeytrap/Makefile (-5 / +9 lines)
Lines 1-8 Link Here
1
# $FreeBSD$
1
# $FreeBSD$
2
2
3
PORTNAME=	honeytrap
3
PORTNAME=	honeytrap
4
PORTVERSION=	20200129
4
DISTVERSION=	g20200226
5
DISTVERSIONPREFIX=	g
6
CATEGORIES=	security
5
CATEGORIES=	security
7
6
8
MAINTAINER=	remco.verhoef@dutchsec.com
7
MAINTAINER=	remco.verhoef@dutchsec.com
Lines 14-20 Link Here
14
USE_GITHUB=	yes
13
USE_GITHUB=	yes
15
GH_ACCOUNT=	honeytrap
14
GH_ACCOUNT=	honeytrap
16
GH_PROJECT=	honeytrap
15
GH_PROJECT=	honeytrap
17
GH_TAGNAME=	93936c1
16
GH_TAGNAME=	77a150d1
18
GH_TUPLE=	\
17
GH_TUPLE=	\
19
		AndreasBriese:bbloom:28f7e881ca57:andreasbriese_bbloom/vendor/github.com/AndreasBriese/bbloom \
18
		AndreasBriese:bbloom:28f7e881ca57:andreasbriese_bbloom/vendor/github.com/AndreasBriese/bbloom \
20
		BurntSushi:toml:v0.3.0:burntsushi_toml/vendor/github.com/BurntSushi/toml \
19
		BurntSushi:toml:v0.3.0:burntsushi_toml/vendor/github.com/BurntSushi/toml \
Lines 77-83 Link Here
77
GROUPS=		honeytrap
76
GROUPS=		honeytrap
78
USE_RC_SUBR=	honeytrap
77
USE_RC_SUBR=	honeytrap
79
PLIST_FILES=	bin/honeytrap \
78
PLIST_FILES=	bin/honeytrap \
80
		etc/honeytrap.toml
79
		etc/honeytrap.toml \
80
		"@dir(honeytrap,honeytrap,4744) /var/log/honeytrap" \
81
		"@dir(honeytrap,honeytrap,4744) libdata/honeytrap"
81
82
82
post-patch:
83
post-patch:
83
	@${REINPLACE_CMD} -i '' '/go1.13/d' ${WRKDIR}/netstack-9ea5e4d2258f/tcpip/time_unsafe.go
84
	@${REINPLACE_CMD} -i '' '/go1.13/d' ${WRKDIR}/netstack-9ea5e4d2258f/tcpip/time_unsafe.go
Lines 85-92 Link Here
85
do-install:
86
do-install:
86
	${MKDIR} ${STAGEDIR}${PREFIX}/bin
87
	${MKDIR} ${STAGEDIR}${PREFIX}/bin
87
	${INSTALL_PROGRAM} ${WRKDIR}/bin/honeytrap ${STAGEDIR}${PREFIX}/bin/honeytrap
88
	${INSTALL_PROGRAM} ${WRKDIR}/bin/honeytrap ${STAGEDIR}${PREFIX}/bin/honeytrap
88
	${MKDIR} ${STAGEDIR}${PREFIX}/etc
89
	${MKDIR} ${STAGEDIR}${PREFIX}/etc/rc.d
89
	${MKDIR} ${STAGEDIR}${PREFIX}/etc/rc.d
90
	${INSTALL_DATA} ${FILESDIR}/etc/honeytrap.toml ${STAGEDIR}${PREFIX}/etc
90
	${INSTALL_DATA} ${FILESDIR}/etc/honeytrap.toml ${STAGEDIR}${PREFIX}/etc
91
91
92
post-install:
93
	${MKDIR} ${STAGEDIR}${PREFIX}/libdata/honeytrap
94
	${MKDIR} ${STAGEDIR}/var/log/honeytrap
95
92
.include <bsd.port.mk>
96
.include <bsd.port.mk>
(-)security/honeytrap/distinfo (-3 / +3 lines)
Lines 1-6 Link Here
1
TIMESTAMP = 1580990332
1
TIMESTAMP = 1583244893
2
SHA256 (honeytrap-honeytrap-g20200129-93936c1_GH0.tar.gz) = c60a0496a609b8473e039b3de1c02eea4d35831439a58284eed986bc6038c4b1
2
SHA256 (honeytrap-honeytrap-g20200226-77a150d1_GH0.tar.gz) = 3ed81ebc5b62f203fecc2c768efcee5fd2a3cf2e2b4c7862e5564bef26730fa6
3
SIZE (honeytrap-honeytrap-g20200129-93936c1_GH0.tar.gz) = 377514
3
SIZE (honeytrap-honeytrap-g20200226-77a150d1_GH0.tar.gz) = 377512
4
SHA256 (AndreasBriese-bbloom-28f7e881ca57_GH0.tar.gz) = c87bf25d12aa9ef597c6a465dd2959d6d7e06d8341030d6d75c8a81ccc388ccd
4
SHA256 (AndreasBriese-bbloom-28f7e881ca57_GH0.tar.gz) = c87bf25d12aa9ef597c6a465dd2959d6d7e06d8341030d6d75c8a81ccc388ccd
5
SIZE (AndreasBriese-bbloom-28f7e881ca57_GH0.tar.gz) = 7141
5
SIZE (AndreasBriese-bbloom-28f7e881ca57_GH0.tar.gz) = 7141
6
SHA256 (BurntSushi-toml-v0.3.0_GH0.tar.gz) = 2c49390424cfb043f803977bce80b1504495bada54f9e845ff8b30a05fab9a36
6
SHA256 (BurntSushi-toml-v0.3.0_GH0.tar.gz) = 2c49390424cfb043f803977bce80b1504495bada54f9e845ff8b30a05fab9a36
(-)security/honeytrap/files/honeytrap.in (-5 / +5 lines)
Lines 11-17 Link Here
11
#
11
#
12
# honeytrap_enable (bool):	Set to NO by default.
12
# honeytrap_enable (bool):	Set to NO by default.
13
#				Set it to YES to enable honeytrap.
13
#				Set it to YES to enable honeytrap.
14
# honeytrap_datadir (path):	Set to %%PREFIX%%/var/lib/honeytrap
14
# honeytrap_datadir (path):	Set to %%PREFIX%%/libdata/honeytrap
15
#				by default.
15
#				by default.
16
# honeytrap_config (path):	Set to %%PREFIX%%/etc/honeytrap.toml
16
# honeytrap_config (path):	Set to %%PREFIX%%/etc/honeytrap.toml
17
#				by default.
17
#				by default.
Lines 24-33 Link Here
24
load_rc_config $name
24
load_rc_config $name
25
25
26
: ${honeytrap_enable:="NO"}
26
: ${honeytrap_enable:="NO"}
27
: ${honeytrap_datadir="%%PREFIX%%/var/lib/honeytrap"}
27
: ${honeytrap_datadir="%%PREFIX%%/libdata/honeytrap"}
28
: ${honeytrap_config="%%PREFIX%%/etc/honeytrap.toml"}
28
: ${honeytrap_config="%%PREFIX%%/etc/honeytrap.toml"}
29
29
30
start_cmd="$name_start"
30
start_cmd="${name}_start"
31
31
32
honeytrap_program="%%PREFIX%%/bin/honeytrap"
32
honeytrap_program="%%PREFIX%%/bin/honeytrap"
33
honeytrap_flags="--data $honeytrap_datadir --config $honeytrap_config"
33
honeytrap_flags="--data $honeytrap_datadir --config $honeytrap_config"
Lines 35-41 Link Here
35
35
36
honeytrap_start()
36
honeytrap_start()
37
{
37
{
38
	daemon -p $pidfile -u $name $honeytrap_program $honeytrap_flags
38
	daemon -o /var/log/honeytrap/service.log -p $pidfile -u $name $honeytrap_program $honeytrap_flags
39
}
39
}
40
40
41
run_rc_command "$1"
41
run_rc_command "$@"

Return to bug 244591