Replace getdate by ntpd
[hvlinux.git] / stage3 / pkg / libcap
diff --git a/stage3/pkg/libcap b/stage3/pkg/libcap
new file mode 100644 (file)
index 0000000..7b7b42b
--- /dev/null
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+hvbuild()
+{
+    ${HVMAKE}
+
+    # RAISE_SETFCAP=no:
+    #   This parameter skips trying to use setcap on itself. This avoids an
+    #   installation error if the kernel or file system do not support extended
+    #   capabilities.
+    ${HVMAKE} prefix=/usr \
+              SBINDIR=/sbin \
+              PAM_LIBDIR=/lib \
+              RAISE_SETFCAP=no install
+
+    chmod -v 755 /usr/lib/libcap.so
+    mv -v /usr/lib/libcap.so.* /lib
+    ln -sfv ../../lib/libcap.so.2 /usr/lib/libcap.so
+}