summaryrefslogtreecommitdiff
path: root/hfsutils
diff options
context:
space:
mode:
authorDanny Rawlins <monster.romster@gmail.com>2019-09-03 15:52:11 +1000
committerDanny Rawlins <monster.romster@gmail.com>2019-09-03 15:53:31 +1000
commitb3c6c702f46af2bdb56e4bb955c700fababc6503 (patch)
tree0042006d0c43de5ecd088e21bbeb345436954cc8 /hfsutils
parent2651824741282998a24394716f1e98291a50228b (diff)
downloadcontrib-b3c6c702f46af2bdb56e4bb955c700fababc6503.tar.gz
contrib-b3c6c702f46af2bdb56e4bb955c700fababc6503.tar.xz
hfsutils: initial import
Diffstat (limited to 'hfsutils')
-rw-r--r--hfsutils/.footprint36
-rw-r--r--hfsutils/.signature8
-rw-r--r--hfsutils/Pkgfile38
-rw-r--r--hfsutils/hfsutils-3.2.6-errno.patch13
-rw-r--r--hfsutils/hfsutils-3.2.6-fix-tcl-8.6.patch8
-rw-r--r--hfsutils/largerthan2gb.patch14
6 files changed, 117 insertions, 0 deletions
diff --git a/hfsutils/.footprint b/hfsutils/.footprint
new file mode 100644
index 000000000..e9cf11457
--- /dev/null
+++ b/hfsutils/.footprint
@@ -0,0 +1,36 @@
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+-rwxr-xr-x root/root usr/bin/hattrib
+-rwxr-xr-x root/root usr/bin/hcd
+-rwxr-xr-x root/root usr/bin/hcopy
+-rwxr-xr-x root/root usr/bin/hdel
+-rwxr-xr-x root/root usr/bin/hdir
+-rwxr-xr-x root/root usr/bin/hformat
+-rwxr-xr-x root/root usr/bin/hfsck
+-rwxr-xr-x root/root usr/bin/hls
+-rwxr-xr-x root/root usr/bin/hmkdir
+-rwxr-xr-x root/root usr/bin/hmount
+-rwxr-xr-x root/root usr/bin/hpwd
+-rwxr-xr-x root/root usr/bin/hrename
+-rwxr-xr-x root/root usr/bin/hrmdir
+-rwxr-xr-x root/root usr/bin/humount
+-rwxr-xr-x root/root usr/bin/hvol
+drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/info/
+drwxr-xr-x root/root usr/share/man/
+drwxr-xr-x root/root usr/share/man/man1/
+-rw-r--r-- root/root usr/share/man/man1/hattrib.1.gz
+-rw-r--r-- root/root usr/share/man/man1/hcd.1.gz
+-rw-r--r-- root/root usr/share/man/man1/hcopy.1.gz
+-rw-r--r-- root/root usr/share/man/man1/hdel.1.gz
+-rw-r--r-- root/root usr/share/man/man1/hdir.1.gz
+-rw-r--r-- root/root usr/share/man/man1/hformat.1.gz
+-rw-r--r-- root/root usr/share/man/man1/hfsutils.1.gz
+-rw-r--r-- root/root usr/share/man/man1/hls.1.gz
+-rw-r--r-- root/root usr/share/man/man1/hmkdir.1.gz
+-rw-r--r-- root/root usr/share/man/man1/hmount.1.gz
+-rw-r--r-- root/root usr/share/man/man1/hpwd.1.gz
+-rw-r--r-- root/root usr/share/man/man1/hrename.1.gz
+-rw-r--r-- root/root usr/share/man/man1/hrmdir.1.gz
+-rw-r--r-- root/root usr/share/man/man1/humount.1.gz
+-rw-r--r-- root/root usr/share/man/man1/hvol.1.gz
diff --git a/hfsutils/.signature b/hfsutils/.signature
new file mode 100644
index 000000000..5cdea186f
--- /dev/null
+++ b/hfsutils/.signature
@@ -0,0 +1,8 @@
+untrusted comment: verify with /etc/ports/contrib.pub
+RWSagIOpLGJF3ylp5upYz5mrgpr4ApdvrzXKlValM08bGqagdj/w1ztYdD4wRqf8mdYP3Rmy9zhfYAxym0G78VSijpKXhmMRCAo=
+SHA256 (Pkgfile) = 9ca286518b7c8c8f618345c4871d9af2cff44b1309b53cab82c97e0e5cf3e2d1
+SHA256 (.footprint) = 2f4fa57f7d6d91e420364f90170d1b289f254517bfb1037eeca186f44b86c559
+SHA256 (hfsutils-3.2.6.tar.gz) = bc9d22d6d252b920ec9cdf18e00b7655a6189b3f34f42e58d5bb152957289840
+SHA256 (hfsutils-3.2.6-errno.patch) = 06d374f92d3535d770b63c6cc98fa2e9ea942685e8f90c13270c2908ed98c735
+SHA256 (hfsutils-3.2.6-fix-tcl-8.6.patch) = bfa6dfcf2fe62d9be52094adff12d79780304a62db815219086d46dfcf093ee0
+SHA256 (largerthan2gb.patch) = 3427de6fde5e6916879b59054ffb129b5d37180772d7111607d98423fb76a3da
diff --git a/hfsutils/Pkgfile b/hfsutils/Pkgfile
new file mode 100644
index 000000000..7df0e92c9
--- /dev/null
+++ b/hfsutils/Pkgfile
@@ -0,0 +1,38 @@
+# Description: HFS FS Access utils"
+# URL: https://www.mars.org/home/rob/proj/hfs/
+# Maintainer: Danny Rawlins, crux at romster dot me
+
+name=hfsutils
+version=3.2.6
+release=1
+source=(ftp://ftp.mars.org/pub/hfs/$name-$version.tar.gz
+ hfsutils-3.2.6-errno.patch
+ hfsutils-3.2.6-fix-tcl-8.6.patch
+ largerthan2gb.patch)
+
+build() {
+ cd $name-$version
+
+ patch -p1 -i $SRC/hfsutils-3.2.6-errno.patch
+ patch -p1 -i $SRC/hfsutils-3.2.6-fix-tcl-8.6.patch
+ patch -p0 -i $SRC/largerthan2gb.patch
+
+ ./configure \
+ --prefix=/usr
+
+ make
+ make -C hfsck
+
+ install -d \
+ $PKG/usr/bin \
+ $PKG/usr/share/man/man1 \
+ $PKG/usr/share/info
+
+ make \
+ prefix=$PKG/usr \
+ MANDEST=$PKG/usr/share/man \
+ infodir=$PKG/usr/share/info \
+ install
+
+ install -m 0755 hfsck/hfsck $PKG/usr/bin/
+}
diff --git a/hfsutils/hfsutils-3.2.6-errno.patch b/hfsutils/hfsutils-3.2.6-errno.patch
new file mode 100644
index 000000000..6e25f794b
--- /dev/null
+++ b/hfsutils/hfsutils-3.2.6-errno.patch
@@ -0,0 +1,13 @@
+diff -ruN hfsutils.orig/tclhfs.c hfsutils-3.2.6/tclhfs.c
+--- hfsutils.orig/tclhfs.c 2003-03-31 17:34:55.000000000 +0200
++++ hfsutils-3.2.6/tclhfs.c 2003-03-31 17:39:51.000000000 +0200
+@@ -43,8 +43,7 @@
+ # include "charset.h"
+ # include "suid.h"
+ # include "version.h"
+-
+-extern int errno;
++# include <errno.h>
+
+ # define ERROR(code, str) (hfs_error = (str), errno = (code))
+
diff --git a/hfsutils/hfsutils-3.2.6-fix-tcl-8.6.patch b/hfsutils/hfsutils-3.2.6-fix-tcl-8.6.patch
new file mode 100644
index 000000000..19f154245
--- /dev/null
+++ b/hfsutils/hfsutils-3.2.6-fix-tcl-8.6.patch
@@ -0,0 +1,8 @@
+--- hfsutils-3.2.6/config.h.in
++++ hfsutils-3.2.6/config.h.in
+@@ -91,3 +91,5 @@
+ # ifndef HAVE_STRTOL
+ long strtol(const char *, char **, int);
+ # endif
++
++#define USE_INTERP_RESULT 1
diff --git a/hfsutils/largerthan2gb.patch b/hfsutils/largerthan2gb.patch
new file mode 100644
index 000000000..a688ff621
--- /dev/null
+++ b/hfsutils/largerthan2gb.patch
@@ -0,0 +1,14 @@
+--- libhfs/os/unix.c-orig 1998-11-02 23:09:13.000000000 +0100
++++ libhfs/os/unix.c 2004-12-13 14:39:28.099124272 +0100
+@@ -19,6 +19,11 @@
+ * $Id$
+ */
+
++#ifdef __linux__
++#define _FILE_OFFSET_BITS 64
++#define _LARGE_FILES
++#endif
++
+ # ifdef HAVE_CONFIG_H
+ # include "config.h"
+ # endif

Generated by cgit