diff options
author | olgeni <olgeni@FreeBSD.org> | 2001-09-03 21:55:16 +0800 |
---|---|---|
committer | olgeni <olgeni@FreeBSD.org> | 2001-09-03 21:55:16 +0800 |
commit | 7b770b7d2607eea3720b4a0725a93ed29655814c (patch) | |
tree | 9446d132f181225daf2bfdd0d36c48312c7fa1de /net | |
parent | 303db555c98f00365cabcb35d999d28de1d98196 (diff) | |
download | freebsd-ports-gnome-7b770b7d2607eea3720b4a0725a93ed29655814c.tar.gz freebsd-ports-gnome-7b770b7d2607eea3720b4a0725a93ed29655814c.tar.zst freebsd-ports-gnome-7b770b7d2607eea3720b4a0725a93ed29655814c.zip |
Skip comments when piping /etc/passwd through make_smbpasswd, else the
script will try to make Samba users out of comments.
(from net/samba/Makefile 1.50)
Diffstat (limited to 'net')
-rw-r--r-- | net/samba-devel/Makefile | 2 | ||||
-rw-r--r-- | net/samba3/Makefile | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/net/samba-devel/Makefile b/net/samba-devel/Makefile index a7ba0a4d78c7..5080bdef450a 100644 --- a/net/samba-devel/Makefile +++ b/net/samba-devel/Makefile @@ -96,7 +96,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} diff --git a/net/samba3/Makefile b/net/samba3/Makefile index a7ba0a4d78c7..5080bdef450a 100644 --- a/net/samba3/Makefile +++ b/net/samba3/Makefile @@ -96,7 +96,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} |