pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/wm/emwm-utils wm/emwm-utils



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ba21e5bd97c3
branches:  trunk
changeset: 381336:ba21e5bd97c3
user:      pin <pin%pkgsrc.org@localhost>
date:      Mon Jul 04 20:20:56 2022 +0000

description:
wm/emwm-utils

Packaged in wip by Paolo Vincenzo Olivo.

This package provides the XmSm and XmToolbox utilities, to use in
conjuction with the Enhanced Motif Window Manager.

- XmSm is simple session manager that provides session configuration and
  screen locking, as well as shutdown/suspend options. It also launches the
  window manager and the toolbox.

- XmToolbox, is a toolchest like application launcher, which reads it's
  multi-level menu structure from a simple plain-text file (namely
  ~/.toolboxrc).  It also communicates with the session manager to provide
  lock, log out, and shutdown commands.

diffstat:

 wm/emwm-utils/DESCR                      |  11 ++++++
 wm/emwm-utils/MESSAGE                    |  18 +++++++++
 wm/emwm-utils/Makefile                   |  58 ++++++++++++++++++++++++++++++++
 wm/emwm-utils/PLIST                      |   9 ++++
 wm/emwm-utils/distinfo                   |   6 +++
 wm/emwm-utils/patches/patch-src_smconf.h |  15 ++++++++
 6 files changed, 117 insertions(+), 0 deletions(-)

diffs (141 lines):

diff -r ca38ed9bb9ea -r ba21e5bd97c3 wm/emwm-utils/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/wm/emwm-utils/DESCR       Mon Jul 04 20:20:56 2022 +0000
@@ -0,0 +1,11 @@
+This package provides the XmSm and XmToolbox utilities, to use in
+conjuction with the Enhanced Motif Window Manager.
+
+- XmSm is simple session manager that provides session configuration and
+  screen locking, as well as shutdown/suspend options. It also launches the
+  window manager and the toolbox.
+
+- XmToolbox, is a toolchest like application launcher, which reads it's
+  multi-level menu structure from a simple plain-text file (namely
+  ~/.toolboxrc).  It also communicates with the session manager to provide
+  lock, log out, and shutdown commands.
diff -r ca38ed9bb9ea -r ba21e5bd97c3 wm/emwm-utils/MESSAGE
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/wm/emwm-utils/MESSAGE     Mon Jul 04 20:20:56 2022 +0000
@@ -0,0 +1,18 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2022/07/04 20:20:56 pin Exp $
+
+The session manager may be run from XDM by setting the
+DisplayManager*session X resource in xdm-config to xmsession, or by execing
+xmsm from ~/.Xprofile.  Just make sure to test whether it works by running
+'xinit xmsession' before doing any of the above. Note that 'xmsession' is
+just a shell script that sets up the environment for xmsm, and is not
+needed when this has been done already.
+-
+xmsm is installed suid root, this is required for screen locking and
+running sbin commands. Privileges are dropped at startup and are reacquired
+only when necessary.
+-
+System shutdown, reboot and suspend commands can be altered at compile time
+only. Edit constants in smconf.h, or override them in CFLAGS if necessary.
+
+===========================================================================
diff -r ca38ed9bb9ea -r ba21e5bd97c3 wm/emwm-utils/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/wm/emwm-utils/Makefile    Mon Jul 04 20:20:56 2022 +0000
@@ -0,0 +1,58 @@
+# $NetBSD: Makefile,v 1.1 2022/07/04 20:20:56 pin Exp $
+
+DISTNAME=      emwm-utils-src
+PKGVER=                1.0
+PKGNAME=       ${DISTNAME:S,-src,,}-${PKGVER}
+CATEGORIES=    wm x11
+DIST_SUBDIR=   ${PKGNAME_NOREV}
+MASTER_SITES=  https://fastestcode.org/dl/
+EXTRACT_SUFX=  .tar.xz
+
+MAINTAINER=    vms%retrobsd.ddns.net@localhost
+HOMEPAGE=      https://fastestcode.org/emwm.html
+COMMENT=       Companion utilies for EMWM
+LICENSE=       mit
+
+MAKEFLAGS+=    PREFIX=${PREFIX}
+
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} != "NetBSD"
+USE_TOOLS+=    gmake
+.endif
+
+INSTALLATION_DIRS=     bin ${PKGMANDIR}/man1
+INSTALLATION_DIRS+=    share/examples/${DISTNAME:S,-src,,}
+INSTALLATION_DIRS+=    lib/X11/app-defaults
+
+SETUID_ROOT_PERMS?=    ${REAL_ROOT_USER} ${BINGRP} 4755
+SPECIAL_PERMS+=                bin/xmsm ${SETUID_ROOT_PERMS}
+
+WRKSRC=        ${WRKDIR}/utils
+
+do-install:
+.for p in xmtoolbox xmsm
+       ${INSTALL_PROGRAM} ${WRKSRC}/src/${p} \
+       ${DESTDIR}${PREFIX}/bin
+.endfor
+.for m in xmtoolbox xmsm
+       ${INSTALL_MAN} ${WRKSRC}/src/${m}.1 \
+       ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+.endfor
+       ${INSTALL_SCRIPT} ${WRKSRC}/src/xmsession ${DESTDIR}${PREFIX}/bin
+
+post-install:
+.for f in XmSm XmToolbox
+       ${INSTALL_DATA} ${WRKSRC}/src/${f}.ad \
+       ${DESTDIR}${PREFIX}/lib/X11/app-defaults/${f}
+.endfor
+       ${INSTALL_DATA} ${WRKSRC}/src/toolboxrc \
+       ${DESTDIR}${PREFIX}/share/examples/${DISTNAME:S,-src,,}
+
+.include "../../mk/motif.buildlink3.mk"
+.include "../../x11/libXrandr/buildlink3.mk"
+.include "../../x11/libXinerama/buildlink3.mk"
+.include "../../x11/libXt/buildlink3.mk"
+.include "../../x11/libXext/buildlink3.mk"
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r ca38ed9bb9ea -r ba21e5bd97c3 wm/emwm-utils/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/wm/emwm-utils/PLIST       Mon Jul 04 20:20:56 2022 +0000
@@ -0,0 +1,9 @@
+@comment $NetBSD: PLIST,v 1.1 2022/07/04 20:20:56 pin Exp $
+bin/xmsession
+bin/xmsm
+bin/xmtoolbox
+lib/X11/app-defaults/XmSm
+lib/X11/app-defaults/XmToolbox
+man/man1/xmsm.1
+man/man1/xmtoolbox.1
+share/examples/emwm-utils/toolboxrc
diff -r ca38ed9bb9ea -r ba21e5bd97c3 wm/emwm-utils/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/wm/emwm-utils/distinfo    Mon Jul 04 20:20:56 2022 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2022/07/04 20:20:56 pin Exp $
+
+BLAKE2s (emwm-utils-1.0/emwm-utils-src.tar.xz) = 314085d2bd9bcd7f3e024d2ae2c24142f4b3fc27aaf949032af45b3009d683d7
+SHA512 (emwm-utils-1.0/emwm-utils-src.tar.xz) = 36bbd9c51e19286f11b7af7daa42c54308b75b70ff5fdb45514d17fb496c331f4eb25d27394aacf4024fd337dd7b56f827c4e7d0f1bf072eaf70c60812cce903
+Size (emwm-utils-1.0/emwm-utils-src.tar.xz) = 24168 bytes
+SHA1 (patch-src_smconf.h) = 73536d4c118cf112b9df7108b25734f69a49358a
diff -r ca38ed9bb9ea -r ba21e5bd97c3 wm/emwm-utils/patches/patch-src_smconf.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/wm/emwm-utils/patches/patch-src_smconf.h  Mon Jul 04 20:20:56 2022 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_smconf.h,v 1.1 2022/07/04 20:20:56 pin Exp $
+
+Enable suspending from xmsm(1) on NetBSD.
+
+--- src/smconf.h.orig  2022-04-12 15:12:11.000000000 +0000
++++ src/smconf.h
+@@ -39,6 +39,8 @@
+ #ifndef SUSPEND_CMD
+ #ifdef __linux__
+ #define SUSPEND_CMD     "/usr/sbin/pm-suspend"
++#elif __NetBSD__
++#define SUSPEND_CMD     "/sbin/sysctl -w hw.acpi.sleep.state=3"
+ #else /* BSD */
+ #define SUSPEND_CMD     "/usr/sbin/zzz"
+ #endif /* _linux_ */



Home | Main Index | Thread Index | Old Index