Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Nov 2003 21:30:43 -0500 (EST)
From:      Josh Elsasser <jre@vineyard.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/59200: New port: emulators/hfsplusutils, utilities for HFS+ filesystems
Message-ID:  <20031112023043.8E7CADD@jade.elsasser.org>
Resent-Message-ID: <200311120240.hAC2eJc7006404@freefall.freebsd.org>

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

>Number:         59200
>Category:       ports
>Synopsis:       New port: emulators/hfsplusutils, utilities for HFS+ filesystems
>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:   Tue Nov 11 18:40:18 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Josh Elsasser
>Release:        FreeBSD 5.1-CURRENT i386
>Organization:
>Environment:
System: FreeBSD jade.elsasser.org 5.1-CURRENT FreeBSD 5.1-CURRENT #3: Sat Nov 8 17:49:56 EST 2003 joshe@jade.elsasser.org:/usr/local/obj/usr/src/sys/JADE i386


	
>Description:
	This is a set of tools for HFS+ filesystems, much like
emulators/hfsutils is for HFS.
>How-To-Repeat:
	
>Fix:


# 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:
#
#	hfsplusutils
#	hfsplusutils/Makefile
#	hfsplusutils/pkg-descr
#	hfsplusutils/pkg-plist
#	hfsplusutils/files
#	hfsplusutils/files/patch-aa
#	hfsplusutils/files/patch-ab
#	hfsplusutils/distinfo
#
echo c - hfsplusutils
mkdir -p hfsplusutils > /dev/null 2>&1
echo x - hfsplusutils/Makefile
sed 's/^X//' >hfsplusutils/Makefile << 'END-of-hfsplusutils/Makefile'
X# New ports collection makefile for:	hfsplusutils
X# Date created:				11 November 2003
X# Whom:					Josh Elsasser <jre@vineyard.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	hfsplusutils
XPORTVERSION=	1.0.4
XCATEGORIES=	emulators
XMASTER_SITES=	ftp://ftp.penguinppc.org/users/hasi/
XDISTNAME=	hfsplus_${PORTVERSION}.src
X
XMAINTAINER=	jre@vineyard.net
XCOMMENT=	Utilities for accessing HSF+ filesystems
X
XWRKSRC=		${WRKDIR}/hfsplus-${PORTVERSION}
X
XMAN1=		hfsp.1
X
XUSE_REINPLACE=	yes
XUSE_BZIP2=	yes
XUSE_AUTOMAKE=	yes
XUSE_AUTOCONF=	yes
XUSE_LIBTOOL=	yes
XINSTALLS_SHLIB=	yes
XUSE_AUTOMAKE_VER=15
XAUTOMAKE_ARGS=	--add-missing
XCONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
X
Xpre-patch:
X.for makefile in src/Makefile.am libhfsp/src/Makefile.am
X	@${REINPLACE_CMD} "s/^CFLAGS.*/CFLAGS=@CFLAGS@/" ${WRKSRC}/${makefile}
X.endfor
X
X# it would really be best if the patch-libtool target was run just
X# after pre-configure instead of just before.  To get around this, we
X# touch LIBTOOLFILES so patch-libtool doesn't barf, then run
X# patch-libtool again after running aclocal and autoheader.  Hopefully
X# future changes to bsd.port.mk won't cause this to break.
Xpost-patch:
X	@(cd ${WRKSRC} && ${TOUCH} ${LIBTOOLFILES})
X
Xpre-configure:
X	@(cd ${WRKSRC} && ${ACLOCAL} && ${AUTOHEADER})
X	@${MAKE} patch-libtool
X
Xpost-install:
X	${INSTALL_MAN} ${WRKSRC}/doc/man/hfsp.man ${MANPREFIX}/man/man1/hfsp.1
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X.for docfile in bugs.html faq.html hfsp.html libhfsp.html
X	${INSTALL_DATA} ${WRKSRC}/doc/${docfile} ${DOCSDIR}
X.endfor
X.endif
X
X.include <bsd.port.mk>
END-of-hfsplusutils/Makefile
echo x - hfsplusutils/pkg-descr
sed 's/^X//' >hfsplusutils/pkg-descr << 'END-of-hfsplusutils/pkg-descr'
XThis is a set of tools that allow access to HFS+ formatted
Xvolumes. HFS+ is a modernized version of Apple Computers HFS
XFilesystem. In addition in contains the library "libhfsp" which you
Xmay use for your own experiments, all the tools are based on this
Xlibrary. (A bit of understanding is still needed however).
END-of-hfsplusutils/pkg-descr
echo x - hfsplusutils/pkg-plist
sed 's/^X//' >hfsplusutils/pkg-plist << 'END-of-hfsplusutils/pkg-plist'
Xbin/hpcd
Xbin/hpcopy
Xbin/hpfsck
Xbin/hpls
Xbin/hpmkdir
Xbin/hpmount
Xbin/hppwd
Xbin/hprm
Xbin/hpumount
Xlib/libhfsp.a
Xlib/libhfsp.la
Xlib/libhfsp.so
Xlib/libhfsp.so.0
X%%PORTDOCS%%%%DOCSDIR%%/bugs.html
X%%PORTDOCS%%%%DOCSDIR%%/faq.html
X%%PORTDOCS%%%%DOCSDIR%%/hfsp.html
X%%PORTDOCS%%%%DOCSDIR%%/libhfsp.html
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
END-of-hfsplusutils/pkg-plist
echo c - hfsplusutils/files
mkdir -p hfsplusutils/files > /dev/null 2>&1
echo x - hfsplusutils/files/patch-aa
sed 's/^X//' >hfsplusutils/files/patch-aa << 'END-of-hfsplusutils/files/patch-aa'
X--- libhfsp/src/swab.h.orig	Tue Mar  5 14:50:29 2002
X+++ libhfsp/src/swab.h	Tue Nov 11 14:53:14 2003
X@@ -24,8 +24,11 @@
X  * $Id: swab.h,v 1.1.1.1 2002/03/05 19:50:29 klaus Exp $
X  */
X 
X-#include <endian.h>
X-#include <byteswap.h> 
X+#include <sys/endian.h>
X+
X+#define bswap_16 bswap16
X+#define bswap_32 bswap32
X+#define bswap_64 bswap64
X 
X  /* basic fuction:
X     value = swab_inc(ptr);
END-of-hfsplusutils/files/patch-aa
echo x - hfsplusutils/files/patch-ab
sed 's/^X//' >hfsplusutils/files/patch-ab << 'END-of-hfsplusutils/files/patch-ab'
X--- libhfsp/src/unicode.c.orig	Tue Mar  5 14:50:29 2002
X+++ libhfsp/src/unicode.c	Tue Nov 11 14:53:25 2003
X@@ -14,9 +14,8 @@
X # endif
X  
X #include <stdlib.h>
X-#include <endian.h>
X-#include <byteswap.h>
X-#include <linux/string.h>
X+#include <sys/endian.h>
X+#include <string.h>
X 
X #define __USE_GNU
X     /* need wcsrtomb */
END-of-hfsplusutils/files/patch-ab
echo x - hfsplusutils/distinfo
sed 's/^X//' >hfsplusutils/distinfo << 'END-of-hfsplusutils/distinfo'
XMD5 (hfsplus_1.0.4.src.tar.bz2) = 18fa1efb5432469357ffa6bfa7c08fcd
END-of-hfsplusutils/distinfo
exit

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



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