You are not logged in.

#1 2010-09-19 19:45:46

Stoffi
Member
Registered: 2007-03-15
Posts: 107

[REQUEST] Kismon (a graphical kismet client)

Hello.

I want to create a kismon package, and I think I have it mostly right but I have no clue about what happens in the build function,
so I would really like some input on that.
http://www.salecker.org/software/kismon/en

Also, there is a dependency which is missing in the repositories, and this I am really having trouble with!
This dependency is libmemphis.
https://trac.openstreetmap.ch/trac/memp … LibMemphis
But I am having trouble figuring out the difference between memphis, and libmemphis.
https://trac.openstreetmap.ch/trac/memphis/wiki

With libmemphis, I have been unable to figure out the dependencies, if any, and also here, I have noe clue about what happens
in the build function in the pkgbuild.

I would really apreciate any help on making theese packages work! smile

Kismon

# Maintainer: 
pkgname=kismon
pkgver=0.2
pkgrel=1
pkgdesc="Kismon is a Kismet client that creates a live map of the networks."
arch=('i686')
url="http://www.salecker.org/software/kismon/en"
license=('BSD')
groups=()
depends=('libchamplain>=0.6.1' 'libmemphis>=0.2.3' 'python' 'pyclutter' 'pygtk')
makedepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=(http://files.salecker.org/kismon/$pkgname-$pkgver.tar.gz)
noextract=()
md5sums=() #generate with 'makepkg -g'

build() {
  cd "$srcdir/$pkgname-$pkgver"

  ./configure --prefix=/usr
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"

  make DESTDIR="$pkgdir/" install
}

libmemphis

# Contributor: 
pkgname=libmemphis-svn
pkgver=0.2.3
pkgrel=1
pkgdesc="Generic glib/cairo based OSM renderer library. It draws maps on arbitrary cairo surfaces."
arch=(i686)
url=""
license=('LGPL')
groups=()
depends=()
makedepends=('subversion')
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
source=($pkgname-$pkgver.tar.gz)
noextract=()
md5sums=() #generate with 'makepkg -g'

_svntrunk=https://svn.openstreetmap.ch/svn/memphis/trunk
_svnmod=memphis

build() {
  cd "$srcdir"

  if [ -d $_svnmod/.svn ]; then
    (cd $_svnmod && svn up -r $pkgver)
  else
    svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
  fi

  msg "SVN checkout done or server timeout"
  msg "Starting make..."

  rm -rf "$srcdir/$_svnmod-build"
  cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
  cd "$srcdir/$_svnmod-build"

  #
  # BUILD
  #
  ./autogen.sh
  ./configure --prefix=/usr
  make || return 1
  make DESTDIR="$pkgdir/" install
}

Offline

#2 2010-09-20 07:10:59

ndowens
Member
Registered: 2007-08-15
Posts: 39
Website

Re: [REQUEST] Kismon (a graphical kismet client)

http://aur.archlinux.org/packages.php?ID=40968 There is the package, if you want to be the maintainer, let me know and I willl let you have it.


My site: ndowens.tk

Offline

#3 2010-09-20 20:57:15

Stoffi
Member
Registered: 2007-03-15
Posts: 107

Re: [REQUEST] Kismon (a graphical kismet client)

Thanks for all your help so far!
I can't seem to get it to work either. sad

If I install memphis before python-libchamplain, libchamplain won't build.
near the end of the build log, one message reads:
"no package 'pymemphis-0.2' found"

strangely, this doesn't happen if I install python-libchamplain before
memphis, but i get a similar error as you do about a missing *champlain* module.
(I don't remember exactly the message)

I have therefore thought that maybe pymemphis is a missing dependency,
and I have tried to make a PKGBUILD for it.
I am really uncertain about what I should put in this line:
_gitname="MODENAME"
and I have a feeling that the standard build function works,
allthough I don't understand what it does exactly.

Does this PKGBUILD look okay otherwise?

# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.

# See http://wiki.archlinux.org/index.php/VCS_PKGBUILD_Guidelines
# for more information on packaging from GIT sources.

# Contributor: Your Name <youremail@domain.com>
pkgname=pymemphis-git
pkgver=0.2
pkgrel=1
pkgdesc="Provides Python bindings for the libmemphis library."
arch=('i686')
url=""
license=('GPL')
groups=()
depends=('libmemphis>=0.2.1' 'pygobject>=2.10' 'pycairo>=1.4')
makedepends=('git')
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
source=($pkgname-$pkgver.tar.gz)
noextract=()
md5sums=() #generate with 'makepkg -g'

_gitroot="git://gitorious.org/pymemphis/mainline.git"
_gitname="MODENAME" #master?

build() {
  cd "$srcdir"
  msg "Connecting to GIT server...."

  if [ -d $_gitname ] ; then
    cd $_gitname && git pull origin
    msg "The local files are updated."
  else
    git clone $_gitroot $_gitname
  fi

  msg "GIT checkout done or server timeout"
  msg "Starting make..."

  rm -rf "$srcdir/$_gitname-build"
  git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
  cd "$srcdir/$_gitname-build"

  #
  # BUILD HERE
  #

  ./autogen.sh
  ./configure --prefix=/usr
  make || return 1
  make DESTDIR="$pkgdir/" install
} 

Offline

#4 2010-09-22 06:30:15

ndowens
Member
Registered: 2007-08-15
Posts: 39
Website

Re: [REQUEST] Kismon (a graphical kismet client)

It works for me now, I updated it after I got off work the next day. So give it another try smile


My site: ndowens.tk

Offline

#5 2010-09-22 20:45:33

Stoffi
Member
Registered: 2007-03-15
Posts: 107

Re: [REQUEST] Kismon (a graphical kismet client)

It works for me too now big_smile
Thanks alot! smile

Offline

Board footer

Powered by FluxBB