Add Wicd
[hvlinux.git] / stage5 / pkg / wicd
diff --git a/stage5/pkg/wicd b/stage5/pkg/wicd
new file mode 100644 (file)
index 0000000..e261990
--- /dev/null
@@ -0,0 +1,27 @@
+#!/bin/bash
+
+hvconfig()
+{
+    cd ${SRC_DIR}
+
+    # The first command in this sed prevents installation of logrotate and
+    # systemd configuration files.
+    # The second command in this sed fixes buildng with BLFS “distro”.
+    sed -e "/wpath.logrotate\|wpath.systemd/d" \
+        -e "/detection failed/ a\                self.init=\'init\/default\/wicd\'" \
+        -i setup.py
+
+    rm po/*.po
+
+    python setup.py configure \
+        --no-install-kde     \
+        --no-install-acpi    \
+        --no-install-pmutils \
+        --no-install-init    \
+        --no-install-gnome-shell-extensions
+}
+
+hvbuild()
+{
+    LANG=C python setup.py install
+}