Ticket #39602: patch-prefix.diff
File patch-prefix.diff, 8.4 KB (added by fclaire@…, 11 years ago) |
---|
-
Misc/Portable.h
old new 161 161 #endif 162 162 163 163 #if defined(LINUX) || defined(BSD) || defined(SUNOS) 164 #define WORKDIR " /var/lib/dibbler"164 #define WORKDIR "@@PREFIX@@/var/lib/dibbler" 165 165 #define DEFAULT_SCRIPT "" 166 #define CLNTCONF_FILE " /etc/dibbler/client.conf"167 #define SRVCONF_FILE " /etc/dibbler/server.conf"168 #define RELCONF_FILE " /etc/dibbler/relay.conf"166 #define CLNTCONF_FILE "@@PREFIX@@/etc/dibbler/client.conf" 167 #define SRVCONF_FILE "@@PREFIX@@/etc/dibbler/server.conf" 168 #define RELCONF_FILE "@@PREFIX@@/etc/dibbler/relay.conf" 169 169 #define RESOLVCONF_FILE "/etc/resolv.conf" 170 170 #define NTPCONF_FILE "/etc/ntp.conf" 171 #define RADVD_FILE " /etc/dibbler/radvd.conf"172 #define CLNTPID_FILE " /var/lib/dibbler/client.pid"173 #define SRVPID_FILE " /var/lib/dibbler/server.pid"174 #define RELPID_FILE " /var/lib/dibbler/relay.pid"175 #define CLNTLOG_FILE " /var/log/dibbler/dibbler-client.log"176 #define SRVLOG_FILE " /var/log/dibbler/dibbler-server.log"177 #define RELLOG_FILE " /var/log/dibbler/dibbler-relay.log"171 #define RADVD_FILE "@@PREFIX@@/etc/dibbler/radvd.conf" 172 #define CLNTPID_FILE "@@PREFIX@@/var/lib/dibbler/client.pid" 173 #define SRVPID_FILE "@@PREFIX@@/var/lib/dibbler/server.pid" 174 #define RELPID_FILE "@@PREFIX@@/var/lib/dibbler/relay.pid" 175 #define CLNTLOG_FILE "@@PREFIX@@/var/log/dibbler/dibbler-client.log" 176 #define SRVLOG_FILE "@@PREFIX@@/var/log/dibbler/dibbler-server.log" 177 #define RELLOG_FILE "@@PREFIX@@/var/log/dibbler/dibbler-relay.log" 178 178 #define NULLFILE "/dev/null" 179 179 180 180 /* those defines were initially used on Linux only, but hopefully -
Misc/Portable.h.in
old new 161 161 #endif 162 162 163 163 #if defined(LINUX) || defined(BSD) || defined(SUNOS) 164 #define WORKDIR " /var/lib/dibbler"164 #define WORKDIR "@@PREFIX@@/var/lib/dibbler" 165 165 #define DEFAULT_SCRIPT "" 166 #define CLNTCONF_FILE " /etc/dibbler/client.conf"167 #define SRVCONF_FILE " /etc/dibbler/server.conf"168 #define RELCONF_FILE " /etc/dibbler/relay.conf"166 #define CLNTCONF_FILE "@@PREFIX@@/etc/dibbler/client.conf" 167 #define SRVCONF_FILE "@@PREFIX@@/etc/dibbler/server.conf" 168 #define RELCONF_FILE "@@PREFIX@@/etc/dibbler/relay.conf" 169 169 #define RESOLVCONF_FILE "/etc/resolv.conf" 170 170 #define NTPCONF_FILE "/etc/ntp.conf" 171 #define RADVD_FILE " /etc/dibbler/radvd.conf"172 #define CLNTPID_FILE " /var/lib/dibbler/client.pid"173 #define SRVPID_FILE " /var/lib/dibbler/server.pid"174 #define RELPID_FILE " /var/lib/dibbler/relay.pid"175 #define CLNTLOG_FILE " /var/log/dibbler/dibbler-client.log"176 #define SRVLOG_FILE " /var/log/dibbler/dibbler-server.log"177 #define RELLOG_FILE " /var/log/dibbler/dibbler-relay.log"171 #define RADVD_FILE "@@PREFIX@@/etc/dibbler/radvd.conf" 172 #define CLNTPID_FILE "@@PREFIX@@/var/lib/dibbler/client.pid" 173 #define SRVPID_FILE "@@PREFIX@@/var/lib/dibbler/server.pid" 174 #define RELPID_FILE "@@PREFIX@@/var/lib/dibbler/relay.pid" 175 #define CLNTLOG_FILE "@@PREFIX@@/var/log/dibbler/dibbler-client.log" 176 #define SRVLOG_FILE "@@PREFIX@@/var/log/dibbler/dibbler-server.log" 177 #define RELLOG_FILE "@@PREFIX@@/var/log/dibbler/dibbler-relay.log" 178 178 #define NULLFILE "/dev/null" 179 179 180 180 /* those defines were initially used on Linux only, but hopefully -
Port-bsd/lowlevel-bsd.c
old new 492 493 uint32_t ret; 493 494 FILE *file; 494 495 495 strcpy(filename, " /var/lib/dibbler/AAA/AAA-SPI");496 strcpy(filename, "@@PREFIX@@/var/lib/dibbler/AAA/AAA-SPI"); 496 497 497 498 if (stat(filename, &st)) 498 499 return 0; … … 510 511 char * getAAAKeyFilename(uint32_t SPI) { 511 512 static char filename[1024]; 512 513 if (SPI != 0) 513 snprintf(filename, 1024, "%s%s%x", " /var/lib/dibbler/AAA/", "AAA-key-",514 snprintf(filename, 1024, "%s%s%x", "@@PREFIX@@/var/lib/dibbler/AAA/", "AAA-key-", 514 515 SPI); 515 516 else 516 strcpy(filename, " /var/lib/dibbler/AAA/AAA-key");517 strcpy(filename, "@@PREFIX@@/var/lib/dibbler/AAA/AAA-key"); 517 518 return filename; 518 519 } 519 520 -
doc/examples/client.conf
old new 21 21 log-level 7 22 22 23 23 # Uncomment this line to run script every time response is received 24 # script " /var/lib/dibbler/client-notify.sh"24 # script "@@PREFIX@@/var/lib/dibbler/client-notify.sh" 25 25 26 26 27 27 # Current Dibbler release adds obtained addresses with /64 prefix. Although -
doc/examples/server.conf
old new 12 12 log-mode short 13 13 14 14 # Uncomment this line to call script every time a response is sent 15 #script " /var/lib/dibbler/server-notify.sh"15 #script "@@PREFIX@@/var/lib/dibbler/server-notify.sh" 16 16 17 17 # set preference of this server to 0 (higher = more prefered) 18 18 preference 0 -
doc/man/dibbler-client.8
old new 76 76 More examples can be found in the User's Guide. 77 77 78 78 .SH FILES 79 All files are created in the /var/lib/dibbler directory. Dibbler80 client reads /var/lib/dibbler/client.conf file. During operation,79 All files are created in the @@PREFIX@@/var/lib/dibbler directory. Dibbler 80 client reads @@PREFIX@@/var/lib/dibbler/client.conf file. During operation, 81 81 Dibbler saves various file in that directory. After reception of the 82 82 DNS servers or domain informations, they are added to the 83 83 /etc/resolv.conf file. After shutdown, that information is removed -
doc/man/dibbler-server.8
old new 79 79 More examples can be found in the User's Guide. 80 80 81 81 .SH FILES 82 All files are created in the /var/lib/dibbler directory. Dibbler83 server reads /var/lib/dibbler/server.conf file. During operation,82 All files are created in the @@PREFIX@@/var/lib/dibbler directory. Dibbler 83 server reads @@PREFIX@@/var/lib/dibbler/server.conf file. During operation, 84 84 Dibbler saves various file in that directory. Log file is named client.log. 85 85 86 86 .SH STANDARDS -
doc/man/dibbler-relay.8
old new 93 93 .fi 94 94 95 95 .SH FILES 96 All files are created in the /var/lib/dibbler directory. During operation,96 All files are created in the @@PREFIX@@/var/lib/dibbler directory. During operation, 97 97 Dibbler saves various file in that directory. Dibbler relay reads 98 /etc/dibbler/relay.conf file. Log file is named client.log.98 @@PREFIX@@/etc/dibbler/relay.conf file. Log file is named client.log. 99 99 100 100 .SH STANDARDS 101 101 This implementation aims at conformance to the following standards: -
scripts/notify-scripts/client-notify-bsd.sh
old new 4 4 # This script was tested on OpenBSD, but it is likely to work on other BSDs as well. 5 5 6 6 version="v0.2.3-openbsd" 7 LOGFILE= /var/lib/dibbler/client-notify-bsd.log7 LOGFILE=@@PREFIX@@/var/lib/dibbler/client-notify-bsd.log 8 8 9 9 # uncomment this to get full list of available variables 10 10 set >> $LOGFILE … … 71 71 72 72 if [ -n "$PREFIX1" ]; then 73 73 echo "Prefix ${PREFIX1} (operation $1) to client $REMOTE_ADDR on inteface $IFACE/$IFINDEX" >> $LOGFILE 74 PREFIXIFACE=`cat /etc/dibbler/client.conf | grep -i downlink | grep -v -e '^#' | awk -F" " '{ print $2; }' | sed 's/\"//g'`74 PREFIXIFACE=`cat @@PREFIX@@/etc/dibbler/client.conf | grep -i downlink | grep -v -e '^#' | awk -F" " '{ print $2; }' | sed 's/\"//g'` 75 75 ifconfig $PREFIXIFACE inet6 "$PREFIX1"1 prefixlen $PREFIX1LEN 76 76 fi 77 77 -
scripts/notify-scripts/server-notify.sh
old new 6 6 # 7 7 # Many parameters will be passed as environment variables 8 8 9 LOGFILE= /var/lib/dibbler/server-notify.log9 LOGFILE=@@PREFIX@@/var/lib/dibbler/server-notify.log 10 10 11 11 echo "---$1--------" >> $LOGFILE 12 12 date >> $LOGFILE