replace INSTALL/DEINSTALL
This commit is contained in:
parent
d9e2a34829
commit
3b6bc05b5a
@ -1,25 +0,0 @@
|
||||
#!/bin/sh
|
||||
# $OpenBSD: DEINSTALL,v 1.4 2004/04/19 09:43:50 xsa Exp $
|
||||
|
||||
set -e
|
||||
PATH="/bin:/usr/bin:/sbin:/usr/sbin"
|
||||
PREFIX="${PKG_PREFIX:-/usr/local}"
|
||||
CONFIG_DIR="${SYSCONFDIR}/raddb"
|
||||
RADACCT_DIR="/var/log/radacct"
|
||||
|
||||
if [ ${PKG_DELETE_EXTRA} != Yes -a \
|
||||
\( -d ${CONFIG_DIR} -o -d ${RADACCT_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 ${RADACCT_DIR}"
|
||||
echo "| Do not do this if you plan on re-installing $1"
|
||||
echo "| at some future time."
|
||||
echo "+---------------"
|
||||
echo
|
||||
fi
|
||||
|
||||
exit 0
|
@ -1,116 +0,0 @@
|
||||
#!/bin/sh
|
||||
# $OpenBSD: INSTALL,v 1.4 2004/08/24 20:43:19 danh Exp $
|
||||
#
|
||||
|
||||
# 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_DIR="${SYSCONFDIR}/raddb"
|
||||
SAMPLE_DIR="${PREFIX}/share/examples/radiusd-cistron"
|
||||
RADACCT_DIR="/var/log/radacct"
|
||||
|
||||
do_notice()
|
||||
{
|
||||
echo
|
||||
echo "+---------------"
|
||||
echo "| The directory ${CONFIG_DIR} already exists on your system. The"
|
||||
echo "| configuration files have NOT been updated. Please look at the"
|
||||
echo "| files located in ${SAMPLE_DIR} and"
|
||||
echo "| add any desired (but missing) entries into your configuration"
|
||||
echo "| files."
|
||||
}
|
||||
|
||||
do_install()
|
||||
{
|
||||
install -d -m 0755 -o root -g wheel ${CONFIG_DIR}
|
||||
install -d -m 0700 -o root -g wheel ${RADACCT_DIR}
|
||||
install -m 0600 -o root -g wheel ${SAMPLE_DIR}/clients \
|
||||
${CONFIG_DIR}/clients
|
||||
install -m 0644 -o root -g wheel ${SAMPLE_DIR}/dictionary \
|
||||
${CONFIG_DIR}/dictionary
|
||||
install -m 0644 -o root -g wheel ${SAMPLE_DIR}/dictionary.ascend \
|
||||
${CONFIG_DIR}/dictionary.ascend
|
||||
install -m 0644 -o root -g wheel ${SAMPLE_DIR}/dictionary.bay \
|
||||
${CONFIG_DIR}/dictionary.bay
|
||||
install -m 0644 -o root -g wheel ${SAMPLE_DIR}/dictionary.cisco \
|
||||
${CONFIG_DIR}/dictionary.cisco
|
||||
install -m 0644 -o root -g wheel ${SAMPLE_DIR}/dictionary.cistron \
|
||||
${CONFIG_DIR}/dictionary.cistron
|
||||
install -m 0644 -o root -g wheel ${SAMPLE_DIR}/dictionary.compat \
|
||||
${CONFIG_DIR}/dictionary.compat
|
||||
install -m 0644 -o root -g wheel ${SAMPLE_DIR}/dictionary.erx \
|
||||
${CONFIG_DIR}/dictionary.erx
|
||||
install -m 0644 -o root -g wheel ${SAMPLE_DIR}/dictionary.livingston \
|
||||
${CONFIG_DIR}/dictionary.livingston
|
||||
install -m 0644 -o root -g wheel ${SAMPLE_DIR}/dictionary.redback \
|
||||
${CONFIG_DIR}/dictionary.redback
|
||||
install -m 0644 -o root -g wheel ${SAMPLE_DIR}/dictionary.shiva \
|
||||
${CONFIG_DIR}/dictionary.shiva
|
||||
install -m 0644 -o root -g wheel ${SAMPLE_DIR}/dictionary.standard \
|
||||
${CONFIG_DIR}/dictionary.standard
|
||||
install -m 0644 -o root -g wheel ${SAMPLE_DIR}/dictionary.tunnel \
|
||||
${CONFIG_DIR}/dictionary.tunnel
|
||||
install -m 0644 -o root -g wheel ${SAMPLE_DIR}/dictionary.usr \
|
||||
${CONFIG_DIR}/dictionary.usr
|
||||
install -m 0644 -o root -g wheel ${SAMPLE_DIR}/dictionary.versanet \
|
||||
${CONFIG_DIR}/dictionary.versanet
|
||||
install -m 0644 -o root -g wheel ${SAMPLE_DIR}/hints ${CONFIG_DIR}/hints
|
||||
install -m 0644 -o root -g wheel ${SAMPLE_DIR}/huntgroups \
|
||||
${CONFIG_DIR}/huntgroups
|
||||
install -m 0644 -o root -g wheel ${SAMPLE_DIR}/naslist \
|
||||
${CONFIG_DIR}/naslist
|
||||
install -m 0600 -o root -g wheel ${SAMPLE_DIR}/naspasswd \
|
||||
${CONFIG_DIR}/naspasswd
|
||||
install -m 0644 -o root -g wheel ${SAMPLE_DIR}/realms ${CONFIG_DIR}/realms
|
||||
install -m 0600 -o root -g wheel ${SAMPLE_DIR}/users ${CONFIG_DIR}/users
|
||||
echo
|
||||
echo "+---------------"
|
||||
echo "| The RADIUS configuration files have been installed in"
|
||||
echo "| ${CONFIG_DIR}. By default, radiusd will log the accounting"
|
||||
echo "| information to ${RADACCT_DIR}."
|
||||
}
|
||||
|
||||
do_directions()
|
||||
{
|
||||
echo "|"
|
||||
echo "| You will need to edit /etc/rc.local as appropriate and add a"
|
||||
echo "| section similar to the following:"
|
||||
echo "|"
|
||||
echo "| if [ -x ${PREFIX}/sbin/radiusd ]; then"
|
||||
echo "| ${PREFIX}/sbin/radiusd -y && echo -n ' radiusd'"
|
||||
echo "| fi"
|
||||
echo "|"
|
||||
echo "| See radiusd(8) for more available options."
|
||||
echo "+---------------"
|
||||
}
|
||||
|
||||
# verify proper execution
|
||||
#
|
||||
if [ $# -ne 2 ]; then
|
||||
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# verify the command
|
||||
#
|
||||
case $2 in
|
||||
PRE-INSTALL)
|
||||
: nothing to pre-install for this port
|
||||
;;
|
||||
POST-INSTALL)
|
||||
if [ -d $CONFIG_DIR ]; then
|
||||
do_notice $1
|
||||
else
|
||||
do_install $1
|
||||
fi
|
||||
do_directions $1
|
||||
;;
|
||||
*)
|
||||
echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
@ -1,4 +1,4 @@
|
||||
@comment $OpenBSD: PLIST,v 1.10 2004/09/18 13:01:48 espie Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.11 2004/10/11 15:04:46 danh Exp $
|
||||
@conflict radiusd-lucent-*
|
||||
bin/builddbm
|
||||
bin/radclient
|
||||
@ -36,26 +36,55 @@ share/doc/radiusd-cistron/README.simul
|
||||
share/doc/radiusd-cistron/README.tunnel
|
||||
share/doc/radiusd-cistron/README.usersfile
|
||||
share/examples/radiusd-cistron/
|
||||
@sample ${SYSCONFDIR}/raddb/
|
||||
share/examples/radiusd-cistron/clients
|
||||
@mode 0640
|
||||
@sample ${SYSCONFDIR}/raddb/clients
|
||||
@mode
|
||||
share/examples/radiusd-cistron/dictionary
|
||||
@sample ${SYSCONFDIR}/raddb/dictionary
|
||||
share/examples/radiusd-cistron/dictionary.ascend
|
||||
@sample ${SYSCONFDIR}/raddb/dictionary.ascend
|
||||
share/examples/radiusd-cistron/dictionary.bay
|
||||
@sample ${SYSCONFDIR}/raddb/dictionary.bay
|
||||
share/examples/radiusd-cistron/dictionary.cisco
|
||||
@sample ${SYSCONFDIR}/raddb/dictionary.cisco
|
||||
share/examples/radiusd-cistron/dictionary.cistron
|
||||
@sample ${SYSCONFDIR}/raddb/dictionary.cistron
|
||||
share/examples/radiusd-cistron/dictionary.compat
|
||||
@sample ${SYSCONFDIR}/raddb/dictionary.compat
|
||||
share/examples/radiusd-cistron/dictionary.erx
|
||||
@sample ${SYSCONFDIR}/raddb/dictionary.erx
|
||||
share/examples/radiusd-cistron/dictionary.livingston
|
||||
@sample ${SYSCONFDIR}/raddb/dictionary.livingston
|
||||
share/examples/radiusd-cistron/dictionary.redback
|
||||
@sample ${SYSCONFDIR}/raddb/dictionary.redback
|
||||
share/examples/radiusd-cistron/dictionary.shiva
|
||||
@sample ${SYSCONFDIR}/raddb/dictionary.shiva
|
||||
share/examples/radiusd-cistron/dictionary.standard
|
||||
@sample ${SYSCONFDIR}/raddb/dictionary.standard
|
||||
share/examples/radiusd-cistron/dictionary.tunnel
|
||||
@sample ${SYSCONFDIR}/raddb/dictionary.tunnel
|
||||
share/examples/radiusd-cistron/dictionary.usr
|
||||
@sample ${SYSCONFDIR}/raddb/dictionary.usr
|
||||
share/examples/radiusd-cistron/dictionary.versanet
|
||||
@sample ${SYSCONFDIR}/raddb/dictionary.versanet
|
||||
share/examples/radiusd-cistron/hints
|
||||
@sample ${SYSCONFDIR}/raddb/hints
|
||||
share/examples/radiusd-cistron/huntgroups
|
||||
@sample ${SYSCONFDIR}/raddb/huntgroups
|
||||
share/examples/radiusd-cistron/naslist
|
||||
@sample ${SYSCONFDIR}/raddb/naslist
|
||||
share/examples/radiusd-cistron/naspasswd
|
||||
@mode 0640
|
||||
@sample ${SYSCONFDIR}/raddb/naspasswd
|
||||
@mode
|
||||
share/examples/radiusd-cistron/realms
|
||||
@sample ${SYSCONFDIR}/raddb/realms
|
||||
share/examples/radiusd-cistron/users
|
||||
@extraunexec rm -rf ${SYSCONFDIR}/raddb
|
||||
@extraunexec rm -rf /var/log/radacct
|
||||
@mode 0640
|
||||
@sample ${SYSCONFDIR}/raddb/users
|
||||
@mode
|
||||
@sample /var/log/radacct/
|
||||
@extraunexec rm -rf ${SYSCONFDIR}/raddb/
|
||||
@extraunexec rm -rf /var/log/radacct/
|
||||
|
Loading…
x
Reference in New Issue
Block a user