head	1.19;
access;
symbols
	RELEASE_8_0_0:1.18
	RELEASE_7_2_0:1.18
	RELEASE_7_1_0:1.17
	RELEASE_6_4_0:1.17
	RELEASE_5_EOL:1.17
	RELEASE_7_0_0:1.17
	RELEASE_6_3_0:1.17
	PRE_XORG_7:1.17
	RELEASE_4_EOL:1.17
	RELEASE_6_2_0:1.17
	RELEASE_6_1_0:1.15
	RELEASE_5_5_0:1.15
	RELEASE_6_0_0:1.14
	RELEASE_5_4_0:1.14
	RELEASE_4_11_0:1.14
	RELEASE_5_3_0:1.13
	RELEASE_4_10_0:1.9
	RELEASE_5_2_1:1.6
	RELEASE_5_2_0:1.6
	RELEASE_4_9_0:1.4
	RELEASE_5_1_0:1.2;
locks; strict;
comment	@# @;


1.19
date	2009.12.24.20.38.54;	author miwi;	state dead;
branches;
next	1.18;

1.18
date	2009.01.06.17.59.19;	author pav;	state Exp;
branches;
next	1.17;

1.17
date	2006.09.13.05.24.34;	author cperciva;	state Exp;
branches;
next	1.16;

1.16
date	2006.09.12.19.42.16;	author cperciva;	state Exp;
branches;
next	1.15;

1.15
date	2005.11.14.23.10.17;	author cperciva;	state Exp;
branches;
next	1.14;

1.14
date	2004.10.12.03.17.30;	author edwin;	state Exp;
branches;
next	1.13;

1.13
date	2004.07.15.05.22.47;	author cperciva;	state Exp;
branches;
next	1.12;

1.12
date	2004.07.12.21.12.10;	author krion;	state Exp;
branches;
next	1.11;

1.11
date	2004.05.11.12.08.35;	author lofi;	state Exp;
branches;
next	1.10;

1.10
date	2004.05.11.12.03.36;	author lofi;	state Exp;
branches;
next	1.9;

1.9
date	2004.02.25.21.21.04;	author obrien;	state Exp;
branches;
next	1.8;

1.8
date	2004.02.25.17.57.22;	author obrien;	state Exp;
branches;
next	1.7;

1.7
date	2003.12.04.17.02.28;	author arved;	state Exp;
branches;
next	1.6;

1.6
date	2003.11.09.16.42.27;	author krion;	state Exp;
branches;
next	1.5;

1.5
date	2003.10.15.07.20.24;	author daichi;	state Exp;
branches;
next	1.4;

1.4
date	2003.08.23.13.42.21;	author edwin;	state Exp;
branches;
next	1.3;

1.3
date	2003.06.24.19.55.26;	author leeym;	state Exp;
branches;
next	1.2;

1.2
date	2003.05.17.20.51.26;	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.19
log
@misc/bsdiff||2009-12-24|Incorporated into base system long ago
security/freebsd-update||2009-12-24|Incorporated into base system long ago
sysutils/est||2009-12-24|Incorporated into base system long ago
sysutils/estctrl||2009-12-24|Incorporated into base system long ago
sysutils/freebsd-sha1||2009-12-24|Incorporated into base system long ago
sysutils/freebsd-sha256||2009-12-24|Incorporated into base system long ago
@
text
@# New ports collection makefile for:	FreeBSD Update Client
# Date created:				21 March 2003
# Whom:					cperciva@@daemonology.net
#
# $FreeBSD: ports/security/freebsd-update/Makefile,v 1.18 2009/01/06 17:59:19 pav Exp $
#

PORTNAME=	freebsd-update
PORTVERSION=	1.6
PORTREVISION=	2
CATEGORIES=	security
MASTER_SITES=	http://www.daemonology.net/freebsd-update/

MAINTAINER=	cperciva@@daemonology.net
COMMENT=	Fetches and installs binary updates to FreeBSD

.include <bsd.port.pre.mk>

.if ${OSVERSION} > 700019 || ( ${OSVERSION} > 601104 && ${OSVERSION} < 700000 )
IGNORE=         is now contained in the base system
.endif

# This is a critical security port.  If it breaks, Bad Things will happen.
# Under no circumstances should this port ever be modified without approval
# from the maintainer or security-officer, even for "cosmetic" fixes.

# The RSA code has been tested and works on these platforms.  On other
# platforms, it either doesn't work or hasn't been tested.
ONLY_FOR_ARCHS=	i386 amd64 alpha sparc64

MAN5=		freebsd-update.conf.5
MAN8=		freebsd-update.8
PLIST_FILES=	sbin/freebsd-update		\
		sbin/freebsd-update-verify	\
		etc/freebsd-update.conf.sample
PLIST_DIRS=	freebsd-update

PKGMESSAGE=	${WRKDIR}/pkg-message

.ifdef NOPORTDOCS
MAKE_ENV+=	NODOCS=yes
.else
PORTDOCS=	LICENSE README VERSION
.endif

post-extract:
	${SED} -e "s#PREFIX=/usr/local#PREFIX=${PREFIX}#g" \
		${WRKSRC}/freebsd-update > ${WRKSRC}/freebsd-update.new
	${MV} ${WRKSRC}/freebsd-update.new ${WRKSRC}/freebsd-update
	@@${SED} -e "s=%%PREFIX%%=${PREFIX}=g" ${FILESDIR}/pkg-message \
		> ${PKGMESSAGE}

post-install:
	@@${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>
@


1.18
log
@- Remove conditional checks for FreeBSD 5.x and older
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.17
log
@Turn
IGNORE=	"foo now contained in the base system"
into
IGNORE=	"is now contained in the base system"
since the code which prints this string prefices it with the package
name.

Suggested by:	kris
@
text
@a18 4
.if ${OSVERSION} < 600034 && ( ${OSVERSION} < 504104 || ${OSVERSION} > 599999 )
RUN_DEPENDS=	bspatch:${PORTSDIR}/misc/bsdiff
.endif

@


1.16
log
@IGNORE for 7.x after 700019 and 6.x after 601104: FreeBSD Update is now
in the FreeBSD base system.

Reminded by:	simon
@
text
@d24 1
a24 1
IGNORE=         freebsd-update now contained in the base system
@


1.15
log
@Now that bsdiff is part of the base system and conditional IGNORE=
lines have been added to misc/bsdiff, make the dependency here
conditional.

Reminded by:	Richmond Felix
@
text
@d23 4
@


1.14
log
@[MAINTAINER UPDATE] security/freebsd-update

	If `freebsd-update cron` fails due to a lack of internet
	connection, two emails will be sent -- one with the error
	message from fetch(1), and the other from freebsd-update
	reporting that patches could not be downloaded.

	This patch corrects this mis-behaviour and causes a single
	email to be sent in such an event; this will be included
	in a future version of the distfile.

PR:		ports/72310
Submitted by:	Colin Percival <cperciva@@daemonology.net>
@
text
@d10 1
a10 1
PORTREVISION=	1
d17 3
d21 2
d56 1
a56 1
.include <bsd.port.mk>
@


1.13
log
@Now that I've had a chance to test it, add sparc64 to the list of approved
architectures for FreeBSD Update.

Excuse for committing without a ports commit bit: I'm the maintainer, and
I didn't want to open a PR for a one-word change.
@
text
@d10 1
@


1.12
log
@Update to 1.6

PR:		ports/68960
Submitted by:	maintainer
@
text
@d23 1
a23 1
ONLY_FOR_ARCHS=	i386 amd64 alpha
@


1.11
log
@Move comment.
@
text
@d9 1
a9 1
PORTVERSION=	1.5
d21 3
a23 5
# The RSA code has only been tested on i386; I don't *think* there are
# any word-size or endian issues, but I'm not sure.  Since nobody is
# building updates for non-i386 platforms anyway, this won't hurt anyone.

ONLY_FOR_ARCHS=	i386
@


1.10
log
@PLIST_FILES-ify, pet portlint.

PR: ports/62499
Submitted by: Colin Percival <cperciva@@daemonology.net>
@
text
@d16 1
a23 1
RUN_DEPENDS=	bspatch:${PORTSDIR}/misc/bsdiff
@


1.9
log
@Revert rev 1.8.

Requested by:	Colin Percival <colin.percival@@wadham.ox.ac.uk>
@
text
@d23 2
a26 2
RUN_DEPENDS=	bspatch:${PORTSDIR}/misc/bsdiff

d29 4
d38 2
@


1.8
log
@Remove for-i386-only.  This builds fine on other platforms and appears it
would work just fine if someone were offering security update bits.

Seconded:	marcel
@
text
@d20 5
@


1.7
log
@Update to 1.5

PR:		59901
Submitted by:	Colin Percival <cperciva@@daemonology.net>
@
text
@a19 5
# The RSA code has only been tested on i386; I don't *think* there are
# any word-size or endian issues, but I'm not sure.  Since nobody is
# building updates for non-i386 platforms anyway, this won't hurt anyone.
ONLY_FOR_ARCHS=	i386

@


1.6
log
@- Mark ONLY_FOR_ARCHS=i386

PR:		59084
Submitted by:	maintainer
@
text
@d9 1
a9 1
PORTVERSION=	1.4
@


1.5
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
@d16 9
@


1.4
log
@[MAINTAINER UPDATE] security/freebsd-update

	Call bspatch with a full path; this fixes problems where
	people are running freebsd-update with a PATH which doesn't
	include /usr/local/bin

PR:		ports/55869
Submitted by: 	Colin Percival <cperciva@@daemonology.net>
@
text
@d9 1
a9 2
PORTVERSION=	1.3
PORTREVISION=	1
a11 1
DISTNAME=	${PORTNAME}-client-${PORTVERSION:S/./_/}
d21 1
a21 2
NO_WRKSUBDIR=	yes
ALL_TARGET=	verify
d23 3
a25 1
PKGMESSAGE=	${WRKDIR}/pkg-message
d28 3
a30 2
	@@${SED} -e "s=%%PREFIX%%=${PREFIX}=g" ${FILESDIR}/freebsd-update \
		> ${WRKSRC}/freebsd-update
a32 16
	@@${CP} ${FILESDIR}/freebsd-update.8 ${WRKSRC}
	@@${CP} ${FILESDIR}/freebsd-update.conf.5 ${WRKSRC}

do-install:
	@@${MKDIR} ${PREFIX}/freebsd-update
	${INSTALL_SCRIPT} ${WRKSRC}/freebsd-update ${PREFIX}/sbin
	${INSTALL_PROGRAM} ${WRKSRC}/verify ${PREFIX}/freebsd-update
	${INSTALL_DATA} ${WRKSRC}/Makefile ${PREFIX}/freebsd-update
	${INSTALL_DATA} ${WRKSRC}/CHANGELOG ${PREFIX}/freebsd-update
	${INSTALL_DATA} ${WRKSRC}/LICENSE ${PREFIX}/freebsd-update
	${INSTALL_DATA} ${WRKSRC}/update.conf \
		${PREFIX}/etc/freebsd-update.conf.sample
.if !defined(WITHOUT_MAN)
	${INSTALL_MAN} ${WRKSRC}/freebsd-update.conf.5 ${PREFIX}/man/man5/
	${INSTALL_MAN} ${WRKSRC}/freebsd-update.8 ${PREFIX}/man/man8/
.endif
@


1.3
log
@Update FreeBSD Update to version 1.3

PR:		53646
Submitted by:	Colin Percival <cperciva@@daemonology.net>
@
text
@d10 1
@


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
@d9 1
a9 2
PORTVERSION=	1.2
PORTREVISION=	1
d12 1
a12 1
DISTNAME=	freebsd-update-client-1_2
d17 2
d32 2
a33 2
	cp ${FILESDIR}/freebsd-update.8 ${WRKSRC}
	cp ${FILESDIR}/freebsd-update.conf.5 ${WRKSRC}
a47 1

@


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
@d10 1
d18 3
d24 2
d29 4
a40 2
	${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/freebsd-update
	${INSTALL_DATA} ${WRKSRC}/VERSION ${PREFIX}/freebsd-update
d42 6
a47 1
		${PREFIX}/freebsd-update/update.conf.sample
d50 1
a50 1
	@@${CAT} ${PKGDIR}/pkg-message
@

