1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-24 09:25:01 +00:00

When converting /etc/passwd, skip comments ($FreeBSD$ line).

Previously, they would end up in private/smbpasswd after being parsed as
users.
This commit is contained in:
Jimmy Olgeni 2001-03-05 16:03:34 +00:00
parent e5474a191c
commit ce07beb68e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=39102
2 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ post-install:
fi
${CHMOD} 700 ${SAMBA_PRIVATE}
if [ ! -f ${SAMBA_PRIVATE}/smbpasswd ] ; then \
${CAT} /etc/passwd | ${PREFIX}/bin/make_smbpasswd > ${SAMBA_PRIVATE}/smbpasswd ; \
${CAT} /etc/passwd | ${GREP} -v "^#" | ${PREFIX}/bin/make_smbpasswd > ${SAMBA_PRIVATE}/smbpasswd ; \
${CHMOD} 600 ${SAMBA_PRIVATE}/smbpasswd ; \
fi
${CHMOD} 500 ${SAMBA_PRIVATE}

View File

@ -434,7 +434,7 @@ share/swat/using_samba/gifs/txtpreva.gif
@dirrm share/swat/using_samba/gifs
@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 %D/private ; if [ ! -f %D/private/smbpasswd ] ; then chown -R root.wheel %D/private ; cat /etc/passwd | grep -v "^#" | %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