From 6629f3c2b166f8f7110b55bd8e1cd8162d763bc3 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Tue, 27 Aug 2002 01:19:36 +0000 Subject: m4: natalk support added. --- netatalk/AppleVolumes.default.m4 | 118 +++++++++++++++++++++++++++++++++++++++ netatalk/papd.conf.m4 | 74 ++++++++++++++++++++++++ 2 files changed, 192 insertions(+) create mode 100644 netatalk/AppleVolumes.default.m4 create mode 100644 netatalk/papd.conf.m4 (limited to 'netatalk') diff --git a/netatalk/AppleVolumes.default.m4 b/netatalk/AppleVolumes.default.m4 new file mode 100644 index 0000000..4ffe354 --- /dev/null +++ b/netatalk/AppleVolumes.default.m4 @@ -0,0 +1,118 @@ +ifelse(` +/etc/netatalk/AppleVolumes.default.m4 +Copyright 2002 Jonas Smedegaard + +$Id: AppleVolumes.default.m4,v 1.1 2002-08-27 01:19:36 jonas Exp $ + +m4 share definitions for generating Netatalk server AppleVolumes.default file + +Usage: m4 -DFQDN= /etc/local-COMMON/netatalk/AppleVolumes.default.m4 > /etc/netatalk/AppleVolumes.default + +Depend on file /etc/local-COMMON/file-.m4 containing lines of +the following syntax: + _dir(,,,)dnl + _homefiles(,,,[,ro])dnl + _files(,,,,,,[,ro[,]|,rw,[,]])dnl +where + : Client operating systems (mac|win|any) + : Mount point name + Some mount points are handled specially: + "netlogon" has browsing and share modes disabled + "userprofiles" sets "force user" and pre-creates user subdirectory mode 700 + "reference" allows guests + "homes" has read/write access and pre-creates directory mode 750 + Samba: Use single word and max. 8 characters for WfW compatibility + : Mount point description. Full(?) support for iso8859-1. + : Full path to mount point directory + : user name of owner of mount point directory + : group name of owner of mount point directory + : Numeric access modes of mount point directory + ro|rw|rop|rwp: Read-only or read/write access to mount point, and wether it should be private (not publically announced). + Read-only access if undefined. + _homefiles are always private. + _homefiles are by default read-only, except "homes" (see above). + : Primary group with access to mountpoint. + If mount point has access "rw" then primary group has read/write access as well. + : Secondary group with readonly access + +Example: + + _dir(/home/fsadmin/COMMON,fsadmin,fsadmin,755)dnl + _files(win,netlogon,Network logon,/etc/samba/netlogon,root,root,755,ro) + _files(win,userprofiles,User profiles,/home/fsadmin/COMMON/samba/userprofiles,root,root,755) + _files(win,reference,DEBIAN: Samba Linux server,/home/fsadmin/COMMON/reference) + _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) + +TODO: + Support for netatalk is not yet implemented. + is not yet implemented. + Get rid of : is now 10nth parameter which is only available in GNU m4. + All _homefiles (including "homes") should probably have similar access default (read-only). + +')dnl +changequote(<, >)dnl +define(<_veto_mac>, )dnl +define(<_warn>, +< # WARNING: $1 +# >)dnl +define(<_dir>, <>)dnl +dnl ************* +dnl *** files *** +dnl ************* +define(<_files>, +)dnl +undefine(<_world_read>)dnl +undefine(<_user_write>)dnl +undefine(<_group_write>)dnl +$4 ifelse(<$3>,,<"$2">,<"<$3>">)dnl +ifdef($8, + ifelse($8,ro, + )>, + $8,rop, + )>, + $8,rw, + )dnl + ifdef($9, + ifelse($9,,, + define(<_group_write>)))>, + $8,rwp, + )>, + _warn()dnl +))dnl +ifdef(<_user_write>, + ifdef(<_group_write>, + ifdef(<_world_read>,,), + ifdef(<_group_read>, + ifdef(<_world_read>,,), + )), +dnl ***user read, group read***(?) +dnl ***user read*** + +)dnl +ifelse($9,,, +< allow:@$9> ifdef(<_user_write>,, + < ro>))dnl +ifdef(<_veto>, +< veto files = _veto_mac +>)dnl +)dnl +>)dnl +dnl ***************** +dnl *** homefiles *** +dnl ***************** +define(<_homefiles>, +, )dnl +ifdef($5, + ifelse($5,ro, +define(<_homefiles_access>, )))dnl +<_files($1,$2,<$3>,$4,,,,_homefiles_access)>dnl +)>)dnl +define(<_printer>, <>)dnl +>)dnl +dnl +include(/etc/local-COMMON/file-FQDN.m4)dnl diff --git a/netatalk/papd.conf.m4 b/netatalk/papd.conf.m4 new file mode 100644 index 0000000..5882551 --- /dev/null +++ b/netatalk/papd.conf.m4 @@ -0,0 +1,74 @@ +ifelse(` +/etc/netatalk/papd.conf.m4 +Copyright 2002 Jonas Smedegaard + +$Id: papd.conf.m4,v 1.1 2002-08-27 01:19:36 jonas Exp $ + +m4 share definitions for generating Netatalk server papd.conf file + +Usage: m4 -DFQDN= /etc/local-COMMON/netatalk/papd.conf.m4 > /etc/netatalk/papd.conf + +Depend on file /etc/local-COMMON/file-.m4 containing lines of +the following syntax: + _dir(,,,)dnl + _homefiles(,,,[,ro])dnl + _files(,,,,,,[,ro[,]|,rw,[,]])dnl +where + : Client operating systems (mac|win|any) + : Mount point name + Some mount points are handled specially: + "netlogon" has browsing and share modes disabled + "userprofiles" sets "force user" and pre-creates user subdirectory mode 700 + "reference" allows guests + "homes" has read/write access and pre-creates directory mode 750 + Samba: Use single word and max. 8 characters for WfW compatibility + : Mount point description. Full(?) support for iso8859-1. + : Full path to mount point directory + : user name of owner of mount point directory + : group name of owner of mount point directory + : Numeric access modes of mount point directory + ro|rw|rop|rwp: Read-only or read/write access to mount point, and wether it should be private (not publically announced). + Read-only access if undefined. + _homefiles are always private. + _homefiles are by default read-only, except "homes" (see above). + : Primary group with access to mountpoint. + If mount point has access "rw" then primary group has read/write access as well. + : Secondary group with readonly access + +Example: + + _dir(/home/fsadmin/COMMON,fsadmin,fsadmin,755)dnl + _files(win,netlogon,Network logon,/etc/samba/netlogon,root,root,755,ro) + _files(win,userprofiles,User profiles,/home/fsadmin/COMMON/samba/userprofiles,root,root,755) + _files(win,reference,DEBIAN: Samba Linux server,/home/fsadmin/COMMON/reference) + _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) + +TODO: + Support for netatalk is not yet implemented. + is not yet implemented. + Get rid of : is now 10nth parameter which is only available in GNU m4. + All _homefiles (including "homes") should probably have similar access default (read-only). + +')dnl +changequote(<, >)dnl +define(<_veto_mac>, )dnl +define(<_warn>, +< # WARNING: $1 +# >)dnl +define(<_dir>, <>)dnl +define(<_files>, <>)dnl +define(<_homefiles>, <>)dnl +define(<_printer>, <>)dnl +>)dnl +define(<_printer>, +|$2) + :pr=|ps2ps /dev/stdin /dev/stdout | lp -h localhost -d $2 -t "AppleTalk":\ + :pd=/etc/cups/ppd/$2.ppd: +,<>)dnl +>)dnl +dnl +include(/etc/local-COMMON/file-FQDN.m4)dnl -- cgit v1.2.3