From a845cef355b0eaa313fc56262b340ec38057e595 Mon Sep 17 00:00:00 2001 From: Robby Workman Date: Sun, 18 Jul 2021 02:38:21 -0500 Subject: network/monkey: Don't package /var/run/monkey Since /var/run is a link to /run (and /run is tmpfs), there's no point packaging any subdir of /run or /var/run. It's highly likely that further changes will be needed for this build. Among those are: 1) create /var/run/monkey/ during init (rc.monkey) 2) change ownership of /var/run/monkey/ to apache:apache during init Unrelated to the above, but also needed if this app uses logrotate to rotate its logs: the logrotate file needs to specify the user and group to switch to for the rotation process. See e.g. the logrotate file in network/yadifa/ Signed-off-by: Willy Sudiarto Raharjo --- network/monkey/monkey.SlackBuild | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/network/monkey/monkey.SlackBuild b/network/monkey/monkey.SlackBuild index 7aa95042ed..24f00af8f6 100644 --- a/network/monkey/monkey.SlackBuild +++ b/network/monkey/monkey.SlackBuild @@ -116,10 +116,7 @@ sed -i "s|# Load /usr/lib${LIBDIRSUFFIX}/monkey/monkey-logger.so|Load /usr/lib${ # make log dir mkdir -p $PKG/var/log/monkey -# make run dir -mkdir -p $PKG/var/run/monkey - -# move init script to it's dir +# move init script to its dir mkdir -p $PKG/etc/rc.d install -Dpm 0644 monkey.init $PKG/etc/rc.d/rc.monkey.new -- cgit v1.2.3