aboutsummaryrefslogtreecommitdiffstats
path: root/databases/kyototycoon/Makefile
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2017-05-21 05:51:02 +0800
committersunpoet <sunpoet@FreeBSD.org>2017-05-21 05:51:02 +0800
commit6292466af39f4a5340e04133235ce571e7de4242 (patch)
tree56ff41b3c880d3e9eb202c63f6781a3e26cdf6c0 /databases/kyototycoon/Makefile
parent6c8ca2c9232337fd9e56f3dd5d795e893ba179a5 (diff)
downloadfreebsd-ports-gnome-6292466af39f4a5340e04133235ce571e7de4242.tar.gz
freebsd-ports-gnome-6292466af39f4a5340e04133235ce571e7de4242.tar.zst
freebsd-ports-gnome-6292466af39f4a5340e04133235ce571e7de4242.zip
Add rc.d script
- Assign default UID and GID - Bump PORTREVISION for package change PR: 217083 Submitted by: Dave Cottlehuber <dch@skunkwerks.at>
Diffstat (limited to 'databases/kyototycoon/Makefile')
-rw-r--r--databases/kyototycoon/Makefile23
1 files changed, 22 insertions, 1 deletions
diff --git a/databases/kyototycoon/Makefile b/databases/kyototycoon/Makefile
index 43f4db831c2b..d437fcf28c1e 100644
--- a/databases/kyototycoon/Makefile
+++ b/databases/kyototycoon/Makefile
@@ -3,7 +3,7 @@
PORTNAME= kyototycoon
PORTVERSION= 0.9.56
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= databases
MASTER_SITES= http://fallabs.com/${PORTNAME}/pkg/ \
LOCAL/sunpoet
@@ -26,9 +26,30 @@ MAKE_ARGS= PCDIR=${PREFIX}/libdata/pkgconfig
REINPLACE_ARGS= -i ''
TEST_TARGET= check
USE_LDCONFIG= yes
+USE_RC_SUBR= ${PORTNAME}
USES= gmake pkgconfig
+PLIST_SUB= KYOTOTYCOON_USER=${KYOTOTYCOON_USER} \
+ KYOTOTYCOON_GROUP=${KYOTOTYCOON_GROUP} \
+ KYOTOTYCOON_DBDIR=${KYOTOTYCOON_DBDIR} \
+ KYOTOTYCOON_LOGDIR=${KYOTOTYCOON_LOGDIR} \
+ KYOTOTYCOON_PIDFILE=${KYOTOTYCOON_PIDFILE}
PORTDOCS= *
+SUB_FILES= ${PORTNAME}
+SUB_LIST= KYOTOTYCOON_USER=${KYOTOTYCOON_USER} \
+ KYOTOTYCOON_GROUP=${KYOTOTYCOON_GROUP} \
+ KYOTOTYCOON_DBDIR=${KYOTOTYCOON_DBDIR} \
+ KYOTOTYCOON_LOGDIR=${KYOTOTYCOON_LOGDIR} \
+ KYOTOTYCOON_PIDFILE=${KYOTOTYCOON_PIDFILE}
+
+USERS= ${KYOTOTYCOON_USER}
+GROUPS= ${KYOTOTYCOON_GROUP}
+
+KYOTOTYCOON_USER?= ${PORTNAME}
+KYOTOTYCOON_GROUP?= ${PORTNAME}
+KYOTOTYCOON_DBDIR?= /var/db/${PORTNAME}
+KYOTOTYCOON_LOGDIR?= /var/log/${PORTNAME}
+KYOTOTYCOON_PIDFILE?= /var/run/${PORTNAME}.pid
LZO_CONFIGURE_OFF= ac_cv_lib_lzo2_main=no
LZO_CONFIGURE_ON= ac_cv_lib_lzo2_main=yes