kill INSTALL/DEINSTALL
This commit is contained in:
parent
eee84b9ec4
commit
4b317cea0c
@ -1,25 +0,0 @@
|
||||
#!/bin/sh
|
||||
# $OpenBSD: DEINSTALL,v 1.3 2004/04/14 18:59:08 xsa Exp $
|
||||
#
|
||||
# netatalk de-installation
|
||||
|
||||
set -e
|
||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||
PREFIX=${PKG_PREFIX:-/usr/local}
|
||||
CONFIG_DIR=${CONFDIR}
|
||||
|
||||
if [ ${PKG_DELETE_EXTRA} != Yes -a -d $CONFIG_DIR ]; then
|
||||
echo
|
||||
echo "+---------------"
|
||||
echo "| To completely deinstall the $1 package you need to perform"
|
||||
echo "| this step as root:"
|
||||
echo "|"
|
||||
echo "| rm -rf $CONFIG_DIR"
|
||||
echo "|"
|
||||
echo "| Do not do this if you plan on re-installing $1"
|
||||
echo "| at some future time."
|
||||
echo "+---------------"
|
||||
echo
|
||||
fi
|
||||
|
||||
exit 0
|
@ -1,86 +0,0 @@
|
||||
#!/bin/sh
|
||||
# $OpenBSD: INSTALL,v 1.3 2004/08/24 17:14:16 pvalchev Exp $
|
||||
#
|
||||
# Pre/post-installation setup of netatalk
|
||||
|
||||
# exit on errors, use a sane path and install prefix
|
||||
#
|
||||
set -e
|
||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||
PREFIX=${PKG_PREFIX:-/usr/local}
|
||||
CONFIG_DIR=${CONFDIR}
|
||||
NLS_DIR=$CONFIG_DIR/nls
|
||||
SAMPLE_CONFIG_DIR=$PREFIX/share/examples/netatalk
|
||||
SAMPLE_CONFIG_NLS=$PREFIX/share/nls/netatalk
|
||||
|
||||
do_notice()
|
||||
{
|
||||
echo
|
||||
echo "+---------------"
|
||||
echo "| The existing $1 configuration files in $CONFIG_DIR,"
|
||||
echo "| have NOT been changed. You may want to compare them to the"
|
||||
echo "| current sample files in $SAMPLE_CONFIG_DIR,"
|
||||
echo "| and update your configuration as needed."
|
||||
echo "+---------------"
|
||||
echo
|
||||
}
|
||||
|
||||
do_notice2()
|
||||
{
|
||||
|
||||
echo
|
||||
echo "+--------------------"
|
||||
echo "| If you are upgrading from an older Netatalk distribution,"
|
||||
echo "| please backup your Netatalk volume(s) data before playing"
|
||||
echo "| with the tool:- adv1tov2. (conversion from appledouble"
|
||||
echo "| version 1 to appledouble version 2)"
|
||||
echo "+--------------------"
|
||||
echo
|
||||
}
|
||||
|
||||
do_install()
|
||||
{
|
||||
install -d -o root -g wheel -m 750 $CONFIG_DIR
|
||||
install -d -o root -g wheel -m 750 $NLS_DIR
|
||||
install -o root -g wheel -m 644 $SAMPLE_CONFIG_DIR/* $CONFIG_DIR
|
||||
install -o root -g wheel -m 644 $SAMPLE_CONFIG_NLS/* $NLS_DIR
|
||||
|
||||
echo
|
||||
echo "+---------------"
|
||||
echo "| The $1 configuration files in $CONFIG_DIR,"
|
||||
echo "| have been installed. Please view these files and change"
|
||||
echo "| the configuration to meet your needs."
|
||||
echo "+---------------"
|
||||
echo
|
||||
}
|
||||
|
||||
# verify proper execution
|
||||
#
|
||||
if [ $# -ne 2 ]; then
|
||||
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Verify/process the command
|
||||
#
|
||||
case $2 in
|
||||
PRE-INSTALL)
|
||||
: nothing to pre-install for this port
|
||||
;;
|
||||
POST-INSTALL)
|
||||
if [ ! -d $CONFIG_DIR ]; then
|
||||
do_install $1
|
||||
elif [ ! -f $CONFIG_DIR/rc.atalk ]; then
|
||||
do_install $1
|
||||
else
|
||||
do_notice $1
|
||||
fi
|
||||
do_notice2 $1
|
||||
;;
|
||||
*)
|
||||
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
@ -1,4 +1,4 @@
|
||||
@comment $OpenBSD: PLIST,v 1.4 2004/09/15 18:17:42 espie Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.5 2004/09/22 23:03:47 espie Exp $
|
||||
bin/achfile
|
||||
bin/acleandir.rc
|
||||
bin/add_netatalk_printer
|
||||
@ -162,19 +162,34 @@ share/doc/netatalk/README.hidden-items
|
||||
share/doc/netatalk/README.platforms
|
||||
share/doc/netatalk/README.veto
|
||||
share/examples/netatalk/
|
||||
@mode 750
|
||||
@sample ${CONFDIR}/
|
||||
@mode
|
||||
share/examples/netatalk/AppleVolumes.default
|
||||
@sample ${CONFDIR}/AppleVolumes.default
|
||||
share/examples/netatalk/AppleVolumes.system
|
||||
@sample ${CONFDIR}/AppleVolumes.system
|
||||
share/examples/netatalk/afpd.conf
|
||||
@sample ${CONFDIR}/afpd.conf
|
||||
share/examples/netatalk/atalkd.conf
|
||||
@sample ${CONFDIR}/atalkd.conf
|
||||
share/examples/netatalk/netatalk.conf
|
||||
@sample ${CONFDIR}/netatalk.conf
|
||||
share/examples/netatalk/papd.conf
|
||||
@sample ${CONFDIR}/papd.conf
|
||||
share/examples/netatalk/rc.atalk
|
||||
@sample ${CONFDIR}/rc.atalk
|
||||
share/netatalk/
|
||||
share/netatalk/pagecount.ps
|
||||
share/nls/netatalk/
|
||||
@sample ${CONFDIR}/nls/
|
||||
share/nls/netatalk/maccode.437
|
||||
@sample ${CONFDIR}/nls/maccode.437
|
||||
share/nls/netatalk/maccode.850
|
||||
@sample ${CONFDIR}/nls/maccode.850
|
||||
share/nls/netatalk/maccode.iso8859-1
|
||||
@sample ${CONFDIR}/nls/maccode.iso8859-1
|
||||
share/nls/netatalk/maccode.iso8859-1.adapted
|
||||
@sample ${CONFDIR}/nls/maccode.iso8859-1.adapted
|
||||
share/nls/netatalk/maccode.koi8-r
|
||||
@extraunexec rm -rf ${SYSCONFDIR}/netatalk
|
||||
@sample ${CONFDIR}/nls/maccode.koi8-r
|
||||
|
Loading…
Reference in New Issue
Block a user