shorewall-lite: fix compile on non-GNU systems
authorFelix Fietkau <nbd@openwrt.org>
Fri, 11 Dec 2009 02:09:21 +0000 (02:09 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 11 Dec 2009 02:09:21 +0000 (02:09 +0000)
SVN-Revision: 18738

net/shorewall-lite/patches/120-portability.patch [new file with mode: 0644]

diff --git a/net/shorewall-lite/patches/120-portability.patch b/net/shorewall-lite/patches/120-portability.patch
new file mode 100644 (file)
index 0000000..dac3cd1
--- /dev/null
@@ -0,0 +1,20 @@
+--- a/install.sh
++++ b/install.sh
+@@ -337,13 +337,15 @@ cd manpages
+ for f in *.5; do
+     gzip -c $f > $f.gz
+-    run_install -D -m 644 $f.gz ${PREFIX}/usr/share/man/man5/$f.gz
++    run_install -d ${PREFIX}/usr/share/man/man5
++    run_install -m 644 $f.gz ${PREFIX}/usr/share/man/man5/$f.gz
+     echo "Man page $f.gz installed to ${PREFIX}/usr/share/man/man5/$f.gz"
+ done
+ for f in *.8; do
+     gzip -c $f > $f.gz
+-    run_install -D -m 644 $f.gz ${PREFIX}/usr/share/man/man8/$f.gz
++    run_install -d ${PREFIX}/usr/share/man/man8
++    run_install -m 644 $f.gz ${PREFIX}/usr/share/man/man8/$f.gz
+     echo "Man page $f.gz installed to ${PREFIX}/usr/share/man/man8/$f.gz"
+ done