From 2920a32c71bae3a6a02b2c5c0576d9a60b9a0594 Mon Sep 17 00:00:00 2001 From: jlam Date: Sat, 30 Aug 2003 20:22:49 +0000 Subject: Prepare for pkgviews by making sure that passing VIEW-INSTALL or VIEW-DEINSTALL to the INSTALL/DEINSTALL scripts don't cause errors. --- net/netatalk/INSTALL | 28 +++++++++------------------- 1 file changed, 9 insertions(+), 19 deletions(-) (limited to 'net/netatalk/INSTALL') diff --git a/net/netatalk/INSTALL b/net/netatalk/INSTALL index d8f2894ac17..f53e11a3020 100644 --- a/net/netatalk/INSTALL +++ b/net/netatalk/INSTALL @@ -1,35 +1,25 @@ -#!/bin/sh -# -# $NetBSD: INSTALL,v 1.4 2003/05/06 17:42:13 jmmv Exp $ +# $NetBSD: INSTALL,v 1.5 2003/08/30 20:22:59 jlam Exp $ case ${STAGE} in -PRE-INSTALL) - ;; POST-INSTALL) ETCDIR=@PKG_SYSCONFDIR@/netatalk - mkdir -p ${ETCDIR} + ${MKDIR} -p ${ETCDIR} - echo "Installing configuration files:" + ${ECHO} "Installing configuration files:" for file in \ AppleVolumes.default AppleVolumes.system afpd.conf \ atalkd.conf netatalk.conf papd.conf do - if [ -f ${ETCDIR}/${file} ] - then - echo " ${ETCDIR}/${file} already exists" + if [ -f ${ETCDIR}/${file} ]; then + ${ECHO} " ${ETCDIR}/${file} already exists" else - echo " ${ETCDIR}/${file}" - cp ${PKG_PREFIX}/share/examples/netatalk/${file} \ + ${ECHO} " ${ETCDIR}/${file}" + ${CP} ${PKG_PREFIX}/share/examples/netatalk/${file} \ ${ETCDIR}/${file} - chmod 644 ${ETCDIR}/${file} + ${CHMOD} 644 ${ETCDIR}/${file} fi done - echo "done." - ;; -*) - echo "Unexpected argument: ${STAGE}" - exit 1 + ${ECHO} "done." ;; esac -exit 0 -- cgit v1.2.3