You are not logged in.

#1 2009-03-29 11:33:12

mrt181
Member
From: Germany
Registered: 2009-03-28
Posts: 8

how to patch dmraid-rc15 to version rc15-6 during makepkg -s?

I installed dmraid.1.0.0.rc15 but it does not find my raid devices - i need a patch.

I used the source from debian and would like to apply the patch no.6.

This is how my custom PKGBUILD looks like:

pkgname=dmraid
pkgver=1.0.0.rc15
pkgrel=custom
pkgdesc="Device mapper RAID interface"
url="http://people.redhat.com/~heinzm/sw/dmraid/"
depends=(device-mapper)
arch=('i686' 'x86_64')
license=('GPL')
source=(http://ftp.de.debian.org/debian/pool/main/d/dmraid/$pkgname\_$pkgver.orig.tar.gz
        http://ftp.de.debian.org/debian/pool/main/d/dmraid/$pkgname\_$pkgver-6.diff.gz
        dmraid_install
        dmraid_hook)
options=(force)
install=dmraid.install


md5sums=('x'
         'x'
         'x'
         'x')

build() {
  cd $srcdir/$pkgname/$pkgver
  patch -p0 < ../../dmraid_1.0.0.rc15-6.diff
  # create static bin
  ./configure --enable-static_link --prefix=/usr
  make || return 1
  make DESTDIR=$pkgdir exec_prefix=$pkgdir/usr install
  mv $pkgdir/usr/sbin/dmraid $pkgdir/usr/sbin/dmraid.static

  # create dynamic linked bin
  ./configure --prefix=/usr
  make || return 1
  make DESTDIR=$pkgdir exec_prefix=$pkgdir/usr install
  mkdir -p $pkgdir/var/lock/dmraid
  chmod 1777 $pkgdir/var/lock/

  install -D -m755 $srcdir/dmraid_install $pkgdir/lib/initcpio/install/dmraid
  install -D -m755 $srcdir/dmraid_hook $pkgdir/lib/initcpio/hooks/dmraid
  # fix .a file
  chmod 644 $pkgdir/usr/lib/libdmraid.a

But it seems that the patch is not applied. What am i doing wrong

P.S.: i was to lazy to write the correct checksums.

Last edited by mrt181 (2009-03-29 11:35:10)

Offline

Board footer

Powered by FluxBB