diff options
author | Jonas Smedegaard <dr@jones.dk> | 2002-06-11 13:42:01 +0000 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2002-06-11 13:42:01 +0000 |
commit | 998bd805951a2579e081dc6e58d07e39e86c50a8 (patch) | |
tree | e9aea6eca17af916f7b3431a1e5327169d0b942f | |
parent | ce2af53b74cdac0f8a08860452960f50da01b0c5 (diff) |
samba: Add printer m4 logic.
-rw-r--r-- | samba/smb-shares.conf.m4 | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/samba/smb-shares.conf.m4 b/samba/smb-shares.conf.m4 index 2183f5e..84d8acb 100644 --- a/samba/smb-shares.conf.m4 +++ b/samba/smb-shares.conf.m4 @@ -2,7 +2,7 @@ ifelse(` /etc/samba/smb-shares.m4 Copyright 2002 Jonas Smedegaard <dr@jones.dk> -$Id: smb-shares.conf.m4,v 1.2 2002-04-22 11:25:18 jonas Exp $ +$Id: smb-shares.conf.m4,v 1.3 2002-06-11 13:42:01 jonas Exp $ m4 share definitions for generating Samba server smb.conf include file @@ -136,5 +136,16 @@ ifdef(<_veto>, define(<_homefiles>, <ifelse($1,win, <_files($1,$2,$3,$4)>)>)dnl +define(<_printer>, +<ifelse($1,win, +[$2] +ifelse($3,,, +< comment = $3 +>)dnl + path = $4 + printable = yes + printer name = $5 +,<>)dnl +>)dnl dnl include(/etc/local-COMMON/file-FQDN.m4)dnl |