head	1.5;
access;
symbols
	pkgsrc-2013Q2:1.5.0.50
	pkgsrc-2013Q2-base:1.5
	pkgsrc-2012Q4:1.5.0.48
	pkgsrc-2012Q4-base:1.5
	pkgsrc-2011Q4:1.5.0.46
	pkgsrc-2011Q4-base:1.5
	pkgsrc-2011Q2:1.5.0.44
	pkgsrc-2011Q2-base:1.5
	pkgsrc-2009Q4:1.5.0.42
	pkgsrc-2009Q4-base:1.5
	pkgsrc-2008Q4:1.5.0.40
	pkgsrc-2008Q4-base:1.5
	pkgsrc-2008Q3:1.5.0.38
	pkgsrc-2008Q3-base:1.5
	cube-native-xorg:1.5.0.36
	cube-native-xorg-base:1.5
	pkgsrc-2008Q2:1.5.0.34
	pkgsrc-2008Q2-base:1.5
	pkgsrc-2008Q1:1.5.0.32
	pkgsrc-2008Q1-base:1.5
	pkgsrc-2007Q4:1.5.0.30
	pkgsrc-2007Q4-base:1.5
	pkgsrc-2007Q3:1.5.0.28
	pkgsrc-2007Q3-base:1.5
	pkgsrc-2007Q2:1.5.0.26
	pkgsrc-2007Q2-base:1.5
	pkgsrc-2007Q1:1.5.0.24
	pkgsrc-2007Q1-base:1.5
	pkgsrc-2006Q4:1.5.0.22
	pkgsrc-2006Q4-base:1.5
	pkgsrc-2006Q3:1.5.0.20
	pkgsrc-2006Q3-base:1.5
	pkgsrc-2006Q2:1.5.0.18
	pkgsrc-2006Q2-base:1.5
	pkgsrc-2006Q1:1.5.0.16
	pkgsrc-2006Q1-base:1.5
	pkgsrc-2005Q4:1.5.0.14
	pkgsrc-2005Q4-base:1.5
	pkgsrc-2005Q3:1.5.0.12
	pkgsrc-2005Q3-base:1.5
	pkgsrc-2005Q2:1.5.0.10
	pkgsrc-2005Q2-base:1.5
	pkgsrc-2005Q1:1.5.0.8
	pkgsrc-2005Q1-base:1.5
	pkgsrc-2004Q4:1.5.0.6
	pkgsrc-2004Q4-base:1.5
	pkgsrc-2004Q3:1.5.0.4
	pkgsrc-2004Q3-base:1.5
	pkgsrc-2004Q2:1.5.0.2
	pkgsrc-2004Q2-base:1.5
	pkgsrc-2004Q1:1.4.0.4
	pkgsrc-2004Q1-base:1.4
	pkgsrc-2003Q4:1.4.0.2
	pkgsrc-2003Q4-base:1.4
	netbsd-1-6-1:1.3.0.2
	netbsd-1-6-1-base:1.3
	netbsd-1-6:1.1.1.1.0.4
	netbsd-1-6-RELEASE-base:1.1
	pkgviews:1.1.1.1.0.6
	pkgviews-base:1.1
	buildlink2-base:1.1.1.1
	buildlink2:1.1.1.1.0.2
	pkgsrc-base:1.1.1.1
	TNF:1.1.1;
locks; strict;
comment	@# @;


1.5
date	2004.06.01.21.49.09;	author kristerw;	state dead;
branches;
next	1.4;

1.4
date	2003.08.30.20.22.59;	author jlam;	state Exp;
branches;
next	1.3;

1.3
date	2003.01.14.01.55.55;	author markd;	state Exp;
branches;
next	1.2;

1.2
date	2002.09.30.14.39.45;	author taca;	state Exp;
branches;
next	1.1;

1.1
date	2002.05.25.12.25.50;	author markd;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2002.05.25.12.25.50;	author markd;	state Exp;
branches
	1.1.1.1.2.1;
next	;

1.1.1.1.2.1
date	2002.05.25.12.25.50;	author jlam;	state dead;
branches;
next	1.1.1.1.2.2;

1.1.1.1.2.2
date	2002.06.23.18.56.09;	author jlam;	state Exp;
branches;
next	;


desc
@@


1.5
log
@Remove obsolete packages, per discussion on tech-pkg.
@
text
@#!/bin/sh
#
# $NetBSD: INSTALL,v 1.4 2003/08/30 20:22:59 jlam Exp $

PKGNAME=$1
STAGE=$2

case ${STAGE} in
POST-INSTALL)
	ETCDIR=/etc/netatalk

	mkdir -p ${ETCDIR}

	# The idea is to copy old config files over to the new location if
	# they exist.  Otherwise, copy the default config from the examples
	# directory.
	#
	if [ -f ${PKG_PREFIX}/etc/atalkd.conf ]
	then
		for file in \
			AppleVolumes.default \
			AppleVolumes.system \
			atalkd.conf \
			papd.conf
		do
			if [ ! -f ${ETCDIR}/${file} -a -f ${PKG_PREFIX}/etc/${file} ]
			then
				echo "  ${ETCDIR}/${file}"
				cp ${PKG_PREFIX}/etc/${file} ${ETCDIR}/${file}
				chmod 644 ${ETCDIR}/${file}
			fi
		done
		echo "done."
		cat << EOF
===========================================================================
Old configuration files were copied from ${PKG_PREFIX}/etc to
${ETCDIR}.  You may want to remove the old files as they are no
longer necessary.
===========================================================================
EOF
	else
		echo "Installing configuration files:"
		for file in \
			AppleVolumes.default \
			AppleVolumes.system \
			atalkd.conf \
			papd.conf
		do
			if [ -f ${ETCDIR}/${file} ]
			then
				echo "  ${ETCDIR}/${file} already exists"
			else
				echo "  ${ETCDIR}/${file}"
				cp ${PKG_PREFIX}/share/examples/netatalk/${file} \
					${ETCDIR}/${file}
				chmod 644 ${ETCDIR}/${file}
			fi
		done
		echo "done."
	fi
	;;
esac
exit 0
@


1.4
log
@Prepare for pkgviews by making sure that passing VIEW-INSTALL or
VIEW-DEINSTALL to the INSTALL/DEINSTALL scripts don't cause errors.
@
text
@d3 1
a3 1
# $NetBSD: INSTALL,v 1.3 2003/01/14 01:55:55 markd Exp $
@


1.3
log
@Revert previous as this doesn't use bsd.pkg.install.mk.

Should fix problem seen in the bulk build.
@
text
@d3 1
a3 1
# $NetBSD: INSTALL,v 1.2 2002/09/30 14:39:45 taca Exp $
a8 2
PRE-INSTALL)
	;;
a60 4
	;;
*)
	echo "Unexpected argument: ${STAGE}"
	exit 1
@


1.2
log
@The same fix as net/netatalk/INSTALL, I forgot it, too.

> Remove setting PKGNAME and STAGE from position parameters ($1 and $2).
> This break netatalk package under current bsd.pkg.install.mk.
@
text
@d3 4
a6 1
# $NetBSD: INSTALL,v 1.1 2002/05/25 12:25:50 markd Exp $
@


1.1
log
@Initial revision
@
text
@d3 1
a3 4
# $NetBSD: INSTALL,v 1.1 2001/10/31 22:56:34 zuntum Exp $

PKGNAME=$1
STAGE=$2
@


1.1.1.1
log
@Reimport of old umich netatalk as net/netatalk-umich to move out of way
of current netatalk.
@
text
@@


1.1.1.1.2.1
log
@file INSTALL was added on branch buildlink2 on 2002-06-23 18:56:09 +0000
@
text
@d1 69
@


1.1.1.1.2.2
log
@Merge from pkgsrc-current to buildlink2 branch.
@
text
@a0 69
#!/bin/sh
#
# $NetBSD: INSTALL,v 1.1.1.1.2.1 2002/06/23 18:56:09 jlam Exp $

PKGNAME=$1
STAGE=$2

case ${STAGE} in
PRE-INSTALL)
	;;
POST-INSTALL)
	ETCDIR=/etc/netatalk

	mkdir -p ${ETCDIR}

	# The idea is to copy old config files over to the new location if
	# they exist.  Otherwise, copy the default config from the examples
	# directory.
	#
	if [ -f ${PKG_PREFIX}/etc/atalkd.conf ]
	then
		for file in \
			AppleVolumes.default \
			AppleVolumes.system \
			atalkd.conf \
			papd.conf
		do
			if [ ! -f ${ETCDIR}/${file} -a -f ${PKG_PREFIX}/etc/${file} ]
			then
				echo "  ${ETCDIR}/${file}"
				cp ${PKG_PREFIX}/etc/${file} ${ETCDIR}/${file}
				chmod 644 ${ETCDIR}/${file}
			fi
		done
		echo "done."
		cat << EOF
===========================================================================
Old configuration files were copied from ${PKG_PREFIX}/etc to
${ETCDIR}.  You may want to remove the old files as they are no
longer necessary.
===========================================================================
EOF
	else
		echo "Installing configuration files:"
		for file in \
			AppleVolumes.default \
			AppleVolumes.system \
			atalkd.conf \
			papd.conf
		do
			if [ -f ${ETCDIR}/${file} ]
			then
				echo "  ${ETCDIR}/${file} already exists"
			else
				echo "  ${ETCDIR}/${file}"
				cp ${PKG_PREFIX}/share/examples/netatalk/${file} \
					${ETCDIR}/${file}
				chmod 644 ${ETCDIR}/${file}
			fi
		done
		echo "done."
	fi
	;;
*)
	echo "Unexpected argument: ${STAGE}"
	exit 1
	;;
esac
exit 0
@
