From e23ddee5a60cab0a9c71d1e2e7bb2aa852fc36f0 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 13 Apr 2010 16:10:05 +0200 Subject: [PATCH] lvm2: build liblvm2applib and create two new subpkgs. --HG-- extra : convert_revision : 80c1f4057b9cf02301f4f0ec417080222d5eb6df --- srcpkgs/liblvm2app | 1 + srcpkgs/liblvm2app-devel | 1 + srcpkgs/lvm2/liblvm2app-devel.template | 18 ++++++++++++++++++ srcpkgs/lvm2/liblvm2app.template | 16 ++++++++++++++++ srcpkgs/lvm2/template | 9 +++++---- xbps-src/common/mapping_shlib_binpkg.txt | 1 + 6 files changed, 42 insertions(+), 4 deletions(-) create mode 120000 srcpkgs/liblvm2app create mode 120000 srcpkgs/liblvm2app-devel create mode 100644 srcpkgs/lvm2/liblvm2app-devel.template create mode 100644 srcpkgs/lvm2/liblvm2app.template diff --git a/srcpkgs/liblvm2app b/srcpkgs/liblvm2app new file mode 120000 index 0000000000..90f3860e82 --- /dev/null +++ b/srcpkgs/liblvm2app @@ -0,0 +1 @@ +lvm2 \ No newline at end of file diff --git a/srcpkgs/liblvm2app-devel b/srcpkgs/liblvm2app-devel new file mode 120000 index 0000000000..90f3860e82 --- /dev/null +++ b/srcpkgs/liblvm2app-devel @@ -0,0 +1 @@ +lvm2 \ No newline at end of file diff --git a/srcpkgs/lvm2/liblvm2app-devel.template b/srcpkgs/lvm2/liblvm2app-devel.template new file mode 100644 index 0000000000..44379088f8 --- /dev/null +++ b/srcpkgs/lvm2/liblvm2app-devel.template @@ -0,0 +1,18 @@ +# Template file for 'liblvm2app-devel' +# +short_desc="LVM2 application library - development files" +long_desc=" + This package contains files needed to develop applications that use the + lvm2app library." + +Add_dependency run device-mapper-devel +Add_dependency run liblvm2app + +do_install() +{ + mkdir -p ${DESTDIR}/usr/lib/pkgconfig ${DESTDIR}/usr/include + mv ${SRCPKGDESTDIR}/usr/include/lvm2app.h ${DESTDIR}/usr/include + mv ${SRCPKGDESTDIR}/usr/lib/liblvm2app.* ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig/lvm2app* \ + ${DESTDIR}/usr/lib/pkgconfig +} diff --git a/srcpkgs/lvm2/liblvm2app.template b/srcpkgs/lvm2/liblvm2app.template new file mode 100644 index 0000000000..0d6e62de35 --- /dev/null +++ b/srcpkgs/lvm2/liblvm2app.template @@ -0,0 +1,16 @@ +# Template file for 'liblvm2app' +# +short_desc="LVM2 application library" +long_desc=" + This package contains the lvm2app shared library. It allows easier access + to the basic LVM objects and provides functions to enumerate, create or + modify them." + +Add_dependency run glibc +Add_dependency run device-mapper + +do_install() +{ + mkdir -p ${DESTDIR}/lib + mv ${SRCPKGDESTDIR}/lib/liblvm2app.so.* ${DESTDIR}/lib +} diff --git a/srcpkgs/lvm2/template b/srcpkgs/lvm2/template index eeac42c318..739f8f13f5 100644 --- a/srcpkgs/lvm2/template +++ b/srcpkgs/lvm2/template @@ -5,11 +5,10 @@ wrksrc=LVM2.${version} distfiles="ftp://sources.redhat.com/pub/lvm2/LVM2.${version}.tgz" build_style=gnu_configure configure_args="--disable-selinux --enable-readline --enable-pkgconfig - --enable-fsadm" + --enable-fsadm --enable-applib" make_install_target="DESTDIR=$XBPS_DESTDIR/$pkgname-$version sbindir=$XBPS_DESTDIR/$pkgname-$version/sbin - libdir=$XBPS_DESTDIR/$pkgname-$version/lib - install_device-mapper install_lvm2" + libdir=$XBPS_DESTDIR/$pkgname-$version/lib install" short_desc="Logical Volume Manager 2 utilities" maintainer="Juan RP " checksum=8c304aaa5560b8232a3ef58eebc23860db74349fbeda440417e02cde01f93a9e @@ -22,7 +21,7 @@ long_desc=" (kind of logical partitions) in volume groups." keep_empty_dirs=yes -subpackages="device-mapper device-mapper-devel" +subpackages="liblvm2app liblvm2app-devel device-mapper device-mapper-devel" conf_files="/etc/lvm/lvm.conf" triggers="initramfs-tools" openrc_services="lvm2 shutdown" @@ -49,4 +48,6 @@ post_install() rm -f ${DESTDIR}/lib/*.so ${DESTDIR}/usr/lib/*.so cd ${DESTDIR}/usr/lib && \ ln -sf $(echo ../../lib/libdevmapper.so.*) libdevmapper.so + cd ${DESTDIR}/usr/lib && \ + ln -sf $(echo ../../lib/liblvm2app.so.*) liblvm2app.so } diff --git a/xbps-src/common/mapping_shlib_binpkg.txt b/xbps-src/common/mapping_shlib_binpkg.txt index 0e77e283fd..b2885b4987 100644 --- a/xbps-src/common/mapping_shlib_binpkg.txt +++ b/xbps-src/common/mapping_shlib_binpkg.txt @@ -590,3 +590,4 @@ libboost_wserialization.so.1.42 boost boost-devel libexempi.so exempi exempi-devel libatasmart.so libatasmart libatasmart-devel libsgutils2.so sg3_utils sg3_utils-devel +liblvm2app.so liblvm2app liblvm2app-devel