ifelse(` /etc/cfengine/cf.services.file.tmp.m4 Copyright 2002 Jonas Smedegaard <dr@jones.dk> $Id: cf.services.file.tmp.m4,v 1.3 2002-08-06 13:26:01 jonas Exp $ cfengine m4 skeleton file for cleaning up Samba and Netatalk shares Usage: m4 -DFQDN=<FQDN> /etc/local-COMMON/cfengine/cf.services.file.tmp.m4 > /tmp/cf.services.file Depend on file /etc/local-COMMON/file-<FQDN>.m4 containing lines of the following syntax: _dir(<os>,<path>,<uid>,<gid>,<modes>)dnl _home(<os>,<mount>,<desc>,<path>[,ro])dnl _files(<os>,<mount>,<desc>,<path>,<uid>,<gid>,<modes>[,ro[,<group>]|,rw,<group>[,<othergroup>]])dnl where <os>: Client operating systems (mac|win|any) <mount>: Mount point name (Samba: single word and max. 8 characters for backwards compatibility) <desc>: Mount point description (iso8859-1 is (fully?) supported). <uid>: user name of mountpoint owner <gid>: group name of mountpoint owner <modes>: Numeric access modes of mount point <path>: Full path to mount point <group>: Primary group with (readonly) access to mountpoint. Public (or whatever limited by filesystem) readonly access if omitted <othergroup>: Secondary group with readonly access Example: _dir(any,/home/fsadmin/COMMON,fsadmin,fsadmin,755)dnl _homefiles(win,homes,Personal files,%H/pc)) _homefiles(mac,,Personal files,~/mac)) _files(win,soft,softshare,/home/fsadmin/COMMON/software,fsadmin,fsadmin,775)dnl _printer(win,LW,Networkprinter queue for Apple LaserWriter 16/600,/tmp,lw) ')dnl define(_tab,` ')dnl define(_dir,_tab$2 mode=$5 owner=$3 group=$4 )dnl define(_homefiles,`')dnl define(_printer,`')dnl define(_files,_dir($1,$4,$5,$6,$7))dnl control: AddInstallable = ( samba samba_reload netatalk netatalk_reload ) actionsequence = ( directories ) directories: include(/etc/local-COMMON/file-FQDN.m4)dnl