You are not logged in.
Pages: 1
Hello
I am trying to make a package for gnome-power-manager though everytime i try to launch it crashes i am not sure why though
here's my PKGBUILD till this moment
# Maintainer: Wael Nasreddine <wael_nasreddine@hotmail.com>
pkgname=gnome-power-manager
pkgver=0.3.1
pkgrel=1
pkgdesc="Power Manager for gnome"
url="http://www.gnome.org/projects/gnome-power-manager/"
depends=('hal' 'dbus' 'libnotify')
makedepends=()
source=(http://dl.sourceforge.net/sourceforge/gnome-power/$pkgname-$pkgver.tar.gz)
md5sums=('7a36ed3af51fe005dbd12a88f09d7c13')
build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/opt/gnome --with-gconf-source=xml::/opt/gnome/etc/gconf/ --enable-libnotify
make || return 1
make DESTDIR=${startdir}/pkg install || return 1
install -D -m644 $startdir/pkg/opt/gnome/etc/dbus-1/system.d/gnome-power-manager.conf
$startdir/pkg/etc/dbus-1/system.d/gnome-power-manager.conf || return 1
}
can someone help please?
[My Blog] | [My Repo] | [My AUR Packages]
Offline
is it because arch's hal package is verion 0.5.5.1-5 while version 0.5.6 is needed?
i tried to compile it but unfortunately patches are dedicated to 0.5.5.1, i did notify maintainer though
[My Blog] | [My Repo] | [My AUR Packages]
Offline
Following tomk suggestion at This post didn't change anything, it seems that it ignore the configure option --disable-schemas-install but it still give me warning about not able t create them
here's the new files
# Maintainer: Wael Nasreddine <wael_nasreddine@hotmail.com>
pkgname=gnome-power-manager
pkgver=0.3.1
pkgrel=1
pkgdesc="Power Manager for gnome"
url="http://www.gnome.org/projects/gnome-power-manager/"
depends=('hal' 'dbus' 'libnotify')
makedepends=()
source=(http://dl.sourceforge.net/sourceforge/gnome-power/$pkgname-$pkgver.tar.gz)
install=gnome-power-manager.install
md5sums=('7a36ed3af51fe005dbd12a88f09d7c13')
build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/opt/gnome --disable-schemas-install --enable-libnotify
make || return 1
make DESTDIR=${startdir}/pkg install || return 1
install -D -m644 $startdir/pkg/opt/gnome/etc/dbus-1/system.d/gnome-power-manager.conf
$startdir/pkg/etc/dbus-1/system.d/gnome-power-manager.conf || return 1
}
gnome-power-manager.install
pkgname=gnome-power-manager
post_install() {
schemas=(`pacman -Ql $pkgname | grep 'gconf/schemas/.*schemas$' | awk '{ print $2 }'`)
scrolls=(`pacman -Ql $pkgname | grep 'share/omf/.*.omf$' | awk '{ print $2 }'`)
export GCONF_CONFIG_SOURCE=`opt/gnome/bin/gconftool-2 --get-default-source`
for schema in "${schemas[@]}" ; do
opt/gnome/bin/gconftool-2 --makefile-install-rule "$schema" >/dev/null 2>&1
done
for scroll in "${scrolls[@]}" ; do
scrollkeeper-install -q -p var/lib/scrollkeeper "$scroll"
done
kill -s HUP `pidof /opt/gnome/bin/gconfd-2` >/dev/null 2>&1
update-desktop-database -q
}
pre_upgrade() {
pre_remove $1
}
post_upgrade() {
post_install $1
}
pre_remove() {
schemas=(`pacman -Ql $pkgname | grep 'gconf/schemas/.*schemas$' | awk '{ print $2 }'`)
scrolls=(`pacman -Ql $pkgname | grep 'share/omf/.*.omf$' | awk '{ print $2 }'`)
export GCONF_CONFIG_SOURCE=`opt/gnome/bin/gconftool-2 --get-default-source`
for schema in "${schemas[@]}" ; do
opt/gnome/bin/gconftool-2 --makefile-uninstall-rule "$schema" >/dev/null 2>&1
done
for scroll in "${scrolls[@]}" ; do
scrollkeeper-uninstall -q -p var/lib/scrollkeeper "$scroll"
done
kill -s HUP `pidof /opt/gnome/bin/gconfd-2` >/dev/null 2>&1
}
post_remove() {
update-desktop-database -q
}
op=$1
shift
$op $*
[My Blog] | [My Repo] | [My AUR Packages]
Offline
You need to look at ./configure --help to see if that's a valid option for power-manager. It is valid for ekiga, but that doesn't mean it will apply for every gnome app.
Have a look at some official gnome PKGBUILDs - there may be other ways of doing the same thing ( there usually is with Linux ).
Offline
yeah tomk i know that , configure already accept that option, but it doesnt seem to be working
[My Blog] | [My Repo] | [My AUR Packages]
Offline
OK, I'l have another look.
In the meantime, have a look at the gnomemeeting PKGBUILD in [extra] - in that case, JGC handles it by setting
GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
at the 'make install' stage.
Offline
Great! that solved the compilation problem i had another problem with libnotify but for the moment i've disabled it to see if at least it work for the moment or not and NO!
Reading gnome-power-manager F.A.Q http://www.gnome.org/projects/gnome-pow … nd_failure i think it will never work with the hal version we have here, it require HAL >= 0.5.6 while arch's Hal is Version 0.5.5.1 So we won't eb able to hibernate/suspend untill we have new Hal if i am not mistaken, Gnome power manager is launched and it does display battery level/time remaining but when i click on hibernate/suspend nothing happens
oh well i notified hal maintainer hopefully he can get the new version, i'll try my best to have hal 0.5.6 but i have to edit patches because they don't work, i tried
anyway here's the current PKGBUILD and install file
PKGBUILD
# Maintainer: Wael Nasreddine <wael_nasreddine@hotmail.com>
pkgname=gnome-power-manager
pkgver=0.3.1
pkgrel=1
pkgdesc="Power Manager for gnome"
url="http://www.gnome.org/projects/gnome-power-manager/"
depends=('hal' 'dbus' 'libnotify')
makedepends=()
source=(http://dl.sourceforge.net/sourceforge/gnome-power/$pkgname-$pkgver.tar.gz)
install=gnome-power-manager.install
md5sums=('7a36ed3af51fe005dbd12a88f09d7c13')
build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/opt/gnome --disable-schemas-install --disable-libnotify # --enable-libnotify
make || return 1
make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR=${startdir}/pkg install || return 1
install -D -m644 $startdir/pkg/opt/gnome/etc/dbus-1/system.d/gnome-power-manager.conf
$startdir/pkg/etc/dbus-1/system.d/gnome-power-manager.conf || return 1
}
gnome-power-manager.install
pkgname=gnome-power-manager
post_install() {
schemas=(`pacman -Ql $pkgname | grep 'gconf/schemas/.*schemas$' | awk '{ print $2 }'`)
scrolls=(`pacman -Ql $pkgname | grep 'share/omf/.*.omf$' | awk '{ print $2 }'`)
export GCONF_CONFIG_SOURCE=`opt/gnome/bin/gconftool-2 --get-default-source`
for schema in "${schemas[@]}" ; do
opt/gnome/bin/gconftool-2 --makefile-install-rule "$schema" >/dev/null 2>&1
done
for scroll in "${scrolls[@]}" ; do
scrollkeeper-install -q -p var/lib/scrollkeeper "$scroll"
done
kill -s HUP `pidof /opt/gnome/bin/gconfd-2` >/dev/null 2>&1
update-desktop-database -q
}
pre_upgrade() {
pre_remove $1
}
post_upgrade() {
post_install $1
}
pre_remove() {
schemas=(`pacman -Ql $pkgname | grep 'gconf/schemas/.*schemas$' | awk '{ print $2 }'`)
scrolls=(`pacman -Ql $pkgname | grep 'share/omf/.*.omf$' | awk '{ print $2 }'`)
export GCONF_CONFIG_SOURCE=`opt/gnome/bin/gconftool-2 --get-default-source`
for schema in "${schemas[@]}" ; do
opt/gnome/bin/gconftool-2 --makefile-uninstall-rule "$schema" >/dev/null 2>&1
done
for scroll in "${scrolls[@]}" ; do
scrollkeeper-uninstall -q -p var/lib/scrollkeeper "$scroll"
done
kill -s HUP `pidof /opt/gnome/bin/gconfd-2` >/dev/null 2>&1
}
post_remove() {
update-desktop-database -q
}
op=$1
shift
$op $*
[My Blog] | [My Repo] | [My AUR Packages]
Offline
Ok i managed my way to update hal to the latest version, patches aren't all needed, they are already applied though one patch is applied though, i changed it in a way to patch 0.5.6, Everything seem to work fine with the new hal but gnomr-power-manager does not appear in notification area, donno why :cry:
[EDIT]
look at this i think i missed some kind of configure option ok ill dig into it
[wael@nasreddine gnome-power-manager]$ gnome-power-manager --no-daemon
** (gnome-power-manager:10225): CRITICAL **: HAL does not have PowerManagement capability
[/EDIT]
Here's the new hal Files, hope someone will notify maintainer so he don't have to re-do what i already done (maybe verify them)
PKGBUILD
# $Id: PKGBUILD,v 1.28 2006/01/05 11:39:44 tpowa Exp $
# Maintainer: Arjan Timmerman <arjan@soulfly.nl>
# Contributor: Link Dupont <link@subpop.net>
pkgname=hal
pkgver=0.5.6
pkgrel=1
pkgdesc="Hardware Abstraction Layer"
url="http://www.freedesktop.org/Software/hal"
depends=('dbus>=0.50' 'libusb' 'popt' 'udev>=062')
makedepends=('pkgconfig')
install=hal.install
source=(http://freedesktop.org/~david/dist/${pkgname}-${pkgver}.tar.gz
hal
storage-policy.fdi.patch
hal.udev.rules)
md5sums=('1e494b4319bbdfeb25224f914e34d0d3' 'efa2f0e34b828a1fff9c1ba374d1ae5d'
'084f9dfb4d9f95969595ddcd8f135795' '9f0f79f6d03730a437cdd1811d1ddddf')
build() {
cd ${startdir}/src/${pkgname}-${pkgver}
patch -Np0 -i ${startdir}/src/storage-policy.fdi.patch || return 1
#patch -Np1 -i ${startdir}/src/hal-0.5.4-match-on-capabilities.patch || return 1 #No longer Needed!
#patch -Np1 -i ${startdir}/src/udev-socket.patch || return 1 #No longer Needed!
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
--disable-docbook-docs --disable-doxygen-docs
--enable-pcmcia-support --with-stab-file=/var/lib/pcmcia/stab
--with-hal-user=hal --with-hal-group=hal
--with-pid-file=/var/run/hald.pid || return 1
sed -e 's/device-manager//' -i tools/Makefile || return 1
make || return 1
make DESTDIR=${startdir}/pkg install || return 1
install -D -m 755 ${startdir}/src/hal ${startdir}/pkg/etc/rc.d/hal || return 1
install -D -m 644 ${startdir}/src/hal.udev.rules ${startdir}/pkg/etc/udev/rules.d/hal.rules
mkdir -p $startdir/pkg/media
# remove unneeded symlink to hotplug dir, it's not needed anymore
rm -r ${startdir}/pkg/etc/hotplug.d/
find ${startdir}/pkg -name '*.la' -exec rm {} ;
}
hal
#!/bin/bash
# general config
. /etc/rc.conf
. /etc/rc.d/functions
case "$1" in
start)
#Check for running dbus, start when not running
ck_daemon dbus && /etc/rc.d/dbus start
stat_busy "Starting Hardware Abstraction Layer"
/usr/sbin/hald
if [ $? -gt 0 ]; then
stat_fail
else
add_daemon hal
stat_done
fi
;;
stop)
stat_busy "Stopping Hardware Abstraction Layer"
[ -f /var/run/hald.pid ] && kill `cat /var/run/hald.pid` &> /dev/null
if [ $? -gt 0 ]; then
stat_fail
else
rm_daemon hal
stat_done
fi
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
echo "usage: $0 {start|stop|restart}"
;;
esac
exit 0
hal.install
post_install() {
getent group hal >/dev/null || usr/sbin/groupadd -g 82 hal
getent group optical >/dev/null || usr/sbin/groupadd -g 93 optical
getent group floppy >/dev/null || usr/sbin/groupadd -g 94 floppy
getent group storage >/dev/null || usr/sbin/groupadd -g 95 storage
getent passwd hal >/dev/null || usr/sbin/useradd -c 'HAL daemon' -u 82 -g hal -G optical,floppy,storage -d '/' -s /bin/false hal
usr/bin/passwd -l hal &>/dev/null
}
# arg 1: the new package version
# arg 2: the old package version
post_upgrade() {
post_install $1
}
# arg 1: the old package version
pre_remove() {
usr/sbin/userdel hal &>/dev/null
usr/sbin/groupdel hal &>/dev/null
}
op=$1
shift
$op $*
hal.udev.rules
# send all events to HAL
RUN+="socket:/org/freedesktop/hal/udev_event"
storage-policy.fdi.patch
--- fdi/policy/10osvendor/10-storage-policy.fdi 2006-01-17 01:25:33.000000000 +0100
+++ fdi/policy/10osvendor/10-storage-policy.fdi 2006-01-26 03:59:04.000000000 +0100
@@ -7,9 +7,10 @@
<match key="info.udi" string="/org/freedesktop/Hal/devices/computer">
<merge key="storage.policy.default.mount_root" type="string">/media</merge>
<merge key="storage.policy.default.use_managed_keyword" type="bool">true</merge>
- <merge key="storage.policy.default.managed_keyword.primary" type="string">managed</merge>
+ <merge key="storage.policy.default.managed_keyword.primary" type="string">comment=managed</merge>
<merge key="storage.policy.default.managed_keyword.secondary" type="string">kudzu</merge>
- <merge key="storage.policy.default.mount_option.noauto" type="bool">true</merge>
+ <merge key="storage.policy.default.mount_option.pamconsole" type="bool">false</merge>
+ <merge key="storage.policy.default.mount_option.user" type="bool">true</merge>
<merge key="storage.policy.default.mount_option.pamconsole" type="bool">true</merge>
<merge key="storage.policy.default.mount_option.exec" type="bool">true</merge>
</match>
@@ -51,7 +52,7 @@
<merge key="storage.policy.mount_filesystem" type="string">auto</merge>
<merge key="storage.policy.desired_mount_point" type="string">cdrom</merge>
<match key="storage.cdrom.cdr" bool="true">
- <merge key="storage.policy.desired_mount_point" type="string">cdrecorder</merge>
+ <merge key="storage.policy.desired_mount_point" type="string">cdwriter</merge>
</match>
<match key="storage.cdrom.cdrw" bool="true">
<merge key="storage.policy.desired_mount_point" type="string">cdrecorder</merge>
@@ -60,16 +61,16 @@
<merge key="storage.policy.desired_mount_point" type="string">dvdrecorder</merge>
</match>
<match key="storage.cdrom.dvdplusrw" bool="true">
- <merge key="storage.policy.desired_mount_point" type="string">dvdrecorder</merge>
+ <merge key="storage.policy.desired_mount_point" type="string">dvdwriter</merge>
</match>
<match key="storage.cdrom.dvdram" bool="true">
- <merge key="storage.policy.desired_mount_point" type="string">dvdrecorder</merge>
+ <merge key="storage.policy.desired_mount_point" type="string">dvdwriter</merge>
</match>
<match key="storage.cdrom.dvdr" bool="true">
- <merge key="storage.policy.desired_mount_point" type="string">dvdrecorder</merge>
+ <merge key="storage.policy.desired_mount_point" type="string">dvdwriter</merge>
</match>
<match key="storage.cdrom.dvdrw" bool="true">
- <merge key="storage.policy.desired_mount_point" type="string">dvdrecorder</merge>
+ <merge key="storage.policy.desired_mount_point" type="string">dvdwriter</merge>
</match>
</match>
@@ -96,6 +97,9 @@
<match key="block.is_volume" bool="true">
<match key="volume.fsusage" string="filesystem">
<!-- skip for drives with the no partitions hint (they are handled above) -->
+ <match key="@block.storage_device:storage.no_partitions_hint" bool="true">
+ <merge key="volume.policy.desired_mount_point" type="copy_property">@block.storage_device:storage.policy.desired_mount_point</merge>
+ </match>
<match key="@block.storage_device:storage.no_partitions_hint" bool="false">
<merge key="volume.policy.should_mount" type="bool">true</merge>
[My Blog] | [My Repo] | [My AUR Packages]
Offline
Nice one, Gandalf. Two suggestions - if you add
--with-dbus-sys=/etc/dbus-1/system.d --with-dbus-services=/usr/share/dbus-1/services
to the power-manager ./configure, you can get rid of that install command at the end of your PKGBUILD. Also, you only need hal and libnotify in the depends line - hal depends on dbus.
Offline
Thx for the suggestion
anyway i'm working since yesterday on it and i still have the same thing, when i click on sleep nothing happens it's driving me nuts I even tried using powersave from unstable but it didnt work, now i will continue my research on their mailing list
[EDIT]
- We now depend on HAL 0.5.6 for the new suspend, hibernate and shutdown
functionality. HAL 0.5.6 is available in my repo for FC4.
from http://mail.gnome.org/archives/gnome-po … 00058.html
so i guess there is no use for me to continue on hal 0.5.5.1 i have to get 0.5.6 working!!
[/EDIT]
[My Blog] | [My Repo] | [My AUR Packages]
Offline
News: yesterday they have released version 2.13.5 i installed Hal 0.5.6 and it runs on it, but it still doesnt work :(:(
New Files
PKGBUILD
# Maintainer: Wael Nasreddine <wael_nasreddine@hotmail.com>
pkgname=gnome-power-manager
pkgver=2.13.5
pkgrel=1
pkgdesc="Power Manager for gnome"
url="http://www.gnome.org/projects/gnome-power-manager/"
depends=('hal' 'libnotify')
makedepends=()
source=(http://ftp.gnome.org/pub/GNOME/sources/gnome-power-manager/2.13/$pkgname-$pkgver.tar.gz)
install=gnome-power-manager.install
md5sums=('fd9bf98f404dd774e3fd80430843cba2')
build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/opt/gnome --disable-schemas-install --disable-libnotify --disable-scrollkeeper
--with-dbus-sys=/etc/dbus-1/system.d --with-dbus-services=/usr/share/dbus-1/services
make || return 1
make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR=${startdir}/pkg install || return 1
# install -D -m644 $startdir/pkg/opt/gnome/etc/dbus-1/system.d/gnome-power-manager.conf
# $startdir/pkg/etc/dbus-1/system.d/gnome-power-manager.conf || return 1
}
gnome-power-manager.install
pkgname=gnome-power-manager
post_install() {
schemas=(`pacman -Ql $pkgname | grep 'gconf/schemas/.*schemas$' | awk '{ print $2 }'`)
scrolls=(`pacman -Ql $pkgname | grep 'share/omf/.*.omf$' | awk '{ print $2 }'`)
export GCONF_CONFIG_SOURCE=`opt/gnome/bin/gconftool-2 --get-default-source`
for schema in "${schemas[@]}" ; do
opt/gnome/bin/gconftool-2 --makefile-install-rule "$schema" >/dev/null 2>&1
done
for scroll in "${scrolls[@]}" ; do
scrollkeeper-install -q -p var/lib/scrollkeeper "$scroll"
done
kill -s HUP `pidof /opt/gnome/bin/gconfd-2` >/dev/null 2>&1
update-desktop-database -q
}
pre_upgrade() {
pre_remove $1
}
post_upgrade() {
post_install $1
}
pre_remove() {
schemas=(`pacman -Ql $pkgname | grep 'gconf/schemas/.*schemas$' | awk '{ print $2 }'`)
scrolls=(`pacman -Ql $pkgname | grep 'share/omf/.*.omf$' | awk '{ print $2 }'`)
export GCONF_CONFIG_SOURCE=`opt/gnome/bin/gconftool-2 --get-default-source`
for schema in "${schemas[@]}" ; do
opt/gnome/bin/gconftool-2 --makefile-uninstall-rule "$schema" >/dev/null 2>&1
done
for scroll in "${scrolls[@]}" ; do
scrollkeeper-uninstall -q -p var/lib/scrollkeeper "$scroll"
done
kill -s HUP `pidof /opt/gnome/bin/gconfd-2` >/dev/null 2>&1
}
post_remove() {
update-desktop-database -q
}
op=$1
shift
$op $*
Please if soneone know what can be the reason why it's not working please tell me, i have suspend2 working and i also have powersave from unstable working!
[My Blog] | [My Repo] | [My AUR Packages]
Offline
well you won't have to continue this...
as soon a JGC releases hal 0.5.6 it will have all the support i need, and it will be added to unstable because it will depens on powersave..
Freedom is what i love
Offline
so for the moment i freeze gnome-power-manager untill hal 0.5.6 will be released?
[My Blog] | [My Repo] | [My AUR Packages]
Offline
hal .56 is out. maro made a package (its in the aur) which seems to work ok, but is a little out of date.
Offline
hal .56 is out. maro made a package (its in the aur) which seems to work ok, but is a little out of date.
hmm i don't see any gnome-power-manager in AUR and i know that hal has been updated but it ain't working i have tried i am not sure why, but after i installed the new hal i have lost all hal-system-power-* scripts
[My Blog] | [My Repo] | [My AUR Packages]
Offline
It's here, Gandalf.
Offline
hmmm it's weird, searching AUR for power-manager didn't work
anyway thanks tomk
[My Blog] | [My Repo] | [My AUR Packages]
Offline
Pages: 1