[arch-commits] Commit in dmraid/trunk (PKGBUILD dmraid.install)
Tobias Powalowski
tpowa at archlinux.org
Sun Oct 12 15:02:14 UTC 2008
Date: Sunday, October 12, 2008 @ 11:02:13
Author: tpowa
Revision: 15085
upgpkg: dmraid 1.0.0.rc15-4
Added:
dmraid/trunk/dmraid.install
Modified:
dmraid/trunk/PKGBUILD
----------------+
PKGBUILD | 8 +++-----
dmraid.install | 22 ++++++++++++++++++++++
2 files changed, 25 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2008-10-12 14:43:22 UTC (rev 15084)
+++ PKGBUILD 2008-10-12 15:02:13 UTC (rev 15085)
@@ -4,7 +4,7 @@
pkgname=dmraid
pkgver=1.0.0.rc15
-pkgrel=2
+pkgrel=4
pkgdesc="Device mapper RAID interface"
url="http://people.redhat.com/~heinzm/sw/dmraid/"
depends=(device-mapper)
@@ -13,9 +13,7 @@
source=(http://people.redhat.com/~heinzm/sw/dmraid/src/$pkgname-$pkgver.tar.bz2
dmraid_install
dmraid_hook)
-md5sums=('2602887205a35f89b59eeba3a868150f'
- '8f8b6fb332fce85a27d72fc63385db70'
- '8c944cab8c885192a90e518a8d794adf')
+install=dmraid.install
build() {
cd $srcdir/$pkgname/$pkgver
@@ -23,7 +21,7 @@
# create static bin
./configure --enable-static_link --prefix=/usr
make || return 1
- make DESTDIR=$startdir/pkg exec_prefix=$pkgdir/usr install
+ make DESTDIR=$pkgdir exec_prefix=$pkgdir/usr install
mv $pkgdir/usr/sbin/dmraid $pkgdir/usr/sbin/dmraid.static
# create dynamic linked bin
Added: dmraid.install
===================================================================
--- dmraid.install (rev 0)
+++ dmraid.install 2008-10-12 15:02:13 UTC (rev 15085)
@@ -0,0 +1,22 @@
+# arg 1: the new package version
+# arg 2: the old package version
+
+post_upgrade() {
+ if [ "$(vercmp $2 1.0.0.rc15)" -lt 0 ]; then
+ # important upgrade notice
+ echo ">>>"
+ echo ">>> IMPORTANT DMRAID UPGRADE NOTICE"
+ echo ">>> -------------------------------"
+ echo ">>> Version 1.0.15rc introduce a new name scheme:"
+ echo ">>> You need to a an additional 'p' in front of your number."
+ echo ">>> e.g. <yourname><number> --> <yourname>p<number>"
+ echo ">>> firsthd1 --> firsthdp1"
+ echo ">>> Please change your bootloader and fstab accordingly."
+ echo ">>>"
+ fi
+}
+
+op=$1
+shift
+
+$op $*
More information about the arch-commits
mailing list