pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/wm/emwm-utils
Module Name: pkgsrc
Committed By: pin
Date: Mon Jul 4 20:20:57 UTC 2022
Added Files:
pkgsrc/wm/emwm-utils: DESCR MESSAGE Makefile PLIST distinfo
pkgsrc/wm/emwm-utils/patches: patch-src_smconf.h
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/wm/emwm-utils/DESCR \
pkgsrc/wm/emwm-utils/MESSAGE pkgsrc/wm/emwm-utils/Makefile \
pkgsrc/wm/emwm-utils/PLIST pkgsrc/wm/emwm-utils/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/wm/emwm-utils/patches/patch-src_smconf.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/wm/emwm-utils/DESCR
diff -u /dev/null pkgsrc/wm/emwm-utils/DESCR:1.1
--- /dev/null Mon Jul 4 20:20:57 2022
+++ pkgsrc/wm/emwm-utils/DESCR Mon Jul 4 20:20:56 2022
@@ -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.
Index: pkgsrc/wm/emwm-utils/MESSAGE
diff -u /dev/null pkgsrc/wm/emwm-utils/MESSAGE:1.1
--- /dev/null Mon Jul 4 20:20:57 2022
+++ pkgsrc/wm/emwm-utils/MESSAGE Mon Jul 4 20:20:56 2022
@@ -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.
+
+===========================================================================
Index: pkgsrc/wm/emwm-utils/Makefile
diff -u /dev/null pkgsrc/wm/emwm-utils/Makefile:1.1
--- /dev/null Mon Jul 4 20:20:57 2022
+++ pkgsrc/wm/emwm-utils/Makefile Mon Jul 4 20:20:56 2022
@@ -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"
Index: pkgsrc/wm/emwm-utils/PLIST
diff -u /dev/null pkgsrc/wm/emwm-utils/PLIST:1.1
--- /dev/null Mon Jul 4 20:20:57 2022
+++ pkgsrc/wm/emwm-utils/PLIST Mon Jul 4 20:20:56 2022
@@ -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
Index: pkgsrc/wm/emwm-utils/distinfo
diff -u /dev/null pkgsrc/wm/emwm-utils/distinfo:1.1
--- /dev/null Mon Jul 4 20:20:57 2022
+++ pkgsrc/wm/emwm-utils/distinfo Mon Jul 4 20:20:56 2022
@@ -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
Index: pkgsrc/wm/emwm-utils/patches/patch-src_smconf.h
diff -u /dev/null pkgsrc/wm/emwm-utils/patches/patch-src_smconf.h:1.1
--- /dev/null Mon Jul 4 20:20:57 2022
+++ pkgsrc/wm/emwm-utils/patches/patch-src_smconf.h Mon Jul 4 20:20:56 2022
@@ -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