lvm2: build lvm and dmsetup as static, use them for the initramfs.

Bump revision for both packages.

--HG--
extra : convert_revision : 2f321102058adab653a9f224dca256009143af06
This commit is contained in:
Juan RP 2009-10-18 07:55:30 +02:00
parent 88eab0622d
commit 2ca66d70b5
3 changed files with 6 additions and 5 deletions

View file

@ -4,6 +4,7 @@ long_desc="
This package contains the supporting userspace utility, dmsetup, This package contains the supporting userspace utility, dmsetup,
for the kernel device-mapper and its required library, libdevmapper." for the kernel device-mapper and its required library, libdevmapper."
revision=1
Add_dependency run glibc Add_dependency run glibc
Add_dependency run readline Add_dependency run readline

View file

@ -14,7 +14,7 @@ prereqs)
;; ;;
esac esac
if [ ! -x /sbin/lvm ]; then if [ ! -x /sbin/lvm.static -o ! -x /sbin/dmsetup.static ]; then
exit 0 exit 0
fi fi
@ -25,8 +25,8 @@ if [ -e /etc/lvm/lvm.conf ]; then
cp /etc/lvm/lvm.conf ${DESTDIR}/etc/lvm/ cp /etc/lvm/lvm.conf ${DESTDIR}/etc/lvm/
fi fi
copy_exec /sbin/dmsetup copy_exec /sbin/dmsetup.static /sbin/dmsetup
copy_exec /sbin/lvm copy_exec /sbin/lvm.static /sbin/lvm
for x in dm_mod dm_snapshot dm_mirror; do for x in dm_mod dm_snapshot dm_mirror; do
manual_add_modules ${x} manual_add_modules ${x}

View file

@ -1,12 +1,12 @@
# Template file for 'lvm2' # Template file for 'lvm2'
pkgname=lvm2 pkgname=lvm2
version=2.02.53 version=2.02.53
revision=2 revision=3
wrksrc=LVM2.${version} wrksrc=LVM2.${version}
distfiles="ftp://sources.redhat.com/pub/lvm2/LVM2.${version}.tgz" distfiles="ftp://sources.redhat.com/pub/lvm2/LVM2.${version}.tgz"
build_style=gnu_configure build_style=gnu_configure
configure_args="--disable-selinux --enable-readline --enable-pkgconfig configure_args="--disable-selinux --enable-readline --enable-pkgconfig
--enable-pkgconfig --enable-fsadm" --enable-pkgconfig --enable-fsadm --enable-static_link --with-staticdir=/sbin"
make_install_target="DESTDIR=$XBPS_DESTDIR/$pkgname-$version make_install_target="DESTDIR=$XBPS_DESTDIR/$pkgname-$version
sbindir=$XBPS_DESTDIR/$pkgname-$version/sbin sbindir=$XBPS_DESTDIR/$pkgname-$version/sbin
libdir=$XBPS_DESTDIR/$pkgname-$version/lib libdir=$XBPS_DESTDIR/$pkgname-$version/lib