You are not logged in.

#1 2011-06-06 17:40:03

rAX
Member
From: Algiers
Registered: 2011-05-27
Posts: 86

[REQUEST] Gnome-nanny

Hi,

I think gnome-nanny is totally missing from every source in Archlinux, so could someone please add it to AUR?

Thanks smile

Offline

#2 2012-06-29 02:24:42

allencch
Member
Registered: 2011-03-25
Posts: 120

Re: [REQUEST] Gnome-nanny

I also wish to use it. But just now tried to build. Build without problem, using python2, re-write the init script. However, when running, still have a lot of problem. So, I give it up.

Offline

#3 2012-06-29 09:29:10

debdj
Member
Registered: 2012-01-19
Posts: 163

Re: [REQUEST] Gnome-nanny

pkgname=nanny
pkgver=2.29.4
pkgrel=1
pkgdesc="Provides an easy way to control what your kids are doing in the computer."
arch=('i686' 'x86_64')
url='http://projects.gnome.org/nanny/'
license=GPLv2
depends=('gnome>=2.28' 'glib2' 'python2' 'twisted' 'gconf' 'python-gtop' 'libglade'
         'python-imaging' 'twisted-web2' 'gtk-engine-murrine')
makedepends='make'
optdepends="Nanny Blacklist:Nanny.nbl is a Dans Guardian BlackList formated in Nanny's style."
source="http://ftp.gnome.org/pub/GNOME/sources/nanny/${pkgver%.*}/nanny-${pkgver}.tar.gz"
sha256sums=('8dbd5946a46bf507e075946ff0930cdc31fe3b09f4fdd1af0840fb1447246952')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  export PYTHON=`which python2` || return 1
  ./configure --bindir=/usr/bin/ --prefix=/usr --exec-prefix=/usr
  make || return 1
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR=${pkgdir} install || return 1
}

I don't use gnome, so I built using the -d flag(no dep check) in makepkg and it built well, but of course it wont run without gnome.
Tell me if it builds and runs well for you. I'll add it in AUR then.

@allencch
the problem probably is that the py scripts require python<=2.7 to run, but the scripts have their env set to python which refers to pyhton3 in any updated arch system.

EDIT: The software isn't developed anymore. Last release was in 2010. I should ave seen that before. hmm
And there's a mint-nanny package in AUR.

Last edited by debdj (2012-06-29 09:41:54)

Offline

#4 2012-06-29 15:28:41

allencch
Member
Registered: 2011-03-25
Posts: 120

Re: [REQUEST] Gnome-nanny

@debdj
I solved the problem of python by changing all the scripts to python2 using sed. And because of this, I didn't use twisted-web2, because it gnome-nanny is depending on twisted-web. And during configure, there is no problem for the twisted-web.

mint-nanny does not support "Nanny.nbl" file, it is time consuming to block the domain by entering them manually.

Maybe squid and dansguardian can do what I want. But I haven't tried yet.

Offline

#5 2012-06-29 18:43:14

debdj
Member
Registered: 2012-01-19
Posts: 163

Re: [REQUEST] Gnome-nanny

I solved the problem of python by changing all the scripts to python2 using sed.

..so.. did it work?

Offline

#6 2012-06-30 06:12:40

allencch
Member
Registered: 2011-03-25
Posts: 120

Re: [REQUEST] Gnome-nanny

..so.. did it work?

It doesn't work, there are some exceptional error about D-Bus whe running nanny-admin-console after the twisted daemon running.

Offline

Board footer

Powered by FluxBB