--- Makefile.orig	Fri Mar  3 17:25:33 2000
+++ Makefile	Sat Nov 13 15:52:58 2004
@@ -9,28 +9,32 @@
     mod_allowdev         \
     mod_auth_cookie      \
     mod_auth_cookie_file \
-    mod_auth_external    \
     mod_auth_inst        \
     mod_auth_system      \
     mod_eaccess          \
-    mod_bandwidth        \
     mod_cgisock          \
     mod_cache            \
     mod_urlcount         \
     mod_disallow_id      \
-    mod_layout           \
     mod_lock             \
     mod_peephole         \
-    mod_put              \
     mod_qs2ssi           \
     mod_session          \
+    mod_random           \
+    mod_ip_forwarding
+
+.if defined(NO_PORTS)
+SUBDIRS+= \
+    mod_auth_external    \
+    mod_bandwidth        \
+    mod_layout           \
+    mod_put              \
     mod_ticket           \
     mod_fastcgi          \
     mod_cvs              \
-    mod_random           \
-    mod_roaming          \
-    mod_ip_forwarding    \
-    mod_macro
+    mod_macro            \
+    mod_roaming
+.endif
 
 EXTRA_SUBDIRS= \
     mod_monitor          \
