summaryrefslogtreecommitdiff
path: root/x11/cde/files
diff options
context:
space:
mode:
Diffstat (limited to 'x11/cde/files')
-rw-r--r--x11/cde/files/dtcms.in26
-rw-r--r--x11/cde/files/dtcms25.in26
-rw-r--r--x11/cde/files/dtlogin.in34
-rw-r--r--x11/cde/files/dtlogin25.in34
-rw-r--r--x11/cde/files/patch-configure.ac24
-rw-r--r--x11/cde/files/patch-lib_DtMmdb_StyleSheet_Makefile.am19
-rw-r--r--x11/cde/files/patch-programs_dtcm_dtcm_calendarA.c11
-rw-r--r--x11/cde/files/patch-programs_dtcm_libDtCmP_timeops.c11
-rw-r--r--x11/cde/files/patch-programs_dtterm_Makefile.am7
-rw-r--r--x11/cde/files/pkg-message.in40
10 files changed, 232 insertions, 0 deletions
diff --git a/x11/cde/files/dtcms.in b/x11/cde/files/dtcms.in
new file mode 100644
index 000000000000..1afb03b937af
--- /dev/null
+++ b/x11/cde/files/dtcms.in
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+# PROVIDE: dtcms
+# REQUIRE: rpcbind
+# KEYWORD: shutdown
+
+# Add the following line to /etc/rc.conf to enable dtcms:
+#
+# dtcms_enable=YES
+
+. /etc/rc.subr
+
+name=dtcms
+rcvar=dtcms_enable
+desc="CDE calendar manager service daemon"
+
+load_rc_config $name
+
+: ${dtcms_enable:=NO}
+
+start_precmd="force_depend rpcbind || exit 1"
+pidfile=/var/run/dtcms.pid
+command=/usr/sbin/daemon
+command_args="-P $pidfile %%PREFIX%%/dt/bin/rpc.cmsd"
+
+run_rc_command $1
diff --git a/x11/cde/files/dtcms25.in b/x11/cde/files/dtcms25.in
new file mode 100644
index 000000000000..236823469312
--- /dev/null
+++ b/x11/cde/files/dtcms25.in
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+# PROVIDE: dtcms
+# REQUIRE: rpcbind
+# KEYWORD: shutdown
+
+# Add the following line to /etc/rc.conf to enable dtcms:
+#
+# dtcms_enable=YES
+
+. /etc/rc.subr
+
+name=dtcms
+rcvar=dtcms_enable
+desc="CDE calendar manager service daemon"
+
+load_rc_config $name
+
+: ${dtcms_enable:=NO}
+
+start_precmd="force_depend rpcbind || exit 1"
+pidfile=/var/run/dtcms.pid
+command=/usr/sbin/daemon
+command_args="-P $pidfile %%PREFIX%%/dt25/bin/rpc.cmsd"
+
+run_rc_command $1
diff --git a/x11/cde/files/dtlogin.in b/x11/cde/files/dtlogin.in
new file mode 100644
index 000000000000..570282e43fdd
--- /dev/null
+++ b/x11/cde/files/dtlogin.in
@@ -0,0 +1,34 @@
+#!/bin/sh
+
+# PROVIDE: dtlogin
+# REQUIRE: LOGIN dbus dtspc
+# KEYWORD: shutdown
+#
+# Add the following line to /etc/rc.conf to enable dtlogin:
+# dtlogin_enable="YES"
+#
+
+. /etc/rc.subr
+
+name=dtlogin
+rcvar=dtlogin_enable
+desc="Display manager for CDE"
+
+load_rc_config dtlogin
+
+: ${dtlogin_enable:=NO}
+
+command=%%PREFIX%%/dt/bin/dtlogin
+command_args=-daemon
+
+start_precmd=dtlogin_prestart
+
+dtlogin_prestart()
+{
+ if ! [ -f "%%PREFIX%%/etc/X11/Xwrapper.config" ]; then
+ echo "If dtlogin fails to start:"
+ echo "# echo allowed_users=anybody >> %%PREFIX%%/etc/X11/Xwrapper.config"
+ fi
+}
+
+run_rc_command $1
diff --git a/x11/cde/files/dtlogin25.in b/x11/cde/files/dtlogin25.in
new file mode 100644
index 000000000000..66043419982b
--- /dev/null
+++ b/x11/cde/files/dtlogin25.in
@@ -0,0 +1,34 @@
+#!/bin/sh
+
+# PROVIDE: dtlogin
+# REQUIRE: LOGIN dbus dtspc
+# KEYWORD: shutdown
+#
+# Add the following line to /etc/rc.conf to enable dtlogin:
+# dtlogin_enable="YES"
+#
+
+. /etc/rc.subr
+
+name=dtlogin
+rcvar=dtlogin_enable
+desc="Display manager for CDE"
+
+load_rc_config dtlogin
+
+: ${dtlogin_enable:=NO}
+
+command=%%PREFIX%%/dt25/bin/dtlogin
+command_args=-daemon
+
+start_precmd=dtlogin_prestart
+
+dtlogin_prestart()
+{
+ if ! [ -f "%%PREFIX%%/etc/X11/Xwrapper.config" ]; then
+ echo "If dtlogin fails to start:"
+ echo "# echo allowed_users=anybody >> %%PREFIX%%/etc/X11/Xwrapper.config"
+ fi
+}
+
+run_rc_command $1
diff --git a/x11/cde/files/patch-configure.ac b/x11/cde/files/patch-configure.ac
new file mode 100644
index 000000000000..8aa1829c207c
--- /dev/null
+++ b/x11/cde/files/patch-configure.ac
@@ -0,0 +1,24 @@
+--- configure.ac.orig 2021-11-30 19:54:11.356382000 -0800
++++ configure.ac 2021-11-30 20:19:10.923347000 -0800
+@@ -305,9 +305,6 @@
+ AC_PATH_XTRA
+
+ dnl check some compiler flags
+-C_FLAG_CHECK([-Wno-format-truncation])
+-CXX_FLAG_CHECK([-Wno-format-truncation])
+-
+ C_FLAG_CHECK([-fno-strict-aliasing])
+ CXX_FLAG_CHECK([-fno-strict-aliasing])
+
+@@ -327,9 +324,9 @@
+ dnl programs with full paths
+
+ dnl - KSH, some systems call it as ksh93
+-AC_PATH_PROG(KSH, ksh)
++AC_PATH_PROG(KSH, ksh93)
+ if test -z "$ac_cv_path_KSH"; then
+- AC_PATH_PROG(KSH, ksh93)
++ AC_PATH_PROG(KSH, ksh)
+ if test -z "$ac_cv_path_KSH"; then
+ MISSING_PROGS="[ksh or ksh93] ${MISSING_PROGS}"
+ fi
diff --git a/x11/cde/files/patch-lib_DtMmdb_StyleSheet_Makefile.am b/x11/cde/files/patch-lib_DtMmdb_StyleSheet_Makefile.am
new file mode 100644
index 000000000000..ee046fe0c058
--- /dev/null
+++ b/x11/cde/files/patch-lib_DtMmdb_StyleSheet_Makefile.am
@@ -0,0 +1,19 @@
+--- lib/DtMmdb/StyleSheet/Makefile.am.orig 2022-02-15 09:36:38.828203000 -0800
++++ lib/DtMmdb/StyleSheet/Makefile.am 2022-02-15 10:20:50.149152000 -0800
+@@ -41,14 +41,14 @@
+ tokenStyle.C
+
+ defParser.C: defParser.yy
+- $(YACC) $(AM_YFLAGS) -p defParser -b defParser $<
++ $(YACC) $(AM_YFLAGS) -o defParser.tab.c -p defParser -b defParser $<
+ mv defParser.tab.c $@
+
+ defToken.C: defToken.ll
+ $(LEX) $(AM_LFLAGS) -P defParser -o $@ $<
+
+ style.C: style.yy
+- $(YACC) $(AM_YFLAGS) -p style -b style $<
++ $(YACC) $(AM_YFLAGS) -o style.tab.c -p style -b style $<
+ mv style.tab.c style.C
+
+ tokenStyle.C: tokenStyle.ll
diff --git a/x11/cde/files/patch-programs_dtcm_dtcm_calendarA.c b/x11/cde/files/patch-programs_dtcm_dtcm_calendarA.c
new file mode 100644
index 000000000000..ab3f91b3887e
--- /dev/null
+++ b/x11/cde/files/patch-programs_dtcm_dtcm_calendarA.c
@@ -0,0 +1,11 @@
+--- programs/dtcm/dtcm/calendarA.c.orig 2021-07-03 12:35:15.000000000 -0700
++++ programs/dtcm/dtcm/calendarA.c 2021-07-12 13:58:22.306477000 -0700
+@@ -2047,7 +2047,7 @@
+ set_message(c->message_text, buf);
+
+ sprintf(buf, "%s\n%s: %s, %s: %s", CATGETS(c->DT_catd, 1, 91,
+- "rpc.cmsd is not responding for your user name.\nMake sure the inetd process is running and the entry\nin inetd.conf for rpc.cmsd is correct for your host."),
++ "rpc.cmsd is not responding for your user name.\nMake sure the inetd process is running and the entry\nin /etc/rc.conf for rpc.cmsd is correct for your host."),
+ nl_user, name,
+ nl_host, host);
+
diff --git a/x11/cde/files/patch-programs_dtcm_libDtCmP_timeops.c b/x11/cde/files/patch-programs_dtcm_libDtCmP_timeops.c
new file mode 100644
index 000000000000..efb412aa000f
--- /dev/null
+++ b/x11/cde/files/patch-programs_dtcm_libDtCmP_timeops.c
@@ -0,0 +1,11 @@
+--- programs/dtcm/libDtCmP/timeops.c.orig 2023-01-16 09:58:33.955866000 -0800
++++ programs/dtcm/libDtCmP/timeops.c 2023-01-16 10:47:36.739851000 -0800
+@@ -963,7 +963,7 @@
+ */
+ if (tzname==NULL) system("unset TZ\n");
+ #else
+- if (tzname==NULL) tzsetwall();
++ if (tzname==NULL) tzset();
+ #endif /* SVR4 */
+
+ else {
diff --git a/x11/cde/files/patch-programs_dtterm_Makefile.am b/x11/cde/files/patch-programs_dtterm_Makefile.am
new file mode 100644
index 000000000000..49e9dda2cdd7
--- /dev/null
+++ b/x11/cde/files/patch-programs_dtterm_Makefile.am
@@ -0,0 +1,7 @@
+--- programs/dtterm/Makefile.am.orig 2021-11-25 16:40:19.896057000 -0800
++++ programs/dtterm/Makefile.am 2021-11-25 17:19:24.691922000 -0800
+@@ -51,4 +51,3 @@
+ if !HAS_UTEMPTER_LIBRARY
+ chmod 4755 $(DESTDIR)$(bindir)/dtterm
+ endif
+- @TIC@ dtterm.ti
diff --git a/x11/cde/files/pkg-message.in b/x11/cde/files/pkg-message.in
new file mode 100644
index 000000000000..59203a7e263c
--- /dev/null
+++ b/x11/cde/files/pkg-message.in
@@ -0,0 +1,40 @@
+[
+{ type: install
+ message: <<EOM
+CDE - The Common Desktop Environment is an X Windows desktop environment
+that was commonly used on commercial UNIX variants such as Sun Solaris,
+HP-UX, and IBM AIX. Developed between 1993 and 1999, it has now been
+released under an Open source license by The Open Group.
+
+Common Desktop Environment requires the Subprocess Control Service,
+dtcms, and the inetd super server to fully function.
+
+First, add the following line to /etc/inetd.conf:
+
+dtspc stream tcp nowait root %%PREFIX%%/dt/bin/dtspcd %%PREFIX%%/dt/bin/dtspcd
+
+Second, add the following line to /etc/services:
+
+dtspc 6112/tcp # CDE Subprocess Control Service
+
+# sysrc rpcbind_enable=YES
+# sysrc dtcms_enable=YES
+# sysrc inetd_enable=YES
+# service rpcbind start && service dtcms start && service inetd start
+
+Finally, make sure to add %%PREFIX%%/dt/bin to your path.
+
+To start the Common Desktop Environment:
+% env LANG=C startx %%PREFIX%%/dt/bin/Xsession
+
+Alternatively, if you want to use the Login Manager as well, create
+%%LOCALBASE%%/etc/X11/Xwrapper.config and add this line:
+
+allowed_users=anybody
+
+To start the Common Desktop Enviroment Login Manager:
+
+% %%LOCALBASE%%/dt/bin/dtlogin -daemon
+EOM
+}
+]