ports/109674: net/bacula-server doesn't honor PREFIX

Andrew Kolchoogin andrew at rinet.ru
Wed Feb 28 13:20:04 UTC 2007


>Number:         109674
>Category:       ports
>Synopsis:       net/bacula-server doesn't honor PREFIX
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 28 13:20:04 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Andrew Kolchoogin
>Release:        FreeBSD 6.2-RELEASE alpha
>Organization:
Cronyx Plus LLC
>Environment:
System: FreeBSD mowgli.rinet.ru 6.2-RELEASE-NAT-T FreeBSD 6.2-RELEASE-NAT-T #0: Mon Jan 15 18:25:51 MSK 2007 sallevan at mowgli.rinet.ru:/usr/obj/usr/src/sys-nat-t/UNIX alpha
>Description:
	Port "net/bacula-server" doesn't honor PREFIX seiing
>How-To-Repeat:
	Just build port with PREFIX set to something other than "/usr/local" and try to start Bacula storage daemon.
>Fix:
bagheera# cvs diff -u bacula-sd.in
Index: bacula-sd.in
===================================================================
RCS file: /home/ncvs/ports/sysutils/bacula-server/files/bacula-sd.in,v
retrieving revision 1.2
diff -u -r1.2 bacula-sd.in
--- bacula-sd.in        4 Jan 2007 23:22:30 -0000       1.2
+++ bacula-sd.in        28 Feb 2007 12:41:12 -0000
@@ -18,14 +18,14 @@

 name="bacula_sd"
 rcvar=`set_rcvar`
-command=/usr/local/sbin/bacula-sd
+command=%%PREFIX%%/sbin/bacula-sd

 load_rc_config $name

 pidfile="${bacula_sd_pidfile}"

 : ${bacula_sd_enable="NO"}
-: ${bacula_sd_flags=" -u bacula -g bacula -v -c /usr/local/etc/bacula-sd.conf"}
+: ${bacula_sd_flags=" -u bacula -g bacula -v -c %%PREFIX%%/etc/bacula-sd.conf"}
 : ${bacula_sd_pidfile="/var/run/bacula-sd.9103.pid"}

 run_rc_command "$1"
bagheera#

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list