pkgsrc-WIP-changes archive

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

xfce4-power-manager: stage update to 4.18.0



Module Name:	pkgsrc-wip
Committed By:	Benny Siegert <bsiegert%gmail.com@localhost>
Pushed By:	bsiegert
Date:		Thu Dec 22 18:57:43 2022 +0000
Changeset:	214ea39ad6d74dc4aa5479dbc0628a404e23594f

Modified Files:
	Makefile
Added Files:
	xfce4-power-manager/DESCR
	xfce4-power-manager/Makefile
	xfce4-power-manager/PLIST
	xfce4-power-manager/distinfo
	xfce4-power-manager/patches/patch-src_Makefile.in
	xfce4-power-manager/patches/patch-src_xfpm-pm-helper.c
	xfce4-power-manager/patches/patch-src_xfpm-suspend.c

Log Message:
xfce4-power-manager: stage update to 4.18.0

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

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

diffstat:
 Makefile                                           |   1 +
 xfce4-power-manager/DESCR                          |   1 +
 xfce4-power-manager/Makefile                       |  27 ++++
 xfce4-power-manager/PLIST                          | 139 +++++++++++++++++++++
 xfce4-power-manager/distinfo                       |   8 ++
 xfce4-power-manager/patches/patch-src_Makefile.in  |  15 +++
 .../patches/patch-src_xfpm-pm-helper.c             |  44 +++++++
 .../patches/patch-src_xfpm-suspend.c               |  26 ++++
 8 files changed, 261 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 4722f95ee6..5b4361eb82 100644
--- a/Makefile
+++ b/Makefile
@@ -6063,6 +6063,7 @@ SUBDIR+=	xfce4-desktop
 SUBDIR+=	xfce4-exo
 SUBDIR+=	xfce4-garcon
 SUBDIR+=	xfce4-panel
+SUBDIR+=	xfce4-power-manager
 SUBDIR+=	xfce4-thunar
 SUBDIR+=	xfce4-tumbler
 SUBDIR+=	xfce4-wm-dfbsd
diff --git a/xfce4-power-manager/DESCR b/xfce4-power-manager/DESCR
new file mode 100644
index 0000000000..29ba7797da
--- /dev/null
+++ b/xfce4-power-manager/DESCR
@@ -0,0 +1 @@
+Power manager for Xfce.
diff --git a/xfce4-power-manager/Makefile b/xfce4-power-manager/Makefile
new file mode 100644
index 0000000000..8ed4295940
--- /dev/null
+++ b/xfce4-power-manager/Makefile
@@ -0,0 +1,27 @@
+# $NetBSD: Makefile,v 1.20 2022/08/11 05:09:18 gutteridge Exp $
+
+.include "../../meta-pkgs/xfce4/Makefile.common"
+
+DISTNAME=	xfce4-power-manager-4.18.0
+CATEGORIES=	sysutils
+MASTER_SITES=	https://archive.xfce.org/src/xfce/xfce4-power-manager/${PKGVERSION_NOREV:R}/
+
+HOMEPAGE=	https://goodies.xfce.org/projects/applications/xfce4-power-manager
+COMMENT=	XFCE power manager
+
+CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFBASE}
+
+CONF_FILES=	share/examples/xfce4/autostart/xfce4-power-manager.desktop \
+		${PKG_SYSCONFDIR}/xdg/autostart/xfce4-power-manager.desktop
+
+.include "../../x11/libXmu/buildlink3.mk"
+.include "../../wip/libxfce4ui/buildlink3.mk"
+#.include "../../x11/libxfce4ui/buildlink3.mk"
+.include "../../sysutils/desktop-file-utils/desktopdb.mk"
+.include "../../sysutils/upower/buildlink3.mk"
+.include "../../sysutils/libnotify/buildlink3.mk"
+.if ${OPSYS} != "Darwin"
+.include "../../sysutils/consolekit/buildlink3.mk"
+.endif
+.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/xfce4-power-manager/PLIST b/xfce4-power-manager/PLIST
new file mode 100644
index 0000000000..36c2feeac9
--- /dev/null
+++ b/xfce4-power-manager/PLIST
@@ -0,0 +1,139 @@
+@comment $NetBSD: PLIST,v 1.4 2021/11/30 14:52:32 gutteridge Exp $
+bin/xfce4-power-manager
+bin/xfce4-power-manager-settings
+man/man1/xfce4-power-manager-settings.1
+man/man1/xfce4-power-manager.1
+sbin/xfce4-pm-helper
+sbin/xfpm-power-backlight-helper
+share/applications/xfce4-power-manager-settings.desktop
+share/examples/xfce4/autostart/xfce4-power-manager.desktop
+share/icons/hicolor/128x128/apps/org.xfce.powermanager.png
+share/icons/hicolor/16x16/apps/org.xfce.powermanager.png
+share/icons/hicolor/24x24/apps/org.xfce.powermanager.png
+share/icons/hicolor/48x48/apps/org.xfce.powermanager.png
+share/icons/hicolor/48x48/status/ac-adapter.png
+share/icons/hicolor/48x48/status/battery-caution-charging.png
+share/icons/hicolor/48x48/status/battery-caution.png
+share/icons/hicolor/48x48/status/battery-empty-charging.png
+share/icons/hicolor/48x48/status/battery-empty.png
+share/icons/hicolor/48x48/status/battery-full-charged.png
+share/icons/hicolor/48x48/status/battery-full-charging.png
+share/icons/hicolor/48x48/status/battery-full.png
+share/icons/hicolor/48x48/status/battery-good-charging.png
+share/icons/hicolor/48x48/status/battery-good.png
+share/icons/hicolor/48x48/status/battery-low-charging.png
+share/icons/hicolor/48x48/status/battery-low.png
+share/icons/hicolor/48x48/status/battery-missing.png
+share/icons/hicolor/48x48/status/computer.png
+share/icons/hicolor/48x48/status/display-brightness.png
+share/icons/hicolor/48x48/status/input-keyboard.png
+share/icons/hicolor/48x48/status/input-mouse.png
+share/icons/hicolor/48x48/status/keyboard-brightness.png
+share/icons/hicolor/48x48/status/multimedia-player.png
+share/icons/hicolor/48x48/status/pda.png
+share/icons/hicolor/48x48/status/phone.png
+share/icons/hicolor/48x48/status/tablet.png
+share/icons/hicolor/48x48/status/uninterruptible-power-supply.png
+share/icons/hicolor/48x48/status/video-display.png
+share/icons/hicolor/scalable/apps/org.xfce.powermanager.svg
+share/icons/hicolor/scalable/status/ac-adapter-symbolic.svg
+share/icons/hicolor/scalable/status/ac-adapter.svg
+share/icons/hicolor/scalable/status/battery-caution-charging-symbolic.svg
+share/icons/hicolor/scalable/status/battery-caution-charging.svg
+share/icons/hicolor/scalable/status/battery-caution-symbolic.svg
+share/icons/hicolor/scalable/status/battery-caution.svg
+share/icons/hicolor/scalable/status/battery-empty-charging-symbolic.svg
+share/icons/hicolor/scalable/status/battery-empty-charging.svg
+share/icons/hicolor/scalable/status/battery-empty-symbolic.svg
+share/icons/hicolor/scalable/status/battery-empty.svg
+share/icons/hicolor/scalable/status/battery-full-charged-symbolic.svg
+share/icons/hicolor/scalable/status/battery-full-charged.svg
+share/icons/hicolor/scalable/status/battery-full-charging-symbolic.svg
+share/icons/hicolor/scalable/status/battery-full-charging.svg
+share/icons/hicolor/scalable/status/battery-full-symbolic.svg
+share/icons/hicolor/scalable/status/battery-full.svg
+share/icons/hicolor/scalable/status/battery-good-charging-symbolic.svg
+share/icons/hicolor/scalable/status/battery-good-charging.svg
+share/icons/hicolor/scalable/status/battery-good-symbolic.svg
+share/icons/hicolor/scalable/status/battery-good.svg
+share/icons/hicolor/scalable/status/battery-low-charging-symbolic.svg
+share/icons/hicolor/scalable/status/battery-low-charging.svg
+share/icons/hicolor/scalable/status/battery-low-symbolic.svg
+share/icons/hicolor/scalable/status/battery-low.svg
+share/icons/hicolor/scalable/status/battery-missing-symbolic.svg
+share/icons/hicolor/scalable/status/battery-missing.svg
+share/icons/hicolor/scalable/status/computer.svg
+share/icons/hicolor/scalable/status/display-brightness-symbolic.svg
+share/icons/hicolor/scalable/status/display-brightness.svg
+share/icons/hicolor/scalable/status/keyboard-brightness-symbolic.svg
+share/icons/hicolor/scalable/status/keyboard-brightness.svg
+share/icons/hicolor/scalable/status/keyboard.svg
+share/icons/hicolor/scalable/status/mouse.svg
+share/icons/hicolor/scalable/status/multimedia-player.svg
+share/icons/hicolor/scalable/status/pda.svg
+share/icons/hicolor/scalable/status/phone.svg
+share/icons/hicolor/scalable/status/tablet.svg
+share/icons/hicolor/scalable/status/uninterruptible-power-supply.svg
+share/icons/hicolor/scalable/status/video-display.svg
+share/locale/ar/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/ast/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/be/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/bg/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/ca/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/cs/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/da/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/de/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/el/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/en_AU/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/en_CA/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/en_GB/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/es/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/et/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/eu/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/fi/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/fr/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/gl/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/he/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/hr/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/hu/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/hy_AM/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/hye/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/id/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/ie/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/is/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/it/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/ja/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/kk/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/kn/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/ko/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/lt/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/ms/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/nb/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/nl/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/nn/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/oc/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/pa/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/pl/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/pt/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/pt_BR/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/ro/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/ru/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/si/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/sk/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/sl/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/sq/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/sr/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/sv/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/te/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/th/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/tr/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/ug/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/uk/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/ur/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/ur_PK/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/vi/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/zh_CN/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/zh_HK/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/zh_TW/LC_MESSAGES/xfce4-power-manager.mo
+share/metainfo/xfce4-power-manager.appdata.xml
+share/polkit-1/actions/org.xfce.power.policy
diff --git a/xfce4-power-manager/distinfo b/xfce4-power-manager/distinfo
new file mode 100644
index 0000000000..07a8504ac1
--- /dev/null
+++ b/xfce4-power-manager/distinfo
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.8 2021/12/01 03:03:12 gutteridge Exp $
+
+BLAKE2s (xfce4-power-manager-4.18.0.tar.bz2) = cfb0ad7ed8f4172ab81b2c84d530a71c1b2a59c2fccd17f07d260874896ef90f
+SHA512 (xfce4-power-manager-4.18.0.tar.bz2) = 5cfa5285b479a0341b4afbf3141f773ff217cd1003cee55087a33f27e392dacf4930bc08b4faa7296dfe9e738d114a56efcecca32145a4cf68856d5d6feb9d24
+Size (xfce4-power-manager-4.18.0.tar.bz2) = 1239515 bytes
+SHA1 (patch-src_Makefile.in) = aad658d19417609138d281ea99a708ab5ea49acb
+SHA1 (patch-src_xfpm-pm-helper.c) = 7e21c85c03b0591262e67c8cccf17770e64e00d9
+SHA1 (patch-src_xfpm-suspend.c) = 661a39b0009dded0c0ed90068589424239abcc35
diff --git a/xfce4-power-manager/patches/patch-src_Makefile.in b/xfce4-power-manager/patches/patch-src_Makefile.in
new file mode 100644
index 0000000000..4c86cf53c2
--- /dev/null
+++ b/xfce4-power-manager/patches/patch-src_Makefile.in
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_Makefile.in,v 1.1 2018/05/18 17:07:29 youri Exp $
+
+Install config file in share/examples.
+
+--- src/Makefile.in.orig	2017-12-18 23:15:50.000000000 +0000
++++ src/Makefile.in
+@@ -606,7 +606,7 @@ BUILT_SOURCES = \
+ 	org.freedesktop.PowerManagement.Inhibit.c \
+ 	org.freedesktop.PowerManagement.Inhibit.h
+ 
+-autostartdir = $(sysconfdir)/xdg/autostart
++autostartdir = $(datadir)/examples/xfce4/autostart
+ autostart_in_files = xfce4-power-manager.desktop.in
+ autostart_DATA = $(autostart_in_files:.desktop.in=.desktop)
+ EXTRA_DIST = \
diff --git a/xfce4-power-manager/patches/patch-src_xfpm-pm-helper.c b/xfce4-power-manager/patches/patch-src_xfpm-pm-helper.c
new file mode 100644
index 0000000000..bfbdbceb2c
--- /dev/null
+++ b/xfce4-power-manager/patches/patch-src_xfpm-pm-helper.c
@@ -0,0 +1,44 @@
+$NetBSD: patch-src_xfpm-pm-helper.c,v 1.2 2021/11/30 14:52:32 gutteridge Exp $
+
+Add NetBSD support.
+
+--- src/xfpm-pm-helper.c.orig	2021-11-26 18:17:09.701758792 +0000
++++ src/xfpm-pm-helper.c
+@@ -77,6 +77,10 @@
+ #define UP_BACKEND_SUSPEND_COMMAND  "/usr/sbin/zzz"
+ #define UP_BACKEND_HIBERNATE_COMMAND "/usr/sbin/ZZZ"
+ #endif
++#ifdef BACKEND_TYPE_NETBSD
++#define UP_BACKEND_SUSPEND_COMMAND "sysctl -w hw.acpi.sleep.state=3"
++#define UP_BACKEND_HIBERNATE_COMMAND "sysctl -w hw.acpi.sleep.state=4"
++#endif
+ 
+ 
+ static gboolean
+@@ -178,22 +182,26 @@ main (int argc, char **argv)
+   /* run the command */
+   if(suspend)
+   {
++#if defined(UP_BACKEND_SUSPEND_COMMAND)
+     if (run (UP_BACKEND_SUSPEND_COMMAND))
+     {
+       return EXIT_CODE_SUCCESS;
+     }
+     else
++#endif
+     {
+       return EXIT_CODE_FAILED;
+     }
+   }
+   else if (hibernate)
+   {
++#if defined(UP_BACKEND_HIBERNATE_COMMAND)
+     if(run (UP_BACKEND_HIBERNATE_COMMAND))
+     {
+       return EXIT_CODE_SUCCESS;
+     }
+     else
++#endif
+     {
+       return EXIT_CODE_FAILED;
+     }
diff --git a/xfce4-power-manager/patches/patch-src_xfpm-suspend.c b/xfce4-power-manager/patches/patch-src_xfpm-suspend.c
new file mode 100644
index 0000000000..48774587fc
--- /dev/null
+++ b/xfce4-power-manager/patches/patch-src_xfpm-suspend.c
@@ -0,0 +1,26 @@
+$NetBSD: patch-src_xfpm-suspend.c,v 1.3 2021/11/30 15:28:00 gutteridge Exp $
+
+Add NetBSD support.
+
+--- src/xfpm-suspend.c.orig	2020-11-04 23:23:14.000000000 +0000
++++ src/xfpm-suspend.c
+@@ -152,6 +151,9 @@ xfpm_suspend_can_suspend (void)
+ #ifdef BACKEND_TYPE_OPENBSD
+   return TRUE;
+ #endif
++#ifdef BACKEND_TYPE_NETBSD
++  return TRUE;
++#endif
+ 
+   return FALSE;
+ }
+@@ -169,6 +171,9 @@ xfpm_suspend_can_hibernate (void)
+ #ifdef BACKEND_TYPE_OPENBSD
+   return TRUE;
+ #endif
++#ifdef BACKEND_TYPE_NETBSD
++  return TRUE;
++#endif
+ 
+   return FALSE;
+ }


Home | Main Index | Thread Index | Old Index