Changeset 793


Ignore:
Timestamp:
10/15/06 15:50:24 (6 years ago)
Author:
wd
Message:

Ported log module, updated echo module.

Location:
trunk/ithildin
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ithildin/SConstruct

    r787 r793  
    2828env = Environment(ENV = { 
    2929    'PATH': os.environ['PATH'], 
    30 }) 
     30    }, 
     31    CPPPATH = ['#/include'] 
     32) 
    3133 
    3234# Perform some magic to get the repository version.  If we have svn and we 
     
    279281 
    280282# Set our final environment parameters. 
    281 env.Append(CPPPATH = '#/include') 
    282283env.Append(LIBPATH = '#/lib') 
    283284env.AppendUnique(RPATH = [env['libdir'], env['libdir'] + '/modules']) 
     
    314315 
    315316for m in modules.split(','): 
    316     if m: env.SConscript('modules/%s/SConscript' % m) 
     317    if not m: continue 
     318    # create a modified env for each module 
     319    modenv = env.Copy() 
     320    env.SConscript('modules/%s/SConscript' % m, exports = ['modenv']) 
     321    del modenv 
    317322 
    318323# vi:set ts=8 sts=4 sw=4 tw=76 et syntax=python: 
  • trunk/ithildin/modules/echo/SConscript

    r790 r793  
    1616# Build specification for the ithildin library 
    1717env.Install(env['libdir'] + '/modules', 
    18     env.SharedLibrary(target = 'echo', source = Split(''' 
    19         echo.c 
    20         '''), 
    21         SHLIBPREFIX = '', 
    22         LIBS = 'ithildin' 
     18    modenv.SharedLibrary(target = 'echo', source = 'echo.c', SHLIBPREFIX = '', 
     19        LIBS = 'ithildin', CPPDEFINES = env['CPPDEFINES'] + ['MODULE'], 
     20        CPPPATH = env['CPPPATH'] + ['.'] 
    2321    ) 
    2422) 
  • trunk/ithildin/modules/log/log.c

    r787 r793  
    200200static int log_parse_conf(conf_list_t *conf) { 
    201201    char *s; 
     202#ifdef HAVE_SYSLOG 
    202203    int facility = LOG_DAEMON; 
     204#endif 
    203205    conf_list_t *clp = NULL; 
    204206    log_hook_t *lhp; 
     
    212214    if (conf == NULL) { 
    213215#ifdef HAVE_SYSLOG 
    214         openlog(PACKAGE_NAME, LOG_PID, facility); 
     216        openlog(me.execname, LOG_PID, facility); 
    215217        /* Make a hook that dumps to syslog. */ 
    216218        lhp = log_hook_create(); 
Note: See TracChangeset for help on using the changeset viewer.