This is the CVSup Mirror Kit, an easy way to set up a FreeBSD mirror
site. When you type "make", it asks you a few questions about
which files you want to mirror, where you want to put them on your
disks, where you want to update them from, etc. After a "make
install" your system will then be running as a nearly self-maintaining
FreeBSD mirror site. It will even update its own configuration
files from the master site automatically.
This kit is not for people who just want to keep their own files
up to date with CVSup. It is for people who wish to run servers
that distribute the FreeBSD sources to others.
This port requires CVSup version 15.3 or later.
WWW: http://www.cvsup.org/jdp@FreeBSD.org
Exports of the src repo were disabled May 26, 2014 so this port no longer
serves a purpose. Set a retroactive expiration date.
Approved by: portmgr (implicit)
In the rc.d scripts, change assignments to rcvar to use the
literal name_enable wherever possible, and ${name}_enable
when it's not, to prepare for the demise of set_rcvar().
In cases where I had to hand-edit unusual instances also
modify formatting slightly to be more uniform (and in
some cases, correct). This includes adding some $FreeBSD$
tags, and most importantly moving rcvar= to right after
name= so it's clear that one is derived from the other.
RC_SUBR_SUFFIX has not been needed for a long time now, all supported
versions of FreeBSD now use /etc/rc.subr and rc.d scripts without .sh
appended to the script name.
RC script now supports _flags variable. Comments available in the RC
script.
PR: ports/108847
Submitted by: Dan Langille <dan@langille.org>
Approved by: garga (mentor)
Retire obsolete USA_RESIDENT (dating to the bad old days of crypto export
controls and RSAref). nenscript was abusing this variable to enable
US-style paper size and date format, so just revert to the default for now.
Fix bug: When the net/cvsup-mirror port is installed on a system
with OSVERSION >= 600101, the update.sh script is unable to start
PREFIX/etc/rc.d/cvsupd.sh script, as it doesn't exist. Instead the
cvsupd.sh script is named cvsupd on systems with OSVERSION >=
600101.
PR: ports/108483
Submitted by: Scot Hetzel
Remove the FreeBSD KEYWORD from all rc.d scripts where it appears.
We have not checked for this KEYWORD for a long time now, so this
is a complete noop, and thus no PORTREVISION bump. Removing it at
this point is mostly for pedantic reasons, and partly to avoid
perpetuating this anachronism by copy and paste to future scripts.
[PATCH] net/cvsup-mirror: add some install time options for update.sh
Add following install time options for update.sh
- Whether or not /var/log/cvsup.log is rotated when update.sh
is invoked.
- Maximum number of log files.
- Wheter or not old log file is gzipped after rotated.
PR: ports/81598
Submitted by: KIMURA Yasuhiro <yasu@utahime.org>
Not objected by: jdp@FreeBSD.org
Fix two bugs in scripts.
1. If update.sh failed to determine the PREFIX, it didn't realize it
had failed. This is arguably caused by a shell bug in processing
the statement
export PREFIX=$(expr $0 : "\(/.*\)/etc/cvsup/update\.sh\$")
This statement always succeeds even if the "expr" command fails.
Moving the "export" to a separate statement makes it work.
2. If the system had no "/home" directory, the pkg-install script
would create it with mode 0700, making ~cvsupin inaccessible to its
owner. A user ran into this bug when installing cvsup-mirror into a
jail.
Put core dumps and crash output (cvsupd.out) into /var/run instead
of /var/tmp. Create cvsupd.out with mode 644 if it doesn't already
exist. Bump PORTREVISION.
Suggested by: Joshua Goodall <joshua@roughtrade.net>
Change PKGDIR from pkg/ to . Also fix places where ${PKGDIR} is spelled out
(many of which are ${PKGDIR}/MESSAGE -> ${PKGMESSAGE} type fixes that
shouldn't have been necessary) and the string "/pkg/" appear.
Add "exec" to the beginning of commands passed to "su ... -c ...". With some
shells (csh in particular) this eliminates a useless process waiting for the
command to finish.