1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
Commit Graph

32 Commits

Author SHA1 Message Date
Doug Barton
9aac569eaa Move the rc.d scripts of the form *.sh.in to *.in
Where necessary add $FreeBSD$ to the file

No PORTREVISION bump necessary because this is a no-op
2012-08-05 23:19:36 +00:00
Doug Barton
83eb2c3700 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.
2012-01-14 08:57:23 +00:00
Doug Barton
86922094aa 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.
2010-03-27 06:14:03 +00:00
Doug Barton
1d6b4b3f91 Begin the process of deprecating sysutils/rc_subr by
s#. %%RC_SUBR%%#. /etc/rc.subr#
2010-03-27 00:15:24 +00:00
Wesley Shields
cd30e40d02 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)
2008-03-13 21:31:02 +00:00
John Polstra
f83451d8f6 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
2007-01-29 01:13:35 +00:00
Doug Barton
c49d1a3273 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.
2006-02-20 20:47:50 +00:00
Edwin Groothuis
e0374a6fc2 [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
2006-01-02 10:05:11 +00:00
Pav Lucistnik
da4839ee4b - Provide rcNG startup script
PR:		ports/89316
Submitted by:	Petr Rehor <prehor@gmail.com>
Approved by:	maintainer timeout (jpd; 19 days)
2005-12-09 14:49:43 +00:00
John Polstra
7fc792b6a6 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.
2004-08-05 23:37:47 +00:00
Mathieu Arnold
5dba4dc13f Ok, fix it once more, I swear I won't be doint sh scripts for a while
Pointy Hat To: 	me (I still have it, don't search)
2004-03-17 11:23:04 +00:00
Mathieu Arnold
ab5ab8d185 Corrected silly sh error
PORTREVISION bumped

Pointy Hat To: 	me
2004-03-17 07:17:57 +00:00
Mathieu Arnold
3a90ce4e5c Update to 1.3, allow to add increase history and to compress logs easily
Approved by:	jdp (maintainer)
2004-03-16 17:35:06 +00:00
John Polstra
d6a2c9b4cb 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>
2002-11-11 17:21:29 +00:00
John Polstra
72d03e0fab Set the umask explicitly to 002 in the supfile. This prevents
permission problems in case "/etc/profile" sets it to something
else.

Discovered by:	Dag-Erling Smorgrav <des>
2000-09-13 18:11:48 +00:00
John Polstra
6d296c9994 Update the cvsup-mirror port to reflect the fact that crypto isn't
a special case any more.
2000-07-09 17:57:33 +00:00
John Polstra
8ecbd3b062 Remove src-crypto-rsa. It doesn't exist any more. 2000-07-03 22:57:53 +00:00
Andrey A. Chernov
560b15f8d5 Add src-crypto-rsa 2000-06-29 14:21:33 +00:00
John Polstra
3d21afad7b 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.

Submitted by:	Mikhail Teterin <mi@privatelabs.com>
2000-06-21 05:00:15 +00:00
Akinori MUSHA
8e6405e403 Make update.sh accept command line options that are passed to CVSup.
Now users can schedule CVSup e.g. as follows:

    45 0-6,8-23 * * * root nice -15 /usr/local/etc/cvsup/update.sh -s
    45 7        * * * root nice -15 /usr/local/etc/cvsup/update.sh

Approved by:	John Polstra <jdp@polstra.com>
2000-04-24 14:01:58 +00:00
John Polstra
9a07481b47 Add "-f" to all "su" invocations for better behavior when the login
shell is csh.

Submitted by:	ache
2000-03-05 18:40:28 +00:00
John Polstra
f6cddec5fb Set the HOME environment variable properly when running cvsup, so
the authentication key file can be found in "~/.cvsup/auth".
2000-02-11 04:23:24 +00:00
John Polstra
6f6eb6138a Fix bug: mirroring crypto/non-crypto from different sources was broken.
Submitted by:	Christian Weisgerber <naddy@mips.rhein-neckar.de>
2000-02-06 00:15:15 +00:00
John Polstra
1526b6c237 Use the ISO date format in the "CVSup update {begins,ends}" messages.
Use "%T" instead of the equivalent "%H:%M:%S".

Submitted by:	Christian Weisgerber <naddy@mips.rhein-neckar.de>
2000-02-06 00:13:52 +00:00
John Polstra
3176ec22e7 This is a fairly substantial upgrade of the cvsup-mirror port. In
honor of the occasion I have bumped the version number to 1.1.

The port now depends upon the cvsup-bin and cvsupd-bin ports rather
than on the more trouble-prone cvsup port.

The CVSup server is run with "-C 100" (max. 100 clients at a time)
and the true limit is set in the "/usr/local/etc/cvsup/cvsupd.access"
file.  This is nice because you can change the limit by editing
the file; you don't have to restart the server.  The cvsupd.access
file also contains a rule to limit each individual host to one
connection at a time.

The CVSup client is now run under its own unprivileged user ID
instead of root.  This is a security enhancement.  It makes it
impossible for a compromised master site to install files into
places outside the mirror area of the filesystem.  The permissions
of various other files such as /usr/local/etc/cvsup have also been
strengthened to enhance security.

Both client and server now cd to /var/tmp to run, so that if they
decide to croak they'll be able to write the core file. :-)

The /usr/local/etc/rc.d/cvsupd.sh script now honors the "start"
and "stop" arguments.

The configure script no longer attempts to tell you the sizes of
the various collections.  That's impossible to maintain.  When I
have time I plan to make a web page where one can obtain that
information from an automatically-updated source.  Then I will
reference the URL in the configure script.

It is possible to upgrade an existing cvsup-mirror-1.0 installation
to this new version, but it is tricky because of the change in
ownership of the mirrored files.  I will post instructions to the
freebsd-hubs mailing list after I make sure I have the procedure
just right.
2000-01-28 06:42:37 +00:00
John Polstra
61c323b40d Consolidate the cvsup options into one place in the script.
Check the exit status of cvsup, and don't start the server until an
update has successfully run to completion.
2000-01-14 04:53:10 +00:00
John Polstra
a7dc76b0aa Install a "refuse" file to protect the mirror's scripts and
configuration files from a malicious or compromised master site.
2000-01-14 04:39:57 +00:00
John Polstra
30dc8072b7 Pass the "-b base" option when running cvsup, so it will work even
if installed somewhere other than /usr/local.

Submitted by:	Dag-Erling Smorgrav <des@yes.no>
2000-01-12 05:26:45 +00:00
John Polstra
d728e30b72 Update for new release of CVSup.
Approved by:	asami (just barely)
1998-03-24 04:41:44 +00:00
John Polstra
d173bd5e46 When sourcing "config.sh" in shell scripts, specify it as "./config.sh"
to prevent the shell from searching the PATH for the file.

Submitted by:	David Quattlebaum <sasdrq@unx.sas.com>
1998-02-12 01:14:02 +00:00
John Polstra
f08936d579 Direct cvsupd's stdout and stderr into "/var/tmp/cvsupd.out" for
better crash diagnosis.  May it never get tested, ha ha ha.

Eliminate the lite2 and smp releases of the src-sys collection.

Add the new mail-archive collection.

Run cvsup with the "-1" flag to disable automatic retries.  Let cron
take care of that.

State in DESCR that version 15.1 or later of CVSup is required.
1997-07-16 20:59:55 +00:00
John Polstra
a2fac24797 The cvsup-mirror port, a kit that makes it easy to set up a FreeBSD
mirror site.
1997-02-02 04:11:35 +00:00