summaryrefslogtreecommitdiffstats
path: root/libdevmapper
diff options
context:
space:
mode:
authorLukc <lukc@upyum.com>2010-12-11 19:15:23 +0100
committerLukc <lukc@upyum.com>2010-12-11 19:15:35 +0100
commit6d908a38e05b9d4135c65d23114a5874215b5bb8 (patch)
treeb5e6da6d95b9a1235d82032b509b80483a886ff5 /libdevmapper
downloadbase-6d908a38e05b9d4135c65d23114a5874215b5bb8.tar.gz
base-6d908a38e05b9d4135c65d23114a5874215b5bb8.tar.bz2
base-6d908a38e05b9d4135c65d23114a5874215b5bb8.tar.xz
base-6d908a38e05b9d4135c65d23114a5874215b5bb8.zip
Engagement initial.
Diffstat (limited to 'libdevmapper')
-rw-r--r--libdevmapper/.footprint16
-rw-r--r--libdevmapper/.md5sum2
-rw-r--r--libdevmapper/Pkgfile18
-rw-r--r--libdevmapper/Pkgfile.old29
-rw-r--r--libdevmapper/lvm2-static_build.patch23
5 files changed, 88 insertions, 0 deletions
diff --git a/libdevmapper/.footprint b/libdevmapper/.footprint
new file mode 100644
index 0000000..2de326a
--- /dev/null
+++ b/libdevmapper/.footprint
@@ -0,0 +1,16 @@
+drwxr-xr-x root/root lib/
+-r-xr-xr-x root/root lib/libdevmapper.so.1.02
+drwxr-xr-x root/root sbin/
+-r-xr-xr-x root/root sbin/dmsetup
+-r-xr-xr-x root/root sbin/dmsetup.static
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/include/
+-r--r--r-- root/root usr/include/libdevmapper.h
+drwxr-xr-x root/root usr/lib/
+-r--r--r-- root/root usr/lib/libdevmapper.a
+lrwxrwxrwx root/root usr/lib/libdevmapper.so -> ../../lib/libdevmapper.so.1.02
+drwxr-xr-x root/root usr/lib/pkgconfig/
+-r--r--r-- root/root usr/lib/pkgconfig/devmapper.pc
+drwxr-xr-x root/root usr/man/
+drwxr-xr-x root/root usr/man/man8/
+-r--r--r-- root/root usr/man/man8/dmsetup.8.gz
diff --git a/libdevmapper/.md5sum b/libdevmapper/.md5sum
new file mode 100644
index 0000000..314c1ec
--- /dev/null
+++ b/libdevmapper/.md5sum
@@ -0,0 +1,2 @@
+f87b1470a4cdea49cb1f92060c144db5 LVM2.2.02.78.tgz
+fe77537669f1aa73c1c4bcfe13036961 lvm2-static_build.patch
diff --git a/libdevmapper/Pkgfile b/libdevmapper/Pkgfile
new file mode 100644
index 0000000..00f60a0
--- /dev/null
+++ b/libdevmapper/Pkgfile
@@ -0,0 +1,18 @@
+description="Device mapper userspace library"
+packager=""
+maintainer="CRUX System Team, core-ports at crux dot nu"
+url="http://sourceware.org/lvm2/"
+depends=()
+
+name=libdevmapper
+version=1.02.59
+release=1
+source=(ftp://sources.redhat.com/pub/lvm2/LVM2.2.02.78.tgz lvm2-static_build.patch)
+build ()
+{
+ cd LVM2.2.02.78;
+ patch -p1 -i $SRC/lvm2-static_build.patch;
+ ./configure --prefix=/usr --sbindir=/sbin --libdir=/lib --datarootdir=/usr --with-staticdir=/sbin --with-usrlibdir=/usr/lib --disable-readline --enable-pkgconfig --enable-static_link --with-{user,group}=root;
+ make device-mapper;
+ make DESTDIR=$PKG install_device-mapper
+}
diff --git a/libdevmapper/Pkgfile.old b/libdevmapper/Pkgfile.old
new file mode 100644
index 0000000..834bdd0
--- /dev/null
+++ b/libdevmapper/Pkgfile.old
@@ -0,0 +1,29 @@
+# Description: Device mapper userspace library
+# URL: http://sourceware.org/lvm2/
+# Maintainer: CRUX System Team, core-ports at crux dot nu
+
+name=libdevmapper
+version=1.02.59
+release=1
+source=(ftp://sources.redhat.com/pub/lvm2/LVM2.2.02.78.tgz
+ lvm2-static_build.patch)
+
+build() {
+ cd LVM2.2.02.78
+
+ patch -p1 -i $SRC/lvm2-static_build.patch
+
+ ./configure --prefix=/usr \
+ --sbindir=/sbin \
+ --libdir=/lib \
+ --datarootdir=/usr \
+ --with-staticdir=/sbin \
+ --with-usrlibdir=/usr/lib \
+ --disable-readline \
+ --enable-pkgconfig \
+ --enable-static_link \
+ --with-{user,group}=root
+
+ make device-mapper
+ make DESTDIR=$PKG install_device-mapper
+}
diff --git a/libdevmapper/lvm2-static_build.patch b/libdevmapper/lvm2-static_build.patch
new file mode 100644
index 0000000..c7ea788
--- /dev/null
+++ b/libdevmapper/lvm2-static_build.patch
@@ -0,0 +1,23 @@
+# https://bugzilla.redhat.com/show_bug.cgi?id=642999
+
+diff -Nru LVM2.2.02.72.orig/tools/Makefile.in LVM2.2.02.72/tools/Makefile.in
+--- LVM2.2.02.72.orig/tools/Makefile.in 2010-08-05 18:58:02.778823394 +0000
++++ LVM2.2.02.72/tools/Makefile.in 2010-08-05 18:58:18.808671810 +0000
+@@ -126,7 +126,7 @@
+ -o $@ dmsetup.o -ldevmapper $(LIBS)
+
+ dmsetup.static: dmsetup.o $(interfacebuilddir)/libdevmapper.a
+- $(CC) $(CFLAGS) $(LDFLAGS) -static -L$(interfacebuilddir) \
++ $(CC) $(CFLAGS) $(LDFLAGS) -Wl,--no-export-dynamic -static -L$(interfacebuilddir) \
+ -o $@ dmsetup.o -ldevmapper $(STATIC_LIBS) $(LIBS)
+
+ all: device-mapper
+@@ -136,7 +136,7 @@
+ $(LVMLIBS) $(READLINE_LIBS) $(LIBS) -rdynamic
+
+ lvm.static: $(OBJECTS) lvm-static.o $(top_builddir)/lib/liblvm-internal.a $(interfacebuilddir)/libdevmapper.a
+- $(CC) $(CFLAGS) $(LDFLAGS) -static -L$(interfacebuilddir) -o $@ \
++ $(CC) $(CFLAGS) $(LDFLAGS) -Wl,--no-export-dynamic -static -L$(interfacebuilddir) -o $@ \
+ $(OBJECTS) lvm-static.o $(LVMLIBS) $(STATIC_LIBS) $(LIBS)
+
+ liblvm2cmd.a: $(top_builddir)/lib/liblvm-internal.a $(OBJECTS) lvmcmdlib.o lvm2cmd.o