summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2020-12-13 15:47:17 +0000
committernia <nia@pkgsrc.org>2020-12-13 15:47:17 +0000
commit8281571e0e048459723187ead67c0e6ae9a0db10 (patch)
tree0d605a3481ac5942ac6d11e58c448a54f2f88bc8 /net
parent583c8bc95ecc977d1940cbc8785cb415d1f41edb (diff)
downloadpkgsrc-8281571e0e048459723187ead67c0e6ae9a0db10.tar.gz
Add net/hdl-dump.
Contributed by embr@liclac.eu in a private email, thx! hdl_dump is a tool for installing games and homebrew software in HDLoader format onto a PlayStation 2's hard drive, either over the network or by directly attaching it to your machine.
Diffstat (limited to 'net')
-rw-r--r--net/Makefile3
-rw-r--r--net/hdl-dump/DESCR3
-rw-r--r--net/hdl-dump/Makefile24
-rw-r--r--net/hdl-dump/PLIST2
-rw-r--r--net/hdl-dump/distinfo8
-rw-r--r--net/hdl-dump/patches/patch-Makefile29
-rw-r--r--net/hdl-dump/patches/patch-config.h15
7 files changed, 83 insertions, 1 deletions
diff --git a/net/Makefile b/net/Makefile
index 29eb4aabb79..b15cf8a9559 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1366 2020/12/10 16:50:49 kardel Exp $
+# $NetBSD: Makefile,v 1.1367 2020/12/13 15:47:17 nia Exp $
#
COMMENT= Networking tools
@@ -236,6 +236,7 @@ SUBDIR+= gupnp-igd
SUBDIR+= gupnp-tools
SUBDIR+= gupnp12
SUBDIR+= haproxy
+SUBDIR+= hdl-dump
SUBDIR+= hesiod
SUBDIR+= hf6to4
SUBDIR+= hlfl
diff --git a/net/hdl-dump/DESCR b/net/hdl-dump/DESCR
new file mode 100644
index 00000000000..bb4606e40d4
--- /dev/null
+++ b/net/hdl-dump/DESCR
@@ -0,0 +1,3 @@
+hdl_dump is a tool for installing games and homebrew software in HDLoader
+format onto a PlayStation 2's hard drive, either over the network or by
+directly attaching it to your machine.
diff --git a/net/hdl-dump/Makefile b/net/hdl-dump/Makefile
new file mode 100644
index 00000000000..d55326e01a0
--- /dev/null
+++ b/net/hdl-dump/Makefile
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile,v 1.1 2020/12/13 15:47:18 nia Exp $
+
+DISTNAME= hdl-dump-20200727
+CATEGORIES= net
+MASTER_SITES= ${MASTER_SITE_GITHUB:=ps2homebrew/}
+GITHUB_TAG= 92213b57d0c6a89d14d01d5a71bedb2c92ebd421
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= https://github.com/ps2homebrew/hdl-dump
+COMMENT= Install games in HDLoader format to a PS2 hard drive
+LICENSE= gnu-gpl-v2
+
+MAKE_FLAGS+= RELEASE=yes
+MAKE_FLAGS+= PREFIX=${PREFIX}
+MAKE_FLAGS+= MANPREFIX=${PREFIX}/${PKGMANDIR}
+
+USE_TOOLS+= gmake
+
+INSTALLATION_DIRS+= bin
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/hdl_dump ${DESTDIR}${PREFIX}/bin
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/hdl-dump/PLIST b/net/hdl-dump/PLIST
new file mode 100644
index 00000000000..96e93a92d97
--- /dev/null
+++ b/net/hdl-dump/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2020/12/13 15:47:18 nia Exp $
+bin/hdl_dump
diff --git a/net/hdl-dump/distinfo b/net/hdl-dump/distinfo
new file mode 100644
index 00000000000..01fde32f66d
--- /dev/null
+++ b/net/hdl-dump/distinfo
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1 2020/12/13 15:47:18 nia Exp $
+
+SHA1 (hdl-dump-20200727-92213b57d0c6a89d14d01d5a71bedb2c92ebd421.tar.gz) = 55665f9c3582915c8f6c1e47fbc86d1c88f37d35
+RMD160 (hdl-dump-20200727-92213b57d0c6a89d14d01d5a71bedb2c92ebd421.tar.gz) = ec442332194c51c4b0d177ce0f11a6b2f9d27ce4
+SHA512 (hdl-dump-20200727-92213b57d0c6a89d14d01d5a71bedb2c92ebd421.tar.gz) = 717c43a3c3884e8c1ee1d9779390d9fd96c72e1e2ffc98f07df4ea43609e0382e7f41918b3c99d07a5471992e212376d0d1c2c75f455469f140158f73771a5e8
+Size (hdl-dump-20200727-92213b57d0c6a89d14d01d5a71bedb2c92ebd421.tar.gz) = 186679 bytes
+SHA1 (patch-Makefile) = 0046a41d2e3b8840338e66bb0deec4bf2e1b1da0
+SHA1 (patch-config.h) = bb0f059e20660db5047ad7ecbdf9fc81c3cfd96c
diff --git a/net/hdl-dump/patches/patch-Makefile b/net/hdl-dump/patches/patch-Makefile
new file mode 100644
index 00000000000..1a83530404e
--- /dev/null
+++ b/net/hdl-dump/patches/patch-Makefile
@@ -0,0 +1,29 @@
+$NetBSD: patch-Makefile,v 1.1 2020/12/13 15:47:18 nia Exp $
+
+1. Honour CFLAGS and LDFLAGS
+2. Don't compress the output binary (upx)
+
+--- Makefile.orig 2020-07-27 10:03:51.000000000 +0000
++++ Makefile
+@@ -50,9 +50,9 @@ WINMINGWPREFIX ?= i686-w64-mingw32
+ # configuration end
+ ###############################################################################
+
+-CFLAGS = -Wall -ansi -pedantic -Wno-long-long
++CFLAGS += -Wall -ansi -pedantic -Wno-long-long
+
+-LDFLAGS =
++LDFLAGS +=
+
+ # iin_hdloader.c iin_net.c
+ SOURCES = hdl_dump.c \
+@@ -184,9 +184,6 @@ rsrc.o: rsrc.rc
+ $(BINARY): $(OBJECTS)
+ @echo -e "\tLNK $@"
+ @$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
+-ifeq ($(RELEASE), yes)
+- -@upx -q -9 $@ > /dev/null
+-endif
+
+
+ %.o : %.c
diff --git a/net/hdl-dump/patches/patch-config.h b/net/hdl-dump/patches/patch-config.h
new file mode 100644
index 00000000000..41720ea03f2
--- /dev/null
+++ b/net/hdl-dump/patches/patch-config.h
@@ -0,0 +1,15 @@
+$NetBSD: patch-config.h,v 1.1 2020/12/13 15:47:18 nia Exp $
+
+Do not attempt to use stat64 and friends on not-Linux.
+
+--- config.h.orig 2020-07-27 10:03:51.000000000 +0000
++++ config.h
+@@ -25,7 +25,7 @@
+ #define _CONFIG_H
+
+ /* MacOS X support patch; there is more in osal_unix.c */
+-#if defined (__APPLE__) || defined (__FreeBSD__)
++#if !defined(__linux__)
+ # undef _BUILD_UNIX
+ # define _BUILD_UNIX
+ # define lseek64 lseek