diff options
author | hubertf <hubertf@pkgsrc.org> | 2001-11-30 23:33:34 +0000 |
---|---|---|
committer | hubertf <hubertf@pkgsrc.org> | 2001-11-30 23:33:34 +0000 |
commit | 3813fa37f8768011731c2b6d294d8cc8dd260789 (patch) | |
tree | ebdf4ab830ce83edabf81dce3170458f8b32a6ec /chat/silc-server/INSTALL | |
parent | 85c15b1d18988abfd2df67d402e078597179fc0d (diff) | |
download | pkgsrc-3813fa37f8768011731c2b6d294d8cc8dd260789.tar.gz |
Add silc-server 0.6.4:
SILC (Secure Internet Live Conferencing) is a protocol which provides
secure conferencing services in the Internet over insecure channel.
Contributed by Lubomir Sedlacik <salo@xtrmntr.org> in PR 14562
Diffstat (limited to 'chat/silc-server/INSTALL')
-rw-r--r-- | chat/silc-server/INSTALL | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/chat/silc-server/INSTALL b/chat/silc-server/INSTALL new file mode 100644 index 00000000000..c885dac5a6a --- /dev/null +++ b/chat/silc-server/INSTALL @@ -0,0 +1,95 @@ +#!/bin/sh +# +# $NetBSD: INSTALL,v 1.1.1.1 2001/11/30 23:33:34 hubertf Exp $ + +PKGNAME=$1 +STAGE=$2 + +CAT="@CAT@" +CHMOD="@CHMOD@" +CHOWN="@CHOWN@" +CP="@CP@" +MKDIR="@MKDIR@" + +SERVERROOT="@SILCD_CONF_DIR@" +LOGDIR=/var/log/silcd +SAMPLECONFDIR=${PKG_PREFIX}/share/doc/silcd +CONFDIR=${SERVERROOT} +CONFFILES="silcd.conf" +PUBKEY="silcd.pub" +PRIVKEY="silcd.prv" + +case ${STAGE} in +PRE-INSTALL) + ;; + +POST-INSTALL) + ${CAT} << EOF +=========================================================================== + + * creating directory for log files owned by root, group nobody: + +EOF + + ${MKDIR} ${SERVERROOT} + ${MKDIR} ${LOGDIR} + ${CHOWN} root:nobody ${LOGDIR} + ${CHMOD} 2775 ${LOGDIR} + echo " ${LOGDIR}" + + ${CAT} << EOF + + * don't forget to change this if you will setup silcd to run with + different UID and GID in silcd.conf! + +=========================================================================== + + * installing configuration files: + +EOF + + for file in ${CONFFILES} + do + FILE=${CONFDIR}/${file} + SAMPLEFILE=${SAMPLECONFDIR}/${file}.default + if [ -f ${FILE} ] + then + echo " ${FILE} already exists" + else + echo " ${FILE}" + ${CP} ${SAMPLEFILE} ${FILE} + ${CHMOD} 600 ${FILE} + fi + done + ${CAT} << EOF + + * you might need to customize your configuration file + +=========================================================================== + +EOF + + if [ -f ${CONFDIR}/${PUBKEY} ] && [ -f ${CONFDIR}/${PRIVKEY} ] + then + echo " * ${PUBKEY} and ${PRIVKEY} already exist:" + echo + echo " ${CONFDIR}/${PUBKEY}" + echo " ${CONFDIR}/${PRIVKEY}" + else + echo " * one or all of your server keys is missing," + echo + ${PKG_PREFIX}/sbin/silcd -C ${CONFDIR} + fi + + ${CAT} << EOF + +=========================================================================== +EOF + ;; + +*) + echo "Unexpected argument: ${STAGE}" + exit 1 + ;; +esac +exit 0 |