pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils/xfce4-power-manager sysutils/xfc...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4cfca93dc9b8
branches:  trunk
changeset: 308234:4cfca93dc9b8
user:      youri <youri%pkgsrc.org@localhost>
date:      Fri May 18 17:07:29 2018 +0000

description:
sysutils/xfce4-power-manager: import xfce4-power-manager-1.6.1

Power manager for Xfce.

diffstat:

 sysutils/xfce4-power-manager/DESCR                              |    1 +
 sysutils/xfce4-power-manager/Makefile                           |   24 +
 sysutils/xfce4-power-manager/PLIST                              |  151 ++++++++++
 sysutils/xfce4-power-manager/distinfo                           |    9 +
 sysutils/xfce4-power-manager/patches/patch-src_Makefile.in      |   15 +
 sysutils/xfce4-power-manager/patches/patch-src_xfpm-pm-helper.c |   45 ++
 sysutils/xfce4-power-manager/patches/patch-src_xfpm-suspend.c   |   16 +
 7 files changed, 261 insertions(+), 0 deletions(-)

diffs (289 lines):

diff -r 35eb634e828b -r 4cfca93dc9b8 sysutils/xfce4-power-manager/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xfce4-power-manager/DESCR        Fri May 18 17:07:29 2018 +0000
@@ -0,0 +1,1 @@
+Power manager for Xfce.
diff -r 35eb634e828b -r 4cfca93dc9b8 sysutils/xfce4-power-manager/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xfce4-power-manager/Makefile     Fri May 18 17:07:29 2018 +0000
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile,v 1.1 2018/05/18 17:07:29 youri Exp $
+
+.include "../../meta-pkgs/xfce4/Makefile.common"
+
+DISTNAME=      xfce4-power-manager-1.6.1
+CATEGORIES=    sysutils
+MASTER_SITES=  http://archive.xfce.org/src/apps/xfce4-power-manager/1.6/
+
+HOMEPAGE=      http://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 "../../x11/libxfce4ui/buildlink3.mk"
+.include "../../sysutils/desktop-file-utils/desktopdb.mk"
+.include "../../sysutils/upower/buildlink3.mk"
+.include "../../sysutils/libnotify/buildlink3.mk"
+.include "../../sysutils/consolekit/buildlink3.mk"
+.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 35eb634e828b -r 4cfca93dc9b8 sysutils/xfce4-power-manager/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xfce4-power-manager/PLIST        Fri May 18 17:07:29 2018 +0000
@@ -0,0 +1,151 @@
+@comment $NetBSD: PLIST,v 1.1 2018/05/18 17:07:29 youri 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/appdata/xfce4-power-manager.appdata.xml
+share/applications/xfce4-power-manager-settings.desktop
+share/examples/xfce4/autostart/xfce4-power-manager.desktop
+share/icons/hicolor/32x32/status/ac-adapter.png
+share/icons/hicolor/32x32/status/battery-caution-charging.png
+share/icons/hicolor/32x32/status/battery-caution.png
+share/icons/hicolor/32x32/status/battery-empty-charging.png
+share/icons/hicolor/32x32/status/battery-empty.png
+share/icons/hicolor/32x32/status/battery-full-charged.png
+share/icons/hicolor/32x32/status/battery-full-charging.png
+share/icons/hicolor/32x32/status/battery-full.png
+share/icons/hicolor/32x32/status/battery-good-charging.png
+share/icons/hicolor/32x32/status/battery-good.png
+share/icons/hicolor/32x32/status/battery-low-charging.png
+share/icons/hicolor/32x32/status/battery-low.png
+share/icons/hicolor/32x32/status/battery-missing.png
+share/icons/hicolor/32x32/status/computer.png
+share/icons/hicolor/32x32/status/input-keyboard.png
+share/icons/hicolor/32x32/status/input-mouse.png
+share/icons/hicolor/32x32/status/multimedia-player.png
+share/icons/hicolor/32x32/status/pda.png
+share/icons/hicolor/32x32/status/phone.png
+share/icons/hicolor/32x32/status/tablet.png
+share/icons/hicolor/32x32/status/uninterruptible-power-supply.png
+share/icons/hicolor/32x32/status/video-display.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/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/icons/hicolor/scalable/status/xfce4-power-manager-settings.svg
+share/locale/ar/LC_MESSAGES/xfce4-power-manager.mo
+share/locale/ast/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_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/id/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/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/polkit-1/actions/org.xfce.power.policy
diff -r 35eb634e828b -r 4cfca93dc9b8 sysutils/xfce4-power-manager/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xfce4-power-manager/distinfo     Fri May 18 17:07:29 2018 +0000
@@ -0,0 +1,9 @@
+$NetBSD: distinfo,v 1.1 2018/05/18 17:07:29 youri Exp $
+
+SHA1 (xfce4-power-manager-1.6.1.tar.bz2) = 7b6d3ce2fcb29262450e9e39b858cc00e10faa81
+RMD160 (xfce4-power-manager-1.6.1.tar.bz2) = 7e3f4f03a33ba19d08739e0450e6971807f0e560
+SHA512 (xfce4-power-manager-1.6.1.tar.bz2) = b81ce1b35892a6cd0b1d4fb590ccc25b906cde6f782de2fffbe78ea89e00df15e51ea1f47576c173b7512cd617f5142868fca8cf81519b6fe165a5ecc67a5478
+Size (xfce4-power-manager-1.6.1.tar.bz2) = 1180710 bytes
+SHA1 (patch-src_Makefile.in) = aad658d19417609138d281ea99a708ab5ea49acb
+SHA1 (patch-src_xfpm-pm-helper.c) = 7ac402541b500726e54ecceeaffe3893c1ab862a
+SHA1 (patch-src_xfpm-suspend.c) = 8ea785ad5c4f435348947377ce5e7d1a7af30d46
diff -r 35eb634e828b -r 4cfca93dc9b8 sysutils/xfce4-power-manager/patches/patch-src_Makefile.in
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xfce4-power-manager/patches/patch-src_Makefile.in        Fri May 18 17:07:29 2018 +0000
@@ -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 -r 35eb634e828b -r 4cfca93dc9b8 sysutils/xfce4-power-manager/patches/patch-src_xfpm-pm-helper.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xfce4-power-manager/patches/patch-src_xfpm-pm-helper.c   Fri May 18 17:07:29 2018 +0000
@@ -0,0 +1,45 @@
+$NetBSD: patch-src_xfpm-pm-helper.c,v 1.1 2018/05/18 17:07:29 youri Exp $
+
+Add NetBSD support.
+
+--- src/xfpm-pm-helper.c.orig  2015-07-14 08:02:18.000000000 +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=1"
++#define UP_BACKEND_HIBERNATE_COMMAND "sysctl -w hw.acpi.sleep.state=4"
++#endif
+ 
+ 
+ static gboolean
+@@ -174,19 +178,25 @@ 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 {
++    } 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 {
++    } else
++#endif
++    {
+       return EXIT_CODE_FAILED;
+     }
+   }
diff -r 35eb634e828b -r 4cfca93dc9b8 sysutils/xfce4-power-manager/patches/patch-src_xfpm-suspend.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/xfce4-power-manager/patches/patch-src_xfpm-suspend.c     Fri May 18 17:07:29 2018 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_xfpm-suspend.c,v 1.1 2018/05/18 17:07:29 youri Exp $
+
+Add NetBSD support.
+
+--- src/xfpm-suspend.c.orig    2015-07-14 08:02:18.000000000 +0000
++++ src/xfpm-suspend.c
+@@ -144,6 +144,9 @@ xfpm_suspend_can_suspend (void)
+ #ifdef BACKEND_TYPE_OPENBSD
+     return TRUE;
+ #endif
++#ifdef BACKEND_TYPE_NETBSD
++    return TRUE;
++#endif
+ 
+     return FALSE;
+ }



Home | Main Index | Thread Index | Old Index