diff options
author | pin <pin@pkgsrc.org> | 2022-07-04 20:20:56 +0000 |
---|---|---|
committer | pin <pin@pkgsrc.org> | 2022-07-04 20:20:56 +0000 |
commit | 3de072baa19410ee7ca82799c5b7b7430057649e (patch) | |
tree | a150b1d98217313c6bc6f3b8da6d715cbb1254f1 /wm | |
parent | 0a6e3e7f4d35a5709cbcb5ebd1543b039450f0b8 (diff) | |
download | pkgsrc-3de072baa19410ee7ca82799c5b7b7430057649e.tar.gz |
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 (limited to 'wm')
-rw-r--r-- | wm/emwm-utils/DESCR | 11 | ||||
-rw-r--r-- | wm/emwm-utils/MESSAGE | 18 | ||||
-rw-r--r-- | wm/emwm-utils/Makefile | 58 | ||||
-rw-r--r-- | wm/emwm-utils/PLIST | 9 | ||||
-rw-r--r-- | wm/emwm-utils/distinfo | 6 | ||||
-rw-r--r-- | wm/emwm-utils/patches/patch-src_smconf.h | 15 |
6 files changed, 117 insertions, 0 deletions
diff --git a/wm/emwm-utils/DESCR b/wm/emwm-utils/DESCR new file mode 100644 index 00000000000..572ba124ad7 --- /dev/null +++ b/wm/emwm-utils/DESCR @@ -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 --git a/wm/emwm-utils/MESSAGE b/wm/emwm-utils/MESSAGE new file mode 100644 index 00000000000..7ac39594290 --- /dev/null +++ b/wm/emwm-utils/MESSAGE @@ -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 --git a/wm/emwm-utils/Makefile b/wm/emwm-utils/Makefile new file mode 100644 index 00000000000..732baee1bfe --- /dev/null +++ b/wm/emwm-utils/Makefile @@ -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 +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 --git a/wm/emwm-utils/PLIST b/wm/emwm-utils/PLIST new file mode 100644 index 00000000000..7875ed67ace --- /dev/null +++ b/wm/emwm-utils/PLIST @@ -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 --git a/wm/emwm-utils/distinfo b/wm/emwm-utils/distinfo new file mode 100644 index 00000000000..0b11864083f --- /dev/null +++ b/wm/emwm-utils/distinfo @@ -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 --git a/wm/emwm-utils/patches/patch-src_smconf.h b/wm/emwm-utils/patches/patch-src_smconf.h new file mode 100644 index 00000000000..d1457cfad20 --- /dev/null +++ b/wm/emwm-utils/patches/patch-src_smconf.h @@ -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_ */ |