diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2013-10-09 17:24:43 -0200 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2013-10-09 17:24:43 -0200 |
commit | 8d708341f59b7a997c62bed7a2c4c31e32e1f5ec (patch) | |
tree | 6bc11e3f86ea1308a9d569d34c86897016984f0e /pcr | |
parent | 81ef7f93ce7d0b160163f237eb183af30c6d52c0 (diff) | |
parent | 46ea1956dc5b3444878922a019f8c7fb5f1fd889 (diff) | |
download | abslibre-8d708341f59b7a997c62bed7a2c4c31e32e1f5ec.tar.gz abslibre-8d708341f59b7a997c62bed7a2c4c31e32e1f5ec.tar.bz2 abslibre-8d708341f59b7a997c62bed7a2c4c31e32e1f5ec.zip |
Merge branch 'master' of ssh://projects.parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'pcr')
-rw-r--r-- | pcr/multipath-tools-git/PKGBUILD | 44 |
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 +} |