fix miniupnpd.. please be careful merging in changes...
authorTim Yardley <lst@openwrt.org>
Wed, 7 Feb 2007 04:57:08 +0000 (04:57 +0000)
committerTim Yardley <lst@openwrt.org>
Wed, 7 Feb 2007 04:57:08 +0000 (04:57 +0000)
SVN-Revision: 6274

net/miniupnpd/Makefile
net/miniupnpd/patches/001-makefile-tweaks.patch [new file with mode: 0644]

index 8916e71..644a1df 100644 (file)
@@ -31,7 +31,8 @@ define Package/miniupnpd
 endef
 
 define Build/Compile
-       $(MAKE) -C $(PKG_BUILD_DIR) -f Makefile.linux \
+       ln -sf $(PKG_BUILD_DIR)/config.h.openwrt $(PKG_BUILD_DIR)/config.h
+       $(MAKE) -C $(PKG_BUILD_DIR) -f Makefile.openwrt \
                $(TARGET_CONFIGURE_OPTS) \
                CFLAGS="$(TARGET_CFLAGS) -I $(STAGING_DIR)/usr/include" \
                LIBS="$(STAGING_DIR)/usr/lib/libiptc.a"
diff --git a/net/miniupnpd/patches/001-makefile-tweaks.patch b/net/miniupnpd/patches/001-makefile-tweaks.patch
new file mode 100644 (file)
index 0000000..39f3aca
--- /dev/null
@@ -0,0 +1,35 @@
+--- miniupnpd-1.0-RC3/Makefile.openwrt.orig    2007-02-06 22:50:56.000000000 -0600
++++ miniupnpd-1.0-RC3/Makefile.openwrt 2007-02-06 22:51:00.000000000 -0600
+@@ -11,17 +11,15 @@
+ CFLAGS += -D_GNU_SOURCE
+ RM = rm -f
+ INSTALL = install
+-IPTABLESINC=$(BUILD_DIR)/iptables-1.3.3/include
++IPTABLESINC=$(STAGING_DIR)/usr/include
+ BASEOBJS = miniupnpd.o upnphttp.o upnpdescgen.o upnpsoap.o \
+            upnpreplyparse.o minixml.o \
+                  upnpredirect.o getifaddr.o daemonize.o upnpglobalvars.o \
+-                 options.o
++                 options.o upnppermissions.o
+ LNXOBJS = linux/getifstats.o linux/iptcrdr.o
+-LIBS = $(BUILD_DIR)/iptables-1.3.3/libiptc/libiptc.a
+-
+ TESTUPNPDESCGENOBJS = testupnpdescgen.o upnpdescgen.o
+ EXECUTABLES = miniupnpd testupnpdescgen
+@@ -38,6 +36,7 @@
+       @echo no install for now...
+ miniupnpd:    $(BASEOBJS) $(LNXOBJS) $(LIBS)
++      $(CC) $(CFLAGS) -o $@ $(BASEOBJS) $(LNXOBJS) $(LIBS)
+ testupnpdescgen:      $(TESTUPNPDESCGENOBJS)
+@@ -69,3 +68,4 @@
+ linux/iptcrdr.o: linux/iptcrdr.h
+ testupnpdescgen.o: upnpdescgen.h
+ upnpdescgen.o: upnpdescgen.h miniupnpdpath.h upnpglobalvars.h
++upnppermissions.o: upnppermissions.c