head	1.3;
access;
symbols
	RELEASE_4_9_0:1.2
	RELEASE_5_1_0:1.2;
locks; strict;
comment	@# @;


1.3
date	2003.10.15.07.20.24;	author daichi;	state dead;
branches;
next	1.2;

1.2
date	2003.05.17.20.51.27;	author nork;	state Exp;
branches;
next	1.1;

1.1
date	2003.04.11.20.52.02;	author nork;	state Exp;
branches;
next	;


desc
@@


1.3
log
@update security/freebsd-update: 1.3 -> 1.4
  - Much cleaner code (FreeBSD Update is now a shell script, rather than a
    huge ugly makefile),
  - Better performance,
  - Reduced bandwidth usage when no updates are available,
  - Warnings about files which have been affected by security updates, but
    cannot be updated because they have been modified locally,
  - An "intrusion detection" mode which compares every file which can be
    installed as part of a RELEASE against a (signed) database of known good
    hashes.

PR:		58028
Submitted by:	Colin Percival <cperciva@@daemonology.net> (maintainer)
@
text
@#!/bin/sh

if [ ! -r %%PREFIX%%/etc/freebsd-update.conf ] ; then
	echo "%%PREFIX%%/etc/freebsd-update.conf not found"
	exit 1
fi

case "$1" in
fetch)
	cd %%PREFIX%%/freebsd-update && make 				\
		CONFFILE=%%PREFIX%%/etc/freebsd-update.conf fetch-update;;
install)
	cd %%PREFIX%%/freebsd-update && make 				\
		CONFFILE=%%PREFIX%%/etc/freebsd-update.conf install-update;;
rollback)
	cd %%PREFIX%%/freebsd-update && make 				\
		CONFFILE=%%PREFIX%%/etc/freebsd-update.conf rollback-update;;
cron)
	cd %%PREFIX%%/freebsd-update && make MAILTO=root QUIET=YES 	\
		CONFFILE=%%PREFIX%%/etc/freebsd-update.conf daily;;
*)
	echo "Usage: freebsd-update {fetch|install|rollback|cron}" >&2
	echo "  freebsd-update fetch:    Fetches updates" >&2
	echo "  freebsd-update install:  Installs fetched updates" >&2
	echo "  freebsd-update rollback: Rolls back installed updates" >&2
	echo "  freebsd-update cron:     Suitable for use in cron(8)," >&2
	echo "                           fetches updates and sends an" >&2
	echo "                           email to root if any exist." >&2
	;;
esac

exit 0
@


1.2
log
@o Removes the original, out of date, README file.
o Adds (new, up to date) man pages.
o Puts the configuration file in $PREFIX/etc where it belongs.

PR:		ports/52244
Submitted by:	Colin Percival <cperciva@@daemonology.net>
@
text
@@


1.1
log
@Add freebsd-update 1.2, fetches and installs binary updates
to FreeBSD.  This is the client half of the FreeBSD Update
system; it fetches and applies binary security updates.

PR:		ports/50202
Submitted by:	cperciva@@daemonology.net
@
text
@d3 5
d10 2
a11 1
	cd %%PREFIX%%/freebsd-update && make fetch-update;;
d13 2
a14 1
	cd %%PREFIX%%/freebsd-update && make install-update;;
d16 2
a17 1
	cd %%PREFIX%%/freebsd-update && make rollback-update;;
d19 2
a20 1
	cd %%PREFIX%%/freebsd-update && make MAILTO=root QUIET=YES daily;;
@

