Changeset 2128

Show
Ignore:
Timestamp:
04/25/12 02:01:54 (9 years ago)
Author:
adi
Message:

Install udev rules.

Default is /lib/udev/rules.d/, but the user can override it by setting
UDEVDIR.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/libffado/SConscript

    r2087 r2128  
    3131env.Alias( 'install', env.Install( os.path.join(env['includedir'],"libffado"), "ffado.h" ) ) 
    3232 
     33env.Alias( 'install', env.Install( env['udevdir'], "60-ffado.rules" ) ) 
  • trunk/libffado/SConstruct

    r2115 r2128  
    5252    PathVariable( "PYPKGDIR", "The directory where the python modules get installed.", 
    5353        distutils.sysconfig.get_python_lib( prefix="$PREFIX" ), PathVariable.PathAccept ), 
     54    PathVariable( "UDEVDIR", "Overwrite the directory where udev rules are installed to.", "/lib/udev/rules.d/", PathVariable.PathAccept ), 
    5455    BoolVariable( "ENABLE_BEBOB", "Enable/Disable support for the BeBoB platform.", True ), 
    5556    BoolVariable( "ENABLE_FIREWORKS", "Enable/Disable support for the ECHO Audio FireWorks platform.", True ), 
     
    418419env['INCLUDEDIR'] = Template( env['INCLUDEDIR'] ).safe_substitute( env ) 
    419420env['SHAREDIR'] = Template( env['SHAREDIR'] ).safe_substitute( env ) 
     421env['UDEVDIR'] = Template( env['UDEVDIR'] ).safe_substitute( env ) 
    420422env['prefix'] = Template( env.destdir + env['PREFIX'] ).safe_substitute( env ) 
    421423env['bindir'] = Template( env.destdir + env['BINDIR'] ).safe_substitute( env ) 
     
    425427env['mandir'] = Template( env.destdir + env['MANDIR'] ).safe_substitute( env ) 
    426428env['pypkgdir'] = Template( env.destdir + env['PYPKGDIR'] ).safe_substitute( env ) 
     429env['udevdir'] = Template( env.destdir + env['UDEVDIR'] ).safe_substitute( env ) 
    427430env['PYPKGDIR'] = Template( env['PYPKGDIR'] ).safe_substitute( env ) 
    428431