diff options
author | Akinori MUSHA <knu@FreeBSD.org> | 2001-09-01 09:10:24 +0000 |
---|---|---|
committer | Akinori MUSHA <knu@FreeBSD.org> | 2001-09-01 09:10:24 +0000 |
commit | 27fe1bd8a434c5b9a10cbea2717931c6356e318e (patch) | |
tree | c3b33d3efe5f0567a17903016e1a338d91aa91eb /japanese/samba/pkg-plist | |
parent | Add dependency to png.4. (diff) |
Update to samba-2.0.10-ja-1.1.
PR: ports/29917
Submitted by: NAKAJI Hiroyuki <nakaji@jp.freebsd.org> (MAINTAINER)
Add a hack to remove or preserve smbpasswd wisely.
Approved by: MAINTAINER
Notes
Notes:
svn path=/head/; revision=47268
Diffstat (limited to 'japanese/samba/pkg-plist')
-rw-r--r-- | japanese/samba/pkg-plist | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/japanese/samba/pkg-plist b/japanese/samba/pkg-plist index 47a29fed7d0a..9db9d8917c31 100644 --- a/japanese/samba/pkg-plist +++ b/japanese/samba/pkg-plist @@ -748,7 +748,14 @@ share/swat/using_samba/ja/this_edition.html @dirrm share/swat/using_samba/ja @dirrm share/swat/using_samba @dirrm share/swat -@exec mkdir %D/private ; if [ ! -f %D/private/smbpasswd ] ; then chown -R root.wheel %D/private ; cat /etc/passwd | %D/bin/make_smbpasswd > %D/private/smbpasswd ; chmod 500 %D/private ; chmod 600 %D/private/smbpasswd ; fi -@exec mkdir -p /var/spool/samba ; chmod 1777 /var/spool/samba -@exec cat %D/share/doc/samba/README.FreeBSD -@unexec rm -rf /var/spool/samba +@exec /bin/mkdir -p -m 500 %D/private +@exec /usr/sbin/chown -R root:wheel %D/private +@exec /bin/cat /etc/passwd | %D/bin/make_smbpasswd > %D/private/smbpasswd.default +@unexec if cmp %D/private/smbpasswd.default %D/private/smbpasswd >/dev/null 2>&1; then /bin/rm -f %D/private/smbpasswd ; fi +private/smbpasswd.default +@exec if [ ! -e %D/private/smbpasswd ]; then /bin/cp -p %D/private/smbpasswd.default %D/private/smbpasswd; fi +@exec /bin/chmod 600 %D/private/smbpasswd* +@unexec /bin/rmdir %D/private 2>/dev/null || true +@exec /bin/mkdir -p -m 1777 /var/spool/samba +@exec /bin/cat %D/share/doc/samba/README.FreeBSD +@unexec /bin/rm -rf /var/spool/samba |