pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

hercules4aethra: add new package



Module Name:	pkgsrc-wip
Committed By:	Olaf Seibert <rhialto%falu.nl@localhost>
Pushed By:	rhialto
Date:		Mon Aug 7 21:28:45 2023 +0200
Changeset:	56b761b34247fbb368ef9801d9f67fdc4c71ab70

Added Files:
	hercules4aethra/DESCR
	hercules4aethra/Makefile
	hercules4aethra/PLIST
	hercules4aethra/distinfo
	hercules4aethra/patches/patch-Makefile.am
	hercules4aethra/patches/patch-configure.ac

Log Message:
hercules4aethra: add new package

For now this is preliminary since there are no releases yet.
Also because it starts out as a straight copy of SDL Hercules, I copied
the packaging for emulators/hercules4sdl. Because of this simple
approach, both packages install exactly the same file names.
So they conflict massively. Maybe this can be improved later on.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=56b761b34247fbb368ef9801d9f67fdc4c71ab70

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 hercules4aethra/DESCR                      |  18 +++
 hercules4aethra/Makefile                   |  57 +++++++++
 hercules4aethra/PLIST                      | 199 +++++++++++++++++++++++++++++
 hercules4aethra/distinfo                   |   7 +
 hercules4aethra/patches/patch-Makefile.am  |  15 +++
 hercules4aethra/patches/patch-configure.ac |  29 +++++
 6 files changed, 325 insertions(+)

diffs:
diff --git a/hercules4aethra/DESCR b/hercules4aethra/DESCR
new file mode 100644
index 0000000000..50db0f5f55
--- /dev/null
+++ b/hercules4aethra/DESCR
@@ -0,0 +1,18 @@
+This is an activiely developed version of emulators/hercules.
+
+Hercules is an open source software implementation of the mainframe
+System/370 and ESA/390 architectures, in addition to the new 64-bit
+z/Architecure.  Hercules runs under Linux, Windows 98, Windows NT,
+Windows 2000, and NetBSD.  Hercules was created by Roger Bowler and
+maintained by Jay Maynard.  Jan Jaeger designed and implemented many
+of the advanced features of Hercules, including dynamic
+reconfiguration, integrated console, interpretive execution, and
+z/Architecture support.
+
+Relevant mailing lists include https://groups.io/g/h390-vm and
+https://hercules-390.groups.io/g/group.
+
+This version is developed by SoftDevLabs.
+
+The hercifc program, which is only used when configuring network devices,
+is installed suid root, only accessible by group "hercules".
diff --git a/hercules4aethra/Makefile b/hercules4aethra/Makefile
new file mode 100644
index 0000000000..4e0409e16a
--- /dev/null
+++ b/hercules4aethra/Makefile
@@ -0,0 +1,57 @@
+# $NetBSD$
+
+PKGNAME=	hercules4aethra-4.6.0.20230618
+DISTNAME=	hercules4aethra
+CATEGORIES=	emulators
+MASTER_SITES=	${MASTER_SITE_GITHUB:=Hercules-Aethra/}
+EXTRACT_USING=	bsdtar
+
+MAINTAINER=	rhialto%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/Hercules-Aethra/aethra
+COMMENT=	The Aethra version of Hercules 4.x (Hyperion)
+LICENSE=	qpl-v1.0
+
+GITHUB_PROJECT=	aethra
+GITHUB_TAG=	a3e9574c46aa397fc5f21959b724def4c5a6dc62
+
+GNU_CONFIGURE=	yes
+USE_TOOLS+=	autoconf automake flex gawk grep gm4 gmake perl gsed
+USE_TOOLS+=	bash
+USE_LIBTOOL=	YES
+USE_LANGUAGES+=	c
+PTHREAD_OPTS+=	require
+REPLACE_BASH=	_dynamic_version
+.if ${MACHINE_ARCH} == i386
+CFLAGS+=	-march=i586
+.endif
+
+SUBST_CLASSES+=		prefix
+SUBST_STAGE.prefix=	pre-configure
+SUBST_MESSAGE.prefix=	Correcting configuration path
+SUBST_FILES.prefix=	hercules.cnf
+SUBST_SED.prefix=	-e 's,/usr/local,${PREFIX},g'
+
+CONFIGURE_ARGS+=	--enable-extpkgs=${PREFIX}/lib/hercules4sdl
+
+GROUP=			hercules
+PKG_GROUPS+=		${GROUP}
+SPECIAL_PERMS+=		${PREFIX}/bin/hercifc ${REAL_ROOT_USER} ${GROUP} 4510
+INSTALLATION_DIRS+=	share/examples/hercules
+
+pre-configure:
+	cd ${WRKSRC} && ./autogen.sh
+
+post-install:
+	${INSTALL_DATA} ${WRKSRC}/hercules.cnf ${DESTDIR}${PREFIX}/share/examples/hercules/
+
+.include "../../archivers/bzip2/buildlink3.mk"
+.include "../../converters/libiconv/buildlink3.mk"
+.include "../../devel/libltdl/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../math/hercules4sdl-decnumber/buildlink3.mk"
+.include "../../math/hercules4sdl-softfloat/buildlink3.mk"
+.include "../../net/hercules4sdl-telnet/buildlink3.mk"
+.include "../../security/hercules4sdl-crypto/buildlink3.mk"
+
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/hercules4aethra/PLIST b/hercules4aethra/PLIST
new file mode 100644
index 0000000000..4e8c992936
--- /dev/null
+++ b/hercules4aethra/PLIST
@@ -0,0 +1,199 @@
+@comment $NetBSD: PLIST,v 1.3 2022/11/27 15:43:13 rhialto Exp $
+bin/cckd2ckd
+bin/cckd642ckd
+bin/cckdcdsk
+bin/cckdcdsk64
+bin/cckdcomp
+bin/cckdcomp64
+bin/cckddiag
+bin/cckddiag64
+bin/cckdmap
+bin/cckdswap
+bin/cckdswap64
+bin/cfba2fba
+bin/cfba642fba
+bin/ckd2cckd
+bin/ckd2cckd64
+bin/convto64
+bin/dasdcat
+bin/dasdconv
+bin/dasdconv64
+bin/dasdcopy
+bin/dasdcopy64
+bin/dasdinit
+bin/dasdinit64
+bin/dasdisup
+bin/dasdlist
+bin/dasdload
+bin/dasdload64
+bin/dasdls
+bin/dasdpdsu
+bin/dasdseq
+bin/dasdser
+bin/dmap2hrc
+bin/fba2cfba
+bin/fba2cfba64
+bin/hercifc
+bin/herclin
+bin/hercules
+bin/hetget
+bin/hetinit
+bin/hetmap
+bin/hetupd
+bin/maketape
+bin/tapecopy
+bin/tapemap
+bin/tapesplt
+bin/tfprint
+bin/tfswap
+bin/txt2card
+bin/vmfplc2
+lib/hercules/dyncrypt.la
+lib/hercules/dyngui.la
+lib/hercules/hdt1052c.la
+lib/hercules/hdt1403.la
+lib/hercules/hdt2703.la
+lib/hercules/hdt2880.la
+lib/hercules/hdt3088.la
+lib/hercules/hdt3270.la
+lib/hercules/hdt3420.la
+lib/hercules/hdt3505.la
+lib/hercules/hdt3525.la
+lib/hercules/hdt3705.la
+lib/hercules/hdtdummy.la
+lib/hercules/hdteq.la
+lib/hercules/hdtptp.la
+lib/hercules/hdtqeth.la
+lib/hercules/hdttcpnje.la
+lib/hercules/hdtzfcp.la
+lib/libhdt3420_not_mod.la
+lib/libherc.la
+lib/libhercd.la
+lib/libhercs.la
+lib/libherct.la
+lib/libhercu.la
+man/man1/cckddiag.1
+man/man1/dasdseq.1
+man/man1/vmfplc2.1
+man/man4/cckd.4
+share/examples/hercules/hercules.cnf
+share/hercules/CMPSC.txt
+share/hercules/TMOUNT.txt
+share/hercules/awssl-v19g
+share/hercules/awswrite.jcl
+share/hercules/cckddasd.html
+share/hercules/cckddump-cckdload.zip
+share/hercules/fishgui.html
+share/hercules/hercconf.html
+share/hercules/hercfaq.html
+share/hercules/hercinst.html
+share/hercules/herclic.html
+share/hercules/hercload.html
+share/hercules/hercmsca.html
+share/hercules/hercmscf.html
+share/hercules/hercmscp.html
+share/hercules/hercmsct.html
+share/hercules/hercmscu.html
+share/hercules/hercmsda.html
+share/hercules/hercmsdc.html
+share/hercules/hercmsdg.html
+share/hercules/hercmsdi.html
+share/hercules/hercmsdl.html
+share/hercules/hercmsdn.html
+share/hercules/hercmsds.html
+share/hercules/hercmsdt.html
+share/hercules/hercmsdu.html
+share/hercules/hercmsg.html
+share/hercules/hercmshd.html
+share/hercules/hercmshe.html
+share/hercules/hercmshg.html
+share/hercules/hercmshm.html
+share/hercules/hercmsht.html
+share/hercules/hercmshu.html
+share/hercules/hercmsif.html
+share/hercules/hercmsin.html
+share/hercules/hercmslc.html
+share/hercules/hercmslg.html
+share/hercules/hercmspn.html
+share/hercules/hercmspr.html
+share/hercules/hercmspu.html
+share/hercules/hercmsrd.html
+share/hercules/hercmssd.html
+share/hercules/hercmsta.html
+share/hercules/hercmstc.html
+share/hercules/hercmste.html
+share/hercules/hercmstm.html
+share/hercules/hercmsts.html
+share/hercules/hercmstt.html
+share/hercules/hercmstu.html
+share/hercules/hercmsvm.html
+share/hercules/hercnew.html
+share/hercules/hercrdr.html
+share/hercules/hercrnot.html
+share/hercules/hercsupp.html
+share/hercules/herctcp.html
+share/hercules/hercules.css
+share/hercules/hercules.html
+share/hercules/images/back.gif
+share/hercules/images/bkued.gif
+share/hercules/images/blueu.gif
+share/hercules/images/dial1.gif
+share/hercules/images/dial2.gif
+share/hercules/images/dial3.gif
+share/hercules/images/dial4.gif
+share/hercules/images/favicon.ico
+share/hercules/images/greend.gif
+share/hercules/images/greenu.gif
+share/hercules/images/hercpic-rblk-256.gif
+share/hercules/images/hercpic-rblk-80.gif
+share/hercules/images/interruptd.gif
+share/hercules/images/interruptu.gif
+share/hercules/images/loadd.gif
+share/hercules/images/loadoffu.gif
+share/hercules/images/loadonu.gif
+share/hercules/images/loadu.gif
+share/hercules/images/manoffu.gif
+share/hercules/images/manonu.gif
+share/hercules/images/note.gif
+share/hercules/images/osi-certified-60x50.jpg
+share/hercules/images/poweroffd.gif
+share/hercules/images/poweroffu.gif
+share/hercules/images/poweronoffd.gif
+share/hercules/images/poweronoffu.gif
+share/hercules/images/poweronond.gif
+share/hercules/images/powerononu.gif
+share/hercules/images/redd.gif
+share/hercules/images/redu.gif
+share/hercules/images/restartd.gif
+share/hercules/images/restartu.gif
+share/hercules/images/startd.gif
+share/hercules/images/startu.gif
+share/hercules/images/stopd.gif
+share/hercules/images/stopu.gif
+share/hercules/images/stored.gif
+share/hercules/images/storeu.gif
+share/hercules/images/sysoffu.gif
+share/hercules/images/sysonu.gif
+share/hercules/images/telnetputtyconndata.png
+share/hercules/images/telnetputtysession.png
+share/hercules/images/telnetputtyterminal.png
+share/hercules/images/telnetwin.png
+share/hercules/images/telnetwinntconnect.png
+share/hercules/images/telnetwinnttermpref.png
+share/hercules/images/translucentoffd.gif
+share/hercules/images/translucentoffu.gif
+share/hercules/images/translucentond.gif
+share/hercules/images/translucentonu.gif
+share/hercules/images/waitoffu.gif
+share/hercules/images/waitonu.gif
+share/hercules/include/footer.htmlpart
+share/hercules/include/header.htmlpart
+share/hercules/index.html
+share/hercules/rawstape.jcl
+share/hercules/rexx.html
+share/hercules/scsiboot
+share/hercules/shared.html
+share/hercules/tapeconv.jcl
+share/hercules/tasks.html
+share/hercules/telnet.html
+share/hercules/zzsacard.bin
diff --git a/hercules4aethra/distinfo b/hercules4aethra/distinfo
new file mode 100644
index 0000000000..b01d28bda1
--- /dev/null
+++ b/hercules4aethra/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+BLAKE2s (hercules4aethra-a3e9574c46aa397fc5f21959b724def4c5a6dc62.tar.gz) = d8f58d89592498a529165f7f58925846239e0972e742f3d356928170b869a161
+SHA512 (hercules4aethra-a3e9574c46aa397fc5f21959b724def4c5a6dc62.tar.gz) = 3ff951abc9628d54e98551d8019058c601ba87e475f96c32e60df99353d1ceb933295ddfa7215881c28b34fc7dd35562b8a445d0c0a33a78a393970ec8644f79
+Size (hercules4aethra-a3e9574c46aa397fc5f21959b724def4c5a6dc62.tar.gz) = 24708497 bytes
+SHA1 (patch-Makefile.am) = 6ae600095ffb29aab2a5e1e467f79a40e814f26d
+SHA1 (patch-configure.ac) = 734f64da8f4ce0f790d4eac0f352649d1b6d08f2
diff --git a/hercules4aethra/patches/patch-Makefile.am b/hercules4aethra/patches/patch-Makefile.am
new file mode 100644
index 0000000000..c94fc5320f
--- /dev/null
+++ b/hercules4aethra/patches/patch-Makefile.am
@@ -0,0 +1,15 @@
+$NetBSD: patch-Makefile.am,v 1.2 2021/12/19 19:08:20 rhialto Exp $
+
+- Build dynamic modules only dynamic (-shared), not also static.
+
+--- Makefile.am.orig	2021-12-18 14:28:12.000000000 +0000
++++ Makefile.am
+@@ -144,7 +144,7 @@ dyndev_SRC =  \
+ #                    to Windows DLLs
+ #-----------------------------------------------------------------
+ 
+-XSTATIC =
++XSTATIC = -shared
+ DYNSRC  =
+ 
+ DYNMOD_LD_FLAGS =   \
diff --git a/hercules4aethra/patches/patch-configure.ac b/hercules4aethra/patches/patch-configure.ac
new file mode 100644
index 0000000000..183f203386
--- /dev/null
+++ b/hercules4aethra/patches/patch-configure.ac
@@ -0,0 +1,29 @@
+$NetBSD: patch-configure.ac,v 1.2 2021/12/19 19:08:20 rhialto Exp $
+
+- Avoid -march=xxx because it makes binaries nonportable.
+- Fix suffix of helper libraries.
+
+--- configure.ac.orig	2021-12-18 14:28:12.000000000 +0000
++++ configure.ac
+@@ -2853,7 +2853,8 @@ if test "$hc_cv_auto_optimize" = "yes"; 
+     if test "$hc_cv_is_intel_x86_arch" = "yes"; then
+ 
+         # Set CPU type
+-        hc_cv_optimization_flags="$hc_cv_optimization_flags -march=$hc_cv_intel_cpu_type"
++	# Don't do this: it makes binaries unportable.
++        #hc_cv_optimization_flags="$hc_cv_optimization_flags -march=$hc_cv_intel_cpu_type"
+ 
+         # Dynamically inline small block string operations
+         # (subroutine calls still made for large area calls)
+@@ -3074,9 +3075,9 @@ test  "$hc_cv_is_mingw"    =  "yes"  && 
+ #------------------------------------------------------#
+ 
+ if test "$hc_cv_opt_debug" = "yes"; then
+-  hc_cv_pkg_lib_suffix=${hc_cv_cpu_bits}d
++  hc_cv_pkg_lib_suffix=d_pic
+ else
+-  hc_cv_pkg_lib_suffix=${hc_cv_cpu_bits}
++  hc_cv_pkg_lib_suffix=_pic
+ fi
+ 
+ AC_CACHE_SAVE()


Home | Main Index | Thread Index | Old Index