summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile27
-rw-r--r--README.md8
2 files changed, 30 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 95ac936..6e90c86 100644
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,10 @@ help:
@test ! -d /etc/init && echo "we recommend make init.d (we did not find /etc/init)" || true
mtu1280d: mtu1280d.c
- gcc -o mtu1280d mtu1280d.c -lnetfilter_queue
+ gcc -o mtu1280d mtu1280d.c -lnetfilter_queue || ( echo "see README.md for prerequisites" && exit 1 )
+
+clean:
+ rm -f mtu1280d
install: mtu1280d
/usr/bin/install -c mtu1280d /usr/sbin/
@@ -27,3 +30,25 @@ remove:
rm -fr /usr/sbin/mtu1280d /etc/init/mtu1280d /etc/init.d/mtu1280d
update-rc.d mtu1280d remove
+
+
+
+
+
+
+
+################################################################
+# Used by Jason for releases via rsync #
+################################################################
+
+dist-prep::
+ rm -fr work
+ mkdir -p work
+ rsync -av . work --exclude work --exclude "*~" --exclude /mtu1280d --exclude ".git"
+
+dist-test: dist-prep
+ ../dist_support/make-dist.pl --stage work --base mtu1280d --branch test
+
+dist-stable: dist-prep
+ ../dist_support/make-dist.pl --stage work --base mtu1280d --branch stable
+
diff --git a/README.md b/README.md
index 214e03d..3791b51 100644
--- a/README.md
+++ b/README.md
@@ -28,12 +28,12 @@ guest% sudo ip6tables-save | grep NFQ
REQUIREMENTS
------------
-RedHat:
- * Please send me confirmed required packages. -- jfesler@gigo.com
- * libnetfilter queue "developer" package
+RedHat/Centos/Fedora:
+ * libnetfilter_queue-devel
+ * gcc, make
* ip6tables - and a way to automatically load ip6tables on startup
-Ubuntu:
+Ubuntu/Debian:
* build-essential
* libnetfilter-queue-dev
* ip6tables - and a way to automatically load ip6tables on startup