openbsd-ports/audio/xmms/pkg/INSTALL-gnome
naddy 16d111e0af Update to 1.2.7; submitted by maintainer Wilbern Cobb <vedge@csoft.org>.
* Use the system libtool.
* Remove the disk writer flavor, include it by default.
* Add a gnome subpackage.

Notable changes in this release:

General:
* Replaced folder icons.
* Don't display playlist numbers elsewhere when turned off.
* Support 32-bit and 16-bit "bitfield" bmps in skins.
CD Audio:
* Supply a dummy user and hostname to the cddb server.
MPG123:
* Handle UTF-16 encoded tags.
* Major stability fixes.
2002-03-11 17:38:05 +00:00

84 lines
1.7 KiB
Bash

#!/bin/sh
#
# $OpenBSD: INSTALL-gnome,v 1.1 2002/03/11 17:38:05 naddy Exp $
set -e
PREFIX=${PKG_PREFIX:-/usr/local}
PATH=/bin:/usr/bin:/sbin:/usr/sbin
P_NAME=xmms-gnome
DEST_PFX=${SYSCONFDIR}
SOURCE_PFX=${PREFIX}/share/examples/${P_NAME}
FILES='
CORBA/servers/gnomexmms.gnorba
'
do_post() {
echo
echo "+--------------- ${P_NAME}"
# install or take note of existing config files
for f in ${FILES}; do
if [ -f "${DEST_PFX}/$f" ]; then
OLD_CONFS="${OLD_CONFS} $f"
else
if ! install -m 644 ${SOURCE_PFX}/$f ${DEST_PFX}/$f; then
echo "| ERROR: The following file could not be installed, exiting: ${DEST_PFX}/$f"
exit 1
fi
NEW_CONFS="${NEW_CONFS} $f"
fi
done
# print status report
if [ -n "${NEW_CONFS}" ]; then
echo "| The following NEW configuration files have been installed:"
echo "|"
for f in ${NEW_CONFS}; do
echo "| ${DEST_PFX}/$f"
done
fi
if [ -n "${OLD_CONFS}" ]; then
if [ -n "${NEW_CONFS}" ]; then
echo "|"
fi
echo "| The following OLD configuration files was found and have NOT been overwritten:"
echo "| You should however manually compare them to their equivalents in "
echo "|"
echo "| ${SOURCE_PFX}"
echo "|"
echo "| and update your configuration if needed."
echo "|"
for f in ${OLD_CONFS}; do
echo "| ${DEST_PFX}/$f"
done
fi
echo "+--------------- ${P_NAME}"
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)
;;
POST-INSTALL)
do_post
;;
*)
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
;;
esac
exit 0