aboutsummaryrefslogtreecommitdiff
path: root/security/freebsd-update
diff options
context:
space:
mode:
authorNorikatsu Shigemura <nork@FreeBSD.org>2003-04-11 20:52:02 +0000
committerNorikatsu Shigemura <nork@FreeBSD.org>2003-04-11 20:52:02 +0000
commit017177e33bba578aeb35c69c2b22081cf88f5f6f (patch)
tree9366f33fb4a3949979fbebcc0891a4d97d23e777 /security/freebsd-update
parent0abf0e7ef6b551cedbb5d8211e8597ac0063c135 (diff)
downloadports-017177e33bba578aeb35c69c2b22081cf88f5f6f.tar.gz
ports-017177e33bba578aeb35c69c2b22081cf88f5f6f.zip
Notes
Diffstat (limited to 'security/freebsd-update')
-rw-r--r--security/freebsd-update/Makefile39
-rw-r--r--security/freebsd-update/distinfo1
-rw-r--r--security/freebsd-update/files/freebsd-update23
-rw-r--r--security/freebsd-update/files/patch-aa-rmverify11
-rw-r--r--security/freebsd-update/pkg-descr7
-rw-r--r--security/freebsd-update/pkg-message11
-rw-r--r--security/freebsd-update/pkg-plist9
7 files changed, 101 insertions, 0 deletions
diff --git a/security/freebsd-update/Makefile b/security/freebsd-update/Makefile
new file mode 100644
index 000000000000..c75d610967a1
--- /dev/null
+++ b/security/freebsd-update/Makefile
@@ -0,0 +1,39 @@
+# New ports collection makefile for: FreeBSD Update Client
+# Date created: 21 March 2003
+# Whom: cperciva@daemonology.net
+#
+# $FreeBSD$
+#
+
+PORTNAME= freebsd-update
+PORTVERSION= 1.2
+CATEGORIES= security
+MASTER_SITES= http://www.daemonology.net/freebsd-update/
+DISTNAME= freebsd-update-client-1_2
+
+MAINTAINER= cperciva@daemonology.net
+COMMENT= Fetches and installs binary updates to FreeBSD
+
+NO_WRKSUBDIR= yes
+ALL_TARGET= verify
+
+post-extract:
+ @${SED} -e "s=%%PREFIX%%=${PREFIX}=g" ${FILESDIR}/freebsd-update \
+ > ${WRKSRC}/freebsd-update
+
+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}/README ${PREFIX}/freebsd-update
+ ${INSTALL_DATA} ${WRKSRC}/VERSION ${PREFIX}/freebsd-update
+ ${INSTALL_DATA} ${WRKSRC}/update.conf \
+ ${PREFIX}/freebsd-update/update.conf.sample
+
+post-install:
+ @${CAT} ${PKGDIR}/pkg-message
+
+.include <bsd.port.mk>
diff --git a/security/freebsd-update/distinfo b/security/freebsd-update/distinfo
new file mode 100644
index 000000000000..ece520f0ecdf
--- /dev/null
+++ b/security/freebsd-update/distinfo
@@ -0,0 +1 @@
+MD5 (freebsd-update-client-1_2.tar.gz) = 12f69c9d0a2bf1f5278e49f0a4821aa7
diff --git a/security/freebsd-update/files/freebsd-update b/security/freebsd-update/files/freebsd-update
new file mode 100644
index 000000000000..72e113db9ddc
--- /dev/null
+++ b/security/freebsd-update/files/freebsd-update
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+case "$1" in
+fetch)
+ cd %%PREFIX%%/freebsd-update && make fetch-update;;
+install)
+ cd %%PREFIX%%/freebsd-update && make install-update;;
+rollback)
+ cd %%PREFIX%%/freebsd-update && make rollback-update;;
+cron)
+ cd %%PREFIX%%/freebsd-update && make MAILTO=root QUIET=YES 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
diff --git a/security/freebsd-update/files/patch-aa-rmverify b/security/freebsd-update/files/patch-aa-rmverify
new file mode 100644
index 000000000000..d258ec1d42a2
--- /dev/null
+++ b/security/freebsd-update/files/patch-aa-rmverify
@@ -0,0 +1,11 @@
+--- Makefile.orig Sat Mar 8 00:44:19 2003
++++ Makefile Sat Mar 22 15:44:03 2003
+@@ -40,7 +40,7 @@
+ NUM!=( [ -f ${WORKDIR}/num ] && expr `cat ${WORKDIR}/num` + 1 ) || echo 1
+ .endif
+
+-fetch-update: verify
++fetch-update:
+ @[ ! -z "${FETCHROOT}" ] || ( \
+ echo "Base URL not specified in ${CONFFILE}." && \
+ false )
diff --git a/security/freebsd-update/pkg-descr b/security/freebsd-update/pkg-descr
new file mode 100644
index 000000000000..771b29cd282d
--- /dev/null
+++ b/security/freebsd-update/pkg-descr
@@ -0,0 +1,7 @@
+This is the client half of the FreeBSD Update system; it fetches and
+applies binary security updates.
+
+WWW: http://www.daemonology.net/freebsd-update/
+
+- Colin Percival
+cperciva@daemonology.net
diff --git a/security/freebsd-update/pkg-message b/security/freebsd-update/pkg-message
new file mode 100644
index 000000000000..490e8af655b1
--- /dev/null
+++ b/security/freebsd-update/pkg-message
@@ -0,0 +1,11 @@
+
+Before you can use this, you will have to create an update configuration
+file specifying the server to fetch updates from and the trusted public
+key fingerprint.
+
+Assuming you haven't changed ${PREFIX}, a sample configuration file is
+installed in /usr/local/freebsd-update/update.conf.sample which will
+fetch updates built by the author. If you trust the author to securely
+build binary updates for you to blindly install on this machine, copy
+that file to /usr/local/freebsd-update/update.conf -- otherwise, create
+/usr/local/freebsd-update/update.conf as appropriate.
diff --git a/security/freebsd-update/pkg-plist b/security/freebsd-update/pkg-plist
new file mode 100644
index 000000000000..de1d50769e9f
--- /dev/null
+++ b/security/freebsd-update/pkg-plist
@@ -0,0 +1,9 @@
+sbin/freebsd-update
+freebsd-update/Makefile
+freebsd-update/README
+freebsd-update/VERSION
+freebsd-update/CHANGELOG
+freebsd-update/LICENSE
+freebsd-update/update.conf.sample
+freebsd-update/verify
+@dirrm freebsd-update