FreeBSD Bugzilla – Attachment 171531 Details for
Bug 210368
[PATCH] net-mgmt/nfsen: Fix some installation ownership issues
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
patch
patch.txt (text/plain), 2.69 KB, created by
Craig Leres
on 2016-06-18 02:48:41 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Craig Leres
Created:
2016-06-18 02:48:41 UTC
Size:
2.69 KB
patch
obsolete
>Index: net-mgmt/nfsen/Makefile >=================================================================== >--- net-mgmt/nfsen/Makefile (revision 417042) >+++ net-mgmt/nfsen/Makefile (working copy) >@@ -25,7 +25,9 @@ > USE_PHP= session pcre sockets > NO_BUILD= yes > NO_ARCH= yes >-PLIST_SUB+= PORTNAME=${PORTNAME} >+NFSENOWN?= www >+PLIST_SUB+= "PORTNAME=${PORTNAME}" >+PLIST_SUB+= "NFSENOWN=${NFSENOWN}" > USE_RC_SUBR= nfsen > perl_OLD_CMD= %%PERL%% > SHEBANG_FILES= bin/testPlugin bin/RebuildHierarchy.pl bin/nfsen bin/nfsend libexec/NfSenRRD.pm \ >@@ -40,6 +42,7 @@ > SUB_LIST+= "PREFIX=${PREFIX}" > SUB_LIST+= "WWWDIR=${WWWDIR}" > SUB_LIST+= "PORTNAME=${PORTNAME}" >+SUB_LIST+= "NFSENOWN=${NFSENOWN}" > > post-patch: > .for nfsenfile in ${REINPLACE_LIST} >Index: net-mgmt/nfsen/files/nfsen.in >=================================================================== >--- net-mgmt/nfsen/files/nfsen.in (revision 417042) >+++ net-mgmt/nfsen/files/nfsen.in (working copy) >@@ -15,6 +15,7 @@ > > nfsen_enable=${nfsen_enable-"NO"} > #nfsen_flags=${nfsen_flags-""} >+nfsen_user=${nfsen_user-"%%NFSENOWN%%"} > > command="%%PREFIX%%/bin/nfsen" > start_cmd="%%PREFIX%%/bin/nfsen start" >@@ -34,6 +35,7 @@ > if [ ! -e %%PREFIX%%/var/nfsen/profiles-stat/live/profile.dat ]; then > time=$(/bin/date +%s); > timeu=$(/bin/expr $time - 300); >+ profile_dat=%%PREFIX%%/var/nfsen/profiles-stat/live/profile.dat > /usr/bin/printf "name = live > group = . > tbegin = $time >@@ -47,7 +49,8 @@ > type = 0 > locked = 0 > status = OK >- version = 130" | /usr/bin/tr -d '\011' > %%PREFIX%%/var/nfsen/profiles-stat/live/profile.dat; >+ version = 130" | /usr/bin/tr -d '\011' > ${profile_dat} >+ chown ${nfsen_user} ${profile_dat} > fi > } > >Index: net-mgmt/nfsen/pkg-plist >=================================================================== >--- net-mgmt/nfsen/pkg-plist (revision 417042) >+++ net-mgmt/nfsen/pkg-plist (working copy) >@@ -74,13 +74,13 @@ > %%WWWDIR%%/colour_picker.html > %%WWWDIR%%/colour_palette.html > %%WWWDIR%%/alerting.php >-@dir var/%%PORTNAME%%/run >-@dir var/%%PORTNAME%%/profiles-stat/live >-@dir var/%%PORTNAME%%/profiles-stat >-@dir var/%%PORTNAME%%/profiles-data/live >-@dir var/%%PORTNAME%%/profiles-data >-@dir var/%%PORTNAME%%/profiles/live >-@dir var/%%PORTNAME%%/profiles >-@dir var/%%PORTNAME%%/filters >-@dir var/%%PORTNAME%% >+@dir(%%NFSENOWN%%,,) var/%%PORTNAME%%/run >+@dir(%%NFSENOWN%%,,) var/%%PORTNAME%%/profiles-stat/live >+@dir(%%NFSENOWN%%,,) var/%%PORTNAME%%/profiles-stat >+@dir(%%NFSENOWN%%,,) var/%%PORTNAME%%/profiles-data/live >+@dir(%%NFSENOWN%%,,) var/%%PORTNAME%%/profiles-data >+@dir(%%NFSENOWN%%,,) var/%%PORTNAME%%/profiles/live >+@dir(%%NFSENOWN%%,,) var/%%PORTNAME%%/profiles >+@dir(%%NFSENOWN%%,,) var/%%PORTNAME%%/filters >+@dir(%%NFSENOWN%%,,) var/%%PORTNAME%% > @dir var
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 210368
:
171531
|
171532
|
171533