DGND3700 V1 Transmission Firmware Patches

From richud.com
Jump to navigation Jump to search

Contents

Patches

(Old) Build files from DGND3700_10121522_A_D.chk 12/Oct/2013


Automatic.Makefile.in.patch

--- DGND3700/userspace/ap/gpl/Automatic-0.8.3/Makefile.in.orig	2013-09-01 08:52:06.131428722 +0100
+++ DGND3700/userspace/ap/gpl/Automatic-0.8.3/Makefile.in	2013-09-01 08:53:34.119948938 +0100
@@ -628,7 +628,10 @@
 all-am: Makefile
 installdirs: installdirs-recursive
 installdirs-am:
-install: install-recursive
+install:
+	echo "Copying Automatic"
+	$(STRIP) src/automatic
+	cp -a src/automatic $(TARGETDIR)/bin/
 install-exec: install-exec-recursive
 install-data: install-data-recursive
 uninstall: uninstall-recursive

Automatic.Makefile.patch

--- DGND3700/userspace/ap/gpl/Automatic-0.8.3/Makefile.orig	1970-01-01 01:00:00.000000000 +0100
+++ DGND3700/userspace/ap/gpl/Automatic-0.8.3/Makefile	2013-02-27 13:28:49.890794992 +0000
@@ -0,0 +1,10 @@
+all:
+	ac_cv_func_malloc_0_nonnull=yes ac_cv_func_realloc_0_nonnull=yes ./configure --host=mips-linux \
+	LIBCURL_LIBS="-L$(BUILD_DIR)/userspace/ap/gpl/curl-7.29.0/lib/.libs -lcurl" \
+	LIBCURL_CFLAGS="-I$(BUILD_DIR)/userspace/ap/gpl/curl-7.29.0/include" \
+	LIBXML_LIBS="-L$(BUILD_DIR)/userspace/ap/gpl/libxml2-2.9.1/.libs -lxml2" \
+	LIBXML_CFLAGS="-I$(BUILD_DIR)/userspace/ap/gpl/libxml2-2.9.1/include" \
+	PCRE_LIBS="-L$(BUILD_DIR)/userspace/ap/gpl/pcre-8.33/.libs -lpcre" \
+	PCRE_CFLAGS="-I$(BUILD_DIR)/userspace/ap/gpl/pcre-8.33" \
+	LDFLAGS="-L${BUILD_DIR}/userspace/public/libs/openssl -lssl -lcrypto -L${BUILD_DIR}/userspace/ap/gpl/mdlna/zlib-1.2.7 -lz"
+	make -j4

busybox_mdev.c.patch

--- DGND3700/userspace/gpl/apps/busybox-1.21.1/util-linux/mdev.c.orig	2013-10-05 19:44:20.061246843 +0100
+++ DGND3700/userspace/gpl/apps/busybox-1.21.1/util-linux/mdev.c	2013-10-05 19:46:21.545244350 +0100
@@ -964,7 +964,7 @@
 {
 	/* We time out after 2 sec */
 	static const struct timespec ts = { 0, 32*1000*1000 };
-	int timeout = 2000 / 32;
+	int timeout = 10000 / 32;
 	int seq_fd = -1;
 	int do_once = 1;
 	sigset_t set_CHLD;

curl_Makefile.in.patch

--- DGND3700/userspace/ap/gpl/curl-7.29.0/Makefile.in.orig	2013-02-06 10:14:03.000000000 +0000
+++ DGND3700/userspace/ap/gpl/curl-7.29.0/Makefile.in	2013-02-13 18:54:37.064856529 +0000
@@ -839,7 +839,10 @@
 	for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(pkgconfigdir)"; do \
 	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
 	done
-install: install-recursive
+install:
+	echo "Copying libcUrl library"
+	$(STRIP) lib/.libs/libcurl.so*
+	cp -a lib/.libs/libcurl.so* $(TARGETDIR)/lib/
 install-exec: install-exec-recursive
 install-data: install-data-recursive
 uninstall: uninstall-recursive

curl_Makefile.patch

--- DGND3700/userspace/ap/gpl/curl-7.29.0/Makefile.orig	2013-02-06 10:14:10.000000000 +0000
+++ DGND3700/userspace/ap/gpl/curl-7.29.0/Makefile	2013-02-13 14:33:26.879034573 +0000
@@ -23,8 +23,8 @@
 VC=vc6
 
 all:
-	./configure
-	make
+	CPPFLAGS="-D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" CFLAGS="-O2 -march=mips32 -fomit-frame-pointer -fno-strict-aliasing -mabi=32 -G 0 -msoft-float -pipe -Wa,-mips32" ./configure --host=mips-linux --disable-pop3 --disable-gopher --disable-imap --disable-rtsp --disable-smtp --disable-tftp --disable-telnet --disable-rtsp --disable-file --disable-dict --disable-ftp --with-zlib="$(BUILD_DIR)/userspace/ap/gpl/mdlna/zlib-1.2.7" --with-ssl=$(BUILD_DIR)/userspace/public/libs/openssl LDFLAGS="-L$(BUILD_DIR)/userspace/public/libs/openssl -L$(BUILD_DIR)/userspace/ap/gpl/mdlna/zlib-1.2.7" LIBS="-lcrypto -lssl" CPPFLAGS="-I$(BUILD_DIR)/userspace/public/libs/openssl/include -I$(BUILD_DIR)/userspace/ap/gpl/mdlna/zlib-1.2.7"
+	make -j4
 
 ssl:
	./configure --with-ssl

dropbear.Makefile.in.patch

--- DGND3700/userspace/ap/gpl/dropbear-2013.56/Makefile.in.orig	2013-02-27 13:25:34.286790683 +0000
+++ DGND3700/userspace/ap/gpl/dropbear-2013.56/Makefile.in	2013-02-27 13:31:17.978798255 +0000
@@ -118,7 +118,10 @@
 strip: $(TARGETS)
 	$(STRIP) $(addsuffix $(EXEEXT), $(TARGETS))
 
-install: $(addprefix inst_, $(TARGETS))
+install:
+	echo "Copying dropbear binary"
+	$(STRIP) dropbear
+	cp -a dropbear $(TARGETDIR)/sbin
 
 installdropbearmulti: insdbmulti $(addprefix insmulti, $(PROGRAMS))

dropbear.Makefile.patch

--- DGND3700/userspace/ap/gpl/dropbear-2013.56/Makefile.orig	1970-01-01 01:00:00.000000000 +0100
+++ DGND3700/userspace/ap/gpl/dropbear-2013.56/Makefile	2013-02-27 13:28:49.890794992 +0000
@@ -0,0 +1,3 @@
+all:
+	./configure --host=mips-linux --disable-lastlog --disable-wtmp --disable-openpty --with-zlib="$(BUILD_DIR)/userspace/ap/gpl/mdlna/zlib-1.2.7" LDFLAGS="-L$(BUILD_DIR)/userspace/ap/gpl/mdlna/zlib-1.2.7" CPPFLAGS="-I$(BUILD_DIR)/userspace/ap/gpl/mdlna/zlib-1.2.7"
+	make -j4

fs.etc_services.patch

--- DGND3700/targets/fs.src/etc/services.orig	2011-10-20 11:13:25.000000000 +0100
+++ DGND3700/targets/fs.src/etc/services	2013-03-07 18:29:19.014037451 +0000
@@ -115,6 +115,8 @@
 radius		1812/udp			# Radius
 radacct		1813/tcp			# Radius Accounting
 radacct		1813/udp			# Radius Accounting
+nfs		2049/tcp			# Network File System
+nfs		2049/udp			# Network File System
 cvspserver	2401/tcp			# CVS client/server operations
 cvspserver	2401/udp			# CVS client/server operations
 venus		2430/tcp			# codacon port

fs.install_www_MNU_menu.htm.patch

--- DGND3700/targets/DGND3700/fs.install/www/MNU_menu.htm.orig	2011-10-31 01:25:50.000000000 +0000
+++ DGND3700/targets/DGND3700/fs.install/www/MNU_menu.htm	2013-03-16 14:42:42.133867938 +0000
@@ -75,18 +75,22 @@
   </TR> 
 <%582%>
 <%568%>
-<TR><TD colSpan=2><BIG><%583%></BIG></TD></TR>
+<TR><TD colSpan=2><BIG>System</BIG></TD></TR>
 <TR>
     <TD vAlign=top><IMG height=7 alt="" src="redbull.gif" width=7 align=top vspace=6></TD>
-<TD><A href="USB_basic_main.htm" target=formframe><%83%></A></TD>
+<TD><A href="services.htm" target=formframe>Sharing Services</A></TD>
 </TR>
 <TR>
     <TD vAlign=top><IMG height=7 alt="" src="redbull.gif" width=7 align=top vspace=6></TD>
-<TD><A href="USB_adv_main.htm" target=formframe><%584%></A></TD>
+<TD><A href="dynamicdns.htm" target=formframe>DynamicDNS</A></TD>
 </TR>
 <TR>
-    <TD vAlign=top><IMG height=7 alt="" src="redbull.gif" width=7 align=top vspace=6></TD>
-<TD><A href="DLNA_dlna.htm" target=formframe><%585%></A></TD>
+     <TD vAlign=top><IMG height=7 alt="" src="redbull.gif" width=7 align=top vspace=6></TD>
+<TD><A href="adsl.htm" target=formframe>ADSL Advanced</A></TD>
+ </TR>
+ <TR>
+     <TD vAlign=top><IMG height=7 alt="" src="redbull.gif" width=7 align=top vspace=6></TD>
+<TD><A href="torrent.htm" target=formframe>Torrent Settings</A></TD>
 </TR>
 <%569%>
   <TR><TD colSpan=2><BIG><%586%></BIG></TD></TR>
@@ -179,6 +179,10 @@
 
   <TR>
     <TD vAlign=top><IMG height=7 alt="" src="redbull.gif" width=7 align=top vspace=6></TD>
+    <TD><A href="WiFi_HiddenPage.htm" target=formframe>Wireless Advanced</A></TD></TR>
+
+  <TR>
+    <TD vAlign=top><IMG height=7 alt="" src="redbull.gif" width=7 align=top vspace=6></TD>
     <TD><A href="WLG_adv.htm" target=formframe><%581%></A></TD></TR>
 
   <TR>
@@ -256,10 +260,6 @@
 <%573%>
 </TR>  
 
-<TR>
-    <TD vAlign=top><IMG height=7 alt="" src="redbull.gif" width=7 align=top vspace=6></TD>
-    <TD><A href="USB_settings.htm" target=formframe><%599%></A></TD>
-</TR>
   <TR>
     <TD colSpan=2><BIG><%600%></BIG></TD></TR>
   <TR>

fs.src_etc_filesystem.patch

--- DGND3700/targets/fs.src/etc/filesystems.orig	2013-04-01 17:52:17.252260789 +0100
+++ DGND3700/targets/fs.src/etc/filesystems	2013-04-01 17:52:55.544439046 +0100
@@ -1 +1,2 @@
+ntfs-3g
 vfat

fs.src_etc_inittab.patch

--- DGND3700/targets/fs.src/etc/inittab.orig	2013-02-25 21:50:41.522049130 +0000
+++ DGND3700/targets/fs.src/etc/inittab	2013-02-25 21:51:31.050508442 +0000
@@ -1,5 +1,5 @@
 ::sysinit:/etc/init.d/rcS
-::respawn:-/bin/sh
-tty2::askfirst:-/bin/sh
-::ctrlaltdel:/bin/umount -a -r
+::shutdown:/etc/init.d/shutdown.sh
+ttyS0::askfirst:-/bin/sh
+::reboot:/etc/init.d/shutdown.sh

fs.src_etc_profile_dgnd3700.patch

--- DGND3700/targets/fs.src/etc/profile_dgnd3700.orig	2011-10-31 02:01:47.000000000 +0000
+++ DGND3700/targets/fs.src/etc/profile_dgnd3700	2013-03-29 10:54:35.123067247 +0000
@@ -1,80 +1,6 @@
 # /etc/profile: system-wide .profile file for the Bourne shells
 
-# 
-#export PATH=/home/bin:/home/scripts:/opt/bin:/opt/scripts:/bin:/sbin:/usr/bin
-PATH=/bin:/sbin:/usr/bin:/usr/sbin
-export PATH
-# 
+export PATH=/bin:/sbin:/usr/bin:/usr/sbin
+
 export LD_LIBRARY_PATH=/lib/public:/lib/private:/lib/gpl:/lib
 KERNELVER=2.6.21.5
-
-# TMOUT=0 means no busybox shell timeout.
-# if you want the busybox shell to timeout after some number of seconds of inactivity,
-# change the 0 to the number of seconds, e.g. 300.
-export TMOUT=0
-
-echo
-firsttime=`echo /var/udhcpd/udhcpd.lease*`
-if [ "$firsttime" = "/var/udhcpd/udhcpd.lease*" ]; then
- echo "Loading drivers and kernel modules... "
- echo
-# no-op
-# create directory in /var mounted for TMPFS
- mkdir -p /var/log /var/run /var/state/dhcp /var/ppp /var/udhcpd /var/zebra /var/siproxd /var/cache
- mknod /var/fuse c 10 229
- chmod a+rw /var/fuse
- mkdir -p /var/log /var/run /var/state/dhcp /var/ppp /var/udhcpd /var/zebra /var/siproxd /var/cache /var/tmp /var/samba /var/samba/share /var/samba/homes /var/samba/private /var/samba/locks
- cp  /etc/smb.conf /var/samba/ 2>/dev/null
-
- echo > /var/udhcpd/udhcpd.leases
- ifconfig lo 127.0.0.1 netmask 255.0.0.0 broadcast 127.255.255.255 up
-# /etc/modules_install /lib/modules/$KERNELVER/extra
- test -e /lib/modules/$KERNELVER/extra/bcm_log.ko && insmod /lib/modules/$KERNELVER/extra/bcm_log.ko
- test -e /lib/modules/$KERNELVER/extra/pktflow.ko && insmod /lib/modules/$KERNELVER/extra/pktflow.ko
- test -e /lib/modules/$KERNELVER/extra/pktcmf.ko && insmod /lib/modules/$KERNELVER/extra/pktcmf.ko
- test -e /lib/modules/$KERNELVER/extra/bcmfap.ko && insmod /lib/modules/$KERNELVER/extra/bcmfap.ko
- test -e /etc/cmf/cmfcfg && /etc/cmf/cmfcfg
- test -e /lib/modules/$KERNELVER/extra/profdrvdd.ko && insmod /lib/modules/$KERNELVER/extra/profdrvdd.ko
- test -e /lib/modules/$KERNELVER/extra/bcmxtmcfg.ko && insmod /lib/modules/$KERNELVER/extra/bcmxtmcfg.ko
- test -e /lib/modules/$KERNELVER/extra/atmapi.ko && insmod /lib/modules/$KERNELVER/extra/atmapi.ko
- test -e /lib/modules/$KERNELVER/extra/adsldd.ko && insmod /lib/modules/$KERNELVER/extra/adsldd.ko
- test -e /lib/modules/$KERNELVER/extra/blaa_dd.ko && insmod /lib/modules/$KERNELVER/extra/blaa_dd.ko
- test -e /lib/modules/$KERNELVER/extra/bcmprocfs.ko && insmod /lib/modules/$KERNELVER/extra/bcmprocfs.ko
-# test -e /lib/modules/$KERNELVER/kernel/net/ipv6/ipv6.ko && insmod /lib/modules/$KERNELVER/kernel/net/ipv6/ipv6.ko
- test -e /lib/modules/$KERNELVER/kernel/net/atm/br2684.ko && insmod /lib/modules/$KERNELVER/kernel/net/atm/br2684.ko
- test -e /lib/modules/$KERNELVER/extra/linux-kernel-bde.ko && insmod /lib/modules/$KERNELVER/extra/linux-kernel-bde.ko
- test -e /lib/modules/$KERNELVER/extra/linux-user-bde.ko && insmod /lib/modules/$KERNELVER/extra/linux-user-bde.ko
- test -e /lib/modules/$KERNELVER/extra/bcm_enet.ko && insmod /lib/modules/$KERNELVER/extra/bcm_enet.ko
- test -e /lib/modules/$KERNELVER/extra/bcmsw.ko && insmod /lib/modules/$KERNELVER/extra/bcmsw.ko && ifconfig bcmsw up
- test -e /lib/modules/$KERNELVER/extra/bcm_usb.ko && insmod /lib/modules/$KERNELVER/extra/bcm_usb.ko
-
-#WLAN Module
- test -e /lib/modules/$KERNELVER/extra/wl.ko && insmod /lib/modules/$KERNELVER/extra/wl.ko
- test -e /lib/modules/$KERNELVER/extra/multissidcontrol.ko && insmod /lib/modules/$KERNELVER/extra/multissidcontrol.ko
- test -e /etc/wlan/rtecdc.trx && mount -t usbfs none /proc/bus/usb && /bin/bcmdl /etc/wlan/rtecdc.trx && sleep 2 && insmod /lib/modules/$KERNELVER/extra/wl-usb.ko
- 
- test -e /lib/modules/$KERNELVER/extra/dspdd.ko && insmod /lib/modules/$KERNELVER/extra/dspdd.ko
- test -e /lib/modules/$KERNELVER/extra/endpointdd.ko && insmod /lib/modules/$KERNELVER/extra/endpointdd.ko
- test -e /lib/modules/$KERNELVER/extra/p8021ag.ko && insmod /lib/modules/$KERNELVER/extra/p8021ag.ko
-
-# other modules
- test -e /lib/modules/$KERNELVER/extra/isdn.ko && insmod /lib/modules/$KERNELVER/extra/isdn.ko
- test -e /lib/modules/$KERNELVER/kernel/drivers/isdn/capi/capi.ko && insmod /lib/modules/$KERNELVER/kernel/drivers/isdn/capi/capi.ko 
- test -e /lib/modules/$KERNELVER/extra/i2c_bcm6xxx.ko && insmod /lib/modules/$KERNELVER/extra/i2c_bcm6xxx.ko
- test -e /lib/modules/$KERNELVER/extra/bcm3450.ko && insmod /lib/modules/$KERNELVER/extra/bcm3450.ko
- test -e /lib/modules/$KERNELVER/extra/gpon_i2c.ko && insmod /lib/modules/$KERNELVER/extra/gpon_i2c.ko
- test -e /lib/modules/$KERNELVER/extra/bcmgpon.ko && insmod /lib/modules/$KERNELVER/extra/bcmgpon.ko
- test -e /lib/modules/$KERNELVER/extra/bcmmoca.ko && insmod /lib/modules/$KERNELVER/extra/bcmmoca.ko
- test -e /lib/modules/$KERNELVER/extra/bcmvlan.ko && insmod /lib/modules/$KERNELVER/extra/bcmvlan.ko
- test -e /lib/modules/$KERNELVER/extra/pwrmngtd.ko && insmod /lib/modules/$KERNELVER/extra/pwrmngtd.ko
- test -e /lib/modules/$KERNELVER/kernel/drivers/char/hw_random/rng-core.ko && insmod /lib/modules/$KERNELVER/kernel/drivers/char/hw_random/rng-core.ko
- test -e /lib/modules/$KERNELVER/extra/bcmtrng.ko && insmod /lib/modules/$KERNELVER/extra/bcmtrng.ko
- insmod /lib/modules/$KERNELVER/extra/acos_nat.ko
-
-cmf learn --disable
-param init
-acos_init
-acos_service start
-
-fi
-

fuse_Makefile.in.patch

--- DGND3700/userspace/ap/gpl/fuse-2.7.6/Makefile.in.orig	2013-04-02 20:37:14.776766353 +0100
+++ DGND3700/userspace/ap/gpl/fuse-2.7.6/Makefile.in	2013-04-02 20:48:04.140306675 +0100
@@ -647,7 +647,12 @@
 	for dir in "$(DESTDIR)$(pkgconfigdir)"; do \
 	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
 	done
-install: install-recursive
+install: 
+	echo "Copying FUSE "
+	$(STRIP) lib/.libs/libfuse.so*
+	cp -a lib/.libs/libfuse.so* $(TARGETDIR)/lib/
+	mkdir -p $(TARGETDIR)/lib/modules/2.6.21.5/extra/
+	cp -a kernel/fuse.ko $(TARGETDIR)/lib/modules/2.6.21.5/extra/
 install-exec: install-exec-recursive
 install-data: install-data-recursive
 uninstall: uninstall-recursive

fuse_Makefile.patch

--- DGND3700/userspace/ap/gpl/fuse-2.7.6/Makefile.orig	1970-01-01 01:00:00.000000000 +0100
+++ DGND3700/userspace/ap/gpl/fuse-2.7.6/Makefile	2013-02-19 18:05:47.407620022 +0000
@@ -0,0 +1,3 @@
+all:
+	./configure --host=mips-linux --disable-rpath --disable-util --disable-example --enable-kernel-module --with-kernel="$(BUILD_DIR)/kernel/linux"
+	make -j4

hosttools_fakeroot_fakeroot.patch

--- DGND3700/hostTools/fakeroot/fakeroot.orig	2011-10-31 01:50:45.000000000 +0000
+++ DGND3700/hostTools/fakeroot/fakeroot	2013-02-10 16:32:01.470822714 +0000
@@ -15,12 +15,12 @@
 }
 
 # strip /bin/fakeroot to find install prefix
-PREFIX=/home/finerain/DGND3700-V1.0.0.17_1.0.17_GPL/bcm963xx/hostTools/fakeroot
-BINDIR=/home/finerain/DGND3700-V1.0.0.17_1.0.17_GPL/bcm963xx/hostTools/fakeroot
+PREFIX=../hostTools/fakeroot
+BINDIR=../hostTools/fakeroot
     
 USEABSLIBPATH=0
 LIB=libfakeroot.so
-PATHS=/home/finerain/DGND3700-V1.0.0.17_1.0.17_GPL/bcm963xx/hostTools/fakeroot/.libs:/lib:/usr/lib
+PATHS=../hostTools/fakeroot/.libs:/lib:/usr/lib
 FAKED=${BINDIR}/faked
 
 FAKED_MODE="unknown-is-root"

inadyn-Makefile.in.patch

--- DGND3700/userspace/ap/gpl/inadyn-mt.v.02.24.38/Makefile.in.orig	2013-01-19 07:39:22.000000000 +0000
+++ DGND3700/userspace/ap/gpl/inadyn-mt.v.02.24.38/Makefile.in	2013-06-13 19:07:45.680912020 +0100
@@ -589,7 +589,10 @@
 all-am: Makefile
 installdirs: installdirs-recursive
 installdirs-am:
-install: install-recursive
+install:
+	echo "Copying inadyn binary"
+	$(STRIP) src/inadyn-mt
+	cp -a src/inadyn-mt $(TARGETDIR)/bin
 install-exec: install-exec-recursive
 install-data: install-data-recursive
 uninstall: uninstall-recursive

inadyn-Makefile.patch

--- DGND3700/userspace/ap/gpl/inadyn-mt.v.02.24.38/Makefile.orig	1970-01-01 01:00:00.000000000 +0100
+++ DGND3700/userspace/ap/gpl/inadyn-mt.v.02.24.38/Makefile	2013-03-04 10:45:28.690216373 +0000
@@ -0,0 +1,3 @@
+all:
+	ac_cv_func_malloc_0_nonnull=yes ac_cv_func_realloc_0_nonnull=yes ./configure --host=mips-linux --disable-sound
+	make -j4

kernel.config.patch

--- DGND3700/kernel/linux/defconfig_dgnd3700.orig	2011-10-20 10:37:10.000000000 +0100
+++ DGND3700/kernel/linux/defconfig_dgnd3700	2013-02-26 20:50:28.850290073 +0000
@@ -246,7 +246,7 @@
 # CONFIG_SYSFS_DEPRECATED is not set
 # CONFIG_RELAY is not set
 # CONFIG_BLK_DEV_INITRD is not set
-CONFIG_CC_OPTIMIZE_FOR_SIZE=y
+# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
 CONFIG_SYSCTL=y
 CONFIG_EMBEDDED=y
 CONFIG_SYSCTL_SYSCALL=y
@@ -291,9 +291,9 @@
 # IO Schedulers
 #
 CONFIG_IOSCHED_NOOP=y
-# CONFIG_IOSCHED_AS is not set
-# CONFIG_IOSCHED_DEADLINE is not set
-# CONFIG_IOSCHED_CFQ is not set
+CONFIG_IOSCHED_AS=y
+CONFIG_IOSCHED_DEADLINE=y
+CONFIG_IOSCHED_CFQ=y
 # CONFIG_DEFAULT_AS is not set
 # CONFIG_DEFAULT_DEADLINE is not set
 # CONFIG_DEFAULT_CFQ is not set
@@ -1250,12 +1250,20 @@
 #
 # File systems
 #
-# CONFIG_EXT2_FS is not set
-# CONFIG_EXT3_FS is not set
-# CONFIG_EXT4DEV_FS is not set
+CONFIG_EXT2_FS=y
+# CONFIG_EXT2_FS_XATTR is not set
+# CONFIG_EXT2_FS_XIP is not set
+CONFIG_EXT3_FS=y
+# CONFIG_EXT3_FS_XATTR is not set
+CONFIG_EXT4DEV_FS=y
+# CONFIG_EXT4DEV_FS_XATTR is not set
+CONFIG_JBD=y
+# CONFIG_JBD_DEBUG is not set
+CONFIG_JBD2=y
+# CONFIG_JBD2_DEBUG is not set
 # CONFIG_REISERFS_FS is not set
 # CONFIG_JFS_FS is not set
-# CONFIG_FS_POSIX_ACL is not set
+CONFIG_FS_POSIX_ACL=y
 # CONFIG_XFS_FS is not set
 # CONFIG_GFS2_FS is not set
 # CONFIG_OCFS2_FS is not set
@@ -1264,10 +1272,10 @@
 CONFIG_INOTIFY=y
 CONFIG_INOTIFY_USER=y
 # CONFIG_QUOTA is not set
-# CONFIG_DNOTIFY is not set
+CONFIG_DNOTIFY=y
 # CONFIG_AUTOFS_FS is not set
 # CONFIG_AUTOFS4_FS is not set
-CONFIG_FUSE_FS=y
+# CONFIG_FUSE_FS is not set
 
 #
 # CD-ROM/DVD Filesystems
@@ -1303,8 +1308,8 @@
 #
 # CONFIG_ADFS_FS is not set
 # CONFIG_AFFS_FS is not set
-# CONFIG_HFS_FS is not set
-# CONFIG_HFSPLUS_FS is not set
+CONFIG_HFS_FS=y
+CONFIG_HFSPLUS_FS=y
 # CONFIG_BEFS_FS is not set
 # CONFIG_BFS_FS is not set
 # CONFIG_EFS_FS is not set
@@ -1335,7 +1343,18 @@
 # Network File Systems
 #
 # CONFIG_NFS_FS is not set
-# CONFIG_NFSD is not set
+CONFIG_NFSD=y
+CONFIG_NFSD_V3=y
+# CONFIG_NFSD_V3_ACL is not set
+CONFIG_NFSD_V4=y
+CONFIG_NFSD_TCP=y
+CONFIG_LOCKD=y
+CONFIG_LOCKD_V4=y
+CONFIG_EXPORTFS=y
+CONFIG_NFS_COMMON=y
+CONFIG_SUNRPC=y
+# CONFIG_RPCSEC_GSS_KRB5 is not set
+# CONFIG_RPCSEC_GSS_SPKM3 is not set
 # CONFIG_SMB_FS is not set
 # CONFIG_CIFS is not set
 # CONFIG_NCP_FS is not set
@@ -1363,7 +1368,7 @@
 # CONFIG_ULTRIX_PARTITION is not set
 # CONFIG_SUN_PARTITION is not set
 # CONFIG_KARMA_PARTITION is not set
-# CONFIG_EFI_PARTITION is not set
+CONFIG_EFI_PARTITION=y
 
 #
 # Native Language Support

libevent_Makefile.in.patch

--- DGND3700/userspace/ap/gpl/libevent-2.0.21-stable/Makefile.in.orig	2012-11-19 15:13:17.000000000 +0000
+++ DGND3700/userspace/ap/gpl/libevent-2.0.21-stable/Makefile.in	2013-02-13 18:42:12.945861772 +0000
@@ -1178,8 +1178,11 @@
 	for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(includedir)"; do \
 	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
 	done
-install: $(BUILT_SOURCES)
-	$(MAKE) $(AM_MAKEFLAGS) install-recursive
+install:
+	echo "Copying libevent library"
+	$(STRIP) .libs/libevent.so*
+	cp -a .libs/libevent.so* $(TARGETDIR)/lib/
+	cp -a .libs/libevent-2.0.so* $(TARGETDIR)/lib/
 install-exec: install-exec-recursive
 install-data: install-data-recursive
 uninstall: uninstall-recursive

libevent_Makefile.patch

--- DGND3700/userspace/ap/gpl/libevent-2.0.21-stable/Makefile.orig	1970-01-01 01:00:00.000000000 +0100
+++ DGND3700/userspace/ap/gpl/libevent-2.0.21-stable/Makefile	2013-02-13 16:10:23.154956649 +0000
@@ -0,0 +1,3 @@
+all:
+	./configure --host=mips-linux --disable-debug-mode --disable-openssl
+	make -j4

libnfsidmap-0.25.Makefile.in.patch

--- DGND3700/userspace/ap/gpl/libnfsidmap-0.25/Makefile.in.orig	2013-04-06 12:02:37.516119698 +0100
+++ DGND3700/userspace/ap/gpl/libnfsidmap-0.25/Makefile.in	2013-04-06 12:09:51.476539661 +0100
@@ -809,7 +809,10 @@
 	for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(pkglibdir)" "$(DESTDIR)$(man3dir)" "$(DESTDIR)$(man5dir)" "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(includedir)"; do \
 	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
 	done
-install: install-am
+install: 
+	echo "Installing libnfsidmap.so nsswitch.so static.so"
+	$(STRIP) .libs/*.so*
+	cp -a .libs/*.so* $(TARGETDIR)/lib/
 install-exec: install-exec-am
 install-data: install-data-am
 uninstall: uninstall-am

libnfsidmap-0.25.Makefile.patch

--- DGND3700/userspace/ap/gpl/libnfsidmap-0.25/Makefile.orig	1970-01-01 01:00:00.000000000 +0100
+++ DGND3700/userspace/ap/gpl/libnfsidmap-0.25/Makefile	2013-02-13 16:10:39.718956427 +0000
@@ -0,0 +1,3 @@
+all:
+	ac_cv_func_malloc_0_nonnull=yes ./configure --host=mips-linux
+	make -j4

libreduction_extralibs.patch

--- DGND3700/hostTools/libcreduction/extralibs.mak.orig	2011-10-20 11:08:52.000000000 +0100
+++ DGND3700/hostTools/libcreduction/extralibs.mak	2013-02-16 11:25:38.270543318 +0000
@@ -7,6 +7,7 @@
 TARGETS += $(LIBDIR)/libcrypt.so.0
 TARGETS += $(LIBDIR)/libutil.so.0
 TARGETS += $(LIBDIR)/libnsl.so.0
+TARGETS += $(LIBDIR)/librt.so.0
 
 ifneq ($(strip $(BRCM_PTHREADS)),)
   TARGETS += $(LIBDIR)/libpthread.so.0

libxml2.Makefile.in.patch

--- DGND3700/userspace/ap/gpl/libxml2-2.9.1/Makefile.in.orig	2013-08-31 23:23:04.198145950 +0100
+++ DGND3700/userspace/ap/gpl/libxml2-2.9.1/Makefile.in	2013-08-31 23:26:51.539004305 +0100
@@ -1584,8 +1584,10 @@
 	for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(man3dir)" "$(DESTDIR)$(confexecdir)" "$(DESTDIR)$(m4datadir)" "$(DESTDIR)$(pkgconfigdir)"; do \
 	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
 	done
-install: $(BUILT_SOURCES)
-	$(MAKE) $(AM_MAKEFLAGS) install-recursive
+install:
+	echo "Copying libxml2 lib"
+	$(STRIP) .libs/libxml2.so*
+	cp -a .libs/libxml2.so* $(TARGETDIR)/lib/
 install-exec: install-exec-recursive
 install-data: install-data-recursive
 uninstall: uninstall-recursive

libxml2.Makefile.patch

--- DGND3700/userspace/ap/gpl/libxml2-2.9.1/Makefile.orig	1970-01-01 01:00:00.000000000 +0100
+++ DGND3700/userspace/ap/gpl/libxml2-2.9.1/Makefile	2013-02-27 13:28:49.890794992 +0000
@@ -0,0 +1,5 @@
+all:
+	./configure --host=mips-linux --with-minimum --with-zlib="$(BUILD_DIR)/userspace/ap/gpl/mdlna/zlib-1.2.7" --with-writer --with-tree --with-xpath --with-sax1 --with-threads \
+	LDFLAGS="-L$(BUILD_DIR)/userspace/ap/gpl/mdlna/zlib-1.2.7" \
+	CPPFLAGS="-I$(BUILD_DIR)/userspace/ap/gpl/mdlna/zlib-1.2.7"
+	make -j4

make.common.patch

--- DGND3700/make.common.orig	2013-02-26 20:05:07.817351925 +0000
+++ DGND3700/make.common	2013-02-26 20:05:12.981562482 +0000
@@ -141,7 +141,7 @@
 EXTRALIBDIR = $(TOOLCHAIN_TOP)/usr/mips-linux-uclibc/lib
 LIB_PATH        = $(TOOLCHAIN_TOP)/lib
 LIBCDIR         = $(TOOLCHAIN_TOP)/lib
-BRCM_COMMON_CFLAGS :=  -Os -march=mips32  -fomit-frame-pointer -fno-strict-aliasing -mabi=32 -G 0 -msoft-float -pipe -Wa,-mips32
+BRCM_COMMON_CFLAGS :=  -O2 -march=mips32 -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -fomit-frame-pointer -fno-strict-aliasing -mabi=32 -G 0 -msoft-float -pipe -Wa,-mips32
 export BRCM_APP_CFLAGS :=  $(BRCM_COMMON_CFLAGS) -mno-shared
 export BRCM_SO_CFLAGS :=   $(BRCM_COMMON_CFLAGS)

Makefile.patch

--- DGND3700/Makefile.orig	2011-10-31 01:47:56.000000000 +0000
+++ DGND3700/Makefile	2013-02-13 20:27:12.912611073 +0000
@@ -40,7 +40,7 @@
 #
 ############################################
 
-all: check_dsl_type make_version_check kernel_version_check all_postcheck1
+all: check_dsl_type make_version_check all_postcheck1
 
 ## 
 ##all_postcheck1: sanity_check \
@@ -210,6 +210,7 @@
 	$(MAKE) -C $(USERAPPS_DIR)/ap/acos install
 
 gpl:
+	$(MAKE) -C $(USERAPPS_DIR)/public/libs/openssl all install
 	$(MAKE) -C $(USERAPPS_DIR)/ap/gpl
 	$(MAKE) -C $(USERAPPS_DIR)/ap/gpl install
 
@@ -275,7 +276,7 @@
 	#$(GENDEFCONFIG_CMD) $(PROFILE_PATH) ${MAKEFLAGS}
 	cd $(KERNEL_DIR); \
 	cp defconfig_dgnd3700 .config; \
-	$(MAKE) oldconfig; $(MAKE)
+	$(MAKE) oldconfig; $(MAKE) -j4
 else
 	#cd $(KERNEL_DIR); $(MAKE)
 	cd $(KERNEL_DIR); \

mdlna_ffmpeg_libm.h.patch

--- DGND3700/userspace/ap/gpl/mdlna/ffmpeg-1.1.3/libavutil/libm.h.orig	2013-03-09 15:17:38.966539917 +0000
+++ DGND3700/userspace/ap/gpl/mdlna/ffmpeg-1.1.3/libavutil/libm.h	2013-03-09 15:20:23.556090067 +0000
@@ -166,17 +166,13 @@
 #endif /* HAVE_ROUNDF */
 
 #if !HAVE_TRUNC
-static av_always_inline av_const double trunc(double x)
-{
-    return (x > 0) ? floor(x) : ceil(x);
-}
+#undef trunc
+#define trunc(x) ((x > 0) ? floor(x) : ceil(x))
 #endif /* HAVE_TRUNC */
 
 #if !HAVE_TRUNCF
-static av_always_inline av_const float truncf(float x)
-{
-    return (x > 0) ? floor(x) : ceil(x);
-}
+#undef truncf
+#define truncf(x) ((x > 0) ? floor(x) : ceil(x))
 #endif /* HAVE_TRUNCF */
 
 #endif /* AVUTIL_LIBM_H */

mdlna_minidlna-tagfiles-misc.c.patch

--- DGND3700/userspace/ap/gpl/mdlna/minidlna-1.1.0/tagutils/tagutils-misc.c.orig	2013-06-10 17:46:44.777130689 +0100
+++ DGND3700/userspace/ap/gpl/mdlna/minidlna-1.1.0/tagutils/tagutils-misc.c	2013-06-10 17:46:59.369273742 +0100
@@ -33,7 +33,7 @@
 
 static iconv_result
 do_iconv(const char* to_ces, const char* from_ces,
-	 ICONV_CONST char *inbuf,  size_t inbytesleft,
+	 char *inbuf,  size_t inbytesleft,
 	 char *outbuf_orig, size_t outbytesleft_orig)
 {
 #ifdef HAVE_ICONV

mdlna_sqlite_sqlite3.c.patch

--- DGND3700/userspace/ap/gpl/mdlna/sqlite-autoconf-3071502/sqlite3.c.orig	2013-03-08 22:19:01.469839373 +0000
+++ DGND3700/userspace/ap/gpl/mdlna/sqlite-autoconf-3071502/sqlite3.c	2013-03-08 22:21:00.126949688 +0000
@@ -22718,7 +22718,7 @@
 */
 #if !defined(HAVE_POSIX_FALLOCATE) \
       && (_XOPEN_SOURCE >= 600 || _POSIX_C_SOURCE >= 200112L)
-# define HAVE_POSIX_FALLOCATE 1
+# define HAVE_POSIX_FALLOCATE 0
 #endif
 
 /*

nfs-utils.Makefile.in.patch

--- DGND3700/userspace/ap/gpl/nfs-utils-1.2.7/Makefile.in.orig	2013-03-06 20:17:18.872230322 +0000
+++ DGND3700/userspace/ap/gpl/nfs-utils-1.2.7/Makefile.in	2013-03-06 20:47:07.519464865 +0000
@@ -736,7 +736,17 @@
 all-am: Makefile
 installdirs: installdirs-recursive
 installdirs-am:
-install: install-recursive
+install:
+	echo "Installing nfs-utils"
+	cp -a utils/mountd/mountd $(TARGETDIR)/sbin
+	cp -a utils/nfsd/nfsd $(TARGETDIR)/sbin
+	cp -a utils/nfsdcltrack/nfsdcltrack $(TARGETDIR)/sbin
+	cp -a utils/nfsidmap/nfsidmap $(TARGETDIR)/sbin
+	cp -a utils/nfsstat/nfsstat $(TARGETDIR)/sbin
+	cp -a utils/statd/statd $(TARGETDIR)/sbin
+	cp -a utils/statd/sm-notify $(TARGETDIR)/sbin
+	cp -a utils/exportfs/exportfs $(TARGETDIR)/sbin
+	cp -a utils/idmapd/.libs/idmapd $(TARGETDIR)/sbin
 install-exec: install-exec-recursive
 install-data: install-data-recursive
 uninstall: uninstall-recursive

nfs-utils.Makefile.patch

--- DGND3700/userspace/ap/gpl/nfs-utils-1.2.7/Makefile.orig	1970-01-01 01:00:00.000000000 +0100
+++ DGND3700/userspace/ap/gpl/nfs-utils-1.2.7/Makefile	2013-02-27 13:28:49.890794992 +0000
@@ -0,0 +1,8 @@
+all:
+	CFLAGS="-O2 -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -fomit-frame-pointer -fno-strict-aliasing -msoft-float -pipe" ./configure --host=mips-linux --disable-nfsv41 --disable-nfsdcltrack --without-tcp-wrappers --disable-gss --disable-tirpc --disable-uuid \
+	LDFLAGS="-L$(BUILD_DIR)/userspace/ap/gpl/libevent-2.0.21-stable/.libs \
+	-L$(BUILD_DIR)/userspace/ap/gpl/libnfsidmap-0.25/.libs" \
+	CPPFLAGS="-I$(BUILD_DIR)/userspace/ap/gpl/libnfsidmap-0.25 \
+	-I$(BUILD_DIR)/userspace/ap/gpl/libevent-2.0.21-stable/include \
+	-I$(BUILD_DIR)/userspace/ap/gpl/libevent-2.0.21-stable"
+	make -j4

nfs-utils_support_include_socket.h.patch

--- DGND3700/userspace/ap/gpl/nfs-utils-1.2.7/support/include/sockaddr.h.orig	2013-03-07 14:06:50.835602878 +0000
+++ DGND3700/userspace/ap/gpl/nfs-utils-1.2.7/support/include/sockaddr.h	2013-03-07 14:07:21.427602690 +0000
@@ -20,7 +20,6 @@
 #ifndef NFS_UTILS_SOCKADDR_H
 #define NFS_UTILS_SOCKADDR_H
 
-#include <libio.h>
 #include <stdbool.h>
 #include <sys/socket.h>
 #include <netinet/in.h>

nfs-utils_utils_exportfs_exportfs.c.patch

--- DGND3700/userspace/ap/gpl/nfs-utils-1.2.7/utils/exportfs/exportfs.c.orig	2012-11-11 23:01:23.000000000 +0000
+++ DGND3700/userspace/ap/gpl/nfs-utils-1.2.7/utils/exportfs/exportfs.c	2013-03-07 14:16:39.055599233 +0000
@@ -34,6 +34,127 @@
 #include "exportfs.h"
 #include "xlog.h"
 
+#if __UCLIBC_MAJOR__ == 0 && __UCLIBC_MINOR__ == 9 && __UCLIBC_SUBLEVEL__ <= 30
+
+/* Compare strings while treating digits characters numerically.
+   Copyright (C) 1997, 2002 Free Software Foundation, Inc.
+   This file is part of the GNU C Library.
+   Contributed by Jean-François Bignolles <bignolle@ecoledoc.ibp.fr>, 1997.
+
+   The GNU C Library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Lesser General Public
+   License as published by the Free Software Foundation; either
+   version 2.1 of the License, or (at your option) any later version.
+
+   The GNU C Library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Lesser General Public License for more details.
+
+   You should have received a copy of the GNU Lesser General Public
+   License along with the GNU C Library; if not, write to the Free
+   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+   02111-1307 USA.  */
+
+#include <string.h>
+#include <ctype.h>
+
+
+/* states: S_N: normal, S_I: comparing integral part, S_F: comparing
+           fractionnal parts, S_Z: idem but with leading Zeroes only */
+#define  S_N    0x0
+#define  S_I    0x4
+#define  S_F    0x8
+#define  S_Z    0xC
+
+/* result_type: CMP: return diff; LEN: compare using len_diff/diff */
+#define  CMP    2
+#define  LEN    3
+
+/* Compare S1 and S2 as strings holding indices/version numbers,
+   returning less than, equal to or greater than zero if S1 is less than,
+   equal to or greater than S2 (for more info, see the texinfo doc).
+*/
+int strverscmp (s1, s2)
+     const char *s1;
+     const char *s2;
+{
+  const unsigned char *p1 = (const unsigned char *) s1;
+  const unsigned char *p2 = (const unsigned char *) s2;
+  unsigned char c1, c2;
+  int state;
+  int diff;
+
+  /* Symbol(s)    0       [1-9]   others  (padding)
+     Transition   (10) 0  (01) d  (00) x  (11) -   */
+  static const unsigned int next_state[] =
+  {
+      /* state    x    d    0    - */
+      /* S_N */  S_N, S_I, S_Z, S_N,
+      /* S_I */  S_N, S_I, S_I, S_I,
+      /* S_F */  S_N, S_F, S_F, S_F,
+      /* S_Z */  S_N, S_F, S_Z, S_Z
+  };
+
+  static const int result_type[] =
+  {
+      /* state   x/x  x/d  x/0  x/-  d/x  d/d  d/0  d/-
+                 0/x  0/d  0/0  0/-  -/x  -/d  -/0  -/- */
+
+      /* S_N */  CMP, CMP, CMP, CMP, CMP, LEN, CMP, CMP,
+                 CMP, CMP, CMP, CMP, CMP, CMP, CMP, CMP,
+      /* S_I */  CMP, -1,  -1,  CMP, +1,  LEN, LEN, CMP,
+                 +1,  LEN, LEN, CMP, CMP, CMP, CMP, CMP,
+      /* S_F */  CMP, CMP, CMP, CMP, CMP, LEN, CMP, CMP,
+                 CMP, CMP, CMP, CMP, CMP, CMP, CMP, CMP,
+      /* S_Z */  CMP, +1,  +1,  CMP, -1,  CMP, CMP, CMP,
+                 -1,  CMP, CMP, CMP
+  };
+
+  if (p1 == p2)
+    return 0;
+
+  c1 = *p1++;
+  c2 = *p2++;
+  /* Hint: '0' is a digit too.  */
+  state = S_N | ((c1 == '0') + (isdigit (c1) != 0));
+
+  while ((diff = c1 - c2) == 0 && c1 != '\0')
+    {
+      state = next_state[state];
+      c1 = *p1++;
+      c2 = *p2++;
+      state |= (c1 == '0') + (isdigit (c1) != 0);
+    }
+
+  state = result_type[state << 2 | (((c2 == '0') + (isdigit (c2) != 0)))];
+
+  switch (state)
+  {
+    case CMP:
+      return diff;
+
+    case LEN:
+      while (isdigit (*p1++))
+	if (!isdigit (*p2++))
+	  return 1;
+
+      return isdigit (*p2) ? -1 : diff;
+
+    default:
+      return state;
+  }
+}
+
+int versionsort(const void * a, const void * b)
+{
+    return strverscmp ((*(const struct dirent **) a)->d_name,
+	    (*(const struct dirent **) b)->d_name);
+}
+
+#endif
+
+
 static void	export_all(int verbose);
 static void	exportfs(char *arg, char *options, int verbose);
 static void	unexportfs(char *arg, int verbose);

nfs-utils_utils_mountd_cache.c.patch

--- DGND3700/userspace/ap/gpl/nfs-utils-1.2.7/utils/mountd/cache.c.orig	2012-11-11 23:01:23.000000000 +0000
+++ DGND3700/userspace/ap/gpl/nfs-utils-1.2.7/utils/mountd/cache.c	2013-03-07 13:17:52.123621094 +0000
@@ -166,22 +166,9 @@
 		return;
 
 	pw = getpwuid(uid);
-	if (!pw)
-		rv = -1;
-	else {
-		rv = getgrouplist(pw->pw_name, pw->pw_gid, groups, &ngroups);
-		if (rv == -1 && ngroups >= groups_len) {
-			more_groups = realloc(groups, sizeof(gid_t)*ngroups);
-			if (!more_groups)
-				rv = -1;
-			else {
-				groups = more_groups;
-				groups_len = ngroups;
-				rv = getgrouplist(pw->pw_name, pw->pw_gid,
-						  groups, &ngroups);
-			}
-		}
-	}
+	rv = 0;
+	ngroups;
+	groups[0] = pw->pw_gid;
 	qword_printuint(f, uid);
 	qword_printtimefrom(f, DEFAULT_TTL);
 	if (rv >= 0) {

ntfs-3g_Makefile.in.patch

--- DGND3700/userspace/ap/gpl/ntfs-3g_ntfsprogs-2013.1.13/Makefile.in.orig	2013-01-13 06:46:46.000000000 +0000
+++ DGND3700/userspace/ap/gpl/ntfs-3g_ntfsprogs-2013.1.13/Makefile.in	2013-02-19 18:13:15.355964804 +0000
@@ -614,7 +614,12 @@
 	for dir in "$(DESTDIR)$(docdir)"; do \
 	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
 	done
-install: install-recursive
+install: 
+	echo "Copying NTFS-3G binary and libs"
+	$(STRIP) src/.libs/ntfs-3g
+	cp -a src/.libs/ntfs-3g $(TARGETDIR)/bin/
+	$(STRIP) libntfs-3g/.libs/libntfs-3g.so*
+	cp -a libntfs-3g/.libs/libntfs-3g.so* $(TARGETDIR)/lib
 install-exec: install-exec-recursive
 install-data: install-data-recursive
 uninstall: uninstall-recursive

ntfs-3g_Makefile.patch

--- DGND3700/userspace/ap/gpl/ntfs-3g_ntfsprogs-2013.1.13/Makefile.orig	1970-01-01 01:00:00.000000000 +0100
+++ DGND3700/userspace/ap/gpl/ntfs-3g_ntfsprogs-2013.1.13/Makefile	2013-02-19 18:05:47.407620022 +0000
@@ -0,0 +1,3 @@
+all:
+	./configure --host=mips-linux --disable-ntfsprogs
+	make -j4

openssh.Makefile.in.patch

--- DGND3700/userspace/ap/gpl/openssh-6.3p1/Makefile.in.orig	2013-10-07 19:41:50.396392699 +0100
+++ DGND3700/userspace/ap/gpl/openssh-6.3p1/Makefile.in	2013-10-07 19:46:00.952387557 +0100
@@ -244,7 +244,12 @@
 	$(AUTORECONF)
 	-rm -rf autom4te.cache
 
-install: $(CONFIGFILES) $(MANPAGES) $(TARGETS) install-files install-sysconf host-key check-config
+#install: $(CONFIGFILES) $(MANPAGES) $(TARGETS) install-files install-sysconf host-key check-config
+install:
+	echo "Copying OpenSSH sftp-server"
+	$(STRIP) sftp-server
+	mkdir -p $(TARGETDIR)/usr/libexec/
+	cp -a sftp-server $(TARGETDIR)/usr/libexec/
 install-nokeys: $(CONFIGFILES) $(MANPAGES) $(TARGETS) install-files install-sysconf
 install-nosysconf: $(CONFIGFILES) $(MANPAGES) $(TARGETS) install-files

openssh.Makefile.patch

--- DGND3700/userspace/ap/gpl/openssh-6.3p1/Makefile.orig	1970-01-01 01:00:00.000000000 +0100
+++ DGND3700/userspace/ap/gpl/openssh-6.3p1/Makefile	2013-02-27 13:28:49.890794992 +0000
@@ -0,0 +1,4 @@
+all:
+	./configure --host=mips-linux --with-zlib="${BUILD_DIR}/userspace/ap/gpl/mdlna/zlib-1.2.7" --with-ssl-dir="${BUILD_DIR}/userspace/public/libs/openssl" --with-ssl-engine \
+	LD="${CC}" LDFLAGS="-L${BUILD_DIR}/userspace/public/libs/openssl -lssl -lcrypto -L${BUILD_DIR}/userspace/ap/gpl/mdlna/zlib-1.2.7 -lz"
+	make -j4 sftp-server

openssl_Makefile.patch

--- DGND3700/userspace/public/libs/openssl/Makefile.orig	2011-10-31 01:49:34.000000000 +0000
+++ DGND3700/userspace/public/libs/openssl/Makefile	2013-03-29 15:48:48.376331540 +0000
@@ -26,9 +26,9 @@
 SHLIB_EXT=.so.$(SHLIB_MAJOR).$(SHLIB_MINOR)
 PLATFORM=linux-mips
 ifeq ($(strip $(BUILD_HTTPD_SSL)),)
-OPTIONS=no-krb5 no-hw shared no-threads no-zlib no-bf no-cast no_md2 no-md4 no-mdc2 no-ripemd no-rc2 no-krb5 no_dsa no_ec no_speed no_engine no_ocsp
+OPTIONS=no-krb5 no-hw shared no-threads no-zlib no-bf no-cast no_md2 no-mdc2 no-ripemd no-rc2 no-krb5 no_dsa no_ec no_speed no_engine no_ocsp
 else
-OPTIONS=no-krb5 no-hw shared no-threads no-zlib no-bf no-cast no_md2 no-md4 no-mdc2 no-ripemd no-rc2 no-krb5 no_dsa no_ec no_speed
+OPTIONS=no-krb5 no-hw shared no-threads no-zlib no-bf no-cast no_md2 no-mdc2 no-ripemd no-rc2 no-krb5 no_dsa no_ec no_speed
 endif
 CONFIGURE_ARGS=no-krb5 no-hw shared linux-mips
 SHLIB_TARGET=linux-shared
@@ -79,12 +79,12 @@
 #CFLAG= -DL_ENDIAN -DTERMIO -O3 -fomit-frame-pointer -m486 -Wall -Wuninitialized -DSHA1_ASM -DMD5_ASM -DRMD160_ASM
 #CFLAG= -DOPENSSL_NO_KRB5 -O
 CFLAG= -fPIC -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -DOPENSSL_NO_HW -DB_ENDIAN -Os -fomit-frame-pointer -Wall
-CFLAG+= -DOPENSSL_NO_IDEA  -DOPENSSL_NO_BF -DOPENSSL_NO_CAST -DOPENSSL_NO_MD2 -DOPENSSL_NO_MD4 -DOPENSSL_NO_RIPEMD -DOPENSSL_NO_MDC2 -DOPENSSL_NO_RC2 -DOPENSSL_NO_DSA -DOPENSSL_NO_EC -DOPENSSL_NO_SPEED
+CFLAG+= -DOPENSSL_NO_IDEA  -DOPENSSL_NO_BF -DOPENSSL_NO_CAST -DOPENSSL_NO_MD2 -DOPENSSL_NO_RIPEMD -DOPENSSL_NO_MDC2 -DOPENSSL_NO_RC2 -DOPENSSL_NO_DSA -DOPENSSL_NO_EC -DOPENSSL_NO_SPEED
 ifeq ($(strip $(BUILD_HTTPD_SSL)),)
 CFLAG+= -DOPENSSL_NO_ENGINE -DOPENSSL_NO_OCSP
 CFLAG+= -DOPENSSL_NO_RC5 -DOPENSSL_NO_ERR -DOPENSSL_NO_SSL2 
 ifeq ($(strip $(BUILD_TR69C_SSL)),)
-CFLAG+= -DOPENSSL_NO_RC4
+#CFLAG+= -DOPENSSL_NO_RC4
 endif
 endif
 
@@ -225,8 +225,8 @@
 
 # dirs in crypto to build
 SDIRS=  objects \
-	md5 sha hmac \
-	des dh\
+	md4 md5 sha hmac \
+	des rc4 dh\
 	bn rsa dso \
 	buffer stack rand err \
 	evp asn1 pem x509 lhash bio txt_db x509v3 conf pkcs7 pkcs12 comp ui 
@@ -899,11 +899,11 @@
 	install -m 755 apps/openssl $(INSTALL_DIR)/bin
 
 install_libs:
-	mkdir -p $(INSTALL_DIR)/lib/public
-	install -m 755 libssl.so.0.9.7 $(INSTALL_DIR)/lib/public
-	(cd $(INSTALL_DIR)/lib/public; rm -f libssl.so; ln -s libssl.so.0.9.7 libssl.so)
-	install -m 755 libcrypto.so.0.9.7 $(INSTALL_DIR)/lib/public
-	(cd $(INSTALL_DIR)/lib/public; rm -f libcrypto.so; ln -s libcrypto.so.0.9.7 libcrypto.so)
+	mkdir -p $(INSTALL_DIR)/lib
+	cp -a libssl.so* $(INSTALL_DIR)/lib
+	(cd $(INSTALL_DIR)/lib; rm -f public/libssl*)
+	cp -a libcrypto.so* $(INSTALL_DIR)/lib
+	(cd $(INSTALL_DIR)/lib; rm -f public/libcrypto*)
 
 install_sw:
 	@$(PERL) $(TOP)/util/mkdir-p.pl $(INSTALL_PREFIX)$(INSTALLTOP)/bin \

openswan_linux_include_crypto_des.h.patch

--- DGND3700/userspace/ap/gpl/openswan-2.4.9/linux/include/crypto/des.h.orig	2013-03-09 18:44:45.138021823 +0000
+++ DGND3700/userspace/ap/gpl/openswan-2.4.9/linux/include/crypto/des.h	2013-03-09 18:45:53.790679941 +0000
@@ -195,7 +195,7 @@
 #ifdef HEADER_DES_LOCL_H
 char *crypt(const char *buf,const char *salt);
 #else /* HEADER_DES_LOCL_H */
-char *crypt(void);
+
 #endif /* HEADER_DES_LOCL_H */
 #endif /* __KERNEL__ */
 #endif /* PERL5 */

pcre.Makefile.in.patch

--- DGND3700/userspace/ap/gpl/pcre-8.33/Makefile.in.orig	2013-09-01 08:23:59.172250433 +0100
+++ DGND3700/userspace/ap/gpl/pcre-8.33/Makefile.in	2013-09-01 08:24:48.796479812 +0100
@@ -2945,8 +2945,10 @@
 	for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(man3dir)" "$(DESTDIR)$(docdir)" "$(DESTDIR)$(htmldir)" "$(DESTDIR)$(htmldir)" "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(includedir)" "$(DESTDIR)$(includedir)"; do \
 	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
 	done
-install: $(BUILT_SOURCES)
-	$(MAKE) $(AM_MAKEFLAGS) install-am
+install:
+	echo "Copying libpcre lib"
+	$(STRIP) .libs/libpcre*.so*
+	cp -a .libs/libpcre*.so* $(TARGETDIR)/lib/
 install-exec: install-exec-am
 install-data: install-data-am
 uninstall: uninstall-am

pcre.Makefile.patch

--- DGND3700/userspace/ap/gpl/pcre-8.33/Makefile.orig	1970-01-01 01:00:00.000000000 +0100
+++ DGND3700/userspace/ap/gpl/pcre-8.33/Makefile	2013-02-27 13:28:49.890794992 +0000
@@ -0,0 +1,3 @@
+all:
+	./configure --host=mips-linux --enable-utf --enable-unicode-properties
+	make -j4

portmap_Makefile.patch

--- DGND3700/userspace/ap/gpl/portmap_6.0/Makefile.orig	2013-03-07 17:07:12.268916051 +0000
+++ DGND3700/userspace/ap/gpl/portmap_6.0/Makefile	2013-03-07 17:12:10.905861856 +0000
@@ -18,14 +18,14 @@
 # target system will never user NIS for hostname lookup, you can define
 # USE_DNS to add hostname tests in hosts.allow/deny.
 
-ifeq ($(NO_TCP_WRAPPER),)
-CPPFLAGS += -DHOSTS_ACCESS
-WRAP_LIB  = -lwrap
-ifdef USE_DNS
-CPPFLAGS += -DENABLE_DNS
-MAN_SED += -e 's/USE_DNS/yes/'
-endif
-endif
+#ifeq ($(NO_TCP_WRAPPER),)
+#CPPFLAGS += -DHOSTS_ACCESS
+#WRAP_LIB  = -lwrap
+#ifdef USE_DNS
+#CPPFLAGS += -DENABLE_DNS
+#MAN_SED += -e 's/USE_DNS/yes/'
+#endif
+#endif
 
 # Comment out if your RPC library does not allocate privileged ports for
 # requests from processes with root privilege, or the new portmap will
@@ -135,13 +135,10 @@
 portmap.man : portmap.8
 	sed $(MAN_SED) < portmap.8 > portmap.man
 
-install: all
-	install -o root -g root -m 0755 -s portmap ${BASEDIR}/sbin
-	install -o root -g root -m 0755 -s pmap_dump ${BASEDIR}/sbin
-	install -o root -g root -m 0755 -s pmap_set ${BASEDIR}/sbin
-	install -o root -g root -m 0644 portmap.man ${BASEDIR}/usr/share/man/man8/portmap.8
-	install -o root -g root -m 0644 pmap_dump.8 ${BASEDIR}/usr/share/man/man8
-	install -o root -g root -m 0644 pmap_set.8 ${BASEDIR}/usr/share/man/man8
+install:
+	cp -a portmap $(TARGETDIR)/sbin
+	cp -a pmap_dump $(TARGETDIR)/sbin
+	cp -a pmap_set $(TARGETDIR)/sbin
 
 clean:
 	rm -f *.o portmap pmap_dump pmap_set from_local \

portmap_pmap_check.c.patch

--- DGND3700/userspace/ap/gpl/portmap_6.0/pmap_check.c.orig	2013-03-07 17:05:41.680331142 +0000
+++ DGND3700/userspace/ap/gpl/portmap_6.0/pmap_check.c	2013-03-07 17:06:04.436498229 +0000
@@ -44,7 +44,6 @@
 #include <netinet/in.h>
 #include <rpc/rpcent.h>
 #endif
-#include <tcpd.h>
 #include <arpa/inet.h>
 #include <grp.h>

samba_Makefile.patch

--- DGND3700/userspace/ap/gpl/samba-3.6.12/Makefile.orig	1970-01-01 01:00:00.000000000 +0100
+++ DGND3700/userspace/ap/gpl/samba-3.6.12/Makefile	2013-03-04 10:45:28.690216373 +0000
@@ -0,0 +1,10 @@
+all:
+	cd source3 ;\
+	./configure ac_cv_file__proc_sys_kernel_core_pattern=no libreplace_cv_HAVE_GETADDRINFO=no samba_cv_CC_NEGATIVE_ENUM_VALUES=yes --host=mips-linux --with-included-popt --without-acl-support  --without-profiling-data --without-pam --without-krb5 --disable-swat --without-shared-modules --without-dmapi --without-readline --without-sys-quotas --without-ads --disable-cups --without-libsmbclient --without-ldap --without-winbind
+	make -j4 -C source3 bin/smbd bin/nmbd bin/smbpasswd
+
+install:
+	echo "Installing Samba 3.6"
+	$(STRIP) source3/bin/*
+	cp -a source3/bin/lib*.so* $(TARGETDIR)/lib/
+	cp -a source3/bin/*mb* $(TARGETDIR)/sbin/

strace_Makefile.in.patch

--- DGND3700/userspace/ap/gpl/strace-4.7/Makefile.in.orig	2012-05-02 16:40:25.000000000 +0100
+++ DGND3700/userspace/ap/gpl/strace-4.7/Makefile.in	2013-02-16 18:00:13.728315414 +0000
@@ -968,8 +968,10 @@
 	for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)"; do \
 	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
 	done
-install: $(BUILT_SOURCES)
-	$(MAKE) $(AM_MAKEFLAGS) install-recursive
+install:
+	echo "Copying strace"
+	$(STRIP) strace
+	cp -a strace $(TARGETDIR)/bin/
 install-exec: install-exec-recursive
 install-data: install-data-recursive
 uninstall: uninstall-recursive

strace_Makefile.patch

--- DGND3700/userspace/ap/gpl/strace-4.7/Makefile.orig	1970-01-01 01:00:00.000000000 +0100
+++ DGND3700/userspace/ap/gpl/strace-4.7/Makefile	2013-02-16 18:01:40.057082283 +0000
@@ -0,0 +1,4 @@
+all:
+	#LFS breaks strace, see https://github.com/img-meta/metag-buildroot/commit/23f6455bff246195bf9e5106435fdece64a0dde2
+	CFLAGS="-O2 -march=mips32 -D_GNU_SOURCE -fomit-frame-pointer -fno-strict-aliasing -mabi=32 -G 0 -msoft-float -pipe -Wa,-mips32" ./configure --host=mips-linux
+	make -j4

targets_buildFS.patch

--- DGND3700/targets/buildFS.orig	2011-10-31 02:01:47.000000000 +0000
+++ DGND3700/targets/buildFS	2013-03-11 21:07:39.032011491 +0000
@@ -109,17 +109,33 @@
 fi
 
 # Create symbolic links
-mkdir $ROOTFS/dev/misc
-./makeDevs
+mkdir $ROOTFS/media
+#./makeDevs
 
 # Create symbolic links
 ln -s /tmp/var $ROOTFS/var
-ln -s /var/fuse $ROOTFS/dev/misc/fuse
-ln -s /var/fuse $ROOTFS/dev/fuse
-ln -s /var/mtab $ROOTFS/etc/mtab
-ln -s /var/log/log $ROOTFS/dev/log
+#ln -s /var/fuse $ROOTFS/dev/misc/fuse
+#ln -s /var/fuse $ROOTFS/dev/fuse
+#ln -s /var/mtab $ROOTFS/etc/mtab
+#ln -s /var/log/log $ROOTFS/dev/log
 ln -s /var/sysmsg $ROOTFS/etc/sysmsg
-ln -s /var/passwd $ROOTFS/etc/passwd
+ln -fs /var/passwd $ROOTFS/etc/passwd
+ln -s /var/shadow $ROOTFS/etc/shadow
+ln -s /var/hosts $ROOTFS/etc/hosts
+ln -s /var/exports $ROOTFS/etc/exports
+ln -s /var/mtab $ROOTFS/etc/mtab
+ln -s /var/idmapd.conf $ROOTFS/etc/idmapd.conf
+ln -s /var/minidlna.conf $ROOTFS/etc/minidlna.conf
+ln -s /var/smb.conf $ROOTFS/etc/smb.conf
+ln -s /var/torrent.htm $ROOTFS/www/torrent.htm
+ln -s /var/services.htm $ROOTFS/www/services.htm
+ln -s /var/adsl.htm $ROOTFS/www/adsl.htm
+ln -s /var/dynamicdns.htm $ROOTFS/www/dynamicdns.htm
+ln -s /proc/mounts $ROOTFS/www/mounts
+ln -s /tmp/dsl_info_file $ROOTFS/www/dsl_info_file
+ln -s /tmp/profile_show $ROOTFS/www/profile_show
+ln -s /var/log/messages $ROOTFS/www/messages
+ln -s /var/automatic.log $ROOTFS/www/automatic.log
 ln -s /var/group $ROOTFS/etc/group
 ln -s /var/ppp/pppmsg $ROOTFS/etc/pppmsg
 ln -s /var/fyi/sys/dns $ROOTFS/etc/resolv.conf
@@ -130,6 +132,19 @@
 ln -s /var/ipsec/racoon.conf $ROOTFS/etc/racoon.conf
 ln -s /var/ipsec/psk.txt $ROOTFS/etc/psk.txt
 ln -s /var/iproute2/rt_tables $ROOTFS/etc/iproute2/rt_tables
+
+# Create missing symlinks
+pushd $ROOTFS/bin
+ln -s xdslctl adsl
+ln -s xdslctl adslctl
+ln -s cmfctl cmf
+ln -s xtmctl dumpmem
+ln -s fcctl fc
+ln -s nas nas4not
+ln -s xtmctl setmem
+ln -s xtmctl xtm
+popd
+
 # 
 #ln -s /var/tmp $ROOTFS/tmp
 #Foxconn add, FredPeng, 2007/07/26

transmission_Makefile.in.patch

--- DGND3700/userspace/ap/gpl/transmission-2.82/Makefile.in.orig	2013-01-09 01:33:27.714140000 +0000
+++ DGND3700/userspace/ap/gpl/transmission-2.82/Makefile.in	2013-02-13 18:54:55.653030577 +0000
@@ -763,7 +763,12 @@
 all-am: Makefile
 installdirs: installdirs-recursive
 installdirs-am:
-install: install-recursive
+install:
+	echo "Copying Transmission binary and web pages"
+	$(STRIP) daemon/.libs/transmission-daemon
+	cp -a daemon/.libs/transmission-daemon $(TARGETDIR)/bin/
+	mkdir -p $(TARGETDIR)/usr/local/share/transmission
+	cp -aR web $(TARGETDIR)/usr/local/share/transmission/
 install-exec: install-exec-recursive
 install-data: install-data-recursive
 uninstall: uninstall-recursive

transmission_Makefile.patch

--- DGND3700/userspace/ap/gpl/transmission-2.82/Makefile.orig	1970-01-01 01:00:00.000000000 +0100
+++ DGND3700/userspace/ap/gpl/transmission-2.82/Makefile	2013-02-13 16:10:39.718956427 +0000
@@ -0,0 +1,11 @@
+all:
+	./configure --host=mips-linux --enable-utp --without-gtk --disable-cli --disable-nls --disable-mac --enable-daemon \
+	--with-zlib-includes="${BUILD_DIR}/userspace/ap/gpl/mdlna/zlib-1.2.7" \
+	LIBCURL_LIBS="-L${BUILD_DIR}/userspace/ap/gpl/curl-7.29.0/lib -lcurl" \
+	LIBCURL_CFLAGS="-I${BUILD_DIR}/userspace/ap/gpl/curl-7.29.0/include" \
+	LIBEVENT_LIBS="-L${BUILD_DIR}/userspace/ap/gpl/libevent-2.0.21-stable -levent" \
+	LIBEVENT_CFLAGS="-I${BUILD_DIR}/userspace/ap/gpl/libevent-2.0.21-stable/include" \
+	OPENSSL_LIBS="-L${BUILD_DIR}/userspace/public/libs/openssl -lcrypto -lssl" \
+	OPENSSL_CFLAGS="-I${BUILD_DIR}/userspace/public/libs/openssl/include" \
+	LDFLAGS="-L${BUILD_DIR}/userspace/ap/gpl/mdlna/zlib-1.2.7"
+	make -j4

userspace_ap_gpl_config.in.patch

--- DGND3700/userspace/project/gpl/config.in.orig	2013-02-26 20:56:27.703604950 +0000
+++ DGND3700/userspace/project/gpl/config.in	2013-02-26 20:57:15.040214901 +0000
@@ -65,7 +65,7 @@
 ACOSTOPDIR= $(BUILD_DIR)/userspace/ap/acos
 export ACOSTOPDIR
 
-export CFLAGS +=  -DU12L146
+export CFLAGS += -DU12L146 -O2 -march=mips32 -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -fomit-frame-pointer -fno-strict-aliasing -mabi=32 -G 0 -msoft-float -pipe -Wa,-mips32
 
 export LIB_NAT_CFLAGS += -DINCLUDE_WAN_LAN_SUBNET -DAG_QOS -DBANDWIDTH_DETECT

userspace_gpl_apps_Makefile.patch

--- DGND3700/userspace/gpl/apps/Makefile.orig	2011-10-20 10:57:36.000000000 +0100
+++ DGND3700/userspace/gpl/apps/Makefile	2013-02-24 20:25:25.139558021 +0000
@@ -76,9 +76,9 @@
 ifneq ($(strip $(BUILD_BUSYBOX)),)
 busybox: sanity_check
 	mkdir -p $(INSTALL_DIR)/bin
-	(tar xkfj busybox.tar.bz2 2> /dev/null || true)
-	cd busybox; cp -f $(BUSYBOX_CONFIG) .config
-	$(MAKE) -C busybox install
+	#(tar xkfj busybox.tar.bz2 2> /dev/null || true)
+	#cd busybox; cp -f $(BUSYBOX_CONFIG) .config
+	$(MAKE) CONFIG_PREFIX=$(INSTALL_DIR) -C busybox-1.21.1 install
 else
 busybox: sanity_check
 	@echo "skipping busybox (not configured)"

userspace_project_gpl_Makefile.patch

--- DGND3700/userspace/project/gpl/Makefile.orig	2011-10-31 02:01:45.000000000 +0000
+++ DGND3700/userspace/project/gpl/Makefile	2013-03-12 21:00:28.717966879 +0000
@@ -47,12 +47,12 @@
 
 #Foxconn add end FinerainZhou 08/26/2010 @miniDLNA
 ifeq ($(CONFIG_DLNA),y)
-SUBDIRS += minidlna
+SUBDIRS += mdlna
 endif
 
 #water, 10/30/2008, @samba
 ifeq ($(SAMBA_ENABLE_FLAG),y)
-SUBDIRS	+= samba-3.0.13
+SUBDIRS	+= samba-3.6.12
 SUBDIRS	+= bftpd-1.6.6
 endif
 
@@ -60,11 +60,12 @@
 
 # pling added 05/04/2009, for NTFS-3g
 ifeq ($(CONFIG_NTFS_3G),y)
-SUBDIRS += ntfs-3g-2009.3.8
+SUBDIRS += fuse-2.7.6
+SUBDIRS += ntfs-3g_ntfsprogs-2013.1.13
 endif
 #pling added 05/07/2009, for mtools (to read FAT volume label)
 ifeq ($(CONFIG_MTOOLS),y)
-SUBDIRS += mtools-4.0.10
+#SUBDIRS += mtools-4.0.10
 endif
 
 #Foxconn add, Tony W.Y. Wang, 04/23/2009, @OpenDNS Parental Control
@@ -79,6 +79,21 @@
 SUBDIRS += openswan-2.4.9
 endif
 
+SUBDIRS += pcre-8.33
+SUBDIRS += openssh-6.3p1
+SUBDIRS += curl-7.29.0
+SUBDIRS += libxml2-2.9.1
+SUBDIRS += Automatic-0.8.3
+SUBDIRS += inadyn-mt.v.02.24.38
+SUBDIRS += libevent-2.0.21-stable
+SUBDIRS += transmission-2.82
+SUBDIRS += strace-4.7
+SUBDIRS += nat5
+SUBDIRS += dropbear-2013.56
+SUBDIRS += libnfsidmap-0.25
+SUBDIRS += nfs-utils-1.2.7
+SUBDIRS += portmap_6.0
+
 all:
 	for i in ${SUBDIRS}; do \
 		(cd $$i; make) || exit 1; \

Rebuild

This is just for me so I can quickly rebuild the above if needs be.

rm /tmp/p.txt
for i in $(ls *.patch) ; do echo -e "\n==$i==\n\n<syntaxhighlight enclose=\"div\" lang=\"diff\">" >> /tmp/p.txt  ; cat $i >> /tmp/p.txt; 
echo -e "</syntaxhighlight>" >>  /tmp/p.txt  ; done

Comments

blog comments powered by Disqus


See Also