summaryrefslogtreecommitdiff
path: root/netatalk/papd.conf.m4
blob: 5882551110568eb72dd290f3e5fd8b796d486843 (plain)
  1. ifelse(`
  2. /etc/netatalk/papd.conf.m4
  3. Copyright 2002 Jonas Smedegaard <dr@jones.dk>
  4. $Id: papd.conf.m4,v 1.1 2002-08-27 01:19:36 jonas Exp $
  5. m4 share definitions for generating Netatalk server papd.conf file
  6. Usage: m4 -DFQDN=<FQDN> /etc/local-COMMON/netatalk/papd.conf.m4 > /etc/netatalk/papd.conf
  7. Depend on file /etc/local-COMMON/file-<FQDN>.m4 containing lines of
  8. the following syntax:
  9. _dir(<path>,<uid>,<gid>,<modes>)dnl
  10. _homefiles(<os>,<mount>,<desc>,<path>[,ro])dnl
  11. _files(<os>,<mount>,<desc>,<path>,<uid>,<gid>,<modes>[,ro[,<group>]|,rw,<group>[,<othergroup>]])dnl
  12. where
  13. <os>: Client operating systems (mac|win|any)
  14. <mount>: Mount point name
  15. Some mount points are handled specially:
  16. "netlogon" has browsing and share modes disabled
  17. "userprofiles" sets "force user" and pre-creates user subdirectory mode 700
  18. "reference" allows guests
  19. "homes" has read/write access and pre-creates directory mode 750
  20. Samba: Use single word and max. 8 characters for WfW compatibility
  21. <desc>: Mount point description. Full(?) support for iso8859-1.
  22. <path>: Full path to mount point directory
  23. <uid>: user name of owner of mount point directory
  24. <gid>: group name of owner of mount point directory
  25. <modes>: Numeric access modes of mount point directory
  26. ro|rw|rop|rwp: Read-only or read/write access to mount point, and wether it should be private (not publically announced).
  27. Read-only access if undefined.
  28. _homefiles are always private.
  29. _homefiles are by default read-only, except "homes" (see above).
  30. <group>: Primary group with access to mountpoint.
  31. If mount point has access "rw" then primary group has read/write access as well.
  32. <othergroup>: Secondary group with readonly access
  33. Example:
  34. _dir(/home/fsadmin/COMMON,fsadmin,fsadmin,755)dnl
  35. _files(win,netlogon,Network logon,/etc/samba/netlogon,root,root,755,ro)
  36. _files(win,userprofiles,User profiles,/home/fsadmin/COMMON/samba/userprofiles,root,root,755)
  37. _files(win,reference,DEBIAN: Samba Linux server,/home/fsadmin/COMMON/reference)
  38. _homefiles(win,homes,Personal files,%H/pc))
  39. _homefiles(mac,,Personal files,~/mac))
  40. _files(win,soft,softshare,/home/fsadmin/COMMON/software,fsadmin,fsadmin,775)dnl
  41. _printer(win,LW,Networkprinter queue for Apple LaserWriter 16/600,/tmp,lw)
  42. TODO:
  43. Support for netatalk is not yet implemented.
  44. <othergroup> is not yet implemented.
  45. Get rid of <os>: <othergroup> is now 10nth parameter which is only available in GNU m4.
  46. All _homefiles (including "homes") should probably have similar access default (read-only).
  47. ')dnl
  48. changequote(<, >)dnl
  49. define(<_veto_mac>, </.AppleDouble/.AppleDesktop/Network Trash Folder/DesktopFolderDB/resource.frk/Icon^M/TheVolumeSettingsFolder/>)dnl
  50. define(<_warn>,
  51. < # WARNING: $1
  52. # >)dnl
  53. define(<_dir>, <>)dnl
  54. define(<_files>, <>)dnl
  55. define(<_homefiles>, <>)dnl
  56. define(<_printer>, <>)dnl
  57. >)dnl
  58. define(<_printer>,
  59. <ifelse($1,mac,
  60. ifelse($3,,$2,<$3>|$2)
  61. :pr=|ps2ps /dev/stdin /dev/stdout | lp -h localhost -d $2 -t "AppleTalk":\
  62. :pd=/etc/cups/ppd/$2.ppd:
  63. ,<>)dnl
  64. >)dnl
  65. dnl
  66. include(/etc/local-COMMON/file-FQDN.m4)dnl