nuke more INSTALL scripts...

This commit is contained in:
xsa 2004-10-03 10:03:59 +00:00
parent 3b550a0182
commit 70541218d8
4 changed files with 13 additions and 124 deletions

View File

@ -1,30 +0,0 @@
#!/bin/sh
# $OpenBSD: DEINSTALL,v 1.3 2004/04/14 18:59:08 xsa Exp $
#
# opennap de-installation
set -e
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
CONFIG_FILE=${SYSCONFDIR}/vsftpd.conf
VSFTPDUSER=_vsftpd
VSFTPDGROUP=_vsftpd
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 "| userdel $VSFTPDUSER"
echo "| groupdel $VSFTPDGROUP"
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,89 +0,0 @@
#!/bin/sh
# $OpenBSD: INSTALL,v 1.3 2004/06/24 03:16:55 brad Exp $
#
# Pre/post-installation setup of vsftpd
PATH=/bin:/usr/bin:/sbin:/usr/sbin
PREFIX=${PKG_PREFIX:-/usr/local}
CONFIG_DIR=${SYSCONFDIR}
SAMPLE_CONFIG_DIR=$PREFIX/share/examples/vsftpd
VSFTPDUSER=_vsftpd
VSFTPDGROUP=_vsftpd
ID=513
do_usergroup_install()
{
# Create vsftpd user and group
groupinfo -e $VSFTPDGROUP
if [ $? -eq 0 ]; then
echo "===> Using $VSFTPDGROUP group for vsftpd"
else
echo "===> Creating $VSFTPDGROUP group for vsftpd"
groupadd -g $ID $VSFTPDGROUP
fi
userinfo -e $VSFTPDUSER
if [ $? -eq 0 ]; then
echo "===> Using $VSFTPDUSER user for vsftpd"
else
echo "===> Creating $VSFTPDUSER user for vsftpd"
useradd -g $VSFTPDGROUP -d /nonexistent -c 'vsftpd user' -s /sbin/nologin -u $ID $VSFTPDUSER
fi
}
do_notice()
{
echo
echo "+---------------"
echo "| The existing $1 configuration files in $CONFIG_DIR have NOT"
echo "| been changed. You may want to compare them to the current samples in"
echo "| $SAMPLE_CONFIG_DIR, and update your configuration"
echo "| files as needed."
echo "+---------------"
echo
}
do_install()
{
install -o root -g wheel -m 644 $SAMPLE_CONFIG_DIR/vsftpd.conf $CONFIG_DIR
echo
echo "+---------------"
echo "| The $1 configuration files have been installed in $CONFIG_DIR."
echo "| Please view these files and change the configuration to meet your needs."
echo "| You must also add one of the two folowing lines to your inetd.conf :"
echo "|"
echo "| ftp stream tcp nowait root ${PREFIX}/sbin/vsftpd vsftpd"
echo "|"
echo "| ftp stream tcp nowait root /usr/libexec/tcpd ${PREFIX}/sbin/vsftpd"
echo "|"
echo "| The second line is to use vsftpd with tcp-wrappers, see tcpd(8)."
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)
do_usergroup_install
;;
POST-INSTALL)
if [ ! -f $CONFIG_DIR/vsftpd.conf ]; then
do_install $1
else
do_notice $1
fi
;;
*)
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
exit 1
;;
esac
exit 0

9
net/vsftpd/pkg/MESSAGE Normal file
View File

@ -0,0 +1,9 @@
You must also add one of the two folowing lines to your inetd.conf
ftp stream tcp nowait root ${PREFIX}/sbin/vsftpd vsftpd"
or
ftp stream tcp nowait root /usr/libexec/tcpd ${PREFIX}/sbin/vsftpd"
The second line is to use vsftpd with tcp-wrappers, see tcpd(8).

View File

@ -1,4 +1,6 @@
@comment $OpenBSD: PLIST,v 1.4 2004/09/15 18:17:47 espie Exp $
@comment $OpenBSD: PLIST,v 1.5 2004/10/03 10:03:59 xsa Exp $
@newgroup _vsftpd:513
@newuser _vsftpd:513:_vsftpd:daemon:vsftpd user:/nonexistent:/sbin/nologin
@man man/man5/vsftpd.conf.5
@man man/man8/vsftpd.8
sbin/vsftpd
@ -24,7 +26,4 @@ share/examples/vsftpd/VIRTUAL_USERS/vsftpd.pam
share/examples/vsftpd/VIRTUAL_USERS_2/
share/examples/vsftpd/VIRTUAL_USERS_2/README
share/examples/vsftpd/vsftpd.conf
@cwd ${SYSCONFDIR}
@extra vsftpd.conf
@extraunexec userdel _vsftpd
@extraunexec groupdel _vsftpd
@sample ${SYSCONFDIR}/vsftpd.conf