[arch-commits] Commit in dmraid/trunk (PKGBUILD dmraid_install)

Tobias Powalowski tpowa at archlinux.org
Thu Mar 18 08:57:51 UTC 2010


    Date: Thursday, March 18, 2010 @ 04:57:51
  Author: tpowa
Revision: 72534

upgpkg: dmraid 1.0.0.rc16-3
readded static build to fix issues

Modified:
  dmraid/trunk/PKGBUILD
  dmraid/trunk/dmraid_install

----------------+
 PKGBUILD       |   15 +++++++++++----
 dmraid_install |    3 ++-
 2 files changed, 13 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-03-18 07:59:28 UTC (rev 72533)
+++ PKGBUILD	2010-03-18 08:57:51 UTC (rev 72534)
@@ -4,11 +4,10 @@
 
 pkgname=dmraid
 pkgver=1.0.0.rc16
-pkgrel=2
+pkgrel=3
 pkgdesc="Device mapper RAID interface"
 url="http://people.redhat.com/~heinzm/sw/dmraid/"
 depends=('device-mapper>=2.0.54')
-conflicts=('mkinitcpio<0.5.99')
 arch=('i686' 'x86_64')
 license=('GPL')
 source=(http://people.redhat.com/~heinzm/sw/dmraid/src/$pkgname-$pkgver.tar.bz2
@@ -16,13 +15,21 @@
         dmraid_hook)
 install=dmraid.install
 md5sums=('32832c1dfd7e72cd4355490322fca68a'
-         'c1067319db48b7f251c16a62e8d246b0'
+         'c414d781b82b5f1c8555a760b0fd71cc'
          'b1fcca57a711be68b57c5ec8614d87cb')
 
 build() {
   cd $srcdir/$pkgname/$pkgver
-  ./configure
+
+  # create static bin
+  ./configure --enable-static_link --prefix=/usr --enable-led --enable-intel_led
   make || return 1
+  make DESTDIR=$pkgdir exec_prefix=$pkgdir/usr install
+  mv $pkgdir/usr/sbin/dmraid $pkgdir/usr/sbin/dmraid.static
+
+  make clean
+  ./configure --enable-led --enable-intel_led
+  make || return 1
   make DESTDIR=$pkgdir exec_prefix=$pkgdir/ mandir=$pkgdir/usr/share/man includedir=$pkgdir/usr/include install || return 1
   mkdir -p $pkgdir/var/lock/dmraid
   chmod 1777 $pkgdir/var/lock/

Modified: dmraid_install
===================================================================
--- dmraid_install	2010-03-18 07:59:28 UTC (rev 72533)
+++ dmraid_install	2010-03-18 08:57:51 UTC (rev 72534)
@@ -3,9 +3,10 @@
 install ()
 {
     MODULES=" dm-mod dm-mirror "
-    BINARIES="dmraid dmsetup"
+    BINARIES="dmsetup"
     FILES=""
     SCRIPT="dmraid"
+    add_file "/usr/sbin/dmraid.static" "/sbin/dmraid"
     add_dir "/dev/mapper"
     add_binary "/lib/libdmraid-events-isw.so"
     add_file "/lib/udev/rules.d/10-dm.rules"




More information about the arch-commits mailing list