You are not logged in.

#1 2004-03-19 14:12:05

tbuitenh
Member
Registered: 2004-03-08
Posts: 55

trying to create a PKGBUILD for a kernel module

first, the current PKGBUILD:

pkgname=lazyfs
pkgver=0.1.20
pkgrel=1
pkgdesc="Kernel module for Zero Install"
url="http://zero-install.sourceforge.net/"
makedepends=(gnupg)

build() {
  cd $startdir/src/
  wget http://osdn.dl.sourceforge.net/sourceforge/zero-install/$pkgname-linux-$pkgver.tgz.gpg
  gpg $pkgname-linux-$pkgver.tgz.gpg
  tar xzf $pkgname-linux-$pkgver.tgz
  cd $pkgname-linux-$pkgver
  ./configure
  make || return 1
  make prefix=$startdir/pkg install
}

The problem is that make wants to enter a directory containing the kernel sources. I can tell it which directory to use, but...
1 how do I tell which kernel should be used (2.4/2.6? scsi?)
2 how should I download the kernel sources if they aren't on the system? cd /var/abs/kernels/kernelXYZ ; makepkg ???


I wish life was as simple as editing config files

Offline

#2 2004-03-19 14:18:08

Moo-Crumpus
Member
From: Hessen / Germany
Registered: 2003-12-01
Posts: 1,487

Re: trying to create a PKGBUILD for a kernel module

1. run abs
2. change to /var/abs/kernels/kernel26/
3. src available? OK, else, look inside PKGBUILD, comment out the make commands and run makepkg, or just fetch the source by yourself from kernel.org.


Frumpus addict
[mu'.krum.pus], [frum.pus]

Offline

#3 2004-03-19 15:56:11

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: trying to create a PKGBUILD for a kernel module

Check things like the wlan-ng package.


I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal

Offline

#4 2004-03-24 17:28:20

tbuitenh
Member
Registered: 2004-03-08
Posts: 55

Re: trying to create a PKGBUILD for a kernel module

first of all, thanks for the replies ;-)

I had a look at the wlan-ng PKGBUILD, but I don't see how it finds the kernel sources, or even does anything with kernel sources at all :?:

I guess I'll just edit a kernel PKGBUILD to make it build the lazyfs module too... But that gives us twice as many kernels make the PKGBUILD of lazyfs such that it is easy to change which kernel should be used.


I wish life was as simple as editing config files

Offline

#5 2004-03-24 17:31:41

tbuitenh
Member
Registered: 2004-03-08
Posts: 55

Re: trying to create a PKGBUILD for a kernel module

I should try creating a PKGBUILD for something simple first, I know... But I cannot find anything that I need for which there is no Arch package yet. big_smile


I wish life was as simple as editing config files

Offline

#6 2004-03-24 23:34:41

dp
Member
From: Zürich, Switzerland
Registered: 2003-05-27
Posts: 3,378
Website

Re: trying to create a PKGBUILD for a kernel module

tbuitenh wrote:

I should try creating a PKGBUILD for something simple first, I know... But I cannot find anything that I need for which there is no Arch package yet. big_smile

thanx for the compliment having all you need :-)


The impossible missions are the only ones which succeed.

Offline

#7 2004-03-25 16:48:39

tbuitenh
Member
Registered: 2004-03-08
Posts: 55

Re: trying to create a PKGBUILD for a kernel module

All I need:
X, xterm, pekwm, firefox, apache, php, python, gcc, rox
not much eh?

OK I would love to see OpenLook programs, especially olvwm, but I would probably be the only one using them, and bringing all those up to date is a lot of work. OpenLook is almost dead and most people hate the memories of using that software. I'm the exception.

And I like wmbubble (look for it on debian) but I can't seem to find the source code for it.

Apart from that, Arch seems to have all programs I could ever possibly want to install! Another good thing is that my usb stick works on it without any problems. It doesn't work on redhat @ university. Stupid patchy redhat kernels...

This is my history (just to give you an idea):
atari ST -> win95 -> redhat (motif) -> suse (fvwm -> olvwm -> kde -> olvwm -> windowmaker -> olvwm) -> debian (olvwm -> fluxbox -> olvwm -> pekwm -> olvwm) -> arch (pekwm)
I also tried gentoo, didn't like it. Arch does what gentoo promises!
Next to linux I play with QNX (http://www.qnx.com).


I wish life was as simple as editing config files

Offline

#8 2004-04-02 22:52:58

kumo
Member
From: VARESE - Italy
Registered: 2004-04-02
Posts: 49
Website

Re: trying to create a PKGBUILD for a kernel module

tbuitenh wrote:

And I like wmbubble (look for it on debian) but I can't seem to find the source code for it.

I always thought it was called bubblemon but you can find it at  http://www.ne.jp/asahi/linux/timecop/ with the wonderful wmfishtime!

Offline

#9 2004-04-02 22:55:26

kumo
Member
From: VARESE - Italy
Registered: 2004-04-02
Posts: 49
Website

Re: trying to create a PKGBUILD for a kernel module

Sorry for "excessive" posting but there is also a hybrid bubblefishymon which uses swimming fish to represent network traffic at http://www.pigeond.net/bfm/

Offline

Board footer

Powered by FluxBB