Show
Ignore:
Timestamp:
06/09/09 10:07:55 (3 years ago)
Author:
Neutron Soutmun <neo.neutron@…>
Children:
7751a641e2a294d986b002dd01264b7d068258a2
Parents:
927d0c70c763dcf56e6f12ebe02a51688468a5c3
git-committer:
Neutron Soutmun <neo.neutron@…> (06/09/09 10:07:55)
Message:

Adjust build system config and install files

  • Adjust build system config to install the files to appropriate paths.
  • The MAINTAINERCLEANFILES was added.
  • Now rahunas.db installed into the default directory /var/lib/rahunas.
  • RahuNAS daemon executable file (rahunasd) now installed into /usr/sbin.
  • Tool scripts now installed into the /usr/sbin and their names change to satisfy the debian policy.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/rh-task-bandwidth.c

    r927d0c7 rbae014d  
    1818#include "rh-task-memset.h" 
    1919#include "rh-utils.h" 
    20  
    21 #define BANDWIDTH_WRAPPER "/etc/rahunas/bandwidth.sh" 
    2220 
    2321static unsigned short slot_flags[MAX_SLOT_PAGE] = {1}; 
     
    9391  if (pid == 0) { 
    9492    // Child 
    95     execv(BANDWIDTH_WRAPPER, args); 
     93    execv(RAHUNAS_BANDWIDTH_WRAPPER, args); 
    9694  } else if (pid < 0) { 
    9795    // Fork error 
     
    142140  DP("Bandwidth: start"); 
    143141 
    144   args[0] = BANDWIDTH_WRAPPER; 
     142  args[0] = RAHUNAS_BANDWIDTH_WRAPPER; 
    145143  args[1] = "start"; 
    146144  args[2] = iface->dev_internal; 
     
    160158  DP("Bandwidth: stop"); 
    161159 
    162   args[0] = BANDWIDTH_WRAPPER; 
     160  args[0] = RAHUNAS_BANDWIDTH_WRAPPER; 
    163161  args[1] = "stop"; 
    164162  args[2] = iface->dev_internal; 
     
    178176     bw_req->ip, bw_req->bandwidth_max_down, bw_req->bandwidth_max_up); 
    179177 
    180   args[0] = BANDWIDTH_WRAPPER; 
     178  args[0] = RAHUNAS_BANDWIDTH_WRAPPER; 
    181179  args[1] = "add"; 
    182180  args[2] = bw_req->slot_id; 
     
    198196  DP("Bandwidth: request %s", bw_req->slot_id); 
    199197 
    200   args[0] = BANDWIDTH_WRAPPER; 
     198  args[0] = RAHUNAS_BANDWIDTH_WRAPPER; 
    201199  args[1] = "del"; 
    202200  args[2] = bw_req->slot_id;