-Now using a single file for all custom definitions and functions for each package.
[hvlinux.git] / stage1 / pkg / e2fsprogs
diff --git a/stage1/pkg/e2fsprogs b/stage1/pkg/e2fsprogs
new file mode 100644 (file)
index 0000000..159f339
--- /dev/null
@@ -0,0 +1,34 @@
+#!/bin/bash
+
+hvconfigure()
+{
+    cd ${LFS_TMP}/${PACKAGE}-build
+
+    CC="${CC} ${CLFS_BUILDFLAGS}" PKG_CONFIG=true \
+        ../${PACKAGE}/configure \
+        --prefix=/tools \
+        --enable-elf-shlibs \
+        --with-linker=${LD} \
+        --host=${CLFS_TARGET} \
+        --disable-libblkid \
+        --disable-libuuid \
+        --disable-fsck \
+        --disable-uuidd
+}
+
+hvbuild()
+{
+    ${HVMAKE} LIBUUID="-luuid" STATIC_LIBUUID="-luuid" \
+        LIBBLKID="-lblkid" STATIC_LIBBLKID="-lblkid"
+    ${HVMAKE} install
+
+    # Install the static libraries and headers:
+    ${HVMAKE} install-libs
+
+    # Create needed symlinks for a bootable system:
+    LINKS="fsck.ext2 fsck.ext3 fsck.ext4 e2fsck"
+
+    for link in ${LINKS}; do
+        ln -svfT /tools/sbin/${link} ${LFS}/sbin/${link}
+    done
+}