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

(-)Makefile (+2 lines)
Lines 7-12 Link Here
7
7
8
PORTNAME=	watchfolder
8
PORTNAME=	watchfolder
9
PORTVERSION=	0.3.3
9
PORTVERSION=	0.3.3
10
PORTREVISION=	1
10
CATEGORIES=	sysutils
11
CATEGORIES=	sysutils
11
MASTER_SITES=	http://dstunrea.sdf-eu.org/files/ \
12
MASTER_SITES=	http://dstunrea.sdf-eu.org/files/ \
12
		CRITICAL
13
		CRITICAL
Lines 17-22 Link Here
17
MAKE_JOBS_SAFE=	yes
18
MAKE_JOBS_SAFE=	yes
18
19
19
WRKSRC=		${WRKDIR}/watchd-${PORTVERSION}
20
WRKSRC=		${WRKDIR}/watchd-${PORTVERSION}
21
USE_RC_SUBR=	watchd
20
22
21
post-patch:
23
post-patch:
22
	@${REINPLACE_CMD} -e 's|gcc $$(OPT)|${CC} ${CFLAGS}|' \
24
	@${REINPLACE_CMD} -e 's|gcc $$(OPT)|${CC} ${CFLAGS}|' \
(-)files/watchd.in (+29 lines)
Added Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD$
4
#
5
# PROVIDE: watchd
6
# REQUIRE: DAEMON
7
# KEYWORD: shutdown
8
#
9
# Add the following line to /etc/rc.conf[.local] to enable watchd
10
#
11
# watchd_enable (bool):		Set to "NO" by default.
12
#                               Set it to "YES" to enable watchd.
13
14
. %%RC_SUBR%%
15
16
name="watchd"
17
rcvar=${name}_enable
18
19
load_rc_config $name
20
21
: ${watchd_enable="NO"}
22
: ${watchd_config="%%PREFIX%%/etc/watchd.conf"}
23
: ${watchd_log="/var/log/watchd.log"}
24
25
command="%%PREFIX%%/bin/watchd"
26
command_args="${watchd_config} >> ${watchd_log}"
27
required_files="${watchd_config}"
28
29
run_rc_command "$1"

Return to bug 133267