new plist, using @sample.

This commit is contained in:
espie 2004-08-08 13:51:39 +00:00
parent 39ec54eaaa
commit d89df361c8
3 changed files with 7 additions and 151 deletions

View File

@ -1,25 +0,0 @@
#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.5 2003/10/18 00:37:19 naddy Exp $
#
# wget de-installation
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
CONFIG_FILE=${SYSCONFDIR}/wgetrc
if [ "$PKG_DELETE_EXTRA" != Yes -a -f $CONFIG_FILE ]; then
echo
echo "+---------------"
echo "| To completely deinstall the $1 package you need to perform"
echo "| this step as root:"
echo "|"
echo "| rm -f $CONFIG_FILE"
echo "|"
echo "| Do not do this if you plan on re-installing $1"
echo "| at some future time."
echo "+---------------"
echo
fi
exit 0

View File

@ -1,65 +0,0 @@
#!/bin/sh
# $OpenBSD: INSTALL,v 1.5 2001/09/06 04:02:24 brad Exp $
#
# Pre/post-installation setup of wget
# 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_FILE=${SYSCONFDIR}/wgetrc
SAMPLE_CONFIG_FILE=$PREFIX/share/examples/wget/sample.wgetrc
do_notice()
{
echo
echo "+---------------"
echo "| The existing $1 configuration file, $CONFIG_FILE,"
echo "| has NOT been changed. You may want to compare it to the"
echo "| current sample file, $SAMPLE_CONFIG_FILE,"
echo "| and update your configuration as needed."
echo "+---------------"
echo
}
do_install()
{
install -o root -g wheel -m 644 $SAMPLE_CONFIG_FILE $CONFIG_FILE
echo
echo "+---------------"
echo "| The $1 configuration file, $CONFIG_FILE,"
echo "| has been installed. Please view this file 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 [ -f $CONFIG_FILE ]; then
do_notice $1
else
do_install $1
fi
;;
*)
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
;;
esac
exit 0

View File

@ -1,11 +1,13 @@
@comment $OpenBSD: PLIST,v 1.17 2003/12/15 17:40:57 naddy Exp $
@comment $OpenBSD: PLIST,v 1.18 2004/08/08 13:51:39 espie Exp $
bin/wget
@unexec install-info --delete --info-dir=%D/info %D/info/wget.info
info/wget.info
@exec install-info --info-dir=%D/info %D/info/wget.info
man/man1/wget.1
@info info/wget.info
@man man/man1/wget.1
share/examples/wget/
share/examples/wget/sample.wgetrc
@sample ${SYSCONFDIR}/wgetrc
share/locale/bg/LC_MESSAGES/wget.mo
share/locale/ca/
share/locale/ca/LC_MESSAGES/
share/locale/ca/LC_MESSAGES/wget.mo
share/locale/cs/LC_MESSAGES/wget.mo
share/locale/da/LC_MESSAGES/wget.mo
@ -31,59 +33,3 @@ share/locale/sv/LC_MESSAGES/wget.mo
share/locale/tr/LC_MESSAGES/wget.mo
share/locale/uk/LC_MESSAGES/wget.mo
share/locale/zh_TW/LC_MESSAGES/wget.mo
@dirrm share/locale/zh_TW/LC_MESSAGES
@dirrm share/locale/zh_TW
@dirrm share/locale/uk/LC_MESSAGES
@dirrm share/locale/uk
@dirrm share/locale/tr/LC_MESSAGES
@dirrm share/locale/tr
@dirrm share/locale/sv/LC_MESSAGES
@dirrm share/locale/sv
@dirrm share/locale/sl/LC_MESSAGES
@dirrm share/locale/sl
@dirrm share/locale/sk/LC_MESSAGES
@dirrm share/locale/sk
@dirrm share/locale/ru/LC_MESSAGES
@dirrm share/locale/ru
@dirrm share/locale/pt_BR/LC_MESSAGES
@dirrm share/locale/pt_BR
@dirrm share/locale/pl/LC_MESSAGES
@dirrm share/locale/pl
@dirrm share/locale/no/LC_MESSAGES
@dirrm share/locale/no
@dirrm share/locale/nl/LC_MESSAGES
@dirrm share/locale/nl
@dirrm share/locale/ja/LC_MESSAGES
@dirrm share/locale/ja
@dirrm share/locale/it/LC_MESSAGES
@dirrm share/locale/it
@dirrm share/locale/hu/LC_MESSAGES
@dirrm share/locale/hu
@dirrm share/locale/hr/LC_MESSAGES
@dirrm share/locale/hr
@dirrm share/locale/he/LC_MESSAGES
@dirrm share/locale/he
@dirrm share/locale/gl/LC_MESSAGES
@dirrm share/locale/gl
@dirrm share/locale/fr/LC_MESSAGES
@dirrm share/locale/fr
@dirrm share/locale/et/LC_MESSAGES
@dirrm share/locale/et
@dirrm share/locale/es/LC_MESSAGES
@dirrm share/locale/es
@dirrm share/locale/el/LC_MESSAGES
@dirrm share/locale/el
@dirrm share/locale/de/LC_MESSAGES
@dirrm share/locale/de
@dirrm share/locale/da/LC_MESSAGES
@dirrm share/locale/da
@dirrm share/locale/cs/LC_MESSAGES
@dirrm share/locale/cs
@dirrm share/locale/ca/LC_MESSAGES
@dirrm share/locale/ca
@dirrm share/locale/bg/LC_MESSAGES
@dirrm share/locale/bg
@dirrm share/locale
@dirrm share/examples/wget
@cwd ${SYSCONFDIR}
@extra wgetrc