You are not logged in.

#1 2006-11-18 16:54:09

metzen
Member
From: New York City
Registered: 2004-08-27
Posts: 14

pacmon - pacman updates monitor

I've slapped together a little app that will display an icon in the Tray, or Notification Area, when there are available updates to install on your machine.  A libnotify tooltip will also be displayed if you have the proper environment setup.

Project Homepage

I've also uploaded the PKGBUILD to AUR
http://aur.archlinux.org/packages.php?d … =1&ID=7583

pacmon-notification.png

Let me know what you think.

Offline

#2 2006-11-18 18:05:43

hotsauce
Member
From: Ann Arbor
Registered: 2005-12-28
Posts: 125

Re: pacmon - pacman updates monitor

This is actually very cool! Will try it when I come home

Offline

#3 2006-11-18 18:15:13

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,694
Website

Re: pacmon - pacman updates monitor

It looks cool but I'm unsure as to how to install ...

Offline

#4 2006-11-18 18:22:35

metzen
Member
From: New York City
Registered: 2004-08-27
Posts: 14

Re: pacmon - pacman updates monitor

ralvez wrote:

It looks cool but I'm unsure as to how to install ...

The easiest way to install a program from the AUR would be to install one of the convenience tools available, such as yaourt, or aurbuild.  Personally, I use yaourt as a pacman replacement.  So to install this package with yaourt, you need only do:

# yaourt -S pacmon-svn

Similarly, with aurbuild:

# aurbuild -s pacmon-svn

Offline

#5 2006-11-18 18:41:34

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,694
Website

Re: pacmon - pacman updates monitor

Thanks! I'll give it a try.

Offline

#6 2006-11-18 19:32:43

baze
Member
Registered: 2005-10-30
Posts: 393

Re: pacmon - pacman updates monitor

if you don't use gnome-python-extras for anything besides trayicon support, you might want to use the gtk 2.10 statusicon to get rid of gnome dependencies which make this uninteresting for me.

btw: python is not neccessary in the depends, since it's a dependency for pygtk anyway.

Offline

#7 2006-11-18 19:40:29

metzen
Member
From: New York City
Registered: 2004-08-27
Posts: 14

Re: pacmon - pacman updates monitor

baze wrote:

if you don't use gnome-python-extras for anything besides trayicon support, you might want to use the gtk 2.10 statusicon to get rid of gnome dependencies which make this uninteresting for me.

Hmm, I wasn't aware of this.  I'll look into migrating to that.

Offline

#8 2006-11-18 20:04:25

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,694
Website

Re: pacmon - pacman updates monitor

Hum ... I'm missing something ...
I downloaded and installed aurbuild by doing

Installation:
    python setup.py install --root=/path/to/root/

with --root=/root

But then when I run aurbuild -s pacmon-svn I get an error:
bash: aurbuild: command not found

Now I realize that since the software installed in the /root directory the command would fail from outside so I went to the /root/usr/bin to run the file from there, using : python aurbuild ~/tmp/pacmon-svn
and then the error is:

Traceback (most recent call last):
  File "aurbuild", line 24, in ?
    import Aurbuild.pacman
ImportError: No module named Aurbuild.pacman

My suspicion in that the installation of aurbuild is not done as indicated in the README file or am I missing something?
Any ideas?

Offline

#9 2006-11-18 20:11:53

stonecrest
Member
From: Boulder
Registered: 2005-01-22
Posts: 1,190

Re: pacmon - pacman updates monitor

Why not use makepkg?


I am a gated community.

Offline

#10 2006-11-18 20:17:20

metzen
Member
From: New York City
Registered: 2004-08-27
Posts: 14

Re: pacmon - pacman updates monitor

stonecrest wrote:

Why not use makepkg?

Yes.. I believe he is not aware of the correct way to install software on an Arch system.

Ralvez, you are trying to install the software manually, and circumventing all the nice work people have put into these simple packaging systems.  See this url for the correct way to install something from AUR:

http://wiki.archlinux.org/index.php/AUR … NSUPPORTED

Offline

#11 2006-11-18 20:47:28

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: pacmon - pacman updates monitor

ralvez wrote:

Hum ... I'm missing something ...
I downloaded and installed aurbuild by doing

Installation:
    python setup.py install --root=/path/to/root/

with --root=/root

But then when I run aurbuild -s pacmon-svn I get an error:
bash: aurbuild: command not found

Now I realize that since the software installed in the /root directory the command would fail from outside so I went to the /root/usr/bin to run the file from there, using : python aurbuild ~/tmp/pacmon-svn
and then the error is:

Traceback (most recent call last):
  File "aurbuild", line 24, in ?
    import Aurbuild.pacman
ImportError: No module named Aurbuild.pacman

My suspicion in that the installation of aurbuild is not done as indicated in the README file or am I missing something?
Any ideas?

I meant /path/to/root as in path to your root directory not the actual /root directory

python setup.py install --root=/

BTW: if you do get it working you need to run aurbuild -s aurbuild so it can be kept track of by pacman.

Offline

#12 2006-11-21 01:30:29

metzen
Member
From: New York City
Registered: 2004-08-27
Posts: 14

Re: pacmon - pacman updates monitor

baze wrote:

if you don't use gnome-python-extras for anything besides trayicon support, you might want to use the gtk 2.10 statusicon to get rid of gnome dependencies which make this uninteresting for me.

Ok, I've successfully migrated the project over to gtk.StatusIcon, so there are no longer any Gnome dependencies!  However, you will need to jump through a few hoops to get the libnotify popups working.

In order to suppport popups on a gtk.StatusIcon, I had to use python-notify ver 0.1.1, which depends on libnotify 0.4.3.  However, only libnotify-0.4.2 is available in the Arch repo, so you will need to edit the PKGBUILD in ABS to build and install version 0.4.3.

You will also need to build a newer version of python-notify than what is available on the AUR.  Currently, there is a PKGBUILD for version 0.1.0, but I had to modify the PKBUILD for it to correctly build ver 0.1.1, as I belive there is a problem with the package.  Specifically, I needed to add a "make clean" before the "make" step in the PKGBUILD, otherwise, the pkg would be built without support for gtk.Statusicon

Here's the PKGBUILD for python-notify-0.1.1

# Maintainer: Mario Danic <mario>
pkgname=python-notify
pkgver=0.1.1
pkgrel=1
pkgdesc="Python bindings for libnotify"
url="http://www.galago-project.org/"
options=('NOLIBTOOL')
license="GPL"
depends=('pygtk>=2.4.0' 'libnotify>=0.4.3')
source=(http://www.galago-project.org/files/releases/source/notify-python/notify-python-$pkgver.tar.gz)
md5sums=('8f0ef0939cc8edd2efd896ce5ba80cf4')

build() {
  cd $startdir/src/notify-python-$pkgver
  ./configure --prefix=/usr
  make clean || return 1
  make || return 1
  make DESTDIR=$startdir/pkg install
}

Offline

Board footer

Powered by FluxBB