Skip site navigation (1)Skip section navigation (2)
Date:      30 Oct 2004 20:04:43 -0000
From:      Colin Percival <cperciva@daemonology.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/73323: [NEW PORT] sysutils/portsnap
Message-ID:  <20041030200443.9480.qmail@hexahedron.daemonology.net>
Resent-Message-ID: <200410302010.i9UKAPkR085544@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         73323
>Category:       ports
>Synopsis:       [NEW PORT] sysutils/portsnap
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Oct 30 20:10:25 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Colin Percival
>Release:        FreeBSD 5.2.1-SECURITY i386
>Organization:
>Environment:
System: FreeBSD hexahedron.daemonology.net 5.2.1-SECURITY FreeBSD 5.2.1-SECURITY #0: Tue Sep 28 17:27:41 GMT 2004 root@builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386

>Description:
>How-To-Repeat:
>Fix:

Portsnap is a system for securely updating the ports tree by
distributing signed compressed snapshots.  This is the client
half of that system; it downloads compressed snapshots into
/usr/local/portsnap ("portsnap fetch") and uses those to extract
a ports tree into /usr/ports ("portsnap extract") or update an
existing tree ("portsnap update").

Portsnap uses bandwidth roughly comparable to CVSup, but operates 
entirely over HTTP.

--- portsnap.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	sysutils/portsnap
#	sysutils/portsnap/pkg-descr
#	sysutils/portsnap/distinfo
#	sysutils/portsnap/Makefile
#	sysutils/portsnap/pkg-message
#
echo c - sysutils/portsnap
mkdir -p sysutils/portsnap > /dev/null 2>&1
echo x - sysutils/portsnap/pkg-descr
sed 's/^X//' >sysutils/portsnap/pkg-descr << 'END-of-sysutils/portsnap/pkg-descr'
XPortsnap is a system for securely updating the ports tree by
Xdistributing signed compressed snapshots.  This is the client
Xhalf of that system; it downloads compressed snapshots into
X/usr/local/portsnap ("portsnap fetch") and uses those to extract
Xa ports tree into /usr/ports ("portsnap extract") or update an
Xexisting tree ("portsnap update").
X
XPortsnap uses bandwidth roughly comparable to CVSup, but operates 
Xentirely over HTTP.
X
XWWW: http://www.daemonology.net/portsnap/
X
X- Colin Percival
Xcperciva@daemonology.net
END-of-sysutils/portsnap/pkg-descr
echo x - sysutils/portsnap/distinfo
sed 's/^X//' >sysutils/portsnap/distinfo << 'END-of-sysutils/portsnap/distinfo'
XMD5 (portsnap-0.2.tar.gz) = bd31debcdec8acfc391c880d42ab52dc
XSIZE (portsnap-0.2.tar.gz) = 6752
END-of-sysutils/portsnap/distinfo
echo x - sysutils/portsnap/Makefile
sed 's/^X//' >sysutils/portsnap/Makefile << 'END-of-sysutils/portsnap/Makefile'
X# New ports collection makefile for:		Ports tree snapshot utility
X# Date created:					29 October 2004
X# Whom:						cperciva@daemonology.net
X#
X# $FreeBSD$
X#
X
XPORTNAME=	portsnap
XPORTVERSION=	0.2
XCATEGORIES=	sysutils net
XMASTER_SITES=	http://www.daemonology.net/portsnap/
X
XMAINTAINER=	cperciva@daemonology.net
XCOMMENT=	Provides secure snapshots of the ports directory.
X
X# The freebsd-sha1 port is marked IGNORE for some versions of FreeBSD,
X# but for those sha1 should be found in /sbin/, so this should be safe.
XRUN_DEPENDS=	bspatch:${PORTSDIR}/misc/bsdiff		\
X		sha1:${PORTSDIR}/sysutils/freebsd-sha1	\
X		freebsd-update-verify:${PORTSDIR}/security/freebsd-update
X
XMAN5=		portsnap.conf.5
XMAN8=		portsnap.8
XPLIST_FILES=	etc/portsnap.conf.sample sbin/portsnap
XPLIST_DIRS=	portsnap
X
Xdo-install:
X	${INSTALL_SCRIPT} ${WRKSRC}/portsnap ${PREFIX}/sbin
X	${INSTALL_MAN} ${WRKSRC}/portsnap.conf.5 ${PREFIX}/man/man5/
X	${INSTALL_MAN} ${WRKSRC}/portsnap.8 ${PREFIX}/man/man8/
X	${INSTALL_DATA} ${WRKSRC}/portsnap.conf		\
X		${PREFIX}/etc/portsnap.conf.sample
X	${MKDIR} ${PREFIX}/portsnap
X
Xpost-install:
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-sysutils/portsnap/Makefile
echo x - sysutils/portsnap/pkg-message
sed 's/^X//' >sysutils/portsnap/pkg-message << 'END-of-sysutils/portsnap/pkg-message'
X
XBefore you can use portsnap, you will have to create an update configuration
Xfile specifying the server from which to fetch snapshots and the sha1 hash
Xof the RSA public key which is trusted to sign the snapshots.
X
XA sample configuration file has been installed in
X
X	/usr/local/etc/portsnap.conf.sample
X
Xwhich will fetch snapshots built and signed by the author.  If you want to
Xuse these updates, copy that file to
X
X	/usr/local/etc/portsnap.conf
X
Xotherwise, create that file as appropriate.
END-of-sysutils/portsnap/pkg-message
exit
--- portsnap.shar ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041030200443.9480.qmail>