diff options
author | John Terpstra <jht@samba.org> | 1997-07-09 13:39:29 +0000 |
---|---|---|
committer | John Terpstra <jht@samba.org> | 1997-07-09 13:39:29 +0000 |
commit | 5828b37ded0844ad337bc5a5f4e5534a87d65c0f (patch) | |
tree | da99f2965730271cb0f5b7ce8dd26d3a9e682104 /examples/redhat/samba.spec | |
parent | cec799512da39b880a80449952a30c255d7eb972 (diff) | |
download | samba-5828b37ded0844ad337bc5a5f4e5534a87d65c0f.tar.gz samba-5828b37ded0844ad337bc5a5f4e5534a87d65c0f.tar.bz2 samba-5828b37ded0844ad337bc5a5f4e5534a87d65c0f.zip |
JHT ==> Still getting ready for 1.9.17 release.
(This used to be commit 84abac08419c6896d9b4f5c8340df6ad90ed9754)
Diffstat (limited to 'examples/redhat/samba.spec')
-rw-r--r-- | examples/redhat/samba.spec | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/examples/redhat/samba.spec b/examples/redhat/samba.spec index ee427e0509..f019f5fbc5 100644 --- a/examples/redhat/samba.spec +++ b/examples/redhat/samba.spec @@ -100,7 +100,11 @@ install -m 644 examples/redhat/samba.log $RPM_BUILD_ROOT/etc/logrotate.d/samba rm -rf $RPM_BUILD_ROOT %post +if [ -d /etc/pam.d ]; then +install -m 644 examples/redhat/samba.pamd $RPM_BUILD_ROOT/etc/pam.d/samba +else /sbin/pamconfig --add --service=samba --password=none --sesslist=none +fi if [ ! -f /var/log/samba ]; then touch /var/log/samba @@ -109,7 +113,13 @@ fi %postun if [ "$1" = 0 ] ; then - /sbin/pamconfig --remove --service=samba --password=none --sesslist=none + if [ -x /etc/pam.d/samba ]; then + rm -f /etc/pam.d/samba + else + if [ -x /etc/pam.conf ]; then + /sbin/pamconfig --remove --service=samba --password=none --sesslist=none + fi + fi fi %files @@ -141,6 +151,9 @@ fi %attr(-,root,root) %config /etc/rc.d/rc6.d/K35smb %attr(-,root,root) %config /etc/rc.d/rc2.d/K35smb %attr(-,root,root) %config /etc/logrotate.d/samba +if [ -x /etc/pam.d/samba ]; then + %attr(-,root,root) %config /etc/pam.d/samba +fi %attr(-,root,root) /usr/man/man1/smbstatus.1 %attr(-,root,root) /usr/man/man1/smbclient.1 %attr(-,root,root) /usr/man/man1/smbrun.1 |