pkgsrc/net/samba20/INSTALL
jlam 23a9ff7e9b Use the general INSTALL/DEINSTALL scripts, and minimize the differences
between this package and the net/samba package.
2001-11-21 17:17:43 +00:00

21 lines
486 B
Text

#!/bin/sh
#
# $NetBSD: INSTALL,v 1.2 2001/11/21 17:17:44 jlam Exp $
SAMBA_PRIVATE="@SAMBA_PRIVATE@"
case ${STAGE} in
POST-INSTALL)
# Create SMB password file
if [ ! -e ${SAMBA_PRIVATE}/smbpasswd ]
then
${ECHO} -n "Creating ${SAMBA_PRIVATE}/smbpasswd..."
${CHOWN} -R 0:0 ${SAMBA_PRIVATE}
${CAT} /etc/passwd | ${PKG_PREFIX}/sbin/mksmbpasswd \
> ${SAMBA_PRIVATE}/smbpasswd
${CHMOD} 600 ${SAMBA_PRIVATE}/smbpasswd
${CHMOD} 500 ${SAMBA_PRIVATE}
echo "done."
fi
;;
esac