# Buildsheet autogenerated by ravenadm tool -- Do not edit. NAMEBASE= upower VERSION= 0.99.17 KEYWORDS= sysutils VARIANTS= standard SDESC[standard]= D-Bus daemon for power management tasks HOMEPAGE= https://upower.freedesktop.org CONTACT= Michael_Reim[kraileth@elderlinux.org] DOWNLOAD_GROUPS= main SITES[main]= https://gitlab.freedesktop.org/upower/upower/-/archive/v0.99.17/ DISTFILE[1]= upower-v0.99.17.tar.gz:main DF_INDEX= 1 SPKGS[standard]= complete primary nls docs OPTIONS_AVAILABLE= none OPTIONS_STANDARD= none BUILD_DEPENDS= automake:single:standard autoconf:single:standard docbook-xsl:primary:standard gobject-introspection:single:standard gtk-doc:single:standard libtool:single:standard BUILDRUN_DEPENDS= dbus-glib:primary:standard polkit:primary:standard BR_DEPS[linux]= libgudev:single:standard libusb:single:standard USES= gettext-tools:build meson pkgconfig gtk-doc GNOME_COMPONENTS= glib intltool DISTNAME= upower-v0.99.17 LICENSE= GPLv2+:primary LICENSE_TERMS= primary:{{WRKDIR}}/TERMS LICENSE_FILE= GPLv2+:{{WRKSRC}}/COPYING LICENSE_AWK= TERMS:"^$$" LICENSE_SOURCE= TERMS:{{WRKSRC}}/src/up-native.h LICENSE_SCHEME= solo FPC_EQUIVALENT= sysutils/upower GTKDOC_OUTPUT_BASEDIR= UPower MESON_ARGS= -Dman=true -Dgtk-doc=true -Dintrospection=enabled -Dudevrulesdir=/etc/udev/rules.d -Dsystemdsystemunitdir=no -Didevice=disabled INSTALL_REQ_TOOLCHAIN= yes SOVERSION= 3.1.0 CFLAGS= -Wno-deprecated-declarations VAR_OPSYS[freebsd]= CONFIGURE_ARGS=-Dos_backend=freebsd VAR_OPSYS[sunos]= CONFIGURE_ARGS=-Dos_backend=dummy VAR_OPSYS[linux]= CONFIGURE_ARGS=-Dos_backend=linux VAR_OPSYS[netbsd]= CONFIGURE_ARGS=-Dos_backend=netbsd VAR_OPSYS[dragonfly]= CONFIGURE_ARGS=-Dos_backend=freebsd CFLAGS=-D__WANT_NO_INLINED___ERROR post-stage: ${RM} -r ${STAGEDIR}/var [FILE:863:descriptions/desc.primary] UPower is an abstraction for enumerating power devices, listening to device events and querying history and statistics. Any application or service on the system can access the org.freedesktop.UPower service via the system message bus. Some operations (such as suspending the system) are restricted using PolicyKit. UPower was once called DeviceKit-power. UPower aims to make a large chunk of HAL redundant, as HAL is officially deprecated. UPower is also useful to control the latency of different operations on your computer, which enables you to save significant amounts of power. Nothing much uses this interface yet, but this is a classic chicken and egg scenario, and I think it's important to encourage the egg to lay a chicken. Please report any problems to the Freedesktop bugzilla or send a mail to the DeviceKit mailing list for discussion. [FILE:101:distinfo] 14d91e98aa3a8c298e314b2df371c3dbe3ed9a0dab74b43678c38b27a67d555d 179456 upower-v0.99.17.tar.gz [FILE:869:manifests/plist.primary] %%ONLY-LINUX%%/etc/udev/rules.d/ 95-upower-hid.rules 95-upower-wup.rules bin/upower etc/UPower/UPower.conf include/libupower-glib/ up-autocleanups.h up-client.h up-device.h up-history-item.h up-stats-item.h up-types.h up-version.h up-wakeup-item.h up-wakeups.h upower.h lib/ libupower-glib.so libupower-glib.so.%%SOMAJOR%% libupower-glib.so.%%SOVERSION%% lib/girepository-1.0/UPowerGlib-1.0.typelib lib/pkgconfig/upower-glib.pc libexec/upowerd share/dbus-1/interfaces/ org.freedesktop.UPower.Device.xml org.freedesktop.UPower.KbdBacklight.xml org.freedesktop.UPower.Wakeups.xml org.freedesktop.UPower.xml share/dbus-1/system-services/org.freedesktop.UPower.service share/dbus-1/system.d/org.freedesktop.UPower.conf share/gir-1.0/UPowerGlib-1.0.gir share/man/man1/upower.1.gz share/man/man7/UPower.7.gz share/man/man8/upowerd.8.gz @dir var/lib/upower [FILE:152:manifests/plist.nls] share/locale/fr/LC_MESSAGES/upower.mo share/locale/it/LC_MESSAGES/upower.mo share/locale/pl/LC_MESSAGES/upower.mo share/locale/sv/LC_MESSAGES/upower.mo [FILE:485:manifests/plist.docs] share/doc/upower/ Device.html KbdBacklight.html UPower-up-types.html UPower.7.html UPower.html UpClient.html UpDevice.html UpHistoryItem.html UpStatsItem.html UpWakeupItem.html annotation-glossary.html home.png index.html ix01.html left-insensitive.png left.png libupower-glib-helpers.html libupower-glib.html license.html ref-dbus.html right-insensitive.png right.png style.css tools-fileformats.html up-insensitive.png up.png upower.1.html upowerd.8.html [FILE:732:patches/patch-doc_man_meson.build] --- doc/man/meson.build.orig 2022-02-23 16:46:51 UTC +++ doc/man/meson.build @@ -10,7 +10,7 @@ foreach man: man_pages '@0@.@1@'.format(man[0], man[1]), input: files(join_paths(man[0] + '.xml')), output: '@0@.@1@'.format(man[0], man[1]), - command: [xsltproc, '--output', '@OUTPUT@', '-nonet', 'http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl', '@INPUT@'], + command: [xsltproc, '--output', '@OUTPUT@', '-nonet', 'http://cdn.docbook.org/release/xsl/current/manpages/docbook.xsl', '@INPUT@'], build_by_default: get_option('man'), install: get_option('man'), install_dir: get_option('prefix') / get_option('mandir') / 'man@0@'.format(man[1]), [FILE:631:patches/patch-meson.build] --- meson.build.orig 2022-03-09 17:46:34 UTC +++ meson.build @@ -83,6 +83,10 @@ if os_backend == 'linux' endif endif +if os_backend == 'freebsd' + gudev_dep = cc.find_library('kvm', required: true) +endif + historydir = get_option('historydir') if historydir == '' historydir = get_option('prefix') / get_option('localstatedir') / 'lib' / 'upower' @@ -104,8 +108,10 @@ endif # Generate configuration file config_h = configure_file(output: 'config.h', configuration: cdata) +if os_backend == 'linux' + subdir('rules') +endif subdir('etc') -subdir('rules') subdir('po') subdir('dbus') subdir('libupower-glib') [FILE:555:freebsd/patch-src_freebsd_meson.build] --- src/freebsd/meson.build.orig 2022-02-23 16:46:51 UTC +++ src/freebsd/meson.build @@ -1,3 +1,4 @@ +kvm_dep = cc.find_library('kvm') upshared += { 'freebsd': static_library('upshared', sources: [ 'up-acpi-native.c', @@ -13,6 +14,6 @@ upshared += { 'freebsd': static_library( 'up-util.h', ], c_args: [ '-DG_LOG_DOMAIN="UPower-Freebsd"' ], - dependencies: [ gudev_dep, upowerd_deps, upshared_common_dep ], + dependencies: [ gudev_dep, upowerd_deps, upshared_common_dep, kvm_dep ], build_by_default: false, )} [FILE:363:freebsd/patch-src_freebsd_up-devd.c] --- src/freebsd/up-devd.c.orig 2022-02-23 16:46:51 UTC +++ src/freebsd/up-devd.c @@ -195,7 +195,7 @@ up_devd_event_cb (GIOChannel *source, GI event[terminator] = 0; up_devd_process_event(event, user_data); g_free(event); - } else if (status == G_IO_STATUS_AGAIN) { + } else { up_devd_init (UP_BACKEND(user_data)); if (up_devd_inited) { int fd;