1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

- look for conf file in ${PREFIX}/etc/ and not in fixed locations

out of ${HOME} or ${PREFIX}

PR:		ports/71916
Submitted by:	Jose M Rodriguez <josemi(at)freebsd.jazztel.es>
This commit is contained in:
Sergey Matveychuk 2005-02-14 13:55:47 +00:00
parent aaae945103
commit ea0581a2a0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=128782
2 changed files with 30 additions and 2 deletions

View File

@ -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

View File

@ -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;
}