Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 123679 Details for
Bug 184002
net-analyzer/bandwidthd-2.0.1 (new package)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch file
gentoo-dir.patch (text/plain), 17.86 KB, created by
Steve Yin
on 2007-07-02 16:55:31 UTC
(
hide
)
Description:
patch file
Filename:
MIME Type:
Creator:
Steve Yin
Created:
2007-07-02 16:55:31 UTC
Size:
17.86 KB
patch
obsolete
>diff -ru bandwidthd-2.0.1/bandwidthd.c bandwidthd-2.0.1.new/bandwidthd.c >--- bandwidthd-2.0.1/bandwidthd.c 2005-01-12 05:27:26.000000000 +0800 >+++ bandwidthd-2.0.1.new/bandwidthd.c 2007-07-03 00:27:57.000000000 +0800 >@@ -34,6 +34,8 @@ > int DataLink; > int IP_Offset; > >+char ConfigFile[256] = "/etc/bandwidthd.conf"; >+ > struct IPDataStore *IPDataStore = NULL; > extern int bdconfig_parse(void); > extern FILE *bdconfig_in; >@@ -73,11 +75,25 @@ > } > } > >+void print_help(int exitcode) >+{ >+ printf("Usage: bandwidthd -c config -p pidfile -o outdir [-l | -D | -h]\n"); >+ printf("\t -c config \t Use config specified file\n"); >+ printf("\t -p pidfile \t Use specified pid file\n"); >+ printf("\t -o outdir \t Set output directory\n"); >+ printf("\t -l\t\t List interface\n"); >+ printf("\t -D\t\t Run in foreground\n"); >+ printf("\t -h\t\t Display this message\n"); >+ exit(exitcode); >+} >+ > void bd_CollectingData(char *filename) > { > FILE *index; > >- index = fopen(filename, "wt"); >+ char buffer[512]; >+ sprintf(buffer, "%s/%s", config.datadir, filename); >+ index = fopen(buffer, "wt"); > if (index) > { > fprintf(index, "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n"); >@@ -209,20 +225,20 @@ > { > FILE *pidfile; > >- pidfile = fopen("/var/run/bandwidthd.pid", "wt"); >+ pidfile = fopen(config.pidfile, "wt"); > if (pidfile) > { > if (fprintf(pidfile, "%d\n", pid) == 0) > { >- syslog(LOG_ERR, "Bandwidthd: failed to write '%d' to /var/run/bandwidthd.pid", pid); >+ syslog(LOG_ERR, "Bandwidthd: failed to write '%d' to %s", pid, config.pidfile); > fclose(pidfile); >- unlink("/var/run/bandwidthd.pid"); >+ unlink(config.pidfile); > } > else > fclose(pidfile); > } > else >- syslog(LOG_ERR, "Could not open /var/run/bandwidthd.pid for write"); >+ syslog(LOG_ERR, "Could not open %s for write", config.pidfile); > } > > >@@ -234,7 +250,6 @@ > pcap_if_t *Devices; > #endif > char Error[PCAP_ERRBUF_SIZE]; >- struct stat StatBuf; > int i; > int ForkBackground = TRUE; > int ListDevices = FALSE; >@@ -251,46 +266,12 @@ > config.meta_refresh = CONFIG_METAREFRESH; > config.output_database = FALSE; > config.db_connect_string = NULL; >- config.sensor_id = "unset"; >+ config.sensor_id = "unset"; >+ config.pidfile = NULL;//"/var/run/bandwidthd.pid"; >+ config.datadir = NULL;//"/root/data/"; > > openlog("bandwidthd", LOG_CONS, LOG_DAEMON); > >- if (stat("./etc/bandwidthd.conf", &StatBuf)) >- { >- chdir(INSTALL_DIR); >- if (stat("./etc/bandwidthd.conf", &StatBuf)) >- { >- printf("Cannot find ./etc/bandwidthd.conf or %s/etc/bandwidthd.conf\n", INSTALL_DIR); >- syslog(LOG_ERR, "Cannot find ./etc/bandwidthd.conf or %s/etc/bandwidthd.conf", INSTALL_DIR); >- exit(1); >- } >- } >- >- bdconfig_in = fopen("./etc/bandwidthd.conf", "rt"); >- if (!bdconfig_in) >- { >- syslog(LOG_ERR, "Cannot open bandwidthd.conf"); >- printf("Cannot open ./etc/bandwidthd.conf\n"); >- exit(1); >- } >- bdconfig_parse(); >- /* >- // Scary >- printf("Estimated max ram utilization\nDataPoints = %.0f/%ld = %.0f\nIPData = %d * DataPoints = %.1f (%.2fKBytes) per IP\nIP_NUM = %d\nTotal = %.1fMBytes * 4 to 8 = %.1fMBytes to %.1fMBytes\n", >- RANGE1, INTERVAL1, RANGE1/INTERVAL1, >- sizeof(struct IPData), >- (float) sizeof(struct IPData)*(RANGE1/INTERVAL1), >- (float) (sizeof(struct IPData)*(RANGE1/INTERVAL1))/1024.0, >- IP_NUM, >- (float)((sizeof(struct IPData)*(RANGE1/INTERVAL1)*IP_NUM)/1024.0)/1024.0, >- (float)4*((sizeof(struct IPData)*(RANGE1/INTERVAL1)*IP_NUM)/1024.0)/1024.0, >- (float)8*((sizeof(struct IPData)*(RANGE1/INTERVAL1)*IP_NUM)/1024.0)/1024.0); >- printf("Sizeof unsigned long: %d, sizeof unsigned long long: %d\n%lu, %llu\n", >- sizeof(unsigned long), sizeof (unsigned long long), >- (unsigned long) (0-1), (unsigned long long) (0-1)); >- exit(1); >- */ >- > for(Counter = 1; Counter < argc; Counter++) > { > if (argv[Counter][0] == '-') >@@ -303,6 +284,17 @@ > case 'l': > ListDevices = TRUE; > break; >+ case 'c': >+ strncpy(ConfigFile, argv[Counter]+3, 256); >+ break; >+ case 'p': >+ config.pidfile = argv[Counter]+3; >+ break; >+ case 'o': >+ config.datadir = argv[Counter]+3; >+ break; >+ case 'h': >+ print_help(0); > default: > printf("Improper argument: %s\n", argv[Counter]); > exit(1); >@@ -310,6 +302,18 @@ > } > } > >+ bdconfig_in = fopen(ConfigFile, "rt"); >+ if (!bdconfig_in) >+ { >+ syslog(LOG_ERR, "Cannot open bandwidthd.conf"); >+ printf("Cannot open %s\n", ConfigFile); >+ exit(1); >+ } >+ bdconfig_parse(); >+ >+ if(config.pidfile == NULL || config.datadir == NULL) >+ print_help(1); >+ > #ifdef HAVE_PCAP_FINDALLDEVS > pcap_findalldevs(&Devices, Error); > if (config.dev == NULL && Devices->name) >@@ -333,10 +337,10 @@ > > if (config.graph) > { >- bd_CollectingData("htdocs/index.html"); >- bd_CollectingData("htdocs/index2.html"); >- bd_CollectingData("htdocs/index3.html"); >- bd_CollectingData("htdocs/index4.html"); >+ bd_CollectingData("index.html"); >+ bd_CollectingData("index2.html"); >+ bd_CollectingData("index3.html"); >+ bd_CollectingData("index4.html"); > } > > /* detach from console. */ >@@ -884,23 +888,27 @@ > FILE *cdf; > struct Statistics *Stats; > char IPBuffer[50]; >- char logfile[] = "log.1.0.cdf"; >- >- logfile[4] = config.tag; >- >- cdf = fopen(logfile, "at"); >+ char logfile[512]; >+ sprintf(logfile, "%s/log.1.0.cdf", config.datadir); >+ logfile[strlen(logfile)-7] = config.tag; >+ >+ if((cdf = fopen(logfile, "at"))) >+ { >+ for (counter=0; counter < IpCount; counter++) >+ { >+ IPData = &IncData[counter]; >+ HostIp2CharIp(IPData->ip, IPBuffer); >+ fprintf(cdf, "%s,%lu,", IPBuffer, IPData->timestamp); >+ Stats = &(IPData->Send); >+ fprintf(cdf, "%llu,%llu,%llu,%llu,%llu,%llu,%llu,", Stats->total, Stats->icmp, Stats->udp, Stats->tcp, Stats->ftp, Stats->http, Stats->p2p); >+ Stats = &(IPData->Receive); >+ fprintf(cdf, "%llu,%llu,%llu,%llu,%llu,%llu,%llu\n", Stats->total, Stats->icmp, Stats->udp, Stats->tcp, Stats->ftp, Stats->http, Stats->p2p); >+ } >+ fclose(cdf); >+ } >+ else >+ syslog(LOG_ERR, "Can not open log to write data"); > >- for (counter=0; counter < IpCount; counter++) >- { >- IPData = &IncData[counter]; >- HostIp2CharIp(IPData->ip, IPBuffer); >- fprintf(cdf, "%s,%lu,", IPBuffer, IPData->timestamp); >- Stats = &(IPData->Send); >- fprintf(cdf, "%llu,%llu,%llu,%llu,%llu,%llu,%llu,", Stats->total, Stats->icmp, Stats->udp, Stats->tcp, Stats->ftp, Stats->http, Stats->p2p); >- Stats = &(IPData->Receive); >- fprintf(cdf, "%llu,%llu,%llu,%llu,%llu,%llu,%llu\n", Stats->total, Stats->icmp, Stats->udp, Stats->tcp, Stats->ftp, Stats->http, Stats->p2p); >- } >- fclose(cdf); > } > > void _StoreIPDataInRam(struct IPData *IPData) >@@ -1000,8 +1008,12 @@ > static int MayGraph = TRUE; > unsigned int counter; > struct stat StatBuf; >- char logname1[] = "log.1.5.cdf"; >- char logname2[] = "log.1.4.cdf"; >+ char logname1[512]; >+ sprintf(logname1, "%s/log.1.5.cdf", config.datadir); >+ char logname2[512]; >+ sprintf(logname1, "%s/log.1.4.cdf", config.datadir); >+ >+ int tag = strlen(logname1) - 7; > // Set the timestamps > for (counter=0; counter < IpCount; counter++) > IpTable[counter].timestamp = timestamp; >@@ -1019,29 +1031,29 @@ > > if (RotateLogs >= config.range/RANGE1) // We set this++ on HUP > { >- logname1[4] = config.tag; >- logname2[4] = config.tag; >- logname2[6] = '5'; >+ logname1[tag] = config.tag; >+ logname2[tag] = config.tag; >+ logname2[tag+2] = '5'; > > if (!stat(logname2, &StatBuf)) // File exists > unlink(logname2); >- logname1[6] = '4'; >+ logname1[tag+2] = '4'; > if (!stat(logname1, &StatBuf)) // File exists > rename(logname1, logname2); >- logname1[6] = '3'; >- logname2[6] = '4'; >+ logname1[tag+2] = '3'; >+ logname2[tag+2] = '4'; > if (!stat(logname1, &StatBuf)) // File exists > rename(logname1, logname2); >- logname1[6] = '2'; >- logname2[6] = '3'; >+ logname1[tag+2] = '2'; >+ logname2[tag+2] = '3'; > if (!stat(logname1, &StatBuf)) // File exists > rename(logname1, logname2); >- logname1[6] = '1'; >- logname2[6] = '2'; >+ logname1[tag+2] = '1'; >+ logname2[tag+2] = '2'; > if (!stat(logname1, &StatBuf)) // File exists > rename(logname1, logname2); >- logname1[6] = '0'; >- logname2[6] = '1'; >+ logname1[tag+2] = '0'; >+ logname2[tag+2] = '1'; > if (!stat(logname1, &StatBuf)) // File exists > rename(logname1, logname2); > fclose(fopen(logname1, "at")); // Touch file >@@ -1185,17 +1197,20 @@ > { > FILE *cdf; > char index[] = "012345"; >- char logname1[] = "log.1.0.cdf"; >- char logname2[] = "log.1.1.cdf"; >+ char logname1[512]; >+ sprintf(logname1, "%s/log.1.0.cdf", config.datadir); >+ char logname2[512]; >+ sprintf(logname2, "%s/log.1.1.cdf", config.datadir); >+ int tag = strlen(logname1) - 7; > int Counter; > int First = FALSE; > >- logname1[4] = config.tag; >- logname2[4] = config.tag; >+ logname1[tag] = config.tag; >+ logname2[tag] = config.tag; > > for (Counter = 5; Counter >= 0; Counter--) > { >- logname1[6] = index[Counter]; >+ logname1[tag+2] = index[Counter]; > if (RCDF_Test(logname1)) > break; > } >@@ -1203,7 +1218,7 @@ > First = TRUE; > for (; Counter >= 0; Counter--) > { >- logname1[6] = index[Counter]; >+ logname1[tag+2] = index[Counter]; > if ((cdf = fopen(logname1, "rt"))) > { > syslog(LOG_INFO, "Recovering from %s", logname1); >diff -ru bandwidthd-2.0.1/bandwidthd.h bandwidthd-2.0.1.new/bandwidthd.h >--- bandwidthd-2.0.1/bandwidthd.h 2005-01-12 05:15:49.000000000 +0800 >+++ bandwidthd-2.0.1.new/bandwidthd.h 2007-07-02 21:38:54.000000000 +0800 >@@ -104,6 +104,8 @@ > { > char *dev; > char *filter; >+ char *pidfile; >+ char *datadir; > unsigned int skip_intervals; > unsigned long long graph_cutoff; > int promisc; >diff -ru bandwidthd-2.0.1/configure bandwidthd-2.0.1.new/configure >--- bandwidthd-2.0.1/configure 2005-01-12 05:59:56.000000000 +0800 >+++ bandwidthd-2.0.1.new/configure 2007-07-02 23:26:32.000000000 +0800 >@@ -80,7 +80,7 @@ > # > # Initializations. > # >-ac_default_prefix=/usr/local >+ac_default_prefix=/usr > cross_compiling=no > subdirs= > MFLAGS= MAKEFLAGS= >@@ -157,9 +157,9 @@ > # and all the variables that are supposed to be based on exec_prefix > # by default will actually change. > # Use braces instead of parens because sh, perl, etc. also accept them. >-bindir='${exec_prefix}/bin' >-sbindir='${exec_prefix}/sbin' >-libexecdir='${exec_prefix}/libexec' >+bindir='${prefix}/bin' >+sbindir='${prefix}/sbin' >+libexecdir='${prefix}/libexec' > datadir='${prefix}/share' > sysconfdir='${prefix}/etc' > sharedstatedir='${prefix}/com' >@@ -2440,9 +2440,9 @@ > fi > > # May be equired for BSD >-LDFLAGS="$LDFLAGS -L/usr/local/lib" >+LDFLAGS="$LDFLAGS -L/usr/lib" > >-CPPFLAGS="$CPPFLAGS -I/usr/local/include" >+CPPFLAGS="$CPPFLAGS -I/usr/include" > > #Check for Darwin sw directory > echo "$as_me:2448: checking for /sw/lib" >&5 >@@ -3075,8 +3075,8 @@ > fi > > # Optional Library >-echo "$as_me:3078: checking for /usr/local/pgsql/lib" >&5 >-echo $ECHO_N "checking for /usr/local/pgsql/lib... $ECHO_C" >&6 >+echo "$as_me:3078: checking for /usr/lib" >&5 >+echo $ECHO_N "checking for /usr/lib... $ECHO_C" >&6 > if test "${ac_cv_file__usr_local_pgsql_lib+set}" = set; then > echo $ECHO_N "(cached) $ECHO_C" >&6 > else >@@ -3084,7 +3084,7 @@ > { { echo "$as_me:3084: error: cannot check for file existence when cross compiling" >&5 > echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} > { (exit 1); exit 1; }; } >-if test -r "/usr/local/pgsql/lib"; then >+if test -r "/usr/lib"; then > ac_cv_file__usr_local_pgsql_lib=yes > else > ac_cv_file__usr_local_pgsql_lib=no >@@ -3093,11 +3093,11 @@ > echo "$as_me:3093: result: $ac_cv_file__usr_local_pgsql_lib" >&5 > echo "${ECHO_T}$ac_cv_file__usr_local_pgsql_lib" >&6 > if test $ac_cv_file__usr_local_pgsql_lib = yes; then >- LDFLAGS="$LDFLAGS -L/usr/local/pgsql/lib" >+ LDFLAGS="$LDFLAGS -L/usr/lib" > fi > >-echo "$as_me:3099: checking for /usr/local/pgsql/include" >&5 >-echo $ECHO_N "checking for /usr/local/pgsql/include... $ECHO_C" >&6 >+echo "$as_me:3099: checking for /usr/include" >&5 >+echo $ECHO_N "checking for /usr/include... $ECHO_C" >&6 > if test "${ac_cv_file__usr_local_pgsql_include+set}" = set; then > echo $ECHO_N "(cached) $ECHO_C" >&6 > else >@@ -3105,7 +3105,7 @@ > { { echo "$as_me:3105: error: cannot check for file existence when cross compiling" >&5 > echo "$as_me: error: cannot check for file existence when cross compiling" >&2;} > { (exit 1); exit 1; }; } >-if test -r "/usr/local/pgsql/include"; then >+if test -r "/usr/include"; then > ac_cv_file__usr_local_pgsql_include=yes > else > ac_cv_file__usr_local_pgsql_include=no >@@ -3114,7 +3114,7 @@ > echo "$as_me:3114: result: $ac_cv_file__usr_local_pgsql_include" >&5 > echo "${ECHO_T}$ac_cv_file__usr_local_pgsql_include" >&6 > if test $ac_cv_file__usr_local_pgsql_include = yes; then >- CPPFLAGS="$CPPFLAGS -I/usr/local/pgsql/include" >+ CPPFLAGS="$CPPFLAGS -I/usr/include" > fi > > echo "$as_me:3120: checking for PQconnectdb in -lpq" >&5 >diff -ru bandwidthd-2.0.1/configure.in bandwidthd-2.0.1.new/configure.in >--- bandwidthd-2.0.1/configure.in 2005-01-12 05:15:49.000000000 +0800 >+++ bandwidthd-2.0.1.new/configure.in 2007-07-02 23:24:41.000000000 +0800 >@@ -25,9 +25,9 @@ > fi > > # May be equired for BSD >-LDFLAGS="$LDFLAGS -L/usr/local/lib" >+LDFLAGS="$LDFLAGS -L/usr/lib" > >-CPPFLAGS="$CPPFLAGS -I/usr/local/include" >+CPPFLAGS="$CPPFLAGS -I/usr/include" > > #Check for Darwin sw directory > AC_CHECK_FILE(/sw/lib, LDFLAGS="$LDFLAGS -L/sw/lib") >@@ -55,8 +55,8 @@ > [AC_CHECK_LIB(wpcap, pcap_open_live, ,[AC_MSG_ERROR([Bandwidthd requires but cannot find libpcap])])]) > > # Optional Library >-AC_CHECK_FILE(/usr/local/pgsql/lib, LDFLAGS="$LDFLAGS -L/usr/local/pgsql/lib") >-AC_CHECK_FILE(/usr/local/pgsql/include, CPPFLAGS="$CPPFLAGS -I/usr/local/pgsql/include") >+AC_CHECK_FILE(/usr/lib, LDFLAGS="$LDFLAGS -L/usr/lib") >+AC_CHECK_FILE(/usr/include, CPPFLAGS="$CPPFLAGS -I/usr/include") > AC_CHECK_LIB(pq, PQconnectdb, > [AC_CHECK_LIB(pq,PQexecParams, ,AC_MSG_WARN([libpq exists but is too old... bandwidthd requires support for PQexecParams]))]) > >diff -ru bandwidthd-2.0.1/graph.c bandwidthd-2.0.1.new/graph.c >--- bandwidthd-2.0.1/graph.c 2005-01-12 05:15:49.000000000 +0800 >+++ bandwidthd-2.0.1.new/graph.c 2007-07-03 00:29:07.000000000 +0800 >@@ -199,7 +199,7 @@ > int SubnetCounter; > int Counter, tCounter; > time_t WriteTime; >- char filename[] = "./htdocs/index2.html"; >+ char filename[512]; > char *PeriodDesc; > > FILE *file; >@@ -217,15 +217,18 @@ > > if (config.tag == '1') > { >- if ((file = fopen("./htdocs/index.html", "wt")) == NULL) >+ sprintf(filename, "%s/index.html", config.datadir); >+ if ((file = fopen(filename, "wt")) == NULL) > { >- syslog(LOG_ERR, "Failed to open ./htdocs/index.html"); >+ syslog(LOG_ERR, "Failed to open %s", filename); > exit(1); > } > } > else > { >- filename[14] = config.tag; >+ sprintf(filename, "%s/index1.html", config.datadir); >+ filename[strlen(filename)-6] = config.tag; >+ > if ((file = fopen(filename, "wt")) == NULL) > { > syslog(LOG_ERR, "Failed to open %s", filename); >@@ -307,7 +310,7 @@ > for (SubnetCounter = 0; SubnetCounter < SubnetCount; SubnetCounter++) > { > HostIp2CharIp(SubnetTable[SubnetCounter].ip, Buffer1); >- sprintf(Buffer2, "./htdocs/Subnet-%c-%s.html", config.tag, Buffer1); >+ sprintf(Buffer2, "%s/Subnet-%c-%s.html", config.datadir, config.tag, Buffer1); > file = fopen(Buffer2, "wt"); > fprintf(file, "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n"); > fprintf(file, "<HTML>\n<HEAD><TITLE>Bandwidthd - Subnet %s</TITLE>\n", Buffer1); >@@ -411,12 +414,12 @@ > PrepareXAxis(im2, timestamp); > PrepareYAxis(im2, YMax); > >- sprintf(outputfilename, "./htdocs/%s-%c-S.png", CharIp, config.tag); >+ sprintf(outputfilename, "%s/%s-%c-S.png", config.datadir, CharIp, config.tag); > OutputFile = fopen(outputfilename, "wb"); > gdImagePng(im, OutputFile); > fclose(OutputFile); > >- sprintf(outputfilename, "./htdocs/%s-%c-R.png", CharIp, config.tag); >+ sprintf(outputfilename, "%s/%s-%c-R.png", config.datadir, CharIp, config.tag); > OutputFile = fopen(outputfilename, "wb"); > gdImagePng(im2, OutputFile); > fclose(OutputFile); >@@ -424,9 +427,9 @@ > else > { > // The graph isn't worth clutering up the web pages with >- sprintf(outputfilename, "./htdocs/%s-%c-R.png", CharIp, config.tag); >+ sprintf(outputfilename, "%s/%s-%c-R.png", config.datadir, CharIp, config.tag); > unlink(outputfilename); >- sprintf(outputfilename, "./htdocs/%s-%c-S.png", CharIp, config.tag); >+ sprintf(outputfilename, "%s/%s-%c-S.png", config.datadir, CharIp, config.tag); > unlink(outputfilename); > } > >diff -ru bandwidthd-2.0.1/Makefile.in bandwidthd-2.0.1.new/Makefile.in >--- bandwidthd-2.0.1/Makefile.in 2005-01-12 05:15:49.000000000 +0800 >+++ bandwidthd-2.0.1.new/Makefile.in 2007-07-02 23:30:21.000000000 +0800 >@@ -1,4 +1,5 @@ > exec_prefix = @exec_prefix@ >+sysconfdir = @sysconfdir@ > prefix = @prefix@ > CC = @CC@ > LDFLAGS = @LDFLAGS@ @LIBS@ >@@ -38,12 +39,10 @@ > rm -f conf.tab.c conf.tab.h conf.l.c config.h.in configure > > install: all >- @INSTALL@ -d $(DESTDIR)$(exec_prefix)/bandwidthd/etc >- @INSTALL@ -d $(DESTDIR)$(exec_prefix)/bandwidthd/htdocs >- @INSTALL@ -m755 -s bandwidthd $(DESTDIR)$(exec_prefix)/bandwidthd >- if [ ! -f $(DESTDIR)$(exec_prefix)/bandwidthd/etc/bandwidthd.conf ] ; then @INSTALL@ -m644 etc/bandwidthd.conf $(DESTDIR)$(exec_prefix)/bandwidthd/etc/ ; fi >- @INSTALL@ -m644 htdocs/legend.gif $(DESTDIR)$(exec_prefix)/bandwidthd/htdocs >- @INSTALL@ -m644 htdocs/logo.gif $(DESTDIR)$(exec_prefix)/bandwidthd/htdocs >+ @INSTALL@ -d $(DESTDIR)$(sysconfdir) >+ @INSTALL@ -d $(DESTDIR)$(prefix)/sbin >+ @INSTALL@ -m755 bandwidthd $(DESTDIR)$(prefix)/sbin/bandwidthd >+ if [ ! -f $(DESTDIR)$(exec_prefix)/bandwidthd/etc/bandwidthd.conf ] ; then @INSTALL@ -m644 etc/bandwidthd.conf $(DESTDIR)$(sysconfdir) ; fi > > #**** Stuff where -WALL is turned off to reduce the noise in a compile so I can see my own errors ******************* > conf.l.o: conf.l.c
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 184002
:
123664
|
123669
|
123673
|
123675
| 123679