dns/totd: Replace custom @sample-like pkg-install script with just @sample

http://package21.nyi.freebsd.org/data/113amd64-default-qat/519259/logs/errors/totd-1.5.1_1.log
This commit is contained in:
Tobias Kortkamp 2019-12-13 06:14:27 +00:00
parent a9fe983d5e
commit dc60c4418c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=519968
3 changed files with 4 additions and 66 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= totd PORTNAME= totd
PORTVERSION= 1.5.1 PORTVERSION= 1.5.1
PORTREVISION= 1 PORTREVISION= 2
CATEGORIES= dns CATEGORIES= dns
MASTER_SITES= https://BSDforge.com/projects/source/dns/totd/ MASTER_SITES= https://BSDforge.com/projects/source/dns/totd/
@ -15,8 +15,9 @@ USES= desthack uidfix
USE_RC_SUBR= totd USE_RC_SUBR= totd
GNU_CONFIGURE= yes GNU_CONFIGURE= yes
PLIST_FILES= etc/totd.conf.sample sbin/totd \ PLIST_FILES= "@sample etc/totd.conf.sample" \
man/man8/totd.8.gz man/man8/totd.8.gz \
sbin/totd
EXTRA_PATCHES= ${FILESDIR}/extra-patch-ne_mesg.c \ EXTRA_PATCHES= ${FILESDIR}/extra-patch-ne_mesg.c \
${FILESDIR}/extra-patch-tcp_response.c ${FILESDIR}/extra-patch-tcp_response.c

View File

@ -1,18 +0,0 @@
#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.1 2000/06/11 01:15:53 fgsch Exp $
#
# Post-deinstallation cleanup of totd
if [ x$2 = "xDEINSTALL" ]; then
echo ""
echo "** To completely deinstall the totd package you need to perform this"
echo "** as root:"
echo "**"
echo "** rm -f ${PKG_PREFIX}/etc/totd.conf"
echo "**"
echo "** Be absolutly sure you want to completely remove the package before"
echo "** issuing this command."
echo ""
fi
exit 0

View File

@ -1,45 +0,0 @@
#! /bin/sh
# $OpenBSD: INSTALL,v 1.1 2000/06/11 01:15:53 fgsch Exp $
#
# Post-installation setup of totd - based on majordomo INSTALL script
# from daniel@reichardt.ch
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
do_install_configuration()
{
echo -n "Let's see if there is already a configuration file... "
if [ -f ${PREFIX}/etc/totd.conf ]; then
echo "yes"
echo "Please compare your existing configuration with"
echo "${PREFIX}/etc/totd.conf.sample"
else
echo "no"
echo -n "Copying sample configuration file... "
install -o root -g wheel -m 644 ${PREFIX}/etc/totd.conf.sample \
${PREFIX}/etc/totd.conf
echo "ok"
echo "Please review new configuration ${PREFIX}/etc/totd.conf"
fi
}
if [ $# -ne 2 ]; then
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
fi
case $2 in
PRE-INSTALL)
;;
POST-INSTALL)
do_install_configuration
;;
*)
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
;;
esac
exit 0