diff --git a/srcpkgs/lvm2/device-mapper-devel.template b/srcpkgs/lvm2/device-mapper-devel.template index 5a38c35846..69729343d7 100644 --- a/srcpkgs/lvm2/device-mapper-devel.template +++ b/srcpkgs/lvm2/device-mapper-devel.template @@ -5,6 +5,8 @@ long_desc=" This package contains the development files for the kernel device-mapper library, libdevmapper." +revision=1 + Add_dependency run glibc-devel Add_dependency run readline-devel Add_dependency run ncurses-devel @@ -13,7 +15,7 @@ Add_dependency run device-mapper do_install() { mkdir -p ${DESTDIR}/usr/lib - mv ${SRCPKGDESTDIR}/lib/lib* ${DESTDIR}/usr/lib + mv ${SRCPKGDESTDIR}/usr/lib/*.so ${DESTDIR}/usr/lib mv ${SRCPKGDESTDIR}/usr/include ${DESTDIR}/usr mv ${SRCPKGDESTDIR}/usr/lib/pkgconfig ${DESTDIR}/usr/lib } diff --git a/srcpkgs/lvm2/template b/srcpkgs/lvm2/template index ac1ad8ba9b..980f9f53bd 100644 --- a/srcpkgs/lvm2/template +++ b/srcpkgs/lvm2/template @@ -46,4 +46,7 @@ post_install() install -m755 ${FILESDIR}/lvm2.initramfs-local-top \ ${initramfsdir}/scripts/local-top/lvm2 install -m755 ${FILESDIR}/lvm2.rc ${DESTDIR}/etc/init.d/lvm2 + rm -f ${DESTDIR}/lib/*.so ${DESTDIR}/usr/lib/*.so + cd ${DESTDIR}/usr/lib && \ + ln -sf $(echo ../../lib/libdevmapper.so.*) libdevmapper.so }