hfsutils: initial import
This commit is contained in:
parent
2651824741
commit
b3c6c702f4
36
hfsutils/.footprint
Normal file
36
hfsutils/.footprint
Normal file
@ -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
|
8
hfsutils/.signature
Normal file
8
hfsutils/.signature
Normal file
@ -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
|
38
hfsutils/Pkgfile
Normal file
38
hfsutils/Pkgfile
Normal file
@ -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/
|
||||||
|
}
|
13
hfsutils/hfsutils-3.2.6-errno.patch
Normal file
13
hfsutils/hfsutils-3.2.6-errno.patch
Normal file
@ -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))
|
||||||
|
|
8
hfsutils/hfsutils-3.2.6-fix-tcl-8.6.patch
Normal file
8
hfsutils/hfsutils-3.2.6-fix-tcl-8.6.patch
Normal file
@ -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
|
14
hfsutils/largerthan2gb.patch
Normal file
14
hfsutils/largerthan2gb.patch
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user