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

Collapse All | Expand All

(-)b/GIDs (-1 / +1 lines)
Lines 155-161 shoutcast:*:210: Link Here
155
git:*:211:
155
git:*:211:
156
hg:*:212:
156
hg:*:212:
157
drizzle:*:213:
157
drizzle:*:213:
158
# free: 214
158
kyototycoon:*:214:
159
opendnssec:*:215:
159
opendnssec:*:215:
160
nsd:*:216:
160
nsd:*:216:
161
# free: 217
161
# free: 217
(-)b/UIDs (-1 / +1 lines)
Lines 160-166 shoutcast:*:210:210::0:0:Shoutcast sandbox:/nonexistent:/bin/sh Link Here
160
git:*:211:211::0:0:gitosis user:/usr/local/git:/bin/sh
160
git:*:211:211::0:0:gitosis user:/usr/local/git:/bin/sh
161
hg:*:212:212::0:0:mercurial-server user:/usr/local/hg:/bin/sh
161
hg:*:212:212::0:0:mercurial-server user:/usr/local/hg:/bin/sh
162
drizzle:*:213:213::0:0:Drizzle daemon:/var/db/drizzle:/usr/sbin/nologin
162
drizzle:*:213:213::0:0:Drizzle daemon:/var/db/drizzle:/usr/sbin/nologin
163
# free: 214
163
kyototycoon:*:214:214::0:0:kyototycoon user:/var/empty:/usr/sbin/nologin
164
opendnssec:*:215:215::0:0:Opendnssec Pseudo User:/nonexistent:/usr/sbin/nologin
164
opendnssec:*:215:215::0:0:Opendnssec Pseudo User:/nonexistent:/usr/sbin/nologin
165
nsd:*:216:216::0:0:NSD DNS Server:/nonexistent:/usr/sbin/nologin
165
nsd:*:216:216::0:0:NSD DNS Server:/nonexistent:/usr/sbin/nologin
166
# free: 217
166
# free: 217
(-)b/databases/kyototycoon/Makefile (-1 / +30 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	kyototycoon
4
PORTNAME=	kyototycoon
5
PORTVERSION=	0.9.56
5
PORTVERSION=	0.9.56
6
PORTREVISION=	3
6
PORTREVISION=	4
7
CATEGORIES=	databases
7
CATEGORIES=	databases
8
MASTER_SITES=	http://fallabs.com/${PORTNAME}/pkg/ \
8
MASTER_SITES=	http://fallabs.com/${PORTNAME}/pkg/ \
9
		LOCAL/sunpoet
9
		LOCAL/sunpoet
Lines 18-23 LIB_DEPENDS= libkyotocabinet.so:databases/kyotocabinet Link Here
18
18
19
OPTIONS_DEFINE=	DOCS LZO
19
OPTIONS_DEFINE=	DOCS LZO
20
20
21
USE_RC_SUBR=	${PORTNAME}
22
21
CONFIGURE_ARGS=	--enable-uyield
23
CONFIGURE_ARGS=	--enable-uyield
22
CPPFLAGS+=	-fPIC
24
CPPFLAGS+=	-fPIC
23
GNU_CONFIGURE=	yes
25
GNU_CONFIGURE=	yes
Lines 28-33 TEST_TARGET= check Link Here
28
USE_LDCONFIG=	yes
30
USE_LDCONFIG=	yes
29
USES=		gmake pkgconfig
31
USES=		gmake pkgconfig
30
32
33
SUB_FILES=	${PORTNAME}
34
SUB_LIST+=	KYOTOTYCOON_USER=${KYOTOTYCOON_USER} \
35
			KYOTOTYCOON_GROUP=${KYOTOTYCOON_GROUP} \
36
			KYOTOTYCOON_PIDFILE=${KYOTOTYCOON_PIDFILE} \
37
			KYOTOTYCOON_DBDIR=${KYOTOTYCOON_DBDIR} \
38
			KYOTOTYCOON_LOGDIR=${KYOTOTYCOON_LOGDIR}
39
40
PLIST_SUB=	KYOTOTYCOON_USER=${KYOTOTYCOON_USER} \
41
			KYOTOTYCOON_GROUP=${KYOTOTYCOON_GROUP} \
42
			KYOTOTYCOON_PIDFILE=${KYOTOTYCOON_PIDFILE} \
43
			KYOTOTYCOON_DBDIR=${KYOTOTYCOON_DBDIR} \
44
			KYOTOTYCOON_LOGDIR=${KYOTOTYCOON_LOGDIR}
45
46
KYOTOTYCOON_USER?=	${PORTNAME}
47
KYOTOTYCOON_GROUP?=	${PORTNAME}
48
49
.if ${KYOTOTYCOON_USER} == "${PORTNAME}"
50
USERS=	${PORTNAME}
51
.endif
52
.if ${KYOTOTYCOON_GROUP} == "${PORTNAME}"
53
GROUPS=	${PORTNAME}
54
.endif
55
56
KYOTOTYCOON_LOGDIR=	/var/log/${PORTNAME}
57
KYOTOTYCOON_DBDIR=	/var/db/${PORTNAME}
58
KYOTOTYCOON_PIDFILE=	/var/run/${PORTNAME}.pid
59
31
PORTDOCS=	*
60
PORTDOCS=	*
32
61
33
LZO_CONFIGURE_OFF=	ac_cv_lib_lzo2_main=no
62
LZO_CONFIGURE_OFF=	ac_cv_lib_lzo2_main=no
(-)b/databases/kyototycoon/files/kyototycoon.in (+55 lines)
Added Link Here
1
#!/bin/sh
2
3
# $FreeBSD$
4
#
5
# PROVIDE: kyototycoon
6
# REQUIRE: LOGIN NETWORKING SERVERS
7
# KEYWORD: shutdown
8
#
9
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
10
# to enable this service:
11
#
12
# kyototycoon_enable    (bool):   Set to NO by default.
13
# Set it to YES to enable kyototycoon.
14
#
15
# kyototycoon_user      (user):   Set to kyototycoon by default.
16
# kyototycoon_group     (group):  Set to kyototycoon by default.
17
# kyototycoon_log       (path):   Path to log file.
18
# kyototycoon_dbdir     (path):   Path to database files.
19
# kyototycoon_sid       (int):    ServerID - 0-65535
20
# kyototycoon_opts      (args):   Additional command-line arguments.
21
. /etc/rc.subr
22
23
name="kyototycoon"
24
rcvar=kyototycoon_enable
25
26
load_rc_config $name
27
28
: ${kyototycoon_enable="NO"}
29
: ${kyototycoon_user:="%%KYOTOTYCOON_USER%%"}
30
: ${kyototycoon_group:="%%KYOTOTYCOON_GROUP%%"}
31
: ${kyototycoon_log="%%KYOTOTYCOON_LOGDIR%%/kyoto.log"}
32
: ${kyototycoon_dbdir="%%KYOTOTYCOON_DBDIR%%"}
33
: ${kyototycoon_sid="1"}
34
: ${kyototycoon_opts:=" -li"}
35
36
pidfile="%%KYOTOTYCOON_PIDFILE%%"
37
command="/usr/sbin/daemon"
38
command_args="-f -c -r -t ${name} -P ${pidfile} \
39
    %%PREFIX%%/bin/ktserver \
40
    -sid ${kyototycoon_sid} \
41
    -log ${kyototycoon_log} \
42
    -bgs ${kyototycoon_dbdir}/snapshots \
43
    -ulog ${kyototycoon_dbdir}/updates \
44
    ${kyototycoon_opts}"
45
46
required_dirs="${kyototycoon_dbdir}/snapshots ${kyototycoon_dbdir}/updates"
47
required_files="${kyototycoon_log}"
48
49
kyototycoon_prestart()
50
{
51
    install -o ${kyototycoon_user} /dev/null ${pidfile}
52
}
53
start_precmd=${name}_prestart
54
55
run_rc_command "$1"

Return to bug 217083