pkgsrc-WIP-changes archive

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

freem: Update package to include init script and make system user/group



Module Name:	pkgsrc-wip
Committed By:	Serena Willis <snw%coherent-logic.com@localhost>
Pushed By:	jpw
Date:		Mon Mar 31 15:11:00 2025 +0000
Changeset:	26c2dd3d37a9f8732eb1083f1be922d8dc9372ef

Modified Files:
	freem/COMMIT_MSG
	freem/Makefile
	freem/PLIST
	freem/distinfo
Added Files:
	freem/files/freem.sh

Log Message:
freem: Update package to include init script and make system user/group

Packaging changes:
 * Include init script
 * Add system user and group

Upstream changes:
 * No changes to upstream

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

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

diffstat:
 freem/COMMIT_MSG     | 10 ++-------
 freem/Makefile       | 11 +++++++++-
 freem/PLIST          | 57 +++++++++++++++++++++++++++-------------------------
 freem/distinfo       |  6 +++---
 freem/files/freem.sh | 20 ++++++++++++++++++
 5 files changed, 65 insertions(+), 39 deletions(-)

diffs:
diff --git a/freem/COMMIT_MSG b/freem/COMMIT_MSG
index ae0b3f8cb3..52a2457363 100644
--- a/freem/COMMIT_MSG
+++ b/freem/COMMIT_MSG
@@ -1,10 +1,4 @@
-lang/freem: Update freem to 0.62.3
+lang/freem: Update package to include init script and create system user/group
 
-More example scripts included in the package to prepare for rc automation
-
-- Fix OO regression in method dispatch
-- Fix port for SCO OpenServer
-- Fix port for Tru64 UNIX
-- Port to OS/2 4.52+
-- Make systemd units friendlier to RPM packaging
+No changes to upstream.
       
diff --git a/freem/Makefile b/freem/Makefile
index 26afdf9fd4..4d5f54f821 100644
--- a/freem/Makefile
+++ b/freem/Makefile
@@ -1,6 +1,7 @@
 # $NetBSD$
 
 DISTNAME=		freem-0.62.3
+PKGREVISION=		6
 CATEGORIES=		lang
 MASTER_SITES=		https://freem.coherent-logic.com/downloads/
 
@@ -9,10 +10,18 @@ HOMEPAGE=		https://freem.coherent-logic.com/
 COMMENT=		Implementation of the MUMPS programming language and database
 LICENSE=		gnu-agpl-v3
 
+USERGROUP_PHASE=	pre-install
+INSTALL_UNSTRIPPED=	yes
+MAKE_DIRS+=		${VARBASE}/freem/home
+MAKE_DIRS_PERMS+=	${VARBASE}/freem/home freem freem 0770
+PKG_HOME.freem=		${VARBASE}/freem/home
+PKG_GROUPS=		freem
+PKG_USERS=		freem:freem
+RCD_SCRIPTS=		freem
 GNU_CONFIGURE=		yes
 USE_LIBTOOL=		yes
 INFO_FILES=		yes
-CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR}
+CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR} CFLAGS=-ggdb
 
 
 .include "../../mk/bsd.pkg.mk"
diff --git a/freem/PLIST b/freem/PLIST
index 0eef1fd0d8..68f466f700 100644
--- a/freem/PLIST
+++ b/freem/PLIST
@@ -1,10 +1,6 @@
 @comment $NetBSD$
 bin/fmadm
 bin/freem
-bin/gcompact
-bin/gfix
-bin/glocks
-bin/grestore
 include/freem.h
 include/merr.h
 info/freem.info
@@ -12,26 +8,33 @@ lib/libfreem.la
 man/man1/freem.1
 share/doc/freem/README.md
 share/doc/freem/freem.1
-var/freem/SYSTEM/globals/sysns_global.txt
-var/freem/SYSTEM/routines/%DB.m
-var/freem/SYSTEM/routines/%MAPPING.m
-var/freem/SYSTEM/routines/%NET.HTTP.m
-var/freem/SYSTEM/routines/%SYS.CLI.XEC.m
-var/freem/SYSTEM/routines/%SYS.INIT.m
-var/freem/SYSTEM/routines/%SYS.WRAP.MERGE.m
-var/freem/SYSTEM/routines/%SYSPOLY.m
-var/freem/SYSTEM/routines/%TUI.MENU.m
-var/freem/SYSTEM/routines/%ZCOLUMNS.m
-var/freem/SYSTEM/routines/%ZEVENT.m
-var/freem/SYSTEM/routines/%ZFRMSAMP.m
-var/freem/SYSTEM/routines/%ZFRMXEC.m
-var/freem/SYSTEM/routines/%ZHELP.m
-var/freem/SYSTEM/routines/%ZMAINT.m
-var/freem/SYSTEM/routines/%ZREVQRY.m
-var/freem/SYSTEM/routines/%ZROWS.m
-var/freem/SYSTEM/routines/%ZWRIMP.m
-var/freem/SYSTEM/routines/%zscreen.m
-var/freem/SYSTEM/routines/sysns_routine.txt
-var/freem/USER/globals/userns_global.txt
-var/freem/USER/routines/userns_routine.txt
-var/freem/journals/journals.txt
+share/freem/examples/init/freebsd_rc/freem
+share/freem/examples/init/solaris/freem
+share/freem/examples/init/systemd/fedora/freem.service
+share/freem/examples/init/systemd/freem.service
+var/freem/DEFAULT/SYSTEM/globals/sysns_global.txt
+var/freem/DEFAULT/SYSTEM/routines/%DB.m
+var/freem/DEFAULT/SYSTEM/routines/%ED.m
+var/freem/DEFAULT/SYSTEM/routines/%MAPPING.m
+var/freem/DEFAULT/SYSTEM/routines/%NETHTTP.m
+var/freem/DEFAULT/SYSTEM/routines/%OBJECT.m
+var/freem/DEFAULT/SYSTEM/routines/%STRING.m
+var/freem/DEFAULT/SYSTEM/routines/%SYSINIT.m
+var/freem/DEFAULT/SYSTEM/routines/%SYSOOP.m
+var/freem/DEFAULT/SYSTEM/routines/%SYSPOLY.m
+var/freem/DEFAULT/SYSTEM/routines/%SYSWMERGE.m
+var/freem/DEFAULT/SYSTEM/routines/%TUIMENU.m
+var/freem/DEFAULT/SYSTEM/routines/%ZCOLUMNS.m
+var/freem/DEFAULT/SYSTEM/routines/%ZFRMSAMP.m
+var/freem/DEFAULT/SYSTEM/routines/%ZFRMXEC.m
+var/freem/DEFAULT/SYSTEM/routines/%ZHELP.m
+var/freem/DEFAULT/SYSTEM/routines/%ZMAINT.m
+var/freem/DEFAULT/SYSTEM/routines/%ZREVQRY.m
+var/freem/DEFAULT/SYSTEM/routines/%ZROWS.m
+var/freem/DEFAULT/SYSTEM/routines/%ulcharacter.m
+var/freem/DEFAULT/SYSTEM/routines/%ulmath.m
+var/freem/DEFAULT/SYSTEM/routines/%ulstring.m
+var/freem/DEFAULT/SYSTEM/routines/sysns_routine.txt
+var/freem/DEFAULT/USER/globals/userns_global.txt
+var/freem/DEFAULT/USER/routines/userns_routine.txt
+var/freem/DEFAULT/journals/journals.txt
diff --git a/freem/distinfo b/freem/distinfo
index cb2ed3d132..c61a262d76 100644
--- a/freem/distinfo
+++ b/freem/distinfo
@@ -1,5 +1,5 @@
 $NetBSD$
 
-BLAKE2s (freem-0.62.3.tar.gz) = 328a4d642b11744267d605ce45740fb0a9ebadf68c7a3496822b4645e2a4133f
-SHA512 (freem-0.62.3.tar.gz) = 36c024dfea7996322a1ba8d4b66d1148ffae90365e6581c9741f3cc04ab48f8cedf4b974b4501fe70ed235d55da8b566f2aac53b1975902761cf37bfe5b68354
-Size (freem-0.62.3.tar.gz) = 1047584 bytes
+BLAKE2s (freem-0.62.3.tar.gz) = fba9fc044d2c8ac0b354a4b0491571bf15b1fb795fccb9d598a1d723b16fc999
+SHA512 (freem-0.62.3.tar.gz) = fb9b0744a8012978f3e2c1294eee71bf110158f89fafb4c67508e4b53f828d70a5cc0ea3ed483ced1488ebd8e13e47d5ff04680d6e5592526dc82e2edb09a96f
+Size (freem-0.62.3.tar.gz) = 1047586 bytes
diff --git a/freem/files/freem.sh b/freem/files/freem.sh
new file mode 100644
index 0000000000..5663de5988
--- /dev/null
+++ b/freem/files/freem.sh
@@ -0,0 +1,20 @@
+#
+# FreeM
+#
+# Shared memory daemon for FreeM
+#
+# PROVIDE: freem
+# REQUIRE: DAEMON
+#
+
+if [ -f @SYSCONFBASE@/rc.subr ]; then
+    . @SYSCONFBASE@/rc.subr
+fi
+
+name="freem"
+rcvar=${name}_enable
+command="@PREFIX@/bin/${name}"
+freem_flags="--daemon --user=freem --group=freem"
+
+load_rc_config $name
+run_rc_command "$1"


Home | Main Index | Thread Index | Old Index