Want more features on Pastebin? Sign Up, it's FREE!
Guest

lvm2-git

By: a guest on Jul 6th, 2013  |  syntax: Bash  |  size: 2.63 KB  |  views: 60  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. --- PKGBUILD.orig       2013-07-06 15:35:38.534234768 -0700
  2. +++ PKGBUILD    2013-07-06 13:05:47.028556631 -0700
  3. @@ -3,7 +3,7 @@
  4.  # Maintainer: Thomas B├Ąchler <thomas@archlinux.org>
  5.  
  6.  pkgbase=lvm2
  7. -pkgname=('lvm2' 'device-mapper')
  8. +pkgname=('lvm2-git' 'device-mapper-git')
  9.  pkgver=2.02.98
  10.  pkgrel=4
  11.  arch=('i686' 'x86_64')
  12. @@ -11,7 +11,7 @@
  13.  license=('GPL2' 'LGPL2.1')
  14.  makedepends=('systemd')
  15.  groups=('base')
  16. -source=(ftp://sources.redhat.com/pub/lvm2/LVM2.${pkgver}.tgz{,.asc}
  17. +source=(git://git.fedorahosted.org/lvm2.git
  18.          lvm2_install
  19.          lvm2_hook
  20.          11-dm-initramfs.rules
  21. @@ -21,8 +21,7 @@
  22.          lvm-monitoring.service
  23.          lvmetad.service
  24.          lvmetad.socket)
  25. -sha1sums=('077425115b164c335a9930df745943e9ea666a8a'
  26. -          'SKIP'
  27. +sha1sums=('SKIP'
  28.            '76e83966d1bc84f9a1e30bcaff84b8b8fefbca0f'
  29.            'ff0fdf0a3005a41acd4b36865056109effc3474b'
  30.            'f6a554eea9557c3c236df2943bb6e7e723945c41'
  31. @@ -33,8 +32,13 @@
  32.            'f857a4a63fcc604a981e56875edda91767d4f1bf'
  33.            'fcfc265e3b10294cc4b10949a342e9db4310b186')
  34.  
  35. +pkgver() {
  36. +    cd "$pkgbase"
  37. +    git describe | sed 's/^v//;s/-/./g'
  38. +}
  39. +
  40.  build() {
  41. -  cd "${srcdir}/LVM2.${pkgver}"
  42. +  cd "${srcdir}/${pkgbase}"
  43.    unset LDFLAGS
  44.  
  45.    ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --sbindir=/usr/bin \
  46. @@ -46,12 +50,14 @@
  47.    make
  48.  }
  49.  
  50. -package_device-mapper() {
  51. +package_device-mapper-git() {
  52.    pkgdesc="Device mapper userspace library and tools"
  53.    url="http://sourceware.org/dm/"
  54.    depends=('glibc' 'systemd')
  55. +  conflicts=('device-mapper')
  56. +  provides=('device-mapper')
  57.  
  58. -  cd "${srcdir}/LVM2.${pkgver}"
  59. +  cd "${srcdir}/${pkgbase}"
  60.    make DESTDIR="${pkgdir}" install_device-mapper
  61.    # extra udev rule for device-mapper in initramfs
  62.    install -D -m644 "${srcdir}/11-dm-initramfs.rules" "${pkgdir}/usr/lib/initcpio/udev/11-dm-initramfs.rules"
  63. @@ -62,15 +68,16 @@
  64.    ln -sf /usr/lib/systemd/system/dmeventd.socket "${pkgdir}/usr/lib/systemd/system/sockets.target.wants/dmeventd.socket"
  65.  }
  66.  
  67. -package_lvm2() {
  68. +package_lvm2-git() {
  69.    pkgdesc="Logical Volume Manager 2 utilities"
  70. -  depends=('bash' "device-mapper>=${pkgver}" 'systemd' 'readline')
  71. -  conflicts=('lvm' 'mkinitcpio<0.7')
  72. +  depends=('bash' "device-mapper-git>=${pkgver}" 'systemd' 'readline')
  73. +  conflicts=('lvm' 'lvm2' 'mkinitcpio<0.7')
  74. +  provides=('lvm2')
  75.    backup=('etc/lvm/lvm.conf')
  76.    options=('!makeflags')
  77.    install=lvm2.install
  78.  
  79. -  cd "${srcdir}/LVM2.${pkgver}"
  80. +  cd "${srcdir}/${pkgbase}"
  81.    make DESTDIR="${pkgdir}" install_lvm2
  82.    # install applib
  83.    make -C liblvm DESTDIR="${pkgdir}" install
clone this paste RAW Paste Data