Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Jun 2008 15:59:35 GMT
From:      Mykola Marzhan <delgod@portaone.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/125013: [New port] sysutils/isomd5sum: Implanting and checking checksums within an ISO9660 image.
Message-ID:  <200806261559.m5QFxZTA064275@palena.portaone.com>
Resent-Message-ID: <200806261630.m5QGU5ee060256@freefall.freebsd.org>

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

>Number:         125013
>Category:       ports
>Synopsis:       [New port] sysutils/isomd5sum: Implanting and checking checksums within an ISO9660 image.
>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:   Thu Jun 26 16:30:05 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Mykola Marzhan
>Release:        FreeBSD 6.3-RELEASE-p2 i386
>Organization:
PortaOne
>Environment:
System: FreeBSD palena.portaone.com. 6.3-RELEASE-p2 FreeBSD 6.3-RELEASE-p2 #0: Tue Jun 3 10:19:30 UTC 2008 root@palena.portaone.com.:/usr/obj/usr/src/sys/PALENA i386


	
>Description:
Isomd5sum is a collection of utilities for implanting and checking MD5
checksums within an ISO9660 image.
>How-To-Repeat:
	
>Fix:

	

--- isomd5sum.sh 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/sysutils/isomd5sum
#	/usr/ports/sysutils/isomd5sum/files
#	/usr/ports/sysutils/isomd5sum/files/patch-Makefile
#	/usr/ports/sysutils/isomd5sum/files/patch-md5.c
#	/usr/ports/sysutils/isomd5sum/Makefile
#	/usr/ports/sysutils/isomd5sum/distinfo
#	/usr/ports/sysutils/isomd5sum/pkg-descr
#	/usr/ports/sysutils/isomd5sum/pkg-plist
#
echo c - /usr/ports/sysutils/isomd5sum
mkdir -p /usr/ports/sysutils/isomd5sum > /dev/null 2>&1
echo c - /usr/ports/sysutils/isomd5sum/files
mkdir -p /usr/ports/sysutils/isomd5sum/files > /dev/null 2>&1
echo x - /usr/ports/sysutils/isomd5sum/files/patch-Makefile
sed 's/^X//' >/usr/ports/sysutils/isomd5sum/files/patch-Makefile << 'END-of-/usr/ports/sysutils/isomd5sum/files/patch-Makefile'
X--- ./Makefile.orig	2008-02-08 04:30:07.000000000 +0000
X+++ ./Makefile	2008-06-17 17:07:37.000000000 +0000
X@@ -1,14 +1,14 @@
X PYVER  := $(shell python -c 'import sys; print sys.version[0:3]')
X PYTHON = python$(PYVER)
X-PYTHONINCLUDE = /usr/include/$(PYTHON)
X+PYTHONINCLUDE = ${PYTHON_INCLUDEDIR}
X 
X-ifneq (,$(filter ppc64 x86_64 s390x,$(shell uname -m)))
X-LIBDIR = lib64
X-else
X+#ifneq (,$(filter ppc64 x86_64 s390x,$(shell uname -m)))
X+#LIBDIR = lib64
X+#else
X LIBDIR = lib
X-endif
X+#endif
X 
X-CFLAGS = $(RPM_OPT_FLAGS) -Wall -Werror -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -fPIC -I$(PYTHONINCLUDE)
X+CFLAGS = $(RPM_OPT_FLAGS) -Wall -Werror -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -fPIC -I$(PYTHONINCLUDE) -I${LOCALBASE}/include -L${LOCALBASE}/lib
X 
X OBJECTS = md5.o libimplantisomd5.o checkisomd5.o implantisomd5
X SOURCES = $(patsubst %.o,%.c,$(OBJECTS))
X@@ -35,21 +35,21 @@
X 	$(CC) -shared -g -o pyisomd5sum.so -fpic $(PYOBJS) $(LDFLAGS)
X 
X install: all
X-	mkdir -p $(DESTDIR)/usr/$(LIBDIR)/$(PYTHON)/site-packages
X-	mkdir -p $(DESTDIR)/usr/include
X-	mkdir -p $(DESTDIR)/usr/bin
X-	mkdir -p $(DESTDIR)/usr/share/man/man1
X-	install -m 755 implantisomd5 $(DESTDIR)/usr/bin
X-	install -m 755 checkisomd5 $(DESTDIR)/usr/bin
X-	install -m 755 implantisomd5.1 $(DESTDIR)/usr/share/man/man1
X-	install -m 755 checkisomd5.1 $(DESTDIR)/usr/share/man/man1
X-	install -m 755 pyisomd5sum.so $(DESTDIR)/usr/$(LIBDIR)/$(PYTHON)/site-packages
X+	mkdir -p $(PYTHONPREFIX_SITELIBDIR)
X+	mkdir -p $(PREFIX)/include
X+	mkdir -p $(PREFIX)/bin
X+	mkdir -p $(PREFIX)/man/man1
X+	install -m 755 implantisomd5 $(PREFIX)/bin
X+	install -m 755 checkisomd5 $(PREFIX)/bin
X+	install -m 755 implantisomd5.1 $(PREFIX)/man/man1
X+	install -m 755 checkisomd5.1 $(PREFIX)/man/man1
X+	install -m 755 pyisomd5sum.so $(PYTHONPREFIX_SITELIBDIR)
X #	ln -s ../../bin/implantisomd5 $(DESTDIR)/usr/lib/anaconda-runtime/implantisomd5
X #	ln -s ../../bin/checkisomd5 $(DESTDIR)/usr/lib/anaconda-runtime/checkisomd5
X-	install -m 644 libimplantisomd5.h $(DESTDIR)/usr/include/
X-	install -m 644 libcheckisomd5.h $(DESTDIR)/usr/include/
X-	install -m 644 libimplantisomd5.a $(DESTDIR)/usr/$(LIBDIR)
X-	install -m 644 libcheckisomd5.a $(DESTDIR)/usr/$(LIBDIR)
X+	install -m 644 libimplantisomd5.h $(PREFIX)/include/
X+	install -m 644 libcheckisomd5.h $(PREFIX)/include/
X+	install -m 644 libimplantisomd5.a $(PREFIX)/$(LIBDIR)
X+	install -m 644 libcheckisomd5.a $(PREFIX)/$(LIBDIR)
X 
X clean:
X 	rm -f *.o *.so *.pyc *.a .depend *~
END-of-/usr/ports/sysutils/isomd5sum/files/patch-Makefile
echo x - /usr/ports/sysutils/isomd5sum/files/patch-md5.c
sed 's/^X//' >/usr/ports/sysutils/isomd5sum/files/patch-md5.c << 'END-of-/usr/ports/sysutils/isomd5sum/files/patch-md5.c'
X--- ./md5.c.orig	2008-02-08 04:30:07.000000000 +0000
X+++ ./md5.c	2008-06-17 17:05:34.000000000 +0000
X@@ -20,13 +20,13 @@
X  */
X 
X #include <string.h>
X-#include <endian.h>
X+#include <sys/endian.h>
X #include "md5.h"
X 
X void MD5_Transform(uint32 *buf, uint32 const *in);
X 
X-#define IS_BIG_ENDIAN() (__BYTE_ORDER == __BIG_ENDIAN)
X-#define IS_LITTLE_ENDIAN() (__BYTE_ORDER == __LITTLE_ENDIAN)
X+#define IS_BIG_ENDIAN() (_BYTE_ORDER == _BIG_ENDIAN)
X+#define IS_LITTLE_ENDIAN() (_BYTE_ORDER == _LITTLE_ENDIAN)
X 
X static void byteReverse(unsigned char *buf, unsigned longs);
X 
END-of-/usr/ports/sysutils/isomd5sum/files/patch-md5.c
echo x - /usr/ports/sysutils/isomd5sum/Makefile
sed 's/^X//' >/usr/ports/sysutils/isomd5sum/Makefile << 'END-of-/usr/ports/sysutils/isomd5sum/Makefile'
X# New ports collection makefile for:	isomd5sum
X# Date created:				June 17, 2008
X# Whom:					Marzhan Mykola <delgod@portaone.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	isomd5sum
XPORTVERSION=	1.0.4
XCATEGORIES=	sysutils
XMASTER_SITES=	https://fedorahosted.org/releases/i/s/isomd5sum/
X
XMAINTAINER=	delgod@portaone.com
XCOMMENT=	Implanting and checking checksums within an ISO9660 image
X
XLIB_DEPENDS=	popt.0:${PORTSDIR}/devel/popt
X
XUSE_GMAKE=	yes
XUSE_BZIP2=	yes
XUSE_PYTHON=	yes
X
XMAN1=	implantisomd5.1 checkisomd5.1
X
XMAKE_ENV+=	PYTHONPREFIX_SITELIBDIR=${PYTHONPREFIX_SITELIBDIR} PYTHON_INCLUDEDIR=${PYTHON_INCLUDEDIR}
X
X.include <bsd.port.mk>
END-of-/usr/ports/sysutils/isomd5sum/Makefile
echo x - /usr/ports/sysutils/isomd5sum/distinfo
sed 's/^X//' >/usr/ports/sysutils/isomd5sum/distinfo << 'END-of-/usr/ports/sysutils/isomd5sum/distinfo'
XMD5 (isomd5sum-1.0.4.tar.bz2) = 0550f7c4546e5ca7885339ede6761ed3
XSHA256 (isomd5sum-1.0.4.tar.bz2) = 7c113eeac39026deec395195aad10566c6f0ce97a63844f8bc023313fce53621
XSIZE (isomd5sum-1.0.4.tar.bz2) = 18486
END-of-/usr/ports/sysutils/isomd5sum/distinfo
echo x - /usr/ports/sysutils/isomd5sum/pkg-descr
sed 's/^X//' >/usr/ports/sysutils/isomd5sum/pkg-descr << 'END-of-/usr/ports/sysutils/isomd5sum/pkg-descr'
XIsomd5sum is a collection of utilities for implanting and checking MD5
Xchecksums within an ISO9660 image. A checksum is implanted in an image
Xusing the implantisomd5 utility, and the corresponding checkisomd5 utility
Xcan be used to verify burned CDs are error-free. Also included is a Python
Xextension for performing these tasks.
END-of-/usr/ports/sysutils/isomd5sum/pkg-descr
echo x - /usr/ports/sysutils/isomd5sum/pkg-plist
sed 's/^X//' >/usr/ports/sysutils/isomd5sum/pkg-plist << 'END-of-/usr/ports/sysutils/isomd5sum/pkg-plist'
Xbin/implantisomd5
Xbin/checkisomd5
Xinclude/libimplantisomd5.h
Xinclude/libcheckisomd5.h
Xlib/libimplantisomd5.a
Xlib/libcheckisomd5.a
Xlib/python2.5/site-packages/pyisomd5sum.so
END-of-/usr/ports/sysutils/isomd5sum/pkg-plist
exit
--- isomd5sum.sh ends here ---


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



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