ports/52676: New poer: binary diff/patch tool

Colin Percival cperciva at daemonology.net
Sun May 25 17:30:10 UTC 2003


>Number:         52676
>Category:       ports
>Synopsis:       New poer: binary diff/patch tool
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun May 25 10:30:08 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Colin Percival
>Release:        FreeBSD 4.7-RELEASE i386
>Organization:
>Environment:
n/a
>Description:
This is a pair of tools for creating and applying very compact patches to
binary files (especially executable files).
It will be used by the next version of the security/freebsd-update port.
>How-To-Repeat:
n/a
>Fix:

--- bdiff.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:
#
#	/usr/ports/misc/bdiff
#	/usr/ports/misc/bdiff/Makefile
#	/usr/ports/misc/bdiff/distinfo
#	/usr/ports/misc/bdiff/pkg-descr
#	/usr/ports/misc/bdiff/pkg-plist
#
echo c - /usr/ports/misc/bdiff
mkdir -p /usr/ports/misc/bdiff > /dev/null 2>&1
echo x - /usr/ports/misc/bdiff/Makefile
sed 's/^X//' >/usr/ports/misc/bdiff/Makefile << 'END-of-/usr/ports/misc/bdiff/Makefile'
X# New ports collection makefile for:		Binary patch tool
X# Date created:					18 May 2003
X# Whom:						cperciva at daemonology.net
X#
X# $FreeBSD$
X#
X
XPORTNAME=	bdiff
XPORTVERSION=	2.1
XCATEGORIES=	misc devel
XMASTER_SITES=	http://www.daemonology.net/bdiff/
XEXTRACT_SUFX=	.tgz
X
XMAINTAINER=	cperciva at daemonology.net
XCOMMENT=	Generates and applies patches to binary files
X
XMAN1=		bdiff.1 bpatch.1
X
XNO_WRKSUBDIR=	yes
X
Xdo-build:
X	${CC} -o ${WRKSRC}/bdiff ${CFLAGS} ${WRKSRC}/bdiff.c
X	${CC} -o ${WRKSRC}/bpatch ${CFLAGS} ${WRKSRC}/bpatch.c
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/bdiff ${PREFIX}/bin
X	${INSTALL_PROGRAM} ${WRKSRC}/bpatch ${PREFIX}/bin
X.if !defined(WITHOUT_MAN)
X	${INSTALL_MAN} ${WRKSRC}/bdiff.1 ${PREFIX}/man/man1/
X	${INSTALL_MAN} ${WRKSRC}/bpatch.1 ${PREFIX}/man/man1/
X.endif
X
X.include <bsd.port.mk>
END-of-/usr/ports/misc/bdiff/Makefile
echo x - /usr/ports/misc/bdiff/distinfo
sed 's/^X//' >/usr/ports/misc/bdiff/distinfo << 'END-of-/usr/ports/misc/bdiff/distinfo'
XMD5 (bdiff-2.1.tgz) = 0a52cd9b251286a3854ddd30b3d45db7
END-of-/usr/ports/misc/bdiff/distinfo
echo x - /usr/ports/misc/bdiff/pkg-descr
sed 's/^X//' >/usr/ports/misc/bdiff/pkg-descr << 'END-of-/usr/ports/misc/bdiff/pkg-descr'
XThis is a pair of tools for building (bdiff) and applying (bpatch)
Xbinary patches.  When applied to two versions of the same executable
Xthe patches produced are significantly smaller than those generated
Xby other binary diff tools (eg, xdelta).
X
XWWW: http://www.daemonology.net/bdiff/
X
X- Colin Percival
Xcperciva at daemonology.net
END-of-/usr/ports/misc/bdiff/pkg-descr
echo x - /usr/ports/misc/bdiff/pkg-plist
sed 's/^X//' >/usr/ports/misc/bdiff/pkg-plist << 'END-of-/usr/ports/misc/bdiff/pkg-plist'
Xbin/bdiff
Xbin/bpatch
END-of-/usr/ports/misc/bdiff/pkg-plist
exit
--- bdiff.shar ends here ---


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



More information about the freebsd-ports-bugs mailing list