vp-build/srcpkgs/lvm2/template
Juan RP 85cc462e1d Major infrastructure changes, part 2.
* Moved helpers, common and triggers dirs into xbps-src, where
  they belong.
* Renamed the templates dir to srcpkgs, it was so redundant before.
* Make it possible to add subpkgs with no restriction in names, for
  example udev now has a subpkgs called "libgudev". Previously
  subpkgs were named "${sourcepkg}-${pkgname}".
* xbps-src: changed to look for template files in current directory.
  That means that most arguments from the targets have been removed.
* xbps-src: added a reinstall target, to remove + install.
* xbps-src: do not overwrite binpkgs by default, skip them.

And more that I forgot because it's a mega-commit that I've been
working for some days already...

--HG--
extra : convert_revision : 0f466878584d1e6895d2a234f07ea1b2d1e61b3e
2009-11-22 08:31:44 +01:00

48 lines
1.8 KiB
Plaintext

# Template file for 'lvm2'
pkgname=lvm2
version=2.02.54
revision=1
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-static_link --with-staticdir=/sbin"
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"
short_desc="Logical Volume Manager 2 utilities"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=c5ff6df631349dc262df42345bf3358006c14c0afe910f0d582a533e529357c8
long_desc="
LVM2 includes all of the support for handling read/write operations on
physical volumes (hard disks, RAID-Systems, magneto optical, etc.,
multiple devices (MD), see mdadd(8) or even loop devices, see
losetup(8)), creating volume groups (kind of virtual disks) from one
or more physical volumes and creating one or more logical volumes
(kind of logical partitions) in volume groups."
keep_empty_dirs=yes
subpackages="device-mapper"
conf_files="/etc/lvm/lvm.conf"
triggers="initramfs-tools"
openrc_services="lvm2 shutdown"
Add_dependency full glibc
Add_dependency full bash
Add_dependency full readline
Add_dependency run device-mapper ">=${version}"
post_install()
{
local initramfsdir=${DESTDIR}/usr/share/initramfs-tools
install -d ${DESTDIR}/etc/lvm/archive ${DESTDIR}/etc/lvm/backup \
${DESTDIR}/etc/init.d ${initramfsdir}/scripts/local-top \
${initramfsdir}/hooks
install -m755 ${FILESDIR}/lvm2.initramfs-hook ${initramfsdir}/hooks/lvm2
install -m755 ${FILESDIR}/lvm2.initramfs-local-top \
${initramfsdir}/scripts/local-top/lvm2
install -m755 ${FILESDIR}/lvm2.rc ${DESTDIR}/etc/init.d/lvm2
}