diff options
author | jlam <jlam@pkgsrc.org> | 2001-11-21 16:44:17 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2001-11-21 16:44:17 +0000 |
commit | 16bb385d16c8b0abbb5ad13ac4e18d2e96976727 (patch) | |
tree | 4b3cfc0b81c0625c37d33c1d29387c5c7386b705 /net/samba/INSTALL | |
parent | a896a9b92a730ad701a514f87820743bbf7bd97b (diff) | |
download | pkgsrc-16bb385d16c8b0abbb5ad13ac4e18d2e96976727.tar.gz |
Use the general INSTALL/DEINSTALL scripts instead of the homegrown ones.
Also split the one rc.d script into one for each daemon and one admin
script (idea from Luke Mewburn <lukem@wasabisystems.com>).
Diffstat (limited to 'net/samba/INSTALL')
-rw-r--r-- | net/samba/INSTALL | 45 |
1 files changed, 3 insertions, 42 deletions
diff --git a/net/samba/INSTALL b/net/samba/INSTALL index e435075d547..cfcf2709cbf 100644 --- a/net/samba/INSTALL +++ b/net/samba/INSTALL @@ -1,48 +1,15 @@ #!/bin/sh # -# $NetBSD: INSTALL,v 1.1 2001/10/31 22:58:42 zuntum Exp $ - -PKGNAME=$1 -STAGE=$2 - -CAT="@CAT@" -CHMOD="@CHMOD@" -CHOWN="@CHOWN@" -CP="@CP@" -MKDIR="@MKDIR@" -RM="@RM@" +# $NetBSD: INSTALL,v 1.2 2001/11/21 16:44:17 jlam Exp $ SAMBA_PRIVATE="@SAMBA_PRIVATE@" -SAMBA_LOCKDIR="@SAMBA_LOCKDIR@" -SAMPLECONFDIR=${PKG_PREFIX}/share/examples/samba -CONFDIR=@SAMBA_ETCDIR@ -CONFFILES="smb.conf" case ${STAGE} in -PRE-INSTALL) - ;; - POST-INSTALL) - ${MKDIR} -p ${CONFDIR} ${SAMBA_PRIVATE} ${SAMBA_LOCKDIR} - echo "Installing configuration files:" - for file in ${CONFFILES} - do - FILE=${CONFDIR}/${file} - SAMPLEFILE=${SAMPLECONFDIR}/${file}.sample - if [ -f ${FILE} ] - then - echo " ${FILE} already exists" - else - echo " ${FILE}" - ${CP} ${SAMPLEFILE} ${FILE} - ${CHMOD} 644 ${FILE} - fi - done - # Create SMB password file - if [ ! -f ${SAMBA_PRIVATE}/smbpasswd ] + if [ ! -e ${SAMBA_PRIVATE}/smbpasswd ] then - echo -n "Creating ${SAMBA_PRIVATE}/smbpasswd..." + ${ECHO} -n "Creating ${SAMBA_PRIVATE}/smbpasswd..." ${CHOWN} -R 0:0 ${SAMBA_PRIVATE} ${CAT} /etc/passwd | ${PKG_PREFIX}/sbin/mksmbpasswd \ > ${SAMBA_PRIVATE}/smbpasswd @@ -51,10 +18,4 @@ POST-INSTALL) echo "done." fi ;; - -*) - echo "Unexpected argument: ${STAGE}" - exit 1 - ;; esac -exit 0 |