summaryrefslogtreecommitdiff
path: root/pcr/multipath-tools-git
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2013-10-15 00:31:49 -0300
committerNicolás Reynolds <fauno@endefensadelsl.org>2013-10-15 00:31:49 -0300
commit93db7f2fb23cba78cde4343b506a676e376ca4a8 (patch)
tree3fec56215a344b1e01e49a27198f919ac981320b /pcr/multipath-tools-git
parentc162e34d12c6cf76532a7f6b3d538d493a8bf17a (diff)
parent39e9111d76d232d65ca0c43285dea5bd5d58d28e (diff)
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts: community/avant-window-navigator/PKGBUILD community/awn-extras-applets/PKGBUILD community/cinnamon-control-center/PKGBUILD community/gnome-menus2/PKGBUILD community/gnome-panel/PKGBUILD community/gpsim/PKGBUILD community/kgraphviewer/PKGBUILD community/kpovmodeler/PKGBUILD community/libdesktop-agnostic/PKGBUILD community/python-basemap/PKGBUILD community/python-mpi4py/PKGBUILD community/python-psutil/PKGBUILD community/qgo/PKGBUILD community/ude/PKGBUILD community/virtkey/PKGBUILD extra/alsaplayer/PKGBUILD extra/aterm/PKGBUILD extra/cups-pdf/PKGBUILD extra/ffmpeg/PKGBUILD extra/gtk2/PKGBUILD extra/kdeplasma-applets-networkmanagement/PKGBUILD extra/libffado/PKGBUILD extra/libtar/PKGBUILD extra/maxima/PKGBUILD extra/php-xcache/PKGBUILD extra/postgresql/PKGBUILD extra/xorg-server/PKGBUILD extra/xorg-xauth/PKGBUILD
Diffstat (limited to 'pcr/multipath-tools-git')
-rw-r--r--pcr/multipath-tools-git/PKGBUILD44
1 files changed, 44 insertions, 0 deletions
diff --git a/pcr/multipath-tools-git/PKGBUILD b/pcr/multipath-tools-git/PKGBUILD
new file mode 100644
index 000000000..d1bb4ac9b
--- /dev/null
+++ b/pcr/multipath-tools-git/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Miguel Revilla <yo@miguelrevilla.com>
+# Contributor: Alexander Rødseth <rodseth@gmail.com>
+# Contributor: Timothée Ravier <tim@siosm.fr>
+
+pkgname=multipath-tools-git
+pkgver=1295.81895af
+pkgrel=1
+pkgdesc="Tools to drive the Device Mapper multipathing driver (contains kpartx)"
+url="http://christophe.varoqui.free.fr/"
+arch=('x86_64' 'i686')
+license=('GPL2')
+depends=('libaio' 'device-mapper')
+makedepends=('git' 'setconf')
+options=(!emptydirs)
+source=("${pkgname}::git+http://git.opensvc.com/multipath-tools/.git")
+md5sums=('SKIP')
+
+pkgver() {
+ cd ${pkgname}
+ echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
+}
+
+prepare() {
+ cd ${pkgname}
+ sed -i 's|/sbin|/usr/bin|g' Makefile.inc
+ sed -i 's|LIB=lib|LIB=usr/lib|g' Makefile.inc
+ sed -i 's|${prefix}/lib/udev|${prefix}/usr/lib/udev|g' Makefile.inc
+ sed -i 's|$(prefix)/lib/systemd/system|$(prefix)/usr/lib/systemd/system|g' Makefile.inc
+}
+
+build() {
+ cd ${pkgname}
+ setconf Makefile.inc GZIP '/usr/bin/gzip -9 -c'
+ make
+}
+
+package() {
+ cd ${pkgname}
+ make LIB="/usr/lib" DESTDIR="${pkgdir}" install
+ install -Dm644 COPYING "${pkgdir}"/usr/share/licenses/${pkgname}/COPYING
+ cd "${pkgdir}"/usr/lib
+ rm libmpathpersist.so
+ ln -s libmpathpersist.so.0 libmpathpersist.so
+}