pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net Add net/hdl-dump.
details: https://anonhg.NetBSD.org/pkgsrc/rev/3e5c389eadd2
branches: trunk
changeset: 443444:3e5c389eadd2
user: nia <nia%pkgsrc.org@localhost>
date: Sun Dec 13 15:47:17 2020 +0000
description:
Add net/hdl-dump.
Contributed by embr%liclac.eu@localhost 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:
net/Makefile | 3 ++-
net/hdl-dump/DESCR | 3 +++
net/hdl-dump/Makefile | 24 ++++++++++++++++++++++++
net/hdl-dump/PLIST | 2 ++
net/hdl-dump/distinfo | 8 ++++++++
net/hdl-dump/patches/patch-Makefile | 29 +++++++++++++++++++++++++++++
net/hdl-dump/patches/patch-config.h | 15 +++++++++++++++
7 files changed, 83 insertions(+), 1 deletions(-)
diffs (122 lines):
diff -r c5424e884c70 -r 3e5c389eadd2 net/Makefile
--- a/net/Makefile Sun Dec 13 15:43:59 2020 +0000
+++ b/net/Makefile Sun Dec 13 15:47:17 2020 +0000
@@ -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-tools
SUBDIR+= gupnp12
SUBDIR+= haproxy
+SUBDIR+= hdl-dump
SUBDIR+= hesiod
SUBDIR+= hf6to4
SUBDIR+= hlfl
diff -r c5424e884c70 -r 3e5c389eadd2 net/hdl-dump/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/hdl-dump/DESCR Sun Dec 13 15:47:17 2020 +0000
@@ -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 -r c5424e884c70 -r 3e5c389eadd2 net/hdl-dump/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/hdl-dump/Makefile Sun Dec 13 15:47:17 2020 +0000
@@ -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@localhost
+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 -r c5424e884c70 -r 3e5c389eadd2 net/hdl-dump/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/hdl-dump/PLIST Sun Dec 13 15:47:17 2020 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2020/12/13 15:47:18 nia Exp $
+bin/hdl_dump
diff -r c5424e884c70 -r 3e5c389eadd2 net/hdl-dump/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/hdl-dump/distinfo Sun Dec 13 15:47:17 2020 +0000
@@ -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 -r c5424e884c70 -r 3e5c389eadd2 net/hdl-dump/patches/patch-Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/hdl-dump/patches/patch-Makefile Sun Dec 13 15:47:17 2020 +0000
@@ -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 -r c5424e884c70 -r 3e5c389eadd2 net/hdl-dump/patches/patch-config.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/hdl-dump/patches/patch-config.h Sun Dec 13 15:47:17 2020 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index