Browse Source

Merge branch 'master' of git+ssh://openadk.org/git/openadk

Waldemar Brodkorb 15 years ago
parent
commit
2875c0ee84
54 changed files with 570 additions and 325 deletions
  1. 7 2
      Makefile
  2. 0 1
      TODO
  3. 1 0
      mk/build.mk
  4. 173 210
      mk/modules.mk
  5. 4 2
      mk/pkg-bottom.mk
  6. 1 4
      mk/vars.mk
  7. 5 0
      package/Config.in
  8. 1 1
      package/atk/Makefile
  9. 1 1
      package/aufs2-util/Makefile
  10. 2 0
      package/base-files/extra/etc/network/if-post-down.d/01-bridge
  11. 10 0
      package/base-files/extra/etc/network/if-post-down.d/02-vlan
  12. 9 11
      package/base-files/extra/etc/network/if-pre-up.d/01-atm
  13. 35 0
      package/base-files/extra/etc/network/if-pre-up.d/02-vlan
  14. 1 4
      package/base-files/extra/etc/network/if-pre-up.d/03-bridge
  15. 4 0
      package/base-files/extra/etc/network/if-up.d/01-bridge
  16. 1 1
      package/bluez-firmware/Makefile
  17. 4 4
      package/bluez/Makefile
  18. 27 0
      package/bluez/patches/patch-Makefile_in
  19. 7 0
      package/bluez/patches/patch-scripts_bluetooth_rules
  20. 4 4
      package/bluez/patches/patch-tools_hciattach_c
  21. 3 3
      package/bogofilter/patches/patch-configure_ac
  22. 1 1
      package/cryptsetup/Makefile
  23. 6 6
      package/davfs2/Makefile
  24. 1 1
      package/fuse/Makefile
  25. 4 4
      package/igmpproxy/Makefile
  26. 1 1
      package/iptables/Makefile
  27. 2 1
      package/krb5/Makefile
  28. 3 3
      package/krb5/patches/patch-src_Makefile_in
  29. 1 0
      package/libX11/Makefile
  30. 2 2
      package/miax/Makefile
  31. 1 1
      package/mtd/src/mtd.c
  32. 10 9
      package/mysql/patches/patch-configure
  33. 54 0
      package/mysql/patches/patch-include_my_global_h
  34. 3 1
      package/ncurses/Makefile
  35. 2 2
      package/openssl/Makefile
  36. 1 1
      package/pptp/Makefile
  37. 0 1
      package/pptpd/Makefile
  38. 2 1
      package/sangam-atm/Makefile
  39. 1 1
      package/tcpdump/Makefile
  40. 2 2
      package/util-linux-ng/Makefile
  41. 2 2
      package/wdfs/Makefile
  42. 1 1
      package/xorg-server/Makefile
  43. 1 1
      rules.mk
  44. 9 0
      scripts/awk
  45. 1 1
      target/ag241/Makefile
  46. 1 1
      target/ag241/files/etc/network/interfaces
  47. 0 27
      target/ag241/tools/squashfs/Makefile
  48. 2 2
      target/foxboard/Makefile
  49. 2 2
      target/linux/config/Config.in.misc
  50. 1 1
      target/linux/config/Config.in.netfilter
  51. 14 1
      target/linux/config/Config.in.network
  52. 7 0
      target/tools/rules.mk
  53. 0 0
      target/tools/squashfs/Makefile
  54. 132 0
      target/tools/squashfs/patches/squashfs-bsd.patch

+ 7 - 2
Makefile

@@ -1,7 +1,7 @@
 # This file is part of the OpenADK project. OpenADK is copyrighted
 # This file is part of the OpenADK project. OpenADK is copyrighted
 # material, please see the LICENCE file in the top-level directory.
 # material, please see the LICENCE file in the top-level directory.
 
 
-_UNLIMIT=	ulimit -dS $$(ulimit -dH 2>/dev/null ) 2>/dev/null;
+_UNLIMIT=	ulimit -dS $(shell ulimit -dH >/dev/null 2>/dev/null ) >/dev/null 2>/dev/null;
 
 
 all: .prereq_done
 all: .prereq_done
 	@${_UNLIMIT} ${GMAKE_INV} all
 	@${_UNLIMIT} ${GMAKE_INV} all
@@ -161,6 +161,11 @@ NO_ERROR=0
 	@if ! mksh -c 'echo $$KSH_VERSION' 2>&1 | fgrep 'MIRBSD' >/dev/null 2>&1; then \
 	@if ! mksh -c 'echo $$KSH_VERSION' 2>&1 | fgrep 'MIRBSD' >/dev/null 2>&1; then \
 		echo "MirBSD ksh (mksh) needs to be installed."; \
 		echo "MirBSD ksh (mksh) needs to be installed."; \
 		exit 1; \
 		exit 1; \
+	else \
+		if [ $$(mksh -c 'echo $$KSH_VERSION' |cut -d ' ' -f 3|sed "s#R##") -le 38 ]; then \
+			echo "MirBSD ksh is too old. R38 or higher needed."; \
+			exit 1; \
+		fi \
 	fi
 	fi
 	@if test x"$$(umask 2>/dev/null | sed 's/00*22/OK/')" != x"OK"; then \
 	@if test x"$$(umask 2>/dev/null | sed 's/00*22/OK/')" != x"OK"; then \
 		echo >&2 Error: you must build with umask 022, sorry.; \
 		echo >&2 Error: you must build with umask 022, sorry.; \
@@ -187,7 +192,7 @@ NO_ERROR=0
 	    -e 's/i[3-9]86/i386/' \
 	    -e 's/i[3-9]86/i386/' \
 	    )" >>prereq.mk
 	    )" >>prereq.mk
 	@echo 'HOSTCC:=${CC}' >>prereq.mk
 	@echo 'HOSTCC:=${CC}' >>prereq.mk
-	@echo 'HOSTCFLAGS:=-O2 -fwrapv' >>prereq.mk
+	@echo 'HOSTCFLAGS:=-O2' >>prereq.mk
 	@echo 'LANGUAGE:=C' >>prereq.mk
 	@echo 'LANGUAGE:=C' >>prereq.mk
 	@echo 'LC_ALL:=C' >>prereq.mk
 	@echo 'LC_ALL:=C' >>prereq.mk
 	@echo 'MAKE:=$${GMAKE}' >>prereq.mk
 	@echo 'MAKE:=$${GMAKE}' >>prereq.mk

+ 0 - 1
TODO

@@ -1,6 +1,5 @@
 - netbsd build
 - netbsd build
 - macos x build
 - macos x build
-- openbsd build
 - make rpm package backend working
 - make rpm package backend working
 - network scripts for wireless client / ap
 - network scripts for wireless client / ap
 - network scripts for pppoe
 - network scripts for pppoe

+ 1 - 0
mk/build.mk

@@ -13,6 +13,7 @@ CONFIG = config
 DEFCONFIG= 		ADK_DEVELSYSTEM=n \
 DEFCONFIG= 		ADK_DEVELSYSTEM=n \
 			ADK_DEBUG=n \
 			ADK_DEBUG=n \
 			ADK_STATIC=n \
 			ADK_STATIC=n \
+			ADK_MAKE_PARALLEL=n \
 			ADK_FORCE_PARALLEL=n \
 			ADK_FORCE_PARALLEL=n \
 			ADK_PACKAGE_GRUB=n \
 			ADK_PACKAGE_GRUB=n \
 			ADK_PACKAGE_BASE_FILES=y \
 			ADK_PACKAGE_BASE_FILES=y \

File diff suppressed because it is too large
+ 173 - 210
mk/modules.mk


+ 4 - 2
mk/pkg-bottom.mk

@@ -20,11 +20,13 @@ ${_CONFIGURE_COOKIE}: ${_PATCH_COOKIE}
 
 
 ifneq ($(filter autotool,${CONFIGURE_STYLE}),)
 ifneq ($(filter autotool,${CONFIGURE_STYLE}),)
 	cd ${WRKBUILD}; \
 	cd ${WRKBUILD}; \
-	    autoreconf -vif $(MAKE_TRACE)
+	    env AUTOCONF_VERSION=2.62 \
+		AUTOMAKE_VERSION=1.9 \
+		autoreconf -vif $(MAKE_TRACE)
 endif
 endif
 ifneq ($(filter autoconf,${CONFIGURE_STYLE}),)
 ifneq ($(filter autoconf,${CONFIGURE_STYLE}),)
 	cd ${WRKBUILD}; \
 	cd ${WRKBUILD}; \
-	    autoconf $(MAKE_TRACE)
+	    env AUTOCONF_VERSION=2.62 autoconf $(MAKE_TRACE)
 endif
 endif
 ifneq ($(filter gnu,${CONFIGURE_STYLE}),)
 ifneq ($(filter gnu,${CONFIGURE_STYLE}),)
 	@$(CMD_TRACE) "configuring... "
 	@$(CMD_TRACE) "configuring... "

+ 1 - 4
mk/vars.mk

@@ -14,10 +14,7 @@ TARGET_DEBUGGING:=	-g3 -fno-omit-frame-pointer
 else
 else
 TARGET_DEBUGGING:=	-fomit-frame-pointer
 TARGET_DEBUGGING:=	-fomit-frame-pointer
 endif
 endif
-ifeq ($(ADK_SSP),y)
-TARGET_SSP:=		-fstack-protector-all
-endif
-TARGET_CFLAGS:=		$(TARGET_OPTIMIZATION) $(TARGET_CFLAGS_ARCH) $(TARGET_DEBUGGING) $(TARGET_SSP)
+TARGET_CFLAGS:=		$(TARGET_OPTIMIZATION) $(TARGET_CFLAGS_ARCH) $(TARGET_DEBUGGING)
 
 
 BASE_DIR:=		$(TOPDIR)
 BASE_DIR:=		$(TOPDIR)
 DISTDIR?=		${BASE_DIR}/dl
 DISTDIR?=		${BASE_DIR}/dl

+ 5 - 0
package/Config.in

@@ -467,10 +467,15 @@ source "package/opencdk/Config.in"
 source "package/obexftp/Config.in.lib"
 source "package/obexftp/Config.in.lib"
 source "package/openobex/Config.in"
 source "package/openobex/Config.in"
 source "package/libosip2/Config.in"
 source "package/libosip2/Config.in"
+source "package/libosip2/Config.in.lib"
 source "package/libowfat/Config.in"
 source "package/libowfat/Config.in"
+source "package/libowfat/Config.in.lib"
 source "package/libp11/Config.in"
 source "package/libp11/Config.in"
+source "package/libp11/Config.in.lib"
 source "package/libpcap/Config.in"
 source "package/libpcap/Config.in"
+source "package/libpcap/Config.in.lib"
 source "package/libpri/Config.in"
 source "package/libpri/Config.in"
+source "package/libpri/Config.in.lib"
 source "package/pango/Config.in"
 source "package/pango/Config.in"
 source "package/pcre/Config.in"
 source "package/pcre/Config.in"
 source "package/libpng/Config.in"
 source "package/libpng/Config.in"

+ 1 - 1
package/atk/Makefile

@@ -6,10 +6,10 @@ include ${TOPDIR}/rules.mk
 PKG_NAME:=		atk
 PKG_NAME:=		atk
 PKG_VERSION:=		1.29.3
 PKG_VERSION:=		1.29.3
 PKG_RELEASE:=		1
 PKG_RELEASE:=		1
-PKG_BUILDDEP+=		glib
 PKG_MD5SUM:=		f587d9285b2d0ac35ea95acef673517c
 PKG_MD5SUM:=		f587d9285b2d0ac35ea95acef673517c
 PKG_DESCR:=		atk library
 PKG_DESCR:=		atk library
 PKG_SECTION:=		libs
 PKG_SECTION:=		libs
+PKG_BUILDDEP+=		glib
 PKG_URL:=		http://www.gnome.org
 PKG_URL:=		http://www.gnome.org
 PKG_SITES:=		${MASTER_SITE_GNOME:=/atk/1.29/}
 PKG_SITES:=		${MASTER_SITE_GNOME:=/atk/1.29/}
 
 

+ 1 - 1
package/aufs2-util/Makefile

@@ -9,7 +9,7 @@ PKG_RELEASE:=		1
 PKG_DESCR:=		aufs2 utilities
 PKG_DESCR:=		aufs2 utilities
 PKG_SECTION:=		admin
 PKG_SECTION:=		admin
 PKG_URL:=		http://aufs.sf.net/
 PKG_URL:=		http://aufs.sf.net/
-PKG_HOST_DEPENDS:=	!cygwin !freebsd
+PKG_HOST_DEPENDS:=	!cygwin !freebsd !openbsd
 
 
 NO_DISTFILES:=		1
 NO_DISTFILES:=		1
 
 

+ 2 - 0
package/base-files/extra/etc/network/if-post-down.d/01-bridge

@@ -22,3 +22,5 @@ for IF in $INTERFACES; do
 done
 done
 
 
 ip link set down dev $IFACE || exit 1
 ip link set down dev $IFACE || exit 1
+brctl delbr $IFACE
+exit 0

+ 10 - 0
package/base-files/extra/etc/network/if-post-down.d/02-vlan

@@ -0,0 +1,10 @@
+#!/bin/sh
+  
+[ -x /sbin/vconfig ] || exit 0
+
+[ -e /proc/net/vlan/$IFACE ] && (
+	ip link set down dev $IFACE 
+	vconfig rem $IFACE
+)
+
+exit 0

+ 9 - 11
package/base-files/extra/etc/network/if-pre-up.d/01-atm

@@ -1,18 +1,15 @@
 #!/bin/sh
 #!/bin/sh
 
 
-if [ ! -x /usr/sbin/br2684ctl ]
-then
-  exit 0
-fi
+[ -x /usr/sbin/br2684ctl ] || exit 0
 
 
-[ "$METHOD" == "atm" ] || exit 0
+[ "${IFACE%%[0-9]*}" = "nas" ] || exit 0
 
 
 [ "$IF_ATM_ENCAPS" ] || encap=0
 [ "$IF_ATM_ENCAPS" ] || encap=0
 [ "$IF_ATM_PAYLOAD" ] || payload=1
 [ "$IF_ATM_PAYLOAD" ] || payload=1
-[ "$IF_ATM_VPI" ] || $IF_ATM_VPI=1
-[ "$IF_ATM_VCI" ] || $IF_ATM_VCI=32
+[ "$IF_ATM_VPI" ] || IF_ATM_VPI=1
+[ "$IF_ATM_VCI" ] || IF_ATM_VCI=32
 
 
-case "$IF_ATM_PAYLOAD" in
+[ "$IF_ATM_PAYLOAD" ] && case "$IF_ATM_PAYLOAD" in
 bridged)
 bridged)
         payload=1
         payload=1
         ;;
         ;;
@@ -25,7 +22,7 @@ routed)
         ;;
         ;;
 esac
 esac
 
 
-case "$IF_ATM_ENCAPS" in
+[ "$IF_ATM_ENCAPS" ] && case "$IF_ATM_ENCAPS" in
 llc)
 llc)
         encap=0
         encap=0
         ;;
         ;;
@@ -38,6 +35,7 @@ vc)
         ;;
         ;;
 esac
 esac
 
 
-br2684ctl -b -c 0 -e $encap -p $payload -a $IF_ATM_VPI.$IF_ATM_VCI
-ifconfig nas0 up
+br2684ctl -b -c ${IFACE##*[a-z]} -e $encap -p $payload -a $IF_ATM_VPI.$IF_ATM_VCI
+ifconfig nas${IFACE##*[a-z]} up
+
 exit 0
 exit 0

+ 35 - 0
package/base-files/extra/etc/network/if-pre-up.d/02-vlan

@@ -0,0 +1,35 @@
+#!/bin/sh
+
+[ -x /sbin/vconfig ] || exit 0
+
+case "$IFACE" in
+        vlan*)
+               	vconfig set_name_type VLAN_PLUS_VID_NO_PAD
+               	VLANID=`echo $IFACE|sed "s/vlan*//"`
+		;;
+	eth*.*)
+		vconfig set_name_type DEV_PLUS_VID_NO_PAD
+		VLANID=`echo $IFACE|sed "s/eth[0-9][0-9]*\.*//g"`
+		IF_VLAN_RAW_DEVICE=`echo $IFACE|sed "s/\(eth[0-9][0-9]*\)\..*/\1/"`
+		;;
+	*)
+		exit 0
+		;;
+esac
+
+if [ "$IF_VLAN_RAW_DEVICE" != "" ]; then
+	if ! grep -q "$IF_VLAN_RAW_DEVICE" /proc/net/dev
+	then
+		echo "$IF_VLAN_RAW_DEVICE does not exist, unable to create $IFACE"
+		exit 1
+	fi
+	ip link set up dev $IF_VLAN_RAW_DEVICE
+	vconfig add $IF_VLAN_RAW_DEVICE $VLANID
+	if [ "$IF_MAC_ADDRESS" != "" ]
+	then
+		ip link set $IF_VLAN_RAW_DEVICE.$VLANID address $IF_MAC_ADDRESS
+	fi
+	ip link set up dev $IF_VLAN_RAW_DEVICE.$VLANID
+fi
+
+exit 0

+ 1 - 4
package/base-files/extra/etc/network/if-pre-up.d/02-bridge → package/base-files/extra/etc/network/if-pre-up.d/03-bridge

@@ -1,9 +1,6 @@
 #!/bin/sh
 #!/bin/sh
 
 
-if [ ! -x /usr/sbin/brctl ]
-then
-  exit 0
-fi
+[ -x /usr/sbin/brctl ] || exit 0
 
 
 case "$IF_BRIDGE_PORTS" in
 case "$IF_BRIDGE_PORTS" in
     "")
     "")

+ 4 - 0
package/base-files/extra/etc/network/if-up.d/01-bridge

@@ -0,0 +1,4 @@
+#!/bin/sh
+
+[ "${IFACE%%[0-9]*}" = "br" ] && ip link set up dev $IFACE
+exit 0

+ 1 - 1
package/bluez-firmware/Makefile

@@ -9,7 +9,7 @@ PKG_RELEASE:=		1
 PKG_MD5SUM:=		1cc3cefad872e937e05de5a0a2b390dd
 PKG_MD5SUM:=		1cc3cefad872e937e05de5a0a2b390dd
 PKG_DESCR:=		Bluez firmware for BCM2033
 PKG_DESCR:=		Bluez firmware for BCM2033
 PKG_SECTION:=		bluetooth
 PKG_SECTION:=		bluetooth
-PKG_DEPENDS:=		kmod-bluetooth bluez
+PKG_DEPENDS:=		kmod-bt bluez
 PKG_URL:=		http://www.bluez.org
 PKG_URL:=		http://www.bluez.org
 PKG_SITES:=		http://bluez.sourceforge.net/download/
 PKG_SITES:=		http://bluez.sourceforge.net/download/
 
 

+ 4 - 4
package/bluez/Makefile

@@ -4,12 +4,12 @@
 include ${TOPDIR}/rules.mk
 include ${TOPDIR}/rules.mk
 
 
 PKG_NAME:=		bluez
 PKG_NAME:=		bluez
-PKG_VERSION:=		4.57
-PKG_RELEASE:=		2
-PKG_MD5SUM:=		dc29e54f1204ac4215caeeee062b26f6
+PKG_VERSION:=		4.59
+PKG_RELEASE:=		1
+PKG_MD5SUM:=		1c7cee215bc84656b1edee019cee78f5
 PKG_DESCR:=		bluetooth libraries and applications
 PKG_DESCR:=		bluetooth libraries and applications
 PKG_SECTION:=		bluetooth
 PKG_SECTION:=		bluetooth
-PKG_DEPENDS:=		kmod-bluetooth libusb glib dbus
+PKG_DEPENDS:=		kmod-bt libusb glib dbus
 PKG_BUILDDEP+=		libusb dbus glib
 PKG_BUILDDEP+=		libusb dbus glib
 PKG_URL:=		http://www.bluez.org
 PKG_URL:=		http://www.bluez.org
 PKG_SITES:=		${MASTER_SITE_KERNEL:=bluetooth/}
 PKG_SITES:=		${MASTER_SITE_KERNEL:=bluetooth/}

+ 27 - 0
package/bluez/patches/patch-Makefile_in

@@ -0,0 +1,27 @@
+--- bluez-4.59.orig/Makefile.in	Thu Dec 24 17:42:48 2009
++++ bluez-4.59/Makefile.in	Tue Dec 29 01:31:12 2009
+@@ -48,7 +48,6 @@ noinst_PROGRAMS = $(am__EXEEXT_7) $(am__EXEEXT_8) $(am
+ 	$(am__EXEEXT_10) $(am__EXEEXT_11)
+ @SBC_TRUE@am__append_1 = sbc/libsbc.la
+ @SBC_TRUE@am__append_2 = sbc/sbcinfo sbc/sbcdec sbc/sbcenc
+-@SBC_TRUE@@SNDFILE_TRUE@am__append_3 = sbc/sbctester
+ @NETLINK_TRUE@am__append_4 = plugins/netlink.la
+ @ECHOPLUGIN_TRUE@am__append_5 = echo
+ @ECHOPLUGIN_TRUE@am__append_6 = plugins/echo.c
+@@ -318,7 +317,6 @@ sbc_libsbc_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(
+ @DUND_TRUE@am__EXEEXT_6 = compat/dund$(EXEEXT)
+ @SBC_TRUE@am__EXEEXT_7 = sbc/sbcinfo$(EXEEXT) sbc/sbcdec$(EXEEXT) \
+ @SBC_TRUE@	sbc/sbcenc$(EXEEXT)
+-@SBC_TRUE@@SNDFILE_TRUE@am__EXEEXT_8 = sbc/sbctester$(EXEEXT)
+ @TOOLS_TRUE@am__EXEEXT_9 = tools/avinfo$(EXEEXT) tools/ppporc$(EXEEXT) \
+ @TOOLS_TRUE@	tools/hcieventmask$(EXEEXT) \
+ @TOOLS_TRUE@	tools/hcisecfilter$(EXEEXT)
+@@ -918,8 +916,6 @@ lib_libbluetooth_la_DEPENDENCIES = $(local_headers)
+ @SBC_TRUE@sbc_sbcdec_LDADD = sbc/libsbc.la
+ @SBC_TRUE@sbc_sbcenc_SOURCES = sbc/sbcenc.c sbc/formats.h
+ @SBC_TRUE@sbc_sbcenc_LDADD = sbc/libsbc.la
+-@SBC_TRUE@@SNDFILE_TRUE@sbc_sbctester_LDADD = @SNDFILE_LIBS@
+-@SBC_TRUE@@SNDFILE_TRUE@sbc_sbctest_CFLAGS = @SNDFILE_CFLAGS@
+ @NETLINK_TRUE@plugins_netlink_la_LIBADD = @NETLINK_LIBS@
+ @NETLINK_TRUE@plugins_netlink_la_LDFLAGS = -module -avoid-version -no-undefined
+ @NETLINK_TRUE@plugins_netlink_la_CFLAGS = -fvisibility=hidden @DBUS_CFLAGS@ \

+ 7 - 0
package/bluez/patches/patch-scripts_bluetooth_rules

@@ -0,0 +1,7 @@
+--- bluez-4.59.orig/scripts/bluetooth.rules	Thu Dec 24 17:43:09 2009
++++ bluez-4.59/scripts/bluetooth.rules	Tue Dec 29 01:26:46 2009
+@@ -1,3 +1,3 @@
+ # Run helper every time a Bluetooth device appears
+ # On remove actions, bluetoothd should go away by itself
+-ACTION=="add", SUBSYSTEM=="bluetooth", RUN+="/usr/local/sbin/bluetoothd --udev"
++ACTION=="add", SUBSYSTEM=="bluetooth", RUN+="/usr/sbin/bluetoothd --udev"

+ 4 - 4
package/bluez/patches/patch-tools_hciattach_c

@@ -1,7 +1,7 @@
 $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
 $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
---- bluez-4.12.orig/tools/hciattach.c	2008-08-05 23:14:56.000000000 +0200
-+++ bluez-4.12/tools/hciattach.c	2009-05-12 18:14:29.000000000 +0200
-@@ -107,6 +107,7 @@ static int uart_speed(int s)
+--- bluez-4.59.orig/tools/hciattach.c	Tue May 19 11:04:10 2009
++++ bluez-4.59/tools/hciattach.c	Tue Dec 29 01:26:35 2009
+@@ -100,6 +100,7 @@ static int uart_speed(int s)
  		return B57600;
  		return B57600;
  	case 115200:
  	case 115200:
  		return B115200;
  		return B115200;
@@ -9,7 +9,7 @@ $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  	case 230400:
  	case 230400:
  		return B230400;
  		return B230400;
  	case 460800:
  	case 460800:
-@@ -125,6 +126,7 @@ static int uart_speed(int s)
+@@ -118,6 +119,7 @@ static int uart_speed(int s)
  		return B1500000;
  		return B1500000;
  	case 2000000:
  	case 2000000:
  		return B2000000;
  		return B2000000;

+ 3 - 3
package/bogofilter/patches/patch-configure_ac

@@ -1,7 +1,7 @@
 $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
 $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
---- bogofilter-1.2.0.orig/configure.ac	2009-02-21 21:41:43.000000000 +0100
-+++ bogofilter-1.2.0/configure.ac	2009-05-28 19:47:00.466710794 +0200
-@@ -550,49 +550,6 @@ Cannot link against libdb? Try these ste
+--- bogofilter-1.2.0.orig/configure.ac	Sat Feb 21 21:41:43 2009
++++ bogofilter-1.2.0/configure.ac	Tue Dec 29 01:38:12 2009
+@@ -550,49 +550,6 @@ Cannot link against libdb? Try these steps to solve th
  	AH_TEMPLATE([HAVE_DB_H], [Have suitable db.h header])
  	AH_TEMPLATE([HAVE_DB_H], [Have suitable db.h header])
  	AC_SUBST(LIBDB)
  	AC_SUBST(LIBDB)
  
  

+ 1 - 1
package/cryptsetup/Makefile

@@ -9,7 +9,7 @@ PKG_RELEASE:=		1
 PKG_MD5SUM:=		5eea2a77391a8a1a651b31cbaef59e22
 PKG_MD5SUM:=		5eea2a77391a8a1a651b31cbaef59e22
 PKG_DESCR:=		LUKS cryptsetup tools
 PKG_DESCR:=		LUKS cryptsetup tools
 PKG_SECTION:=		crypto
 PKG_SECTION:=		crypto
-PKG_DEPENDS:=		libgcrypt device-mapper libuuid libpopt kmod-dm-crypt kmod-crypto-aes kmod-crypto-cbc kmod-crypto-sha256 kmod-dm-mod
+PKG_DEPENDS:=		libgcrypt device-mapper libuuid libpopt kmod-dm-crypt kmod-crypto-aes kmod-crypto-cbc kmod-crypto-sha256 kmod-blk-dev-dm
 PKG_BUILDDEP+=		libgcrypt popt e2fsprogs lvm
 PKG_BUILDDEP+=		libgcrypt popt e2fsprogs lvm
 PKG_URL:=		http://cryptsetup.googlecode.com
 PKG_URL:=		http://cryptsetup.googlecode.com
 PKG_SITES:=		http://cryptsetup.googlecode.com/files/
 PKG_SITES:=		http://cryptsetup.googlecode.com/files/

+ 6 - 6
package/davfs2/Makefile

@@ -6,24 +6,24 @@ include ${TOPDIR}/rules.mk
 PKG_NAME=		davfs2
 PKG_NAME=		davfs2
 PKG_VERSION=		1.3.3
 PKG_VERSION=		1.3.3
 PKG_RELEASE=		1
 PKG_RELEASE=		1
+PKG_MD5SUM=		57def26e4d6d63527e01612d10fd0515
+PKG_DESCR:=		WebDAV filesystem
+PKG_SECTION:=		admin
 PKG_BUILDDEP+=		libiconv neon
 PKG_BUILDDEP+=		libiconv neon
 ifneq (${ADK_PACKAGE_DAVFS2_FUSE}${ADK_PACKAGE_DAVFS2_BOTH},)
 ifneq (${ADK_PACKAGE_DAVFS2_FUSE}${ADK_PACKAGE_DAVFS2_BOTH},)
 PKG_BUILDDEP+=		fuse
 PKG_BUILDDEP+=		fuse
 endif
 endif
-PKG_MD5SUM=		57def26e4d6d63527e01612d10fd0515
-PKG_DESCR:=		WebDAV filesystem
-PKG_SECTION:=		admin
 PKG_URL:=		http://savannah.nongnu.org/projects/davfs2
 PKG_URL:=		http://savannah.nongnu.org/projects/davfs2
 PKG_SITES=		${MASTER_SITE_SOURCEFORGE:=dav/}
 PKG_SITES=		${MASTER_SITE_SOURCEFORGE:=dav/}
 
 
 include ${TOPDIR}/mk/package.mk
 include ${TOPDIR}/mk/package.mk
 
 
 ifeq (${ADK_PACKAGE_DAVFS2_FUSE},y)
 ifeq (${ADK_PACKAGE_DAVFS2_FUSE},y)
-PKG_DEPENDS:=			fuse-utils kmod-fuse libiconv neon
+PKG_DEPENDS:=			fuse-utils kmod-fuse-fs libiconv neon
 else ifeq (${ADK_PACKAGE_DAVFS2_CODA},y)
 else ifeq (${ADK_PACKAGE_DAVFS2_CODA},y)
-PKG_DEPENDS:=			kmod-fs-coda libiconv neon
+PKG_DEPENDS:=			kmod-coda-fs libiconv neon
 else
 else
-PKG_DEPENDS:=			kmod-fs-coda fuse-utils kmod-fuse libiconv neon
+PKG_DEPENDS:=			kmod-coda-fs fuse-utils kmod-fuse-fs libiconv neon
 endif
 endif
 
 
 $(eval $(call PKG_template,DAVFS2,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
 $(eval $(call PKG_template,DAVFS2,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))

+ 1 - 1
package/fuse/Makefile

@@ -9,7 +9,7 @@ PKG_RELEASE:=		1
 PKG_MD5SUM:=		4879f06570d2225667534c37fea04213
 PKG_MD5SUM:=		4879f06570d2225667534c37fea04213
 PKG_DESCR:=		Filesystem in Userspace (utilities)
 PKG_DESCR:=		Filesystem in Userspace (utilities)
 PKG_SECTION:=		admin
 PKG_SECTION:=		admin
-PKG_DEPENDS:=		kmod-fuse
+PKG_DEPENDS:=		kmod-fuse-fs
 PKG_URL:=		http://fuse.sourceforge.net
 PKG_URL:=		http://fuse.sourceforge.net
 PKG_SITES:=		${MASTER_SITE_SOURCEFORGE:=${PKG_NAME}/}
 PKG_SITES:=		${MASTER_SITE_SOURCEFORGE:=${PKG_NAME}/}
 
 

+ 4 - 4
package/igmpproxy/Makefile

@@ -4,12 +4,12 @@
 include ${TOPDIR}/rules.mk
 include ${TOPDIR}/rules.mk
 
 
 PKG_NAME:=		igmpproxy
 PKG_NAME:=		igmpproxy
-PKG_VERSION:=		0.1_beta4
+PKG_VERSION:=		0.1
 PKG_RELEASE:=		1
 PKG_RELEASE:=		1
-PKG_MD5SUM:=		0a16178aeca5d1bf54c129cec9597f85
-PKG_DESCR:=		IGMPproxy is a simple dynamic Multicast Routing Daemon
+PKG_MD5SUM:=		c56f41ec195bc1fe016369bf74efc5a1
+PKG_DESCR:=		a simple dynamic Multicast Routing Daemon
 PKG_SECTION:=		net
 PKG_SECTION:=		net
-PKG_URL:=		http://sourceforge.net/projects/igmpproxy
+PKG_URL:=		http://sourceforge.net/projects/igmpproxy/
 PKG_SITES:=		${MASTER_SITE_SOURCEFORGE:=igmpproxy/}
 PKG_SITES:=		${MASTER_SITE_SOURCEFORGE:=igmpproxy/}
 
 
 include ${TOPDIR}/mk/package.mk
 include ${TOPDIR}/mk/package.mk

+ 1 - 1
package/iptables/Makefile

@@ -9,7 +9,7 @@ PKG_RELEASE:=		1
 PKG_MD5SUM:=		c67cf30e281a924def6426be0973df56
 PKG_MD5SUM:=		c67cf30e281a924def6426be0973df56
 PKG_DESCR:=		The netfilter firewalling software
 PKG_DESCR:=		The netfilter firewalling software
 PKG_SECTION:=		net
 PKG_SECTION:=		net
-PKG_DEPENDS:=		kmod-nf-ip-iptables kmod-nf-conntrack kmod-nf-conntrack-ipv4 kmod-nf-nat kmod-nf-ip-target-masquerade kmod-nf-ip-target-reject kmod-nf-ip-filter
+PKG_DEPENDS:=		kmod-ip-nf-iptables kmod-nf-conntrack kmod-nf-conntrack-ipv4 kmod-nf-nat kmod-ip-nf-target-masquerade kmod-ip-nf-target-reject kmod-ip-nf-filter
 PKG_URL:=		http://www.netfilter.org
 PKG_URL:=		http://www.netfilter.org
 PKG_SITES:=		http://www.netfilter.org/projects/iptables/files/ \
 PKG_SITES:=		http://www.netfilter.org/projects/iptables/files/ \
 			ftp://ftp.be.netfilter.org/pub/netfilter/iptables/ \
 			ftp://ftp.be.netfilter.org/pub/netfilter/iptables/ \

+ 2 - 1
package/krb5/Makefile

@@ -6,11 +6,11 @@ include $(TOPDIR)/rules.mk
 PKG_NAME:=		krb5
 PKG_NAME:=		krb5
 PKG_VERSION:=		1.7
 PKG_VERSION:=		1.7
 PKG_RELEASE:=		2
 PKG_RELEASE:=		2
-PKG_BUILDDEP+=		ncurses e2fsprogs
 PKG_MD5SUM:=		9f7b3402b4731a7fa543db193bf1b564
 PKG_MD5SUM:=		9f7b3402b4731a7fa543db193bf1b564
 PKG_DESCR:=		MIT kerberos server
 PKG_DESCR:=		MIT kerberos server
 PKG_SECTION:=		net
 PKG_SECTION:=		net
 PKG_DEPENDS:=		krb5-libs libncurses libss libcom-err
 PKG_DEPENDS:=		krb5-libs libncurses libss libcom-err
+PKG_BUILDDEP+=		ncurses e2fsprogs
 PKG_URL:=		http://web.mit.edu/kerberos
 PKG_URL:=		http://web.mit.edu/kerberos
 PKG_SITES:=		http://web.mit.edu/kerberos/dist/krb5/1.7/
 PKG_SITES:=		http://web.mit.edu/kerberos/dist/krb5/1.7/
 
 
@@ -28,6 +28,7 @@ $(eval $(call PKG_template,KRB5_LIBS,krb5-libs,$(PKG_VERSION)-${PKG_RELEASE},,${
 TCFLAGS+=		-I${STAGING_DIR}/usr/include/et
 TCFLAGS+=		-I${STAGING_DIR}/usr/include/et
 CONFIGURE_STYLE:=	gnu
 CONFIGURE_STYLE:=	gnu
 CONFIGURE_ARGS+=	--disable-static \
 CONFIGURE_ARGS+=	--disable-static \
+			--disable-profiled \
 			--with-system-ss \
 			--with-system-ss \
 			--with-system-et \
 			--with-system-et \
 			--without-tcl
 			--without-tcl

+ 3 - 3
package/krb5/patches/patch-src_Makefile_in

@@ -1,6 +1,6 @@
---- krb5-1.7.orig/src/Makefile.in	2009-04-15 22:07:03.000000000 +0200
-+++ krb5-1.7/src/Makefile.in	2009-11-11 19:45:39.281234175 +0100
-@@ -13,7 +13,6 @@ SUBDIRS=util include lib kdc kadmin @lda
+--- krb5-1.7.orig/src/Makefile.in	Wed Apr 15 22:07:03 2009
++++ krb5-1.7/src/Makefile.in	Mon Dec 28 16:13:47 2009
+@@ -13,7 +13,6 @@ SUBDIRS=util include lib kdc kadmin @ldap_plugin_dir@ 
  	plugins/kdb/db2 \
  	plugins/kdb/db2 \
  	plugins/preauth/pkinit \
  	plugins/preauth/pkinit \
  	plugins/preauth/encrypted_challenge \
  	plugins/preauth/encrypted_challenge \

+ 1 - 0
package/libX11/Makefile

@@ -23,6 +23,7 @@ $(eval $(call PKG_template,LIBX11,libx11,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEP
 XAKE_FLAGS+=		HOSTCPPFLAGS=-I${STAGING_DIR}/usr/include/xproto
 XAKE_FLAGS+=		HOSTCPPFLAGS=-I${STAGING_DIR}/usr/include/xproto
 CONFIGURE_STYLE:=	gnu
 CONFIGURE_STYLE:=	gnu
 CONFIGURE_ARGS+=	--enable-xlocale \
 CONFIGURE_ARGS+=	--enable-xlocale \
+			--disable-specs \
 			--disable-xf86bigfont \
 			--disable-xf86bigfont \
 			--disable-malloc0returnsnull \
 			--disable-malloc0returnsnull \
 			--without-xcb
 			--without-xcb

+ 2 - 2
package/miax/Makefile

@@ -6,11 +6,11 @@ include ${TOPDIR}/rules.mk
 PKG_NAME:=		miax
 PKG_NAME:=		miax
 PKG_VERSION:=		1.4
 PKG_VERSION:=		1.4
 PKG_RELEASE:=		1
 PKG_RELEASE:=		1
-PKG_BUILDDEP+=		bluez
 PKG_MD5SUM:=		44f0d2ef46ee2697d890b7b96846adc7
 PKG_MD5SUM:=		44f0d2ef46ee2697d890b7b96846adc7
 PKG_DESCR:=		A console iax (asterisk) client
 PKG_DESCR:=		A console iax (asterisk) client
 PKG_SECTION:=		bluetooth
 PKG_SECTION:=		bluetooth
-PKG_DEPENDS:=		kmod-bluetooth bluez libpthread
+PKG_DEPENDS:=		kmod-bt bluez libpthread
+PKG_BUILDDEP+=		bluez
 PKG_URL:=		http://sourceforge.net/projects/miax
 PKG_URL:=		http://sourceforge.net/projects/miax
 PKG_SITES:=		http://mesh.dl.sourceforge.net/sourceforge/miax/
 PKG_SITES:=		http://mesh.dl.sourceforge.net/sourceforge/miax/
 
 

+ 1 - 1
package/mtd/src/mtd.c

@@ -277,7 +277,7 @@ main(int argc, char **argv)
 	buflen = 0;
 	buflen = 0;
 	quiet = 0;
 	quiet = 0;
 
 
-	while ((ch = getopt(argc, argv, "Fqe:")) != -1)
+	while ((ch = getopt(argc, argv, "Fqre:")) != -1)
 		switch (ch) {
 		switch (ch) {
 			case 'F':
 			case 'F':
 				quiet = 1;
 				quiet = 1;

+ 10 - 9
package/mysql/patches/patch-configure

@@ -1,6 +1,6 @@
---- mysql-5.1.41.orig/configure	2009-11-04 19:37:28.000000000 +0100
-+++ mysql-5.1.41/configure	2009-12-25 12:18:01.000000000 +0100
-@@ -46976,197 +46976,14 @@ $as_echo "$as_me: error: unknown endiann
+--- mysql-5.1.41.orig/configure	Wed Nov  4 19:37:28 2009
++++ mysql-5.1.41/configure	Tue Dec 29 13:28:43 2009
+@@ -46976,198 +46976,15 @@ $as_echo "$as_me: error: unknown endianness
    esac
    esac
  
  
  
  
@@ -177,7 +177,7 @@
  
  
 -      { $as_echo "$as_me:$LINENO: result: yes" >&5
 -      { $as_echo "$as_me:$LINENO: result: yes" >&5
 -$as_echo "yes" >&6; }
 -$as_echo "yes" >&6; }
--
+ 
 -else
 -else
 -  $as_echo "$as_me: program exited with status $ac_status" >&5
 -  $as_echo "$as_me: program exited with status $ac_status" >&5
 -$as_echo "$as_me: failed program was:" >&5
 -$as_echo "$as_me: failed program was:" >&5
@@ -195,13 +195,15 @@
 -fi
 -fi
 -
 -
 -
 -
- 
+-
    { $as_echo "$as_me:$LINENO: checking whether Solaris libc atomic functions are available" >&5
    { $as_echo "$as_me:$LINENO: checking whether Solaris libc atomic functions are available" >&5
  $as_echo_n "checking whether Solaris libc atomic functions are available... " >&6; }
  $as_echo_n "checking whether Solaris libc atomic functions are available... " >&6; }
-@@ -47284,101 +47101,6 @@ fi
+   # either define HAVE_IB_SOLARIS_ATOMICS or not
+@@ -47283,101 +47100,6 @@ _ACEOF
+ fi
  done
  done
  
  
- 
+-
 -  { $as_echo "$as_me:$LINENO: checking whether pthread_t can be used by Solaris libc atomic functions" >&5
 -  { $as_echo "$as_me:$LINENO: checking whether pthread_t can be used by Solaris libc atomic functions" >&5
 -$as_echo_n "checking whether pthread_t can be used by Solaris libc atomic functions... " >&6; }
 -$as_echo_n "checking whether pthread_t can be used by Solaris libc atomic functions... " >&6; }
 -  # either define HAVE_IB_ATOMIC_PTHREAD_T_SOLARIS or not
 -  # either define HAVE_IB_ATOMIC_PTHREAD_T_SOLARIS or not
@@ -296,7 +298,6 @@
 -rm -rf conftest.dSYM
 -rm -rf conftest.dSYM
 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 -fi
 -fi
--
  
  
  
  
-   # this is needed to know which one of atomic_cas_32() or atomic_cas_64()
+ 

+ 54 - 0
package/mysql/patches/patch-include_my_global_h

@@ -0,0 +1,54 @@
+--- mysql-5.1.41.orig/include/my_global.h	Wed Nov  4 19:28:15 2009
++++ mysql-5.1.41/include/my_global.h	Tue Dec 29 13:39:20 2009
+@@ -18,6 +18,8 @@
+ #ifndef _global_h
+ #define _global_h
+ 
++#include <sys/param.h>
++
+ /*
+   InnoDB depends on some MySQL internals which other plugins should not
+   need.  This is because of InnoDB's foreign key support, "safe" binlog
+@@ -424,7 +426,7 @@ C_MODE_END
+ #ifdef HAVE_FLOAT_H
+ #include <float.h>
+ #endif
+-#ifdef HAVE_FENV_H
++#if defined(HAVE_FENV_H) && !defined(BSD)
+ #include <fenv.h> /* For fesetround() */
+ #endif
+ 
+@@ -454,15 +456,20 @@ C_MODE_END
+ #undef HAVE_ALLOCA
+ #undef HAVE_ALLOCA_H
+ #endif
+-#ifdef HAVE_ALLOCA_H
++#if defined(HAVE_ALLOCA_H) && !defined(BSD)
+ #include <alloca.h>
+ #endif
+ 
+ #include <errno.h>				/* Recommended by debian */
+ /* We need the following to go around a problem with openssl on solaris */
++#ifdef BSD
++#include <pwd.h>
++#include <unistd.h>
++#else
+ #if defined(HAVE_CRYPT_H)
+ #include <crypt.h>
+ #endif
++#endif
+ 
+ /*
+   A lot of our programs uses asserts, so better to always include it
+@@ -879,9 +886,11 @@ typedef SOCKET_SIZE_TYPE size_socket;
+ #endif /* HAVE_FINITE */
+ #endif /* isfinite */
+ 
++/*
+ #ifndef HAVE_ISNAN
+ #define isnan(x) ((x) != (x))
+ #endif
++*/
+ 
+ #ifdef HAVE_ISINF
+ /* Check if C compiler is affected by GCC bug #39228 */

+ 3 - 1
package/ncurses/Makefile

@@ -24,6 +24,7 @@ CONFIGURE_ARGS+=	--without-cxx \
 			--with-build-cc=${HOSTCC} \
 			--with-build-cc=${HOSTCC} \
 			--without-progs \
 			--without-progs \
 			--with-fallbacks \
 			--with-fallbacks \
+			--disable-termcap \
 			--without-ada \
 			--without-ada \
 			--with-shared \
 			--with-shared \
 			--with-normal \
 			--with-normal \
@@ -69,8 +70,9 @@ post-install:
 	${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/share/terminfo/
 	${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/share/terminfo/
 	for f in ansi dumb linux rxvt screen vt100 vt102 \
 	for f in ansi dumb linux rxvt screen vt100 vt102 \
 	    vt220 wsvt25 xterm xterm-color xterm-xfree86; do \
 	    vt220 wsvt25 xterm xterm-color xterm-xfree86; do \
+		${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/share/terminfo/$${f:0:1}; \
 		${INSTALL_DATA} ${WRKINST}/usr/share/terminfo/*/$$f \
 		${INSTALL_DATA} ${WRKINST}/usr/share/terminfo/*/$$f \
-		    ${IDIR_LIBNCURSES}/usr/share/terminfo/$$f; \
+		    ${IDIR_LIBNCURSES}/usr/share/terminfo/$${f:0:1}/$$f; \
 	done
 	done
 	${INSTALL_DIR} ${IDIR_LIBNCURSES_DEV}/usr/include
 	${INSTALL_DIR} ${IDIR_LIBNCURSES_DEV}/usr/include
 	${CP} ${WRKINST}/usr/include/*.h ${IDIR_LIBNCURSES_DEV}/usr/include
 	${CP} ${WRKINST}/usr/include/*.h ${IDIR_LIBNCURSES_DEV}/usr/include

+ 2 - 2
package/openssl/Makefile

@@ -33,10 +33,10 @@ INSTALL_STYLE:=		auto
 INSTALL_TARGET:=	install_sw
 INSTALL_TARGET:=	install_sw
 FAKE_FLAGS+=		INSTALL_PREFIX=${WRKINST}
 FAKE_FLAGS+=		INSTALL_PREFIX=${WRKINST}
 
 
-OPENSSL_OPTIONS = shared no-ec no-err no-hw no-krb5 no-threads zlib-dynamic no-engines no-camellia no-idea no-rc5 no-mdc2 no-sha0 no-smime no-aes192 no-ripemd no-cast
+OPENSSL_OPTIONS = shared no-ec no-err no-krb5 no-threads zlib-dynamic no-engines no-camellia no-idea no-rc5 no-mdc2 no-sha0 no-smime no-aes192 no-ripemd no-cast
 
 
 post-extract:
 post-extract:
-	@find ${WRKBUILD} -name *.rej -delete
+	@find ${WRKBUILD} -name *.rej -exec rm {} \;
 
 
 do-configure:
 do-configure:
 	(cd $(WRKBUILD); \
 	(cd $(WRKBUILD); \

+ 1 - 1
package/pptp/Makefile

@@ -9,7 +9,7 @@ PKG_RELEASE:=		3
 PKG_MD5SUM:=		9a706327fb9827541d7c86d48ceb9631
 PKG_MD5SUM:=		9a706327fb9827541d7c86d48ceb9631
 PKG_DESCR:=		a Point-to-Point Tunneling Protocol (PPTP) client
 PKG_DESCR:=		a Point-to-Point Tunneling Protocol (PPTP) client
 PKG_SECTION:=		net
 PKG_SECTION:=		net
-PKG_DEPENDS:=		ppp kmod-gre
+PKG_DEPENDS:=		ppp kmod-net-ipgre
 PKG_SITES:=		${MASTER_SITE_SOURCEFORGE:=pptpclient/}
 PKG_SITES:=		${MASTER_SITE_SOURCEFORGE:=pptpclient/}
 
 
 include ${TOPDIR}/mk/package.mk
 include ${TOPDIR}/mk/package.mk

+ 0 - 1
package/pptpd/Makefile

@@ -24,7 +24,6 @@ TCFLAGS+=		-DSBINDIR=\\\"/usr/sbin\\\"
 FAKE_FLAGS+=		INSTALL="install"
 FAKE_FLAGS+=		INSTALL="install"
 
 
 post-install:
 post-install:
-	${INSTALL_DIR} ${IDIR_PPTPD}/etc
 	${INSTALL_DIR} ${IDIR_PPTPD}/etc/ppp
 	${INSTALL_DIR} ${IDIR_PPTPD}/etc/ppp
 	${INSTALL_DIR} ${IDIR_PPTPD}/usr/sbin
 	${INSTALL_DIR} ${IDIR_PPTPD}/usr/sbin
 	${INSTALL_DATA} ./files/pptpd.conf ${IDIR_PPTPD}/etc/
 	${INSTALL_DATA} ./files/pptpd.conf ${IDIR_PPTPD}/etc/

+ 2 - 1
package/sangam-atm/Makefile

@@ -9,6 +9,7 @@ PKG_RELEASE:=		1
 PKG_MD5SUM:=		3843f3e670967fe81561770ac960c1cd
 PKG_MD5SUM:=		3843f3e670967fe81561770ac960c1cd
 PKG_DESCR:=		sangam-atm DSL modem driver for TI AR7 boards
 PKG_DESCR:=		sangam-atm DSL modem driver for TI AR7 boards
 PKG_SECTION:=		kernel
 PKG_SECTION:=		kernel
+PKG_DEPENDS:=		kmod-fw-loader kmod-atm
 PKG_SITES:=		http://openadk.org/distfiles/
 PKG_SITES:=		http://openadk.org/distfiles/
 
 
 PKG_TARGET_DEPENDS:=	ag241
 PKG_TARGET_DEPENDS:=	ag241
@@ -16,7 +17,7 @@ PKG_TARGET_DEPENDS:=	ag241
 include ${TOPDIR}/mk/package.mk
 include ${TOPDIR}/mk/package.mk
 include ${TOPDIR}/mk/kernel-vars.mk
 include ${TOPDIR}/mk/kernel-vars.mk
 
 
-$(eval $(call PKG_template,KMOD_SANGAM_ATM,kmod-sangam-atm,${KERNEL_VERSION}+${PKG_VERSION}-${ADK_TARGET}-${PKG_RELEASE},,${PKG_DESCR},${PKG_SECTION}))
+$(eval $(call PKG_template,KMOD_SANGAM_ATM,kmod-sangam-atm,${KERNEL_VERSION}+${PKG_VERSION}-${ADK_TARGET}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
 
 
 BUILD_STYLE:=		manual
 BUILD_STYLE:=		manual
 INSTALL_STYLE:=		manual
 INSTALL_STYLE:=		manual

+ 1 - 1
package/tcpdump/Makefile

@@ -6,11 +6,11 @@ include ${TOPDIR}/rules.mk
 PKG_NAME:=		tcpdump
 PKG_NAME:=		tcpdump
 PKG_VERSION:=		4.0.0
 PKG_VERSION:=		4.0.0
 PKG_RELEASE:=		1
 PKG_RELEASE:=		1
-PKG_BUILDDEP+=		libpcap
 PKG_MD5SUM:=		b22ca72890df2301d922c9f2d17867f9
 PKG_MD5SUM:=		b22ca72890df2301d922c9f2d17867f9
 PKG_DESCR:=		A tool for network monitoring and data acquisition.
 PKG_DESCR:=		A tool for network monitoring and data acquisition.
 PKG_SECTION:=		net
 PKG_SECTION:=		net
 PKG_DEPENDS:=		libpcap
 PKG_DEPENDS:=		libpcap
+PKG_BUILDDEP+=		libpcap
 PKG_URL:=		http://www.tcpdump.org
 PKG_URL:=		http://www.tcpdump.org
 PKG_SITES:=		http://www.tcpdump.org/release/ \
 PKG_SITES:=		http://www.tcpdump.org/release/ \
 			http://www.sfr-fresh.com/unix/misc/ \
 			http://www.sfr-fresh.com/unix/misc/ \

+ 2 - 2
package/util-linux-ng/Makefile

@@ -6,10 +6,10 @@ include ${TOPDIR}/rules.mk
 PKG_NAME:=		util-linux-ng
 PKG_NAME:=		util-linux-ng
 PKG_VERSION:=		2.16.1
 PKG_VERSION:=		2.16.1
 PKG_RELEASE:=		2
 PKG_RELEASE:=		2
-PKG_BUILDDEP+=		e2fsprogs ncurses
 PKG_MD5SUM:=		fc57e5fd5be9e569b026b5077fafe84f
 PKG_MD5SUM:=		fc57e5fd5be9e569b026b5077fafe84f
 PKG_DESCR:=		Linux utilities
 PKG_DESCR:=		Linux utilities
 PKG_SECTION:=		admin
 PKG_SECTION:=		admin
+PKG_BUILDDEP+=		e2fsprogs ncurses
 PKG_URL:=		http://userweb.kernel.org/~kzak/util-linux-ng
 PKG_URL:=		http://userweb.kernel.org/~kzak/util-linux-ng
 PKG_SITES:=		${MASTER_SITE_KERNEL:=utils/util-linux-ng/v2.16/}
 PKG_SITES:=		${MASTER_SITE_KERNEL:=utils/util-linux-ng/v2.16/}
 
 
@@ -18,7 +18,7 @@ PKG_DESCR_SFDISK:=	Scriptable Partition table manipulation utility
 PKG_DESCR_SWAP:=	Swap space management utilities
 PKG_DESCR_SWAP:=	Swap space management utilities
 PKG_DEPENDS_SWAP:=	libblkid
 PKG_DEPENDS_SWAP:=	libblkid
 PKG_DESCR_LOOP:=	Loop devices setup and control utility
 PKG_DESCR_LOOP:=	Loop devices setup and control utility
-PKG_DEPENDS_LOOP:=	kmod-loop
+PKG_DEPENDS_LOOP:=	kmod-blk-dev-loop
 
 
 include ${TOPDIR}/mk/package.mk
 include ${TOPDIR}/mk/package.mk
 
 

+ 2 - 2
package/wdfs/Makefile

@@ -6,11 +6,11 @@ include ${TOPDIR}/rules.mk
 PKG_NAME=		wdfs
 PKG_NAME=		wdfs
 PKG_VERSION=		1.4.2
 PKG_VERSION=		1.4.2
 PKG_RELEASE=		2
 PKG_RELEASE=		2
-PKG_BUILDDEP+=		openssl fuse neon glib
 PKG_MD5SUM=		628bb44194d04c1cf8aacc446ed0a230
 PKG_MD5SUM=		628bb44194d04c1cf8aacc446ed0a230
 PKG_DESCR:=		WebDAV filesystem
 PKG_DESCR:=		WebDAV filesystem
 PKG_SECTION:=		net
 PKG_SECTION:=		net
-PKG_DEPENDS:=		libopenssl fuse-utils kmod-fuse neon glib
+PKG_DEPENDS:=		libopenssl fuse-utils kmod-fuse-fs neon glib
+PKG_BUILDDEP+=		openssl fuse neon glib
 PKG_SITES=		http://noedler.de/projekte/wdfs/
 PKG_SITES=		http://noedler.de/projekte/wdfs/
 
 
 include ${TOPDIR}/mk/package.mk
 include ${TOPDIR}/mk/package.mk

+ 1 - 1
package/xorg-server/Makefile

@@ -9,7 +9,7 @@ PKG_RELEASE:=		1
 PKG_MD5SUM:=		913a672cbd6da516de15965d594e20b9
 PKG_MD5SUM:=		913a672cbd6da516de15965d594e20b9
 PKG_DESCR:=		Xorg server
 PKG_DESCR:=		Xorg server
 PKG_SECTION:=		x11
 PKG_SECTION:=		x11
-PKG_DEPENDS:=		libopenssl libxfont pixman libpciaccess libxkbfile libfontenc
+PKG_DEPENDS:=		libopenssl libxfont pixman libpciaccess libxkbfile libfontenc xkeyboard-config xkbcomp
 PKG_BUILDDEP+=		libX11 randrproto renderproto fixesproto damageproto scrnsaverproto resourceproto fontsproto videoproto compositeproto evieext libxkbfile libXfont pixman libpciaccess openssl xf86dgaproto
 PKG_BUILDDEP+=		libX11 randrproto renderproto fixesproto damageproto scrnsaverproto resourceproto fontsproto videoproto compositeproto evieext libxkbfile libXfont pixman libpciaccess openssl xf86dgaproto
 PKG_URL:=		http://www.x.org
 PKG_URL:=		http://www.x.org
 PKG_SITES:=		${MASTER_SITE_XORG}
 PKG_SITES:=		${MASTER_SITE_XORG}

+ 1 - 1
rules.mk

@@ -40,7 +40,7 @@ export BASH HOSTCC HOSTCFLAGS MAKE LANGUAGE LC_ALL OStype PATH
 
 
 HOSTCPPFLAGS?=
 HOSTCPPFLAGS?=
 HOSTLDFLAGS?=
 HOSTLDFLAGS?=
-TARGET_CFLAGS:=		$(strip -fwrapv -fno-ident ${TARGET_CFLAGS})
+TARGET_CFLAGS:=		$(strip -fno-ident ${TARGET_CFLAGS})
 TARGET_CC:=		$(strip ${TARGET_CC})
 TARGET_CC:=		$(strip ${TARGET_CC})
 TARGET_CXX:=		$(strip ${TARGET_CXX})
 TARGET_CXX:=		$(strip ${TARGET_CXX})
 
 

+ 9 - 0
scripts/awk

@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+if [ -z "$(which gawk 2>/dev/null)" ];then
+	/bin/awk "$@"
+else
+	gawk "$@"
+fi

+ 1 - 1
target/ag241/Makefile

@@ -15,7 +15,7 @@ $(TOOLS_BUILD_DIR):
 tools-compile: $(TOOLS_BUILD_DIR)
 tools-compile: $(TOOLS_BUILD_DIR)
 	$(MAKE) -C tools/addpattern
 	$(MAKE) -C tools/addpattern
 	$(MAKE) -C tools/srec2bin
 	$(MAKE) -C tools/srec2bin
-	$(MAKE) -C tools/squashfs prepare compile install
+	$(MAKE) -C ../tools/squashfs prepare compile install
 
 
 kernel-install: tools-compile
 kernel-install: tools-compile
 	PATH='${TARGET_PATH}' \
 	PATH='${TARGET_PATH}' \

+ 1 - 1
target/ag241/files/etc/network/interfaces

@@ -2,7 +2,7 @@ auto lo
 iface lo inet loopback
 iface lo inet loopback
 
 
 auto nas0
 auto nas0
-iface nas0 inet atm
+iface nas0 inet manual
 
 
 auto br0
 auto br0
 iface br0 inet manual
 iface br0 inet manual

+ 0 - 27
target/ag241/tools/squashfs/Makefile

@@ -1,27 +0,0 @@
-# $Id$
-#-
-# This file is part of the OpenADK project. OpenADK is copyrighted
-# material, please see the LICENCE file in the top-level directory.
-
-include $(TOPDIR)/rules.mk
-
-PKG_NAME:=		squashfs
-PKG_VERSION:=		4.0
-PKG_RELEASE:=		1
-PKG_MD5SUM:=		a3c23391da4ebab0ac4a75021ddabf96
-PKG_SITES:=		${MASTER_SITE_SOURCEFORGE:=squashfs/}
-DISTFILES:=		${PKG_NAME}${PKG_VERSION}.tar.gz
-WRKDIST=		${WRKDIR}/$(PKG_NAME)${PKG_VERSION}
-
-include ../rules.mk
-
-$(WRKBUILD)/.compiled: ${WRKDIST}/.prepared
-	$(MAKE) -C $(WRKBUILD)/squashfs-tools
-	touch $@
-
-$(WRKBUILD)/.installed:
-	$(INSTALL_BIN) $(WRKBUILD)/squashfs-tools/mksquashfs \
-		${STAGING_TOOLS}/bin
-	touch $@
-
-include $(TOPDIR)/mk/tools.mk

+ 2 - 2
target/foxboard/Makefile

@@ -12,8 +12,8 @@ $(TOOLS_BUILD_DIR):
 
 
 tools-compile: $(TOOLS_BUILD_DIR)
 tools-compile: $(TOOLS_BUILD_DIR)
 	$(MAKE) -C tools/mkfimage
 	$(MAKE) -C tools/mkfimage
-	$(MAKE) -C tools/e100boot prepare compile install $(MAKE_TRACE)
-	$(MAKE) -C tools/squashfs prepare compile install
+	#$(MAKE) -C tools/e100boot prepare compile install $(MAKE_TRACE)
+	$(MAKE) -C ../tools/squashfs prepare compile install
 	$(INSTALL_BIN) tools/boot_linux $(BIN_DIR)/
 	$(INSTALL_BIN) tools/boot_linux $(BIN_DIR)/
 
 
 kernel-install: tools-compile
 kernel-install: tools-compile

+ 2 - 2
target/linux/config/Config.in.misc

@@ -68,7 +68,7 @@ config ADK_KPACKAGE_KMOD_PPDEV
 	  Kernel module for userland parallel port access
 	  Kernel module for userland parallel port access
 
 
 config ADK_KPACKAGE_KMOD_FW_LOADER
 config ADK_KPACKAGE_KMOD_FW_LOADER
-	prompt "kmod-fw-loader.................. userspace firmware loading support"
+	prompt "kmod-fw-loader.................... userspace firmware loading support"
 	tristate
 	tristate
 	default n
 	default n
 	help
 	help
@@ -76,7 +76,7 @@ config ADK_KPACKAGE_KMOD_FW_LOADER
 	  loading of external firmware files.
 	  loading of external firmware files.
 
 
 config ADK_KPACKAGE_KMOD_EEPROM_93CX6
 config ADK_KPACKAGE_KMOD_EEPROM_93CX6
-	prompt "kmod-eeprom-93cx6................ 93cx6 eeprom support"
+	prompt "kmod-eeprom-93cx6................. 93cx6 eeprom support"
 	tristate
 	tristate
 	default n
 	default n
 	help
 	help

+ 1 - 1
target/linux/config/Config.in.netfilter

@@ -352,7 +352,7 @@ config ADK_KPACKAGE_KMOD_IP_NF_FILTER
 
 
 config ADK_KPACKAGE_KMOD_NF_NAT
 config ADK_KPACKAGE_KMOD_NF_NAT
 	tristate 'Full NAT'
 	tristate 'Full NAT'
-	depends on ADK_KPACKAGE_KMOD_IP_NF_IPTABLES
+	depends on ADK_KPACKAGE_KMOD_NF_IP_IPTABLES
 	help
 	help
 	  The Full NAT option allows masquerading, port forwarding and other
 	  The Full NAT option allows masquerading, port forwarding and other
 	  forms of full Network Address Port Translation.  It is controlled by
 	  forms of full Network Address Port Translation.  It is controlled by

+ 14 - 1
target/linux/config/Config.in.network

@@ -66,7 +66,7 @@ config ADK_KPACKAGE_KMOD_ATM_BR2684
 	help
 	help
 
 
 config ADK_KPACKAGE_KMOD_BRIDGE
 config ADK_KPACKAGE_KMOD_BRIDGE
-	prompt "kmod-net-bridge................... 802.1d Ethernet Bridging"
+	prompt "kmod-bridge....................... 802.1d Ethernet Bridging"
 	tristate
 	tristate
 	select ADK_KERNEL_LLC
 	select ADK_KERNEL_LLC
 	default n
 	default n
@@ -91,6 +91,19 @@ config ADK_KPACKAGE_KMOD_BRIDGE
 	  Enabling arptables support when bridging will let arptables see
 	  Enabling arptables support when bridging will let arptables see
 	  bridged ARP traffic in the arptables FORWARD chain.
 	  bridged ARP traffic in the arptables FORWARD chain.
 
 
+config ADK_KPACKAGE_KMOD_VLAN_8021Q
+	prompt "kmod-vlan......................... 802.1q VLAN support"
+	tristate
+	default n
+	help
+          Select this and you will be able to create 802.1Q VLAN interfaces
+          on your ethernet interfaces.  802.1Q VLAN supports almost
+          everything a regular ethernet interface does, including
+          firewalling, bridging, and of course IP traffic.  You will need
+          the 'vconfig' tool from the VLAN project in order to effectively
+          use VLANs.  See the VLAN web page for more information:
+          <http://www.candelatech.com/~greear/vlan.html>
+
 config ADK_KPACKAGE_KMOD_INET_TUNNEL
 config ADK_KPACKAGE_KMOD_INET_TUNNEL
 	tristate
 	tristate
 	default n
 	default n

+ 7 - 0
target/tools/rules.mk

@@ -0,0 +1,7 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+WRKDIR_BASE=    ${TOOLS_BUILD_DIR}
+WRKDIR=		${WRKDIR_BASE}
+
+include ${TOPDIR}/mk/buildhlp.mk

+ 0 - 0
target/foxboard/tools/squashfs/Makefile → target/tools/squashfs/Makefile


+ 132 - 0
target/tools/squashfs/patches/squashfs-bsd.patch

@@ -0,0 +1,132 @@
+diff -Nur squashfs4.0.orig/squashfs-tools/mksquashfs.c squashfs4.0/squashfs-tools/mksquashfs.c
+--- squashfs4.0.orig/squashfs-tools/mksquashfs.c	Sun Apr  5 23:22:48 2009
++++ squashfs4.0/squashfs-tools/mksquashfs.c	Tue Dec 29 18:23:15 2009
+@@ -48,16 +48,9 @@
+ #include <regex.h>
+ #include <fnmatch.h>
+ 
+-#ifndef linux
+-#define __BYTE_ORDER BYTE_ORDER
+-#define __BIG_ENDIAN BIG_ENDIAN
+-#define __LITTLE_ENDIAN LITTLE_ENDIAN
+-#include <sys/sysctl.h>
+-#else
+-#include <endian.h>
+-#include <sys/sysinfo.h>
+-#endif
++#include <sys/param.h>
+ 
++
+ #include "squashfs_fs.h"
+ #include "squashfs_swap.h"
+ #include "mksquashfs.h"
+@@ -3688,23 +3681,9 @@
+ 	signal(SIGUSR1, sigusr1_handler);
+ 
+ 	if(processors == -1) {
+-#ifndef linux
+-		int mib[2];
+-		size_t len = sizeof(processors);
+-
+-		mib[0] = CTL_HW;
+-#ifdef HW_AVAILCPU
+-		mib[1] = HW_AVAILCPU;
++#if defined(BSD)
++		processors = 1;
+ #else
+-		mib[1] = HW_NCPU;
+-#endif
+-
+-		if(sysctl(mib, 2, &processors, &len, NULL, 0) == -1) {
+-			ERROR("Failed to get number of available processors.  "
+-				"Defaulting to 1\n");
+-			processors = 1;
+-		}
+-#else
+ 		processors = get_nprocs();
+ #endif
+ 	}
+@@ -3974,9 +3953,15 @@
+ 			int match = use_regex ?
+ 				regexec(path->name[i].preg, name, (size_t) 0,
+ 					NULL, 0) == 0 :
++#if defined(BSD)
+ 				fnmatch(path->name[i].name, name,
++					FNM_PATHNAME|FNM_PERIOD) ==
++					 0;
++#else
++				fnmatch(path->name[i].name, name,
+ 					FNM_PATHNAME|FNM_PERIOD|FNM_EXTMATCH) ==
+ 					 0;
++#endif
+ 
+ 			if(match && path->name[i].paths == NULL) {
+ 				/* match on a leaf component, any subdirectories
+diff -Nur squashfs4.0.orig/squashfs-tools/pseudo.c squashfs4.0/squashfs-tools/pseudo.c
+--- squashfs4.0.orig/squashfs-tools/pseudo.c	Sun Apr  5 04:01:58 2009
++++ squashfs4.0/squashfs-tools/pseudo.c	Tue Dec 29 18:07:33 2009
+@@ -30,6 +30,11 @@
+ #include <string.h>
+ #include <stdlib.h>
+ #include <sys/types.h>
++#include <sys/param.h>
++
++#if defined(BSD)
++#include <sys/stat.h>
++#endif
+ 
+ #include "pseudo.h"
+ 
+diff -Nur squashfs4.0.orig/squashfs-tools/unsquashfs.c squashfs4.0/squashfs-tools/unsquashfs.c
+--- squashfs4.0.orig/squashfs-tools/unsquashfs.c	Sun Apr  5 23:23:06 2009
++++ squashfs4.0/squashfs-tools/unsquashfs.c	Tue Dec 29 18:25:56 2009
+@@ -21,6 +21,8 @@
+  * unsquashfs.c
+  */
+ 
++#include <sys/param.h>
++
+ #include "unsquashfs.h"
+ #include "squashfs_swap.h"
+ #include "squashfs_compat.h"
+@@ -1193,10 +1195,17 @@
+ 		struct pathname *path = paths->path[n];
+ 		for(i = 0; i < path->names; i++) {
+ 			int match = use_regex ?
++#if defined(BSD)
+ 				regexec(path->name[i].preg, name, (size_t) 0,
+ 				NULL, 0) == 0 : fnmatch(path->name[i].name,
++				name, FNM_PATHNAME|FNM_PERIOD) ==
++				0;
++#else
++				regexec(path->name[i].preg, name, (size_t) 0,
++				NULL, 0) == 0 : fnmatch(path->name[i].name,
+ 				name, FNM_PATHNAME|FNM_PERIOD|FNM_EXTMATCH) ==
+ 				0;
++#endif
+ 			if(match && path->name[i].paths == NULL)
+ 				/*
+ 				 * match on a leaf component, any subdirectories
+@@ -1795,21 +1804,7 @@
+ 
+ 	if(processors == -1) {
+ #ifndef linux
+-		int mib[2];
+-		size_t len = sizeof(processors);
+-
+-		mib[0] = CTL_HW;
+-#ifdef HW_AVAILCPU
+-		mib[1] = HW_AVAILCPU;
+-#else
+-		mib[1] = HW_NCPU;
+-#endif
+-
+-		if(sysctl(mib, 2, &processors, &len, NULL, 0) == -1) {
+-			ERROR("Failed to get number of available processors.  "
+-				"Defaulting to 1\n");
+-			processors = 1;
+-		}
++		processors = 1;
+ #else
+ 		processors = get_nprocs();
+ #endif

Some files were not shown because too many files changed in this diff