summaryrefslogtreecommitdiffstats
path: root/base/lvm2/Pkgfile
blob: 1122e709c94646998757ddb9f7a542f3fd5a64b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Description:	Outils pour la gestion des volumes logiques (lvm)
# URL: http://sourceware.org/lvm2/
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch

name=lvm2
version=2.02.61
release=2
source=(ftp://sources.redhat.com/pub/lvm2/LVM2.$version.tgz\
	lvmnodes)
build() {
	cd LVM2.$version

	./configure \
		--prefix=/usr \
		--exec-prefix= \
		--enable-static-link \
		--mandir=/usr/share/man \
		--enable-lvm1_fallback \
		--disable-readline

	make
	make DESTDIR=$PKG install
	install -d -m 0700 $PKG/etc/rc.d/{init.d,rcsysinit.d}
	cp ../lvmnodes $PKG/etc/rc.d/init.d/
	ln -s ../init.d/lvmnodes $PKG/etc/rc.d/rcsysinit.d/S19lvmnodes
	install -d -m 0700 $PKG/etc/lvm/{archive,backup}
	install -d -m 1777 $PKG/var/lock
	install -d -m 0700 $PKG/var/lock/lvm
	# devel in device-mapper
	rm -r $PKG/{lib,usr/include}
	rm $PKG/sbin/{lvm,dmsetup}
	ln -s lvm.static $PKG/sbin/lvm
	ln -s dmsetup.static $PKG/sbin/dmsetup
}