pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/sysutils/xfce4-power-manager
Module Name: pkgsrc
Committed By: youri
Date: Fri May 18 17:07:29 UTC 2018
Added Files:
pkgsrc/sysutils/xfce4-power-manager: DESCR Makefile PLIST distinfo
pkgsrc/sysutils/xfce4-power-manager/patches: patch-src_Makefile.in
patch-src_xfpm-pm-helper.c patch-src_xfpm-suspend.c
Log Message:
sysutils/xfce4-power-manager: import xfce4-power-manager-1.6.1
Power manager for Xfce.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/xfce4-power-manager/DESCR \
pkgsrc/sysutils/xfce4-power-manager/Makefile \
pkgsrc/sysutils/xfce4-power-manager/PLIST \
pkgsrc/sysutils/xfce4-power-manager/distinfo
cvs rdiff -u -r0 -r1.1 \
pkgsrc/sysutils/xfce4-power-manager/patches/patch-src_Makefile.in \
pkgsrc/sysutils/xfce4-power-manager/patches/patch-src_xfpm-pm-helper.c \
pkgsrc/sysutils/xfce4-power-manager/patches/patch-src_xfpm-suspend.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/sysutils/xfce4-power-manager/DESCR
diff -u /dev/null pkgsrc/sysutils/xfce4-power-manager/DESCR:1.1
--- /dev/null Fri May 18 17:07:29 2018
+++ pkgsrc/sysutils/xfce4-power-manager/DESCR Fri May 18 17:07:29 2018
@@ -0,0 +1 @@
+Power manager for Xfce.
Index: pkgsrc/sysutils/xfce4-power-manager/Makefile
diff -u /dev/null pkgsrc/sysutils/xfce4-power-manager/Makefile:1.1
--- /dev/null Fri May 18 17:07:29 2018
+++ pkgsrc/sysutils/xfce4-power-manager/Makefile Fri May 18 17:07:29 2018
@@ -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"
Index: pkgsrc/sysutils/xfce4-power-manager/PLIST
diff -u /dev/null pkgsrc/sysutils/xfce4-power-manager/PLIST:1.1
--- /dev/null Fri May 18 17:07:29 2018
+++ pkgsrc/sysutils/xfce4-power-manager/PLIST Fri May 18 17:07:29 2018
@@ -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
Index: pkgsrc/sysutils/xfce4-power-manager/distinfo
diff -u /dev/null pkgsrc/sysutils/xfce4-power-manager/distinfo:1.1
--- /dev/null Fri May 18 17:07:29 2018
+++ pkgsrc/sysutils/xfce4-power-manager/distinfo Fri May 18 17:07:29 2018
@@ -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
Index: pkgsrc/sysutils/xfce4-power-manager/patches/patch-src_Makefile.in
diff -u /dev/null pkgsrc/sysutils/xfce4-power-manager/patches/patch-src_Makefile.in:1.1
--- /dev/null Fri May 18 17:07:29 2018
+++ pkgsrc/sysutils/xfce4-power-manager/patches/patch-src_Makefile.in Fri May 18 17:07:29 2018
@@ -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 = \
Index: pkgsrc/sysutils/xfce4-power-manager/patches/patch-src_xfpm-pm-helper.c
diff -u /dev/null pkgsrc/sysutils/xfce4-power-manager/patches/patch-src_xfpm-pm-helper.c:1.1
--- /dev/null Fri May 18 17:07:29 2018
+++ pkgsrc/sysutils/xfce4-power-manager/patches/patch-src_xfpm-pm-helper.c Fri May 18 17:07:29 2018
@@ -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;
+ }
+ }
Index: pkgsrc/sysutils/xfce4-power-manager/patches/patch-src_xfpm-suspend.c
diff -u /dev/null pkgsrc/sysutils/xfce4-power-manager/patches/patch-src_xfpm-suspend.c:1.1
--- /dev/null Fri May 18 17:07:29 2018
+++ pkgsrc/sysutils/xfce4-power-manager/patches/patch-src_xfpm-suspend.c Fri May 18 17:07:29 2018
@@ -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