ports/71916: [PATCH] www/plugger doesn't honor his config

Jose M Rodriguez josemi at freebsd.jazztel.es
Sun Sep 19 20:50:24 UTC 2004


>Number:         71916
>Category:       ports
>Synopsis:       [PATCH] www/plugger doesn't honor his config
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Sep 19 20:50:20 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Jose M Rodriguez
>Release:        FreeBSD 5.3-BETA5 i386
>Organization:
Redes JM
>Environment:
System: FreeBSD orion.redesjm.local 5.3-BETA5 FreeBSD 5.3-BETA5 #0: Sun Sep 19 06:18:06 CEST 2004 root at antares.redesjm.local:/usr/obj/usr/src/sys/ORION i386


>Description:
	www/plugger install his rc file under ${PREFIX}/etc/, but looks for
	it in fixed places, and not under ${X11BASE}/etc/, where it is
	installed by default

>How-To-Repeat:

>Fix:

	attached patch make plugger looks for his rc file under ${PREFIX}/etc/
	and not in fixed locations out of ${HOME} or ${PREFIX}

--- patch-plugger begins here ---
diff -ruN --exclude=CVS /usr/ports/www/plugger/files/patch-Makefile.in www/plugger/files/patch-Makefile.in
--- /usr/ports/www/plugger/files/patch-Makefile.in	Fri Jul  9 16:01:31 2004
+++ www/plugger/files/patch-Makefile.in	Fri Sep 10 15:04:10 2004
@@ -1,5 +1,5 @@
---- Makefile.in.orig	Wed Jul  7 03:13:00 2004
-+++ Makefile.in	Wed Jul  7 03:21:47 2004
+--- Makefile.in.orig	Sun May 16 01:02:46 2004
++++ Makefile.in	Fri Sep 10 15:03:17 2004
 @@ -30,7 +30,7 @@
  CC=@CC@
  LD=@LD@
@@ -27,3 +27,12 @@
  all: plugger.so plugger-$(VERSION) plugger-controller
  
  
+@@ -132,7 +132,7 @@
+ plugger-helper.o: plugger.h
+ 
+ plugger.o: plugger.c plugger.h
+-	$(CC) -c $(SHARED_CFLAGS) -o plugger.o plugger.c
++	$(CC) -c $(SHARED_CFLAGS) -DSYSCONFDIR=\"$(prefix)/etc\" -o plugger.o plugger.c
+ 
+ plugger-common.o: plugger-common.c plugger.h
+ 	$(CC) -c $(SHARED_CFLAGS) -o plugger-common.o plugger-common.c
diff -ruN --exclude=CVS /usr/ports/www/plugger/files/patch-plugger.c www/plugger/files/patch-plugger.c
--- /usr/ports/www/plugger/files/patch-plugger.c	Thu Jan  1 01:00:00 1970
+++ www/plugger/files/patch-plugger.c	Fri Sep 10 15:04:22 2004
@@ -0,0 +1,19 @@
+--- plugger.c.orig	Fri Sep 10 14:42:03 2004
++++ plugger.c	Fri Sep 10 15:00:52 2004
+@@ -624,16 +624,6 @@
+   if(cb(fname, data)) return 1;
+ #endif
+ 
+-  sprintf(fname,"/usr/local/netscape/%s",basename);
+-  if(cb(fname, data)) return 1;
+-  sprintf(fname,"/etc/%s",basename);
+-  if(cb(fname, data)) return 1;
+-  sprintf(fname,"/usr/etc/%s",basename);
+-  if(cb(fname, data)) return 1;
+-  sprintf(fname,"/usr/local/etc/%s",basename);
+-  if(cb(fname, data)) return 1;
+-  if(cb(basename, data)) return 1;
+-  
+   return 0;
+ }
+ 
--- patch-plugger ends here ---


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



More information about the freebsd-ports-bugs mailing list