pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/taskserver taskserver: set absolute path in taskdctl
details: https://anonhg.NetBSD.org/pkgsrc/rev/b3d075551b41
branches: trunk
changeset: 312554:b3d075551b41
user: triaxx <triaxx%pkgsrc.org@localhost>
date: Thu Sep 06 10:55:42 2018 +0000
description:
taskserver: set absolute path in taskdctl
No reason why PREFIX should be in PATH of taskd user.
diffstat:
net/taskserver/Makefile | 11 ++++++++---
net/taskserver/distinfo | 3 ++-
net/taskserver/patches/patch-src_taskdctl | 17 +++++++++++++++++
3 files changed, 27 insertions(+), 4 deletions(-)
diffs (67 lines):
diff -r 17ef12fb3624 -r b3d075551b41 net/taskserver/Makefile
--- a/net/taskserver/Makefile Thu Sep 06 09:47:47 2018 +0000
+++ b/net/taskserver/Makefile Thu Sep 06 10:55:42 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2018/09/02 09:53:14 triaxx Exp $
+# $NetBSD: Makefile,v 1.2 2018/09/06 10:55:42 triaxx Exp $
DISTNAME= taskd-1.1.0
PKGNAME= ${DISTNAME:S/taskd/taskserver/}
@@ -27,7 +27,7 @@
PKG_GROUPS= ${TASKD_GROUP}
PKG_USERS= ${TASKD_USER}:${TASKD_GROUP}
PKG_GROUPS_VARS= TASKD_USER
-PKG_USERS_VARS= TASKD_GROUP
+PKG_USERS_VARS= TASKD_GROUP
PKG_HOME.${TASKD_USER}= ${TASKD_DATA}
FILES_SUBST+= TASKD_USER=${TASKD_USER} TASKD_GROUP=${TASKD_GROUP} \
@@ -43,8 +43,13 @@
BUILD_DEFS+= TASKD_USER TASKD_GROUP TASKD_DATA VARBASE
REPLACE_SH= src/taskdctl
+SUBST_CLASSES+= abspath
+SUBST_STAGE.abspath= post-configure
+SUBST_MESSAGE.abspath= Set absolute paths.
+SUBST_FILES.abspath= src/taskdctl
+SUBST_VARS.abspath= PREFIX
-MAKE_DIRS= + ${TASKD_DATA}
+MAKE_DIRS+= ${TASKD_DATA}
OWN_DIRS_PERMS+= ${TASKD_DATA} ${TASKD_USER} ${TASKD_GROUP} 0750
RCD_SCRIPTS= taskd
diff -r 17ef12fb3624 -r b3d075551b41 net/taskserver/distinfo
--- a/net/taskserver/distinfo Thu Sep 06 09:47:47 2018 +0000
+++ b/net/taskserver/distinfo Thu Sep 06 10:55:42 2018 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.1 2018/09/02 09:53:14 triaxx Exp $
+$NetBSD: distinfo,v 1.2 2018/09/06 10:55:42 triaxx Exp $
SHA1 (taskd-1.1.0.tar.gz) = ded339deeee65277e4712f71a9159502f8b20b52
RMD160 (taskd-1.1.0.tar.gz) = f5256fda0de4dc46a4f09167666e81bed3452f69
SHA512 (taskd-1.1.0.tar.gz) = df2349c354258fd1b014b1a9c78f68dc10c9e5a48357e282e8a760cf4e4aaf4d36486796ad094ee2b050e7506195b778e3316c90ef543a2f8242de313daa13aa
Size (taskd-1.1.0.tar.gz) = 120115 bytes
SHA1 (patch-src_TLSServer.cpp) = 6e47c0ef59dc6c265539152b7abce75b5e518d45
+SHA1 (patch-src_taskdctl) = 539aee5b4e5a3c32203dcc4cec2d3980ef1c3397
diff -r 17ef12fb3624 -r b3d075551b41 net/taskserver/patches/patch-src_taskdctl
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/taskserver/patches/patch-src_taskdctl Thu Sep 06 10:55:42 2018 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-src_taskdctl,v 1.1 2018/09/06 10:55:42 triaxx Exp $
+
+No assumption should be made that PREFIX is in PATH of taskd user.
+
+--- src/taskdctl.orig 2015-05-10 21:35:22.000000000 +0000
++++ src/taskdctl
+@@ -31,8 +31,8 @@ if [ -z $TASKDDATA ] ; then
+ exit
+ fi
+
+-PIDFILE=$(taskd config --data $TASKDDATA | grep pid.file | awk '{print $2}')
+-DAEMON="taskd server --data $TASKDDATA --daemon"
++PIDFILE=$(@PREFIX@/bin/taskd config --data $TASKDDATA | grep pid.file | awk '{print $2}')
++DAEMON="@PREFIX@/bin/taskd server --data $TASKDDATA --daemon"
+
+ ERROR=0
+ ARGV="$@"
Home |
Main Index |
Thread Index |
Old Index