summaryrefslogtreecommitdiff
path: root/net/cvsup-mirror/files
diff options
context:
space:
mode:
authorRene Ladan <rene@FreeBSD.org>2014-06-01 20:17:14 +0000
committerRene Ladan <rene@FreeBSD.org>2014-06-01 20:17:14 +0000
commitbc6d2aeff6f04f75f518e5f7b05d63e60b6e282d (patch)
tree8fb18a24adc16c55644daf95d91344b1794f869b /net/cvsup-mirror/files
parentUpdate from 1.7.0 to 1.7.1. (diff)
Remove net/cvsup-mirror: www, doc, gnats, ports repo gone; src repo deprecated
Diffstat (limited to 'net/cvsup-mirror/files')
-rw-r--r--net/cvsup-mirror/files/cvsupd.in65
-rw-r--r--net/cvsup-mirror/files/refuse.self6
-rw-r--r--net/cvsup-mirror/files/supfile9
-rw-r--r--net/cvsup-mirror/files/update.sh.in59
4 files changed, 0 insertions, 139 deletions
diff --git a/net/cvsup-mirror/files/cvsupd.in b/net/cvsup-mirror/files/cvsupd.in
deleted file mode 100644
index 60d080b4b6ff..000000000000
--- a/net/cvsup-mirror/files/cvsupd.in
+++ /dev/null
@@ -1,65 +0,0 @@
-#! /bin/sh
-#
-# $FreeBSD$
-#
-
-# PROVIDE: cvsupd
-# REQUIRE: DAEMON
-# KEYWORD: shutdown
-
-#
-# Add the following lines to /etc/rc.conf to enable cvsupd:
-#
-#cvsupd_enable="YES"
-
-#
-# Flag settings are now able to be overridden in /etc/rc.conf. The order
-# of priority is:
-#
-# Settings found in /etc/rc.conf are used (cvsupd_flags)
-# If nothing is found in /etc/rc.conf then settings found in
-# %%PREFIX%%/etc/cvsup/config.sh are used.
-# If nothing is found in %%PREFIX%%/etc/cvsup/config.sh
-# then the hardcoded values below are used.
-#
-#cvsupd_flags="-e -C 8 -l @daemon -b /home/ncvs -s sup.client"
-#
-# Note that answering the questions during the install will setup
-# %%PREFIX%%/etc/cvsup/config.sh for you.
-
-. /etc/rc.subr
-
-name="cvsupd"
-rcvar=cvsupd_enable
-
-load_rc_config $name
-
-# Load defaults from cvsupd config file
-base="%%PREFIX%%/etc/cvsup"
-if [ ! -r "${base}/config.sh" ]; then
- err 1 "${base}/config.sh is not readable."
-fi
-. ${base}/config.sh
-
-# Set defaults
-: ${cvsupd_enable:=NO}
-: ${cvsupd_outfile=/var/run/${name}.out}
-: ${cvsupd_user:=${user:-cvsup}}
-: ${cvsupd_flags:="-e -C ${maxclients:-8} -l @${facility:-daemon} \
- -b ${base:-/home/ncvs} -s sup.client"}
-
-command="%%PREFIX%%/sbin/cvsupd"
-stop_cmd="cvsupd_stop"
-
-cvsupd_stop() {
- if [ -z "$rc_pid" ]; then
- echo "${name} not running?"
- exit 1
- fi
- echo "Stopping ${name}."
- killall $name
- _return=$?
- [ "$_return" -ne 0 ] && [ -z "$rc_force" ] && return 1
-}
-
-run_rc_command "$1"
diff --git a/net/cvsup-mirror/files/refuse.self b/net/cvsup-mirror/files/refuse.self
deleted file mode 100644
index a69dfec5c2a8..000000000000
--- a/net/cvsup-mirror/files/refuse.self
+++ /dev/null
@@ -1,6 +0,0 @@
-*.sh
-cvsupd.access
-cvsupd.passwd
-prefixes
-sup.client
-supfile*
diff --git a/net/cvsup-mirror/files/supfile b/net/cvsup-mirror/files/supfile
deleted file mode 100644
index facf0d0fd274..000000000000
--- a/net/cvsup-mirror/files/supfile
+++ /dev/null
@@ -1,9 +0,0 @@
-#
-# Standard supfile for CVSup FreeBSD mirrors.
-#
-*default delete use-rel-suffix umask=002
-cvs-all release=cvs prefix=prefixes/FreeBSD.cvs
-gnats release=current prefix=prefixes/FreeBSD-gnats.current
-www release=current prefix=prefixes/FreeBSD-www.current
-mail-archive release=current prefix=prefixes/FreeBSD-mail.current
-distrib release=self prefix=prefixes/distrib.self
diff --git a/net/cvsup-mirror/files/update.sh.in b/net/cvsup-mirror/files/update.sh.in
deleted file mode 100644
index 965ab0df9437..000000000000
--- a/net/cvsup-mirror/files/update.sh.in
+++ /dev/null
@@ -1,59 +0,0 @@
-#! /bin/sh
-
-if ! PREFIX=$(expr $0 : "\(/.*\)/etc/cvsup/update\.sh\$"); then
- echo "$0: Cannot determine the PREFIX" >&2
- exit 1
-fi
-
-export PREFIX
-export CVSUP_ARGS="$*"
-export PATH=/bin:/usr/bin:${PREFIX}/bin
-
-lock=/var/spool/lock/cvsup.lock
-log=/var/log/cvsup.log
-
-umask 22
-
-exec >>${log} 2>&1
-
-# Do the update
-
-date "+CVSup update begins at %Y-%m-%d %T"
-
-# The rest of this is executed while holding the lock file, to ensure that
-# multiple instances won't collide with one another.
-
-lockf -t 0 ${lock} /bin/sh << 'E*O*F'
-
-base=${PREFIX}/etc/cvsup
-rundir=/var/tmp
-cd ${rundir} || exit
-. ${base}/config.sh || exit
-
-colldir=sup.client
-startup=${PREFIX}/etc/rc.d
-eval chome=~${cuser}
-cmd="exec env HOME=${chome} cvsup"
-options="-1gL 1 -b ${base} -c ${colldir} ${CVSUP_ARGS}"
-
-umask 2
-ok=yes
-
-echo "Updating from ${host}"
-su -f -m ${cuser} -c \
- "${cmd} ${options} -h ${host} ${base}/supfile" || ok=no
-
-if [ ${ok} = yes ]; then
- if [ -f ${base}/.start_server ]; then
- if [ -x ${startup}/cvsupd ]; then
- echo -n "Starting the server:"
- /bin/sh ${startup}/cvsupd start
- echo "."
- fi
- rm -f ${base}/.start_server
- fi
-fi
-
-E*O*F
-
-date "+CVSup update ends at %Y-%m-%d %T"