From 880a2f8a141c01aa0fde6b673f41a1f74886dd0f Mon Sep 17 00:00:00 2001 From: brad Date: Tue, 29 Aug 2000 04:27:50 +0000 Subject: [PATCH] - substiture SYSCONFDIR into DEINSTALL/INSTALL - using FAKE means you don't have to remove files/dirs durring install that you do not want in the package, just don't include them in the PLIST - unconditionally show DEINSTALL message, just because SYSCONFDIR has been removed doesn't mean that LOG_DIR has too - ${FOO} -> $FOO and add $SAMPLE_CONFIG_DIR to INSTALL script --- net/icecast/Makefile | 29 +++++++++++++++-------------- net/icecast/pkg/DEINSTALL | 30 ++++++++++++++---------------- net/icecast/pkg/INSTALL | 24 ++++++++++-------------- 3 files changed, 39 insertions(+), 44 deletions(-) diff --git a/net/icecast/Makefile b/net/icecast/Makefile index c66d752bec3..99850de6ae4 100644 --- a/net/icecast/Makefile +++ b/net/icecast/Makefile @@ -1,32 +1,33 @@ -# $OpenBSD: Makefile,v 1.2 2000/08/29 03:40:35 fgsch Exp $ - -DISTNAME= icecast-1.3.7 -CATEGORIES= audio net www -NEED_VERSION= 1.310 -MASTER_SITES= http://www.icecast.org/releases/ -MAINTAINER= fgsch@openbsd.org +# $OpenBSD: Makefile,v 1.3 2000/08/29 04:27:50 brad Exp $ ONLY_FOR_ARCH= i386 +DISTNAME= icecast-1.3.7 +CATEGORIES= audio net www +NEED_VERSION= 1.320 +MASTER_SITES= http://www.icecast.org/releases/ + HOMEPAGE= http://www.icecast.org/ +MAINTAINER= fgsch@openbsd.org + PERMIT_PACKAGE_CDROM= Yes PERMIT_PACKAGE_FTP= Yes PERMIT_DISTFILES_CDROM= Yes PERMIT_DISTFILES_FTP= Yes -CONFIGURE_STYLE= gnu -CONFIGURE_ARGS+= --with-crypt +SYSCONFDIR= /etc/icecast +SUBST_VARS= SYSCONFDIR -DOCFILES= AUTHORS BUGS CHANGES COPYING FAQ README +CONFIGURE_STYLE= gnu +CONFIGURE_ARGS= --with-crypt + +DOCS= AUTHORS BUGS CHANGES COPYING FAQ README post-patch: @cp ${FILESDIR}/icepass.c ${WRKSRC}/src post-install: - @rm -f ${PREFIX}/share/icecast/templates/manual.html - @rmdir ${PREFIX}/share/icecast/static - cd ${WRKSRC} && $(INSTALL_DATA) $(DOCFILES) \ - ${PREFIX}/share/doc/icecast + cd ${WRKSRC}; $(INSTALL_DATA) $(DOCS) ${PREFIX}/share/doc/icecast .include diff --git a/net/icecast/pkg/DEINSTALL b/net/icecast/pkg/DEINSTALL index 1f78e60670e..dc389f51f1d 100644 --- a/net/icecast/pkg/DEINSTALL +++ b/net/icecast/pkg/DEINSTALL @@ -1,27 +1,25 @@ #!/bin/sh -# $OpenBSD: DEINSTALL,v 1.1.1.1 2000/08/28 16:14:21 fgsch Exp $ +# $OpenBSD: DEINSTALL,v 1.2 2000/08/29 04:27:51 brad Exp $ # # icecast de-installation set -e PATH=/bin:/usr/bin:/sbin:/usr/sbin PREFIX=${PKG_PREFIX:-/usr/local} -CONFIG_DIR=/etc/icecast +CONFIG_DIR=${SYSCONFDIR} LOG_DIR=/var/log/icecast -if [ -d ${CONFIG_DIR} ]; then - echo - echo "+---------------" - echo "| To completely deinstall the $1 package you need to perform" - echo "| these steps as root:" - echo "|" - echo "| rm -rf ${CONFIG_DIR}" - echo "| rm -rf ${LOG_DIR}" - echo "|" - echo "| Do not do this if you plan on re-installing $1" - echo "| at some future time." - echo "+---------------" - echo -fi +echo +echo "+---------------" +echo "| To completely deinstall the $1 package you need to perform" +echo "| these steps as root:" +echo "|" +echo "| rm -rf $CONFIG_DIR" +echo "| rm -rf $LOG_DIR" +echo "|" +echo "| Do not do this if you plan on re-installing $1" +echo "| at some future time." +echo "+---------------" +echo exit 0 diff --git a/net/icecast/pkg/INSTALL b/net/icecast/pkg/INSTALL index ed950efb05c..0e412eaa853 100644 --- a/net/icecast/pkg/INSTALL +++ b/net/icecast/pkg/INSTALL @@ -1,5 +1,5 @@ #!/bin/sh -# $OpenBSD: INSTALL,v 1.1.1.1 2000/08/28 16:14:21 fgsch Exp $ +# $OpenBSD: INSTALL,v 1.2 2000/08/29 04:27:51 brad Exp $ # # Pre/post-installation setup of icecast @@ -8,36 +8,32 @@ set -e PATH=/bin:/usr/bin:/sbin:/usr/sbin PREFIX=${PKG_PREFIX:-/usr/local} -CONFIG_DIR=/etc/icecast -CONFIG_FILE=${CONFIG_DIR}/icecast.conf +CONFIG_DIR=${SYSCONFDIR} +CONFIG_FILE=$CONFIG_DIR/icecast.conf +SAMPLE_CONFIG_DIR=$PREFIX/share/examples/icecast LOG_DIR=/var/log/icecast -install -d -o root -g wheel -m 755 ${LOG_DIR} +install -d -o root -g wheel -m 755 $LOG_DIR -# Function: tell the user what s/he needs to do to use the port just installed -# do_notice() { echo echo "+---------------" - echo "| The existing $1 configuration files in ${CONFIG_DIR}," + 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, ${PREFIX}/share/examples/icecast/icecast.conf.dist," + echo "| current sample files, $SAMPLE_CONFIG_DIR/icecast.conf.dist," echo "| and update your configuration as needed." echo "+---------------" echo } -# Function: install the icecast configuration files from the samples -# do_install() { - install -d -o root -g wheel -m 755 ${CONFIG_DIR} - install -o root -g wheel -m 644 \ - ${PREFIX}/share/examples/icecast/icecast.conf.dist ${CONFIG_FILE} + install -d -o root -g wheel -m 755 $CONFIG_DIR + install -o root -g wheel -m 644 $SAMPLE_CONFIG_DIR/icecast.conf.dist $CONFIG_FILE echo echo "+---------------" - echo "| The $1 configuration files in ${CONFIG_DIR}," + 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 "+---------------"