- Fake (brad@)
- ${STRIP} -> strip - add DEINSTALL
This commit is contained in:
parent
c8bc63849b
commit
a686aca138
@ -1,11 +1,10 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2000/02/28 09:27:02 camield Exp $
|
||||
# $OpenBSD: Makefile,v 1.2 2000/03/06 13:34:09 camield Exp $
|
||||
|
||||
DISTNAME= proxy-suite-1.7
|
||||
CATEGORIES= net security
|
||||
MAINTAINER= cd@sentia.nl
|
||||
HOMEPAGE= http://proxy-suite.suse.de
|
||||
|
||||
LICENSE_TYPE= GPL
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
@ -17,14 +16,29 @@ MASTER_SITES= \
|
||||
ftp://ftp.gwdg.de/pub/linux/suse/ftp.suse.com/projects/proxy-suite/ \
|
||||
ftp://ftp.funet.fi/pub/mirrors/ftp.suse.com/pub/projects/proxy-suite/
|
||||
|
||||
NEED_VERSION= 1.218
|
||||
|
||||
USE_GMAKE= Yes
|
||||
GNU_CONFIGURE= Yes
|
||||
CONFIGURE_ARGS= --with-libwrap=/usr/lib/
|
||||
HAS_CONFIGURE= Yes
|
||||
CONFIGURE_ARGS= --prefix='$${DESTDIR}${PREFIX}' \
|
||||
--sysconfdir='$${DESTDIR}/etc' \
|
||||
--with-libwrap=/usr/lib/
|
||||
|
||||
# Take care with sysconfdir:
|
||||
# - the port will install configuration in fake/etc/ (will be discarded)
|
||||
# - post-install copies it from WRKSRC to PREFIX/share/proxy-suite/
|
||||
# - pkg/INSTALL installs them in /etc/proxy-suite/
|
||||
# (which is where ftp-proxy defaults to, this discrepance has been
|
||||
# mailed to the authors)
|
||||
|
||||
FAKE= Yes
|
||||
|
||||
pre-install:
|
||||
${STRIP} ${WRKSRC}/ftp-proxy/ftp-proxy
|
||||
@strip ${WRKSRC}/ftp-proxy/ftp-proxy
|
||||
|
||||
post-install:
|
||||
@PREFIX=${PREFIX} ${SH} ${PKGDIR}/INSTALL ${DISTNAME} POST-INSTALL
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/proxy-suite
|
||||
${INSTALL_DATA} ${WRKSRC}/ftp-proxy/ftp-proxy.conf.sample \
|
||||
${PREFIX}/share/proxy-suite
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
24
net/proxy-suite/pkg/DEINSTALL
Normal file
24
net/proxy-suite/pkg/DEINSTALL
Normal file
@ -0,0 +1,24 @@
|
||||
# $OpenBSD: DEINSTALL,v 1.1 2000/03/06 13:34:10 camield Exp $
|
||||
#
|
||||
# proxy-suite de-installation
|
||||
|
||||
set -e
|
||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||
PREFIX=${PKG_PREFIX:-/usr/local}
|
||||
CONFIG_DIR=/etc/proxy-suite
|
||||
|
||||
if [ -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 -rf ${CONFIG_DIR}"
|
||||
echo "|"
|
||||
echo "| Do not do this if you plan on re-installing $1"
|
||||
echo "| at some future time."
|
||||
echo "+---------------"
|
||||
echo
|
||||
fi
|
||||
|
||||
exit 0
|
@ -1,62 +1,67 @@
|
||||
#!/bin/sh
|
||||
# $OpenBSD: INSTALL,v 1.1.1.1 2000/02/28 09:27:02 camield Exp $
|
||||
# $OpenBSD: INSTALL,v 1.2 2000/03/06 13:34:10 camield Exp $
|
||||
#
|
||||
# Pre/post-installation setup of proxy-suite
|
||||
# (based on the squid INSTALL file)
|
||||
|
||||
set -e
|
||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||
PREFIX=${PREFIX:-$PKG_PREFIX}
|
||||
SYSCONFDIR=${SYSCONFDIR:-/etc}
|
||||
SAMPLE_DIR=$PREFIX/lib/proxy-suite/conf
|
||||
PREFIX=${PREFIX:-/usr/local}
|
||||
CONFIG_DIR=/etc/proxy-suite
|
||||
CONFIG_FILE=${CONFIG_DIR}/ftp-proxy.conf
|
||||
SAMPLE_FILE=${PREFIX}/share/proxy-suite/ftp-proxy.conf.sample
|
||||
|
||||
do_notice_conf()
|
||||
# Function: tell the user what s/he needs to do to use the port just installed
|
||||
#
|
||||
do_notice()
|
||||
{
|
||||
# Copy configuration files so they can be packaged.
|
||||
# Package builders: manually remove the configuration files,
|
||||
# to be sure that vanilla ones get packaged.
|
||||
|
||||
if [ ! -f $SAMPLEDIR/ftp-proxy.conf ]; then
|
||||
mkdir -p $SAMPLE_DIR
|
||||
cp $SYSCONFDIR/ftp-proxy.conf $SAMPLE_DIR
|
||||
fi
|
||||
cat <<FMT | fmt
|
||||
The existing $1 configuration files in $SYSCONFDIR have NOT been changed.
|
||||
You may want to compare them to the samples in $SAMPLE_DIR, and update
|
||||
your configuration files as needed.
|
||||
FMT
|
||||
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_FILE},"
|
||||
echo "| and update your configuration as needed."
|
||||
echo "+---------------"
|
||||
echo
|
||||
}
|
||||
|
||||
do_install_conf()
|
||||
# Function: install the system ftp-proxy.conf from the sample
|
||||
#
|
||||
do_install()
|
||||
{
|
||||
cp $SAMPLE_DIR/ftp-proxy.conf $SYSCONFDIR
|
||||
cat <<FMT | fmt
|
||||
Sample configuration files can be found in $SAMPLE_DIR. A fresh set of
|
||||
configuration files have been copied to $SYSCONFDIR. Please change those
|
||||
to meet your needs.
|
||||
FMT
|
||||
mkdir -p ${CONFIG_DIR}
|
||||
cp ${SAMPLE_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)
|
||||
;;
|
||||
;;
|
||||
POST-INSTALL)
|
||||
echo "+----------------"
|
||||
echo "| Finished installing $1"
|
||||
echo "+----------------"
|
||||
echo
|
||||
if [ -f $SYSCONFDIR/ftp-proxy.conf ]; then
|
||||
do_notice_conf $1
|
||||
else
|
||||
do_install_conf $1
|
||||
fi
|
||||
;;
|
||||
if [ -f $CONFIG_FILE ]; then
|
||||
do_notice $1
|
||||
else
|
||||
do_install $1
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "usage: `basename $0` distname <PRE-INSTALL|POST-INSTAL>" >&2
|
||||
exit 1
|
||||
;;
|
||||
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
|
||||
exit 1
|
||||
esac
|
||||
|
||||
exit 0
|
||||
|
@ -1,6 +1,5 @@
|
||||
lib/proxy-suite/conf/ftp-proxy.conf
|
||||
share/proxy-suite/ftp-proxy.conf.sample
|
||||
man/man5/ftp-proxy.conf.5
|
||||
man/man8/ftp-proxy.8
|
||||
sbin/ftp-proxy
|
||||
@dirrm lib/proxy-suite/conf
|
||||
@dirrm lib/proxy-suite
|
||||
@dirrm share/proxy-suite
|
||||
|
Loading…
x
Reference in New Issue
Block a user