aboutsummaryrefslogtreecommitdiff
path: root/extra/kcgi/build
diff options
context:
space:
mode:
Diffstat (limited to 'extra/kcgi/build')
-rwxr-xr-xextra/kcgi/build12
1 files changed, 12 insertions, 0 deletions
diff --git a/extra/kcgi/build b/extra/kcgi/build
new file mode 100755
index 00000000..f6bc745b
--- /dev/null
+++ b/extra/kcgi/build
@@ -0,0 +1,12 @@
+#!/bin/sh -e
+
+# Modify Makefile to make it POSIX
+sed -i '/^\.for/,/^\.endfor/d' Makefile
+
+./configure \
+ PREFIX=/usr \
+ SBINDIR=/usr/bin \
+ MANDIR=/usr/share/man
+
+make
+make DESTDIR="$1" install