Changeset b917538 in freewrt
- Timestamp:
- Oct 1, 2006, 10:31:51 AM (19 years ago)
- Branches:
- freewrt_1_0, freewrt_2_0
- Children:
- edaeca5
- Parents:
- 2f09cbe
- Files:
-
- 4 added
- 2 deleted
- 30 edited
- 2 moved
-
mk/pkg-depend.mk (modified) (2 diffs)
-
package/6tunnel/Config.in (modified) (1 diff)
-
package/aiccu/Config.in (modified) (1 diff)
-
package/busybox/config/networking/Config.in (modified) (2 diffs)
-
package/dhcp6/Config.in (modified) (1 diff)
-
package/dropbear/files/dropbear.init (modified) (1 diff)
-
package/iproute2/Config.in (modified) (1 diff)
-
package/iproute2/Makefile (modified) (1 diff)
-
package/iproute2/patches/002-iproute2-ipxfrm_no_sctp.patch (modified) (1 diff)
-
package/iptables/Config.in (modified) (1 diff)
-
package/iptables/Makefile (modified) (1 diff)
-
package/iptables/patches/01-ipp2p.patch (moved) (moved from package/iptables/patches/01-ipp2p-0.8.1rc1.patch ) (2 diffs)
-
package/liblzo/Makefile (modified) (2 diffs)
-
package/liblzo/patches/lzo-cross-compile.patch (deleted)
-
package/mrd6/Config.in (modified) (1 diff)
-
package/mrd6/Makefile (modified) (1 diff)
-
package/ndisc/Config.in (modified) (3 diffs)
-
package/openntpd/Makefile (modified) (2 diffs)
-
package/openntpd/files/ntpd.init (modified) (1 diff)
-
package/openntpd/patches/01-adjtimex_linux.patch (modified) (6 diffs)
-
package/openssh/Makefile (modified) (1 diff)
-
package/openssh/files/sshd.init (modified) (1 diff)
-
package/openssh/ipkg/openssh-server.postinst (modified) (1 diff)
-
package/openssh/patches/cross-compile.patch (deleted)
-
package/openssl/Makefile (modified) (1 diff)
-
package/openswan/Makefile (modified) (3 diffs)
-
package/openswan/patches/scripts.patch (modified) (13 diffs)
-
package/openvpn/Makefile (modified) (1 diff)
-
package/raddump/Config.in (modified) (1 diff)
-
package/radvd/Config.in (modified) (1 diff)
-
package/tinc/Config.in (modified) (1 diff)
-
package/tinc/Makefile (modified) (1 diff)
-
package/tinc/patches/patch-configure (added)
-
package/tinc/patches/patch-m4_lzo_m4 (added)
-
package/vtun/Makefile (modified) (2 diffs)
-
package/vtun/patches/patch-configure (added)
-
package/vtun/patches/patch-lfd_lzo_c (added)
-
target/linux/generic-2.4/patches/601-netfilter_ipp2p.patch (moved) (moved from target/linux/generic-2.4/patches/601-netfilter_ipp2p_0.8.1rc1.patch ) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
mk/pkg-depend.mk
r2f09cbe rb917538 22 22 digitemp-compile: libusb-compile 23 23 dsniff-compile: libnids-compile openssl-compile libgdbm-compile 24 elinks-compile: openssl-compile 24 25 fprobe-compile: libpcap-compile 25 26 freetype-compile: zlib-compile … … 64 65 mutt-compile: ncurses-compile openssl-compile 65 66 mysql-compile: ncurses-compile zlib-compile readline-compile 67 mrd6-compile: uclibc++-compile 66 68 nano-compile: ncurses-compile 67 69 net-snmp-compile: libelf-compile -
package/6tunnel/Config.in
r2f09cbe rb917538 4 4 default n 5 5 select FWRT_PACKAGE_KMOD_IPV6 6 select BUSYBOX_CONFIG_FEATURE_IPV6 6 7 help 7 8 6tunnel allows you to use services provided by IPv6 hosts with IPv4-only -
package/aiccu/Config.in
r2f09cbe rb917538 5 5 select FWRT_PACKAGE_KMOD_IPV6 6 6 select FWRT_PACKAGE_LIBPTHREAD 7 select BUSYBOX_CONFIG_FEATURE_IPV6 7 8 help 8 9 SixXS Automatic IPv6 Connectivity Client Utility -
package/busybox/config/networking/Config.in
r2f09cbe rb917538 8 8 config BUSYBOX_CONFIG_FEATURE_IPV6 9 9 bool "Enable IPv6 support" 10 default y10 default n 11 11 help 12 12 Enable IPv6 support to busybox. This makes applets that talk IP … … 23 23 default n 24 24 help 25 Small and static DNS server d eamon.25 Small and static DNS server daemon. 26 26 27 27 config BUSYBOX_CONFIG_ETHER_WAKE -
package/dhcp6/Config.in
r2f09cbe rb917538 2 2 prompt "dhcp6............................. IPv6 DHCP server and client" 3 3 tristate 4 default m if CONFIG_DEVEL4 default n 5 5 select FWRT_PACKAGE_LIBNCURSES 6 select BUSYBOX_CONFIG_FEATURE_IPV6 6 7 help 7 This is the first ever open source implementation of Dynamic Host Configuration Protocol for IPv6 (DHCPv6) server and client on Linux Operating System. The server provides leases (durations or lifetimes) on IPv6 addresses to the clients who request for it 8 This is the first ever open source implementation of Dynamic 9 Host Configuration Protocol for IPv6 (DHCPv6) server and client 10 on Linux Operating System. The server provides leases 11 (durations or lifetimes) on IPv6 addresses to the clients who 12 request for it -
package/dropbear/files/dropbear.init
r2f09cbe rb917538 6 6 autostart) 7 7 test x"$ssh" = x"NO" && exit 0 8 [ -x /usr/sbin/sshd ] -o [ x"$openssh" = x"YES" ] && exit 0 8 9 exec $0 start 9 10 ;; -
package/iproute2/Config.in
r2f09cbe rb917538 15 15 default n 16 16 select FWRT_COMPILE_IPROUTE2 17 select FWRT_PACKAGE_KMOD_IMQ 17 18 select FWRT_PACKAGE_KMOD_SCHED -
package/iproute2/Makefile
r2f09cbe rb917538 8 8 9 9 PKG_NAME:= iproute2 10 PKG_VERSION:= 2.6.1 5-06011010 PKG_VERSION:= 2.6.16-060323 11 11 PKG_RELEASE:= 1 12 PKG_MD5SUM:= 04f57a6d366d36426d276178b600f5c512 PKG_MD5SUM:= f31d4516b35bbfeaa72c762f5959e97c 13 13 14 14 PKG_SOURCE_URL:= http://developer.osdl.org/dev/iproute2/download/ 15 PKG_SOURCE:= $(PKG_NAME)-$(PKG_VERSION).tar.gz16 17 WRKSRC= ${WRKDIR}/iproute2-$(PKG_VERSION)18 15 19 16 include $(TOPDIR)/mk/package.mk -
package/iproute2/patches/002-iproute2-ipxfrm_no_sctp.patch
r2f09cbe rb917538 1 diff -Nur iproute2-2.6.1 1-050330/ip/ipxfrm.c iproute2-2.6.11-050330.new/ip/ipxfrm.c2 --- iproute2-2.6.1 1-050330/ip/ipxfrm.c 2005-04-01 21:58:11.000000000 +02003 +++ iproute2-2.6.1 1-050330.new/ip/ipxfrm.c 2005-05-27 12:27:44.000000000 +02004 @@ -444, 7+444,6 @@1 diff -Nur iproute2-2.6.16-060323/ip/ipxfrm.c iproute2-2.6.16-060323.no_sctp/ip/ipxfrm.c 2 --- iproute2-2.6.16-060323/ip/ipxfrm.c 2006-01-12 19:31:36.000000000 +0100 3 +++ iproute2-2.6.16-060323.no_sctp/ip/ipxfrm.c 2006-09-29 14:24:04.000000000 +0200 4 @@ -444,8 +444,6 @@ 5 5 switch (sel->proto) { 6 6 case IPPROTO_TCP: 7 7 case IPPROTO_UDP: 8 8 - case IPPROTO_SCTP: 9 - case IPPROTO_DCCP: 9 10 default: /* XXX */ 10 11 if (sel->sport_mask) 11 12 fprintf(fp, "sport %u ", ntohs(sel->sport)); 12 @@ -99 8,7+997,6 @@13 @@ -999,8 +997,6 @@ 13 14 switch (sel->proto) { 14 15 case IPPROTO_TCP: 15 16 case IPPROTO_UDP: 16 17 - case IPPROTO_SCTP: 18 - case IPPROTO_DCCP: 17 19 break; 18 20 default: -
package/iptables/Config.in
r2f09cbe rb917538 11 11 default n 12 12 select FWRT_COMPILE_IPTABLES 13 select FWRT_PACKAGE_KMOD_IPTABLES 13 14 help 14 15 IPv4 firewall, NAT, and packet mangling tools. -
package/iptables/Makefile
r2f09cbe rb917538 8 8 9 9 PKG_NAME:= iptables 10 PKG_VERSION:= 1.3. 510 PKG_VERSION:= 1.3.6 11 11 PKG_RELEASE:= 1 12 PKG_MD5SUM:= 0 0fb916fa8040ca992a5ace56d905ea512 PKG_MD5SUM:= 077e886a9c90a11bb47f3d7a4fc4a689 13 13 PKG_INIT:= 45 14 14 -
package/iptables/patches/01-ipp2p.patch
r2f09cbe rb917538 1 diff -urN iptables.old/extensions/Makefile iptables.dev/extensions/Makefile 2 --- iptables.old/extensions/Makefile 2005-07-20 04:22:56.000000000 +0200 3 +++ iptables.dev/extensions/Makefile 2006-03-23 14:42:28.000000000 +0100 4 @@ -8,6 +8,10 @@ 5 PF_EXT_SLIB:=ah addrtype comment connlimit connmark conntrack dscp ecn esp hashlimit helper icmp iprange length limit mac mark multiport owner physdev pkttype realm rpc sctp standard state tcp tcpmss tos ttl udp unclean CLASSIFY CONNMARK DNAT DSCP ECN LOG MARK MASQUERADE MIRROR NETMAP NFQUEUE NOTRACK REDIRECT REJECT SAME SNAT TARPIT TCPMSS TOS TRACE TTL ULOG 6 PF6_EXT_SLIB:=eui64 hl icmpv6 length limit mac mark multiport owner physdev standard tcp udp HL LOG NFQUEUE MARK TRACE 7 8 + 9 +# ipp2p 10 +PF_EXT_SLIB += ipp2p 11 + 12 # Optionals 13 PF_EXT_SLIB_OPTS:=$(foreach T,$(wildcard extensions/.*-test),$(shell KERNEL_DIR=$(KERNEL_DIR) $(T))) 14 PF6_EXT_SLIB_OPTS:=$(foreach T,$(wildcard extensions/.*-test6),$(shell KERNEL_DIR=$(KERNEL_DIR) $(T))) 15 diff -urN iptables.old/extensions/libipt_ipp2p.c iptables.dev/extensions/libipt_ipp2p.c 16 --- iptables.old/extensions/libipt_ipp2p.c 1970-01-01 01:00:00.000000000 +0100 17 +++ iptables.dev/extensions/libipt_ipp2p.c 2006-03-23 14:43:26.000000000 +0100 1 diff -Nur iptables-1.3.6/extensions/libipt_ipp2p.c iptables-1.3.6.ipp2p/extensions/libipt_ipp2p.c 2 --- iptables-1.3.6/extensions/libipt_ipp2p.c 1970-01-01 01:00:00.000000000 +0100 3 +++ iptables-1.3.6.ipp2p/extensions/libipt_ipp2p.c 2006-09-30 13:27:55.000000000 +0200 18 4 @@ -0,0 +1,401 @@ 19 5 + … … 418 404 +} 419 405 + 420 diff -urN iptables.old/include/linux/netfilter_ipv4/ipt_ipp2p.h iptables.dev/include/linux/netfilter_ipv4/ipt_ipp2p.h 421 --- iptables.old/include/linux/netfilter_ipv4/ipt_ipp2p.h 1970-01-01 01:00:00.000000000 +0100 422 +++ iptables.dev/include/linux/netfilter_ipv4/ipt_ipp2p.h 2006-03-23 14:44:26.000000000 +0100 406 diff -Nur iptables-1.3.6/extensions/Makefile iptables-1.3.6.ipp2p/extensions/Makefile 407 --- iptables-1.3.6/extensions/Makefile 2006-09-28 18:40:32.000000000 +0200 408 +++ iptables-1.3.6.ipp2p/extensions/Makefile 2006-09-30 13:24:45.000000000 +0200 409 @@ -13,6 +13,9 @@ 410 PF6_EXT_SE_SLIB:=SECMARK CONNSECMARK 411 endif 412 413 +# ipp2p 414 +PF_EXT_SLIB += ipp2p 415 + 416 # Optionals 417 PF_EXT_SLIB_OPTS:=$(foreach T,$(wildcard extensions/.*-test),$(shell KERNEL_DIR=$(KERNEL_DIR) $(T))) 418 PF6_EXT_SLIB_OPTS:=$(foreach T,$(wildcard extensions/.*-test6),$(shell KERNEL_DIR=$(KERNEL_DIR) $(T))) 419 diff -Nur iptables-1.3.6/include/linux/netfilter_ipv4/ipt_ipp2p.h iptables-1.3.6.ipp2p/include/linux/netfilter_ipv4/ipt_ipp2p.h 420 --- iptables-1.3.6/include/linux/netfilter_ipv4/ipt_ipp2p.h 1970-01-01 01:00:00.000000000 +0100 421 +++ iptables-1.3.6.ipp2p/include/linux/netfilter_ipv4/ipt_ipp2p.h 2006-09-30 13:23:16.000000000 +0200 423 422 @@ -0,0 +1,31 @@ 424 423 +#ifndef __IPT_IPP2P_H 425 424 +#define __IPT_IPP2P_H 426 +#define IPP2P_VERSION "0.8. 1_rc1"425 +#define IPP2P_VERSION "0.8.2" 427 426 + 428 427 +struct ipt_p2p_info { -
package/liblzo/Makefile
r2f09cbe rb917538 8 8 9 9 PKG_NAME:= lzo 10 PKG_VERSION:= 1.0810 PKG_VERSION:= 2.02 11 11 PKG_RELEASE:= 1 12 PKG_MD5SUM:= ab94d3da364c7cbd5b78d76f1875b0f612 PKG_MD5SUM:= 6760e5819f4238328709bf93bf10071c 13 13 14 14 PKG_SOURCE_URL:= http://www.oberhumer.com/opensource/lzo/download/ 15 PKG_SOURCE:= $(PKG_NAME)-$(PKG_VERSION).tar.gz16 15 17 16 include $(TOPDIR)/mk/package.mk … … 61 60 $(IPKG_LIBLZO): 62 61 install -d -m0755 $(IDIR_LIBLZO)/usr/lib 63 $(CP) $(WRKINST)/usr/lib/liblzo .so.* $(IDIR_LIBLZO)/usr/lib62 $(CP) $(WRKINST)/usr/lib/liblzo2.so.* $(IDIR_LIBLZO)/usr/lib 64 63 $(RSTRIP) $(IDIR_LIBLZO) 65 64 $(IPKG_BUILD) $(IDIR_LIBLZO) $(PACKAGE_DIR) 66 65 67 $(STAGING_DIR)/usr/lib/liblzo .so: $(WRKBUILD)/.built66 $(STAGING_DIR)/usr/lib/liblzo2.so: $(WRKBUILD)/.built 68 67 mkdir -p $(STAGING_DIR)/usr/include 69 $(CP) $(WRKINST)/usr/include/lzo *.h$(STAGING_DIR)/usr/include/68 $(CP) $(WRKINST)/usr/include/lzo $(STAGING_DIR)/usr/include/ 70 69 mkdir -p $(STAGING_DIR)/usr/lib 71 $(CP) $(WRKINST)/usr/lib/liblzo .{a,so*} $(STAGING_DIR)/usr/lib/72 touch $ (STAGING_DIR)/usr/lib/liblzo.so70 $(CP) $(WRKINST)/usr/lib/liblzo2.{a,so*} $(STAGING_DIR)/usr/lib/ 71 touch $@ 73 72 74 install-dev: $(STAGING_DIR)/usr/lib/liblzo .so73 install-dev: $(STAGING_DIR)/usr/lib/liblzo2.so 75 74 76 75 uninstall-dev: 77 76 rm -rf \ 78 $(STAGING_DIR)/usr/include/lzo *.h\79 $(STAGING_DIR)/usr/lib/liblzo .{a,so*} \77 $(STAGING_DIR)/usr/include/lzo \ 78 $(STAGING_DIR)/usr/lib/liblzo2.{a,so*} \ 80 79 81 80 compile-targets: install-dev -
package/mrd6/Config.in
r2f09cbe rb917538 2 2 prompt "mrd6.............................. IPv6 multicast routing daemon" 3 3 tristate 4 default n if CONFIG_DEVEL 4 select BUSYBOX_CONFIG_FEATURE_IPV6 5 default n 5 6 help 6 7 Multicast is becoming a major component in next generation -
package/mrd6/Makefile
r2f09cbe rb917538 27 27 SPACE_OPTIMIZE=yes \ 28 28 FULL_STATIC=yes \ 29 CFLAGS="$(TARGET_CFLAGS) -DNO_INET6_OPTION " \29 CFLAGS="$(TARGET_CFLAGS) -DNO_INET6_OPTION -lm" \ 30 30 CXX=$(TARGET_CROSS)g++ \ 31 31 CC=$(TARGET_CC) \ -
package/ndisc/Config.in
r2f09cbe rb917538 9 9 prompt "ndisc6............................ An ICMPv6 neighbour discovery tool" 10 10 tristate 11 default m if CONFIG_DEVEL11 default n 12 12 select FWRT_COMPILE_NDISC6 13 select BUSYBOX_CONFIG_FEATURE_IPV6 13 14 help 14 15 … … 20 21 prompt "rdisc6............................ An ICMPv6 router discovery tool" 21 22 tristate 22 default m if CONFIG_DEVEL23 default n 23 24 select FWRT_COMPILE_NDISC6 25 select BUSYBOX_CONFIG_FEATURE_IPV6 24 26 help 25 27 … … 31 33 prompt "tcptraceroute6.................... A TCP/IPv6-based traceroute implementation" 32 34 tristate 33 default m if CONFIG_DEVEL35 default n 34 36 select FWRT_COMPILE_NDISC6 37 select BUSYBOX_CONFIG_FEATURE_IPV6 35 38 help 36 39 -
package/openntpd/Makefile
r2f09cbe rb917538 8 8 9 9 PKG_NAME:= openntpd 10 PKG_VERSION:= 3.7p1 11 PKG_RELEASE:= 2 12 PKG_MD5SUM:= 10ed8eefd760e5819efcf3277b118f47 10 PKG_VERSION:= 3.9p1 11 PKG_RELEASE:= 1 12 PKG_MD5SUM:= afc34175f38d08867c1403d9008600b3 13 PKG_INIT:= 55 13 14 14 # space separated list or special @SF for sourceforge projects15 15 PKG_SOURCE_URL:= ftp://ftp.openbsd.org/pub/OpenBSD/OpenNTPD/ \ 16 16 ftp://ftp.de.openbsd.org/pub/unix/OpenBSD/OpenNTPD/ \ 17 17 ftp://ftp.fr.openbsd.org/pub/OpenBSD/OpenNTPD/ \ 18 18 ftp://ftp.sunet.se/pub/OpenBSD/OpenNTPD/ 19 PKG_SOURCE:= $(PKG_NAME)-$(PKG_VERSION).tar.gz20 19 21 20 include $(TOPDIR)/mk/package.mk … … 61 60 install -m0644 ./files/ntpd.conf $(IDIR_OPENNTPD)/etc/ 62 61 install -d -m0755 $(IDIR_OPENNTPD)/etc/init.d 63 install -m0755 ./files/ntpd.init $(IDIR_OPENNTPD)/etc/init.d/S 55ntpd62 install -m0755 ./files/ntpd.init $(IDIR_OPENNTPD)/etc/init.d/S$(PKG_INIT)ntpd 64 63 install -d -m0755 $(IDIR_OPENNTPD)/usr/sbin/ 65 64 install -m0755 $(WRKBUILD)/ntpd $(IDIR_OPENNTPD)/usr/sbin/ -
package/openntpd/files/ntpd.init
r2f09cbe rb917538 1 1 #!/bin/sh 2 2 3 . /etc/rc.conf 3 mkdir -p /tmp/.ntp 4 [ x"$ntpd_flags" = x"NO" ] || /usr/sbin/ntpd $ntpd_flags 4 5 case $1 in 6 autostart) 7 test x"$ntpd_flags" = x"NO" && exit 0 8 exec $0 start 9 ;; 10 start) 11 mkdir -p /tmp/.ntp 12 [ x"$ntpd_flags" = x"NO" ] || /usr/sbin/ntpd $ntpd_flags 13 stop) 14 killall ntpd 15 ;; 16 restart) 17 $0 stop 18 $0 start 19 ;; 20 *) 21 echo "Usage: $0 {start | stop | restart}" 22 exit 1 23 ;; 24 esac 25 exit $? -
package/openntpd/patches/01-adjtimex_linux.patch
r2f09cbe rb917538 1 diff - urN openntpd-3.7p1.orig/client.c openntpd-3.7p1/client.c2 --- openntpd-3. 7p1.orig/client.c 2005-03-13 13:36:38.000000000 +01003 +++ openntpd-3. 7p1/client.c 2006-02-23 16:27:53.686827824 +01004 @@ -3 06,7 +306,7 @@1 diff -Nur openntpd-3.9p1/client.c openntpd-3.9p1.patched/client.c 2 --- openntpd-3.9p1/client.c 2006-05-14 07:29:21.000000000 +0200 3 +++ openntpd-3.9p1.patched/client.c 2006-09-30 12:41:07.000000000 +0200 4 @@ -321,7 +321,7 @@ 5 5 priv_adjtime(); 6 6 … … 11 11 12 12 return (0); 13 diff - urN openntpd-3.7p1.orig/configure.ac openntpd-3.7p1/configure.ac14 --- openntpd-3. 7p1.orig/configure.ac 2005-05-23 13:11:08.000000000 +020015 +++ openntpd-3. 7p1/configure.ac 2006-02-23 16:27:53.688827520 +010016 @@ - 466,6 +466,11 @@17 [ builtin_arc4random=$withval ]18 )13 diff -Nur openntpd-3.9p1/configure.ac openntpd-3.9p1.patched/configure.ac 14 --- openntpd-3.9p1/configure.ac 2006-05-14 07:29:23.000000000 +0200 15 +++ openntpd-3.9p1.patched/configure.ac 2006-09-30 12:41:07.000000000 +0200 16 @@ -617,6 +617,11 @@ 17 fi 18 AC_SUBST(mansubdir) 19 19 20 20 +AC_ARG_WITH(adjtimex, … … 26 26 if test "$ac_cv_func_arc4random" != "yes" && test "x$builtin_arc4random" != "xyes"; then 27 27 saved_CPPFLAGS="$CPPFLAGS" 28 diff - urN openntpd-3.7p1.orig/defines.h openntpd-3.7p1/defines.h29 --- openntpd-3. 7p1.orig/defines.h 2005-05-23 02:16:33.000000000 +020030 +++ openntpd-3. 7p1/defines.h 2006-02-23 16:27:53.688827520 +010028 diff -Nur openntpd-3.9p1/defines.h openntpd-3.9p1.patched/defines.h 29 --- openntpd-3.9p1/defines.h 2006-05-14 07:29:21.000000000 +0200 30 +++ openntpd-3.9p1.patched/defines.h 2006-09-30 12:41:07.000000000 +0200 31 31 @@ -20,6 +20,10 @@ 32 32 # define setproctitle(x) … … 40 40 # if defined(HAVE_STRUCT_SOCKADDR_SA_LEN) 41 41 # define SA_LEN(x) ((x)->sa_len) 42 diff - urN openntpd-3.7p1.orig/openbsd-compat/Makefile.in openntpd-3.7p1/openbsd-compat/Makefile.in43 --- openntpd-3. 7p1.orig/openbsd-compat/Makefile.in 2004-12-20 00:41:36.000000000 +010044 +++ openntpd-3. 7p1/openbsd-compat/Makefile.in 2006-02-23 16:27:53.901795144 +010042 diff -Nur openntpd-3.9p1/openbsd-compat/Makefile.in openntpd-3.9p1.patched/openbsd-compat/Makefile.in 43 --- openntpd-3.9p1/openbsd-compat/Makefile.in 2006-05-14 07:29:19.000000000 +0200 44 +++ openntpd-3.9p1.patched/openbsd-compat/Makefile.in 2006-09-30 12:41:07.000000000 +0200 45 45 @@ -9,7 +9,7 @@ 46 OPENBSD= asprintf.o daemon.o inet_pton.o strlcpy.o47 46 COMPAT= atomicio.o bsd-arc4random.o bsd-misc.o bsd-poll.o \ 48 bsd-snprintf.o fake-rfc2553.o uidswap.o 47 bsd-snprintf.o bsd-getifaddrs.o bsd-setresuid.o \ 48 bsd-setresgid.o fake-rfc2553.o 49 49 -PORT= port-qnx.o 50 50 +PORT= port-linux.o port-qnx.o … … 52 52 VPATH=@srcdir@ 53 53 CC=@CC@ 54 diff - urN openntpd-3.7p1.orig/openbsd-compat/openbsd-compat.h openntpd-3.7p1/openbsd-compat/openbsd-compat.h55 --- openntpd-3. 7p1.orig/openbsd-compat/openbsd-compat.h 2004-12-19 04:04:22.000000000 +010056 +++ openntpd-3. 7p1/openbsd-compat/openbsd-compat.h 2006-02-23 16:27:53.948788000 +010057 @@ -4 4,6 +44,11 @@54 diff -Nur openntpd-3.9p1/openbsd-compat/openbsd-compat.h openntpd-3.9p1.patched/openbsd-compat/openbsd-compat.h 55 --- openntpd-3.9p1/openbsd-compat/openbsd-compat.h 2006-05-14 07:29:19.000000000 +0200 56 +++ openntpd-3.9p1.patched/openbsd-compat/openbsd-compat.h 2006-09-30 12:41:07.000000000 +0200 57 @@ -46,6 +46,11 @@ 58 58 __attribute__((__format__ (printf, 2, 3))); 59 59 #endif … … 67 67 int inet_pton(int, const char *, void *); 68 68 #endif 69 diff - urN openntpd-3.7p1.orig/openbsd-compat/port-linux.c openntpd-3.7p1/openbsd-compat/port-linux.c70 --- openntpd-3. 7p1.orig/openbsd-compat/port-linux.c 1970-01-01 01:00:00.000000000 +010071 +++ openntpd-3. 7p1/openbsd-compat/port-linux.c 2006-02-23 16:27:53.996780704 +010069 diff -Nur openntpd-3.9p1/openbsd-compat/port-linux.c openntpd-3.9p1.patched/openbsd-compat/port-linux.c 70 --- openntpd-3.9p1/openbsd-compat/port-linux.c 1970-01-01 01:00:00.000000000 +0100 71 +++ openntpd-3.9p1.patched/openbsd-compat/port-linux.c 2006-09-30 12:41:07.000000000 +0200 72 72 @@ -0,0 +1,105 @@ 73 73 +/* $Id$ */ -
package/openssh/Makefile
r2f09cbe rb917538 8 8 9 9 PKG_NAME:= openssh 10 PKG_VERSION:= 4. 2p111 PKG_RELEASE:= 312 PKG_MD5SUM:= df899194a340c933944b193477c628fa10 PKG_VERSION:= 4.4p1 11 PKG_RELEASE:= 1 12 PKG_MD5SUM:= 793a709a8de695c22f523024d7e9bf07 13 13 PKG_INIT:= 50 14 14 -
package/openssh/files/sshd.init
r2f09cbe rb917538 1 1 #!/bin/sh 2 2 3 for type in rsa dsa; do { 4 # check for keys 5 key=/etc/ssh/ssh_host_${type}_key 6 [ ! -f $key ] && { 7 # generate missing keys 8 [ -x /usr/bin/ssh-keygen ] && { 9 /usr/bin/ssh-keygen -N '' -t $type -f $key 2>&- >&- && exec $0 $* 10 } & 11 exit 0 12 } 13 }; done 14 mkdir -p /var/empty 15 /usr/sbin/sshd 3 . /etc/rc.conf 4 5 case $1 in 6 autostart) 7 test x"$openssh" = x"NO" && exit 0 8 exec $0 start 9 ;; 10 start) 11 for type in rsa dsa; do { 12 # check for keys 13 key=/etc/ssh/ssh_host_${type}_key 14 [ -f $key ] || { 15 mkdir -p /etc/ssh 16 [ -x /usr/bin/ssh-keygen ] && { 17 /usr/bin/ssh-keygen -N '' -t $type -f $key 2>&- >&-; \ 18 rv=$?; \ 19 fwcf commit 2>&1 | logger -t 'openssh-fwcf'; \ 20 [ $rv -eq 0 ] && exec $0 $*; } & 21 exit 0 22 } 23 done 24 mkdir -p /var/empty 25 /usr/sbin/sshd 26 stop) 27 killall sshd 28 ;; 29 restart) 30 $0 stop 31 $0 start 32 ;; 33 *) 34 echo "Usage: $0 {start | stop | restart}" 35 exit 1 36 ;; 37 esac 38 exit $? -
package/openssh/ipkg/openssh-server.postinst
r2f09cbe rb917538 3 3 add_user sshd $(get_next_uid) $(get_next_gid) /var/run/sshd 4 4 add_group sshd $(get_next_gid) 5 add_rcconf openssh sshd NO5 add_rcconf openssh openssh YES -
package/openssl/Makefile
r2f09cbe rb917538 8 8 9 9 PKG_NAME:= openssl 10 PKG_VERSION:= 0.9.8 c10 PKG_VERSION:= 0.9.8d 11 11 PKG_RELEASE:= 1 12 PKG_MD5SUM:= 78454bec556bcb4c45129428a766c88612 PKG_MD5SUM:= 8ed1853538e1d05a1f5ada61ebf8bffa 13 13 14 14 PKG_SOURCE_URL:= http://www.openssl.org/source/ \ -
package/openswan/Makefile
r2f09cbe rb917538 9 9 10 10 PKG_NAME:= openswan 11 PKG_VERSION:= 2.4. 511 PKG_VERSION:= 2.4.6 12 12 PKG_RELEASE:= 1 13 PKG_MD5SUM:= a9a8e88313faceebfc5ceb1a9da9a3c4 13 PKG_MD5SUM:= b34d71ca49dedad017879b0e912d40dd 14 PKG_INIT:= 60 14 15 15 PKG_SOURCE_URL:= http://www.openswan.org/download 16 PKG_SOURCE:= $(PKG_NAME)-$(PKG_VERSION).tar.gz 16 PKG_SOURCE_URL:= http://www.openswan.org/download \ 17 ftp://ftp.openswan.org/openswan/ 17 18 18 19 include $(TOPDIR)/mk/package.mk … … 58 59 INC_USRLOCAL="/usr" \ 59 60 install 60 -$(STRIP) $(IDIR_OPENSWAN)/usr/lib/ipsec/*61 -$(STRIP) $(IDIR_OPENSWAN)/usr/libexec/ipsec/*62 61 rm -rf $(IDIR_OPENSWAN)/usr/share 63 62 rm -rf $(IDIR_OPENSWAN)/usr/man … … 66 65 mkdir -p $(IDIR_OPENSWAN)/etc/init.d 67 66 $(CP) $(IDIR_OPENSWAN)/etc/rc.d/init.d/ipsec \ 68 $(IDIR_OPENSWAN)/etc/init.d/S 60ipsec67 $(IDIR_OPENSWAN)/etc/init.d/S$(PKG_INIT)ipsec 69 68 rm $(IDIR_OPENSWAN)/etc/rc.d/init.d/ipsec 70 69 find $(WRKBUILD) -name \*.old | xargs rm -rf 70 $(RSTRIP) $(IDIR_OPENSWAN) 71 71 mkdir -p $(IDIR_OPENSWAN)/lib/modules/$(KERNEL_VERSION) 72 72 $(CP) $(WRKBUILD)/modobj*/ipsec.$(KERNEL_MOD_SUFFIX) \ -
package/openswan/patches/scripts.patch
r2f09cbe rb917538 1 diff -Nur openswan-2.4. 5rc5/programs/loggerfix openswan-2.4.5rc5.patched/programs/loggerfix2 --- openswan-2.4. 5rc5/programs/loggerfix 1970-01-01 01:00:00.000000000 +01003 +++ openswan-2.4. 5rc5.patched/programs/loggerfix 2006-03-29 01:20:44.000000000 +02001 diff -Nur openswan-2.4.6/programs/loggerfix openswan-2.4.6.scripts/programs/loggerfix 2 --- openswan-2.4.6/programs/loggerfix 1970-01-01 01:00:00.000000000 +0100 3 +++ openswan-2.4.6.scripts/programs/loggerfix 2006-09-29 15:53:35.000000000 +0200 4 4 @@ -0,0 +1,5 @@ 5 5 +#!/bin/sh … … 8 8 +echo "$*" >> /dev/null 9 9 +exit 0 10 diff -Nur openswan-2.4. 5rc5/programs/look/look.in openswan-2.4.5rc5.patched/programs/look/look.in11 --- openswan-2.4. 5rc5/programs/look/look.in 2005-08-18 16:10:09.000000000 +020012 +++ openswan-2.4. 5rc5.patched/programs/look/look.in 2006-03-29 01:20:44.000000000 +020010 diff -Nur openswan-2.4.6/programs/look/look.in openswan-2.4.6.scripts/programs/look/look.in 11 --- openswan-2.4.6/programs/look/look.in 2005-08-18 16:10:09.000000000 +0200 12 +++ openswan-2.4.6.scripts/programs/look/look.in 2006-09-29 15:53:35.000000000 +0200 13 13 @@ -84,7 +84,7 @@ 14 14 then … … 20 20 pat="$pat|$i\$" 21 21 done 22 diff -Nur openswan-2.4. 5rc5/programs/_plutorun/_plutorun.in openswan-2.4.5rc5.patched/programs/_plutorun/_plutorun.in23 --- openswan-2.4. 5rc5/programs/_plutorun/_plutorun.in 2006-01-06 00:45:00.000000000 +010024 +++ openswan-2.4. 5rc5.patched/programs/_plutorun/_plutorun.in 2006-03-29 01:20:44.000000000 +020022 diff -Nur openswan-2.4.6/programs/_plutorun/_plutorun.in openswan-2.4.6.scripts/programs/_plutorun/_plutorun.in 23 --- openswan-2.4.6/programs/_plutorun/_plutorun.in 2006-04-21 17:41:45.000000000 +0200 24 +++ openswan-2.4.6.scripts/programs/_plutorun/_plutorun.in 2006-09-29 15:53:35.000000000 +0200 25 25 @@ -147,7 +147,7 @@ 26 26 exit 1 … … 32 32 echo Cannot write to directory to create \"$stderrlog\". 33 33 exit 1 34 diff -Nur openswan-2.4. 5rc5/programs/_realsetup/_realsetup.in openswan-2.4.5rc5.patched/programs/_realsetup/_realsetup.in35 --- openswan-2.4. 5rc5/programs/_realsetup/_realsetup.in 2005-07-28 02:23:48.000000000 +020036 +++ openswan-2.4. 5rc5.patched/programs/_realsetup/_realsetup.in 2006-03-29 01:20:44.000000000 +020037 @@ -23 5,7 +235,7 @@34 diff -Nur openswan-2.4.6/programs/_realsetup/_realsetup.in openswan-2.4.6.scripts/programs/_realsetup/_realsetup.in 35 --- openswan-2.4.6/programs/_realsetup/_realsetup.in 2006-05-05 20:49:45.000000000 +0200 36 +++ openswan-2.4.6.scripts/programs/_realsetup/_realsetup.in 2006-09-29 15:53:35.000000000 +0200 37 @@ -232,7 +232,7 @@ 38 38 39 39 # misc pre-Pluto setup … … 44 44 if test " $IPSECforwardcontrol" = " yes" 45 45 then 46 @@ -34 7,7 +347,7 @@46 @@ -344,7 +344,7 @@ 47 47 lsmod 2>&1 | grep "^xfrm_user" > /dev/null && rmmod -s xfrm_user 48 48 fi … … 53 53 perform rm -f $info $lock $plutopid 54 54 perform echo "...Openswan IPsec stopped" "|" $LOGONLY 55 diff -Nur openswan-2.4. 5rc5/programs/send-pr/send-pr.in openswan-2.4.5rc5.patched/programs/send-pr/send-pr.in56 --- openswan-2.4. 5rc5/programs/send-pr/send-pr.in 2005-04-18 01:04:46.000000000 +020057 +++ openswan-2.4. 5rc5.patched/programs/send-pr/send-pr.in 2006-03-29 01:20:44.000000000 +020055 diff -Nur openswan-2.4.6/programs/send-pr/send-pr.in openswan-2.4.6.scripts/programs/send-pr/send-pr.in 56 --- openswan-2.4.6/programs/send-pr/send-pr.in 2005-04-18 01:04:46.000000000 +0200 57 +++ openswan-2.4.6.scripts/programs/send-pr/send-pr.in 2006-09-29 15:53:35.000000000 +0200 58 58 @@ -402,7 +402,7 @@ 59 59 else … … 92 92 fi 93 93 echo "${fmtname}${desc}" >> $file 94 diff -Nur openswan-2.4. 5rc5/programs/setup/setup.in openswan-2.4.5rc5.patched/programs/setup/setup.in95 --- openswan-2.4. 5rc5/programs/setup/setup.in 2005-07-25 21:17:03.000000000 +020096 +++ openswan-2.4. 5rc5.patched/programs/setup/setup.in 2006-03-29 01:20:44.000000000 +020094 diff -Nur openswan-2.4.6/programs/setup/setup.in openswan-2.4.6.scripts/programs/setup/setup.in 95 --- openswan-2.4.6/programs/setup/setup.in 2005-07-25 21:17:03.000000000 +0200 96 +++ openswan-2.4.6.scripts/programs/setup/setup.in 2006-09-29 15:53:35.000000000 +0200 97 97 @@ -117,12 +117,22 @@ 98 98 # do it … … 119 119 outtmp=/var/run/pluto/ipsec_setup.out 120 120 ( 121 diff -Nur openswan-2.4. 5rc5/programs/showhostkey/showhostkey.in openswan-2.4.5rc5.patched/programs/showhostkey/showhostkey.in122 --- openswan-2.4. 5rc5/programs/showhostkey/showhostkey.in 2004-11-14 14:40:41.000000000 +0100123 +++ openswan-2.4. 5rc5.patched/programs/showhostkey/showhostkey.in 2006-03-29 01:20:44.000000000 +0200121 diff -Nur openswan-2.4.6/programs/showhostkey/showhostkey.in openswan-2.4.6.scripts/programs/showhostkey/showhostkey.in 122 --- openswan-2.4.6/programs/showhostkey/showhostkey.in 2004-11-14 14:40:41.000000000 +0100 123 +++ openswan-2.4.6.scripts/programs/showhostkey/showhostkey.in 2006-09-29 15:53:35.000000000 +0200 124 124 @@ -63,7 +63,7 @@ 125 125 exit 1 … … 131 131 awk ' BEGIN { 132 132 inkey = 0 133 diff -Nur openswan-2.4.5rc5/programs/_startklips/_startklips.in openswan-2.4.5rc5.patched/programs/_startklips/_startklips.in 134 --- openswan-2.4.5rc5/programs/_startklips/_startklips.in 2005-11-25 00:08:05.000000000 +0100 135 +++ openswan-2.4.5rc5.patched/programs/_startklips/_startklips.in 2006-03-29 01:23:54.000000000 +0200 133 diff -Nur openswan-2.4.6/programs/_startklips/_startklips.in openswan-2.4.6.scripts/programs/_startklips/_startklips.in 134 --- openswan-2.4.6/programs/_startklips/_startklips.in 2006-05-09 20:34:34.000000000 +0200 135 +++ openswan-2.4.6.scripts/programs/_startklips/_startklips.in 2006-09-29 15:59:10.000000000 +0200 136 @@ -242,7 +242,7 @@ 137 fi 138 if test -f $moduleinstplace/$wantgoo 139 then 140 - echo "modprobe failed, but found matching template module $wantgoo." 141 + echo "insmod failed, but found matching template module $wantgoo." 142 echo "Copying $moduleinstplace/$wantgoo to $module." 143 rm -f $module 144 mkdir -p $moduleplace 136 145 @@ -262,15 +262,15 @@ 137 146 echo "FATAL ERROR: Both KLIPS and NETKEY IPsec code is present in kernel" … … 153 162 154 163 if test -f $netkey 155 @@ -278,2 1 +278,21@@164 @@ -278,25 +278,25 @@ 156 165 klips=false 157 166 if test -f $modules … … 168 177 # xfrm_user contains netlink support for IPsec 169 178 - modprobe -qv xfrm_user 170 - modprobe -qv hw_random171 179 + insmod -qv xfrm_user 172 + insmod -qv hw_random 173 # padlock must load before aes module 174 - modprobe -qv padlock 175 + insmod -qv padlock 180 if [ -n "`cat /proc/cpuinfo |grep Nehemiah`" ] 181 then 182 echo "VIA Nehemiah detected, probing for PadLock" 183 - modprobe -qv hw_random 184 + insmod -qv hw_random 185 # padlock must load before aes module 186 - modprobe -qv padlock 187 + insmod -qv padlock 188 fi 176 189 # load the most common ciphers/algo's 177 190 - modprobe -qv sha1 … … 186 199 fi 187 200 188 @@ -3 08,10 +308,10 @@201 @@ -312,10 +312,10 @@ 189 202 fi 190 203 unset MODPATH MODULECONF # no user overrides! … … 200 213 if test ! -f $ipsecversion 201 214 then 202 diff -Nur openswan-2.4.5rc5/programs/_startklips/_startklips.in.orig openswan-2.4.5rc5.patched/programs/_startklips/_startklips.in.orig203 --- openswan-2.4.5rc5/programs/_startklips/_startklips.in.orig 1970-01-01 01:00:00.000000000 +0100204 +++ openswan-2.4.5rc5.patched/programs/_startklips/_startklips.in.orig 2005-11-25 00:08:05.000000000 +0100205 @@ -0,0 +1,407 @@206 +#!/bin/sh207 +# KLIPS startup script208 +# Copyright (C) 1998, 1999, 2001, 2002 Henry Spencer.209 +#210 +# This program is free software; you can redistribute it and/or modify it211 +# under the terms of the GNU General Public License as published by the212 +# Free Software Foundation; either version 2 of the License, or (at your213 +# option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.214 +#215 +# This program is distributed in the hope that it will be useful, but216 +# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY217 +# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License218 +# for more details.219 +#220 +# RCSID $Id: scripts.patch 3639 2006-04-13 18:33:50Z nbd $221 +222 +me='ipsec _startklips' # for messages223 +224 +# KLIPS-related paths225 +sysflags=/proc/sys/net/ipsec226 +modules=/proc/modules227 +# full rp_filter path is $rpfilter1/interface/$rpfilter2228 +rpfilter1=/proc/sys/net/ipv4/conf229 +rpfilter2=rp_filter230 +# %unchanged or setting (0, 1, or 2)231 +rpfiltercontrol=0232 +ipsecversion=/proc/net/ipsec_version233 +moduleplace=/lib/modules/`uname -r`/kernel/net/ipsec234 +bareversion=`uname -r | sed -e 's/\.nptl//' | sed -e 's/^\(2\.[0-9]\.[1-9][0-9]*-[1-9][0-9]*\(\.[0-9][0-9]*\)*\(\.x\)*\).*$/\1/'`235 +moduleinstplace=/lib/modules/$bareversion/kernel/net/ipsec236 +case $bareversion in237 + 2.6*)238 + modulename=ipsec.ko239 + ;;240 + *)241 + modulename=ipsec.o242 + ;;243 +esac244 +245 +klips=true246 +netkey=/proc/net/pfkey247 +248 +info=/dev/null249 +log=daemon.error250 +for dummy251 +do252 + case "$1" in253 + --log) log="$2" ; shift ;;254 + --info) info="$2" ; shift ;;255 + --debug) debug="$2" ; shift ;;256 + --omtu) omtu="$2" ; shift ;;257 + --fragicmp) fragicmp="$2" ; shift ;;258 + --hidetos) hidetos="$2" ; shift ;;259 + --rpfilter) rpfiltercontrol="$2" ; shift ;;260 + --) shift ; break ;;261 + -*) echo "$me: unknown option \`$1'" >&2 ; exit 2 ;;262 + *) break ;;263 + esac264 + shift265 +done266 +267 +268 +269 +# some shell functions, to clarify the actual code270 +271 +# set up a system flag based on a variable272 +# sysflag value shortname default flagname273 +sysflag() {274 + case "$1" in275 + '') v="$3" ;;276 + *) v="$1" ;;277 + esac278 + if test ! -f $sysflags/$4279 + then280 + if test " $v" != " $3"281 + then282 + echo "cannot do $2=$v, $sysflags/$4 does not exist"283 + exit 1284 + else285 + return # can't set, but it's the default anyway286 + fi287 + fi288 + case "$v" in289 + yes|no) ;;290 + *) echo "unknown (not yes/no) $2 value \`$1'"291 + exit 1292 + ;;293 + esac294 + case "$v" in295 + yes) echo 1 >$sysflags/$4 ;;296 + no) echo 0 >$sysflags/$4 ;;297 + esac298 +}299 +300 +# set up a Klips interface301 +klipsinterface() {302 + # pull apart the interface spec303 + virt=`expr $1 : '\([^=]*\)=.*'`304 + phys=`expr $1 : '[^=]*=\(.*\)'`305 + case "$virt" in306 + ipsec[0-9]) ;;307 + *) echo "invalid interface \`$virt' in \`$1'" ; exit 1 ;;308 + esac309 +310 + # figure out ifconfig for interface311 + addr=312 + eval `ifconfig $phys |313 + awk '$1 == "inet" && $2 ~ /^addr:/ && $NF ~ /^Mask:/ {314 + gsub(/:/, " ", $0)315 + print "addr=" $3316 + other = $5317 + if ($4 == "Bcast")318 + print "type=broadcast"319 + else if ($4 == "P-t-P")320 + print "type=pointopoint"321 + else if (NF == 5) {322 + print "type="323 + other = ""324 + } else325 + print "type=unknown"326 + print "otheraddr=" other327 + print "mask=" $NF328 + }'`329 + if test " $addr" = " "330 + then331 + echo "unable to determine address of \`$phys'"332 + exit 1333 + fi334 + if test " $type" = " unknown"335 + then336 + echo "\`$phys' is of an unknown type"337 + exit 1338 + fi339 + if test " $omtu" != " "340 + then341 + mtu="mtu $omtu"342 + else343 + mtu=344 + fi345 + echo "KLIPS $virt on $phys $addr/$mask $type $otheraddr $mtu" | logonly346 +347 + if $klips348 + then349 + # attach the interface and bring it up350 + ipsec tncfg --attach --virtual $virt --physical $phys351 + ifconfig $virt inet $addr $type $otheraddr netmask $mask $mtu352 + fi353 +354 + # if %defaultroute, note the facts355 + if test " $2" != " "356 + then357 + (358 + echo "defaultroutephys=$phys"359 + echo "defaultroutevirt=$virt"360 + echo "defaultrouteaddr=$addr"361 + if test " $2" != " 0.0.0.0"362 + then363 + echo "defaultroutenexthop=$2"364 + fi365 + ) >>$info366 + else367 + echo '#dr: no default route' >>$info368 + fi369 +370 + # check for rp_filter trouble371 + checkif $phys # thought to be a problem only on phys372 +}373 +374 +# check an interface for problems375 +checkif() {376 + $klips || return 0377 + rpf=$rpfilter1/$1/$rpfilter2378 + if test -f $rpf379 + then380 + r="`cat $rpf`"381 + if test " $r" != " 0"382 + then383 + case "$r-$rpfiltercontrol" in384 + 0-%unchanged|0-0|1-1|2-2)385 + # happy state386 + ;;387 + *-%unchanged)388 + echo "WARNING: $1 has route filtering turned on; KLIPS may not work ($rpf is $r)"389 + ;;390 + [012]-[012])391 + echo "WARNING: changing route filtering on $1 (changing $rpf from $r to $rpfiltercontrol)"392 + echo "$rpfiltercontrol" >$rpf393 + ;;394 + [012]-*)395 + echo "ERROR: unknown rpfilter setting: $rpfiltercontrol"396 + ;;397 + *)398 + echo "ERROR: unknown $rpf value $r"399 + ;;400 + esac401 + fi402 + fi403 +}404 +405 +# interfaces=%defaultroute: put ipsec0 on top of default route's interface406 +defaultinterface() {407 + phys=`netstat -nr |408 + awk '$1 == "0.0.0.0" && $3 == "0.0.0.0" { print $NF }'`409 + if test " $phys" = " "410 + then411 + echo "no default route, %defaultroute cannot cope!!!"412 + exit 1413 + fi414 + if test `echo " $phys" | wc -l` -gt 1415 + then416 + echo "multiple default routes, %defaultroute cannot cope!!!"417 + exit 1418 + fi419 + next=`netstat -nr |420 + awk '$1 == "0.0.0.0" && $3 == "0.0.0.0" { print $2 }'`421 + klipsinterface "ipsec0=$phys" $next422 +}423 +424 +# log only to syslog, not to stdout/stderr425 +logonly() {426 + logger -p $log -t ipsec_setup427 +}428 +429 +# sort out which module is appropriate, changing it if necessary430 +setmodule() {431 + if [ -e /proc/kallsyms ]432 + then433 + kernelsymbols="/proc/kallsyms";434 + echo "calcgoo: warning: 2.6 kernel with kallsyms not supported yet"435 + else436 + kernelsymbols="/proc/ksyms";437 + fi438 + wantgoo="`ipsec calcgoo $kernelsymbols`"439 + module=$moduleplace/$modulename440 + if test -f $module441 + then442 + goo="`nm -ao $module | ipsec calcgoo`"443 + if test " $wantgoo" = " $goo"444 + then445 + return # looks right446 + fi447 + fi448 + if test -f $moduleinstplace/$wantgoo449 + then450 + echo "modprobe failed, but found matching template module $wantgoo."451 + echo "Copying $moduleinstplace/$wantgoo to $module."452 + rm -f $module453 + mkdir -p $moduleplace454 + cp -p $moduleinstplace/$wantgoo $module455 + # "depmod -a" gets done by caller456 + fi457 +}458 +459 +460 +461 +# main line462 +463 +# load module if possible464 +if test -f $ipsecversion && test -f $netkey465 +then466 + # both KLIPS and NETKEY code detected, bail out467 + echo "FATAL ERROR: Both KLIPS and NETKEY IPsec code is present in kernel"468 + exit469 +fi470 +if test ! -f $ipsecversion && test ! -f $netkey && modprobe -qn ipsec471 +then472 + # statically compiled KLIPS/NETKEY not found; try to load the module473 + modprobe ipsec474 +fi475 +476 +if test ! -f $ipsecversion && test ! -f $netkey477 +then478 + modprobe -v af_key479 +fi480 +481 +if test -f $netkey482 +then483 + klips=false484 + if test -f $modules485 + then486 + modprobe -qv ah4487 + modprobe -qv esp4488 + modprobe -qv ipcomp489 + # xfrm4_tunnel is needed by ipip and ipcomp490 + modprobe -qv xfrm4_tunnel491 + # xfrm_user contains netlink support for IPsec492 + modprobe -qv xfrm_user493 + modprobe -qv hw_random494 + # padlock must load before aes module495 + modprobe -qv padlock496 + # load the most common ciphers/algo's497 + modprobe -qv sha1498 + modprobe -qv md5499 + modprobe -qv des500 + modprobe -qv aes501 + fi502 +fi503 +504 +if test ! -f $ipsecversion && $klips505 +then506 + if test -r $modules # kernel does have modules507 + then508 + if [ ! -e /proc/ksyms -a ! -e /proc/kallsyms ]509 + then510 + echo "Broken 2.6 kernel without kallsyms, skipping calcgoo (Fedora rpm?)"511 + else512 + setmodule513 + fi514 + unset MODPATH MODULECONF # no user overrides!515 + depmod -a >/dev/null 2>&1516 + modprobe -qv hw_random517 + # padlock must load before aes module518 + modprobe -qv padlock519 + modprobe -v ipsec520 + fi521 + if test ! -f $ipsecversion522 + then523 + echo "kernel appears to lack IPsec support (neither CONFIG_KLIPS or CONFIG_NET_KEY are set)"524 + exit 1525 + fi526 +fi527 +528 +# figure out debugging flags529 +case "$debug" in530 +'') debug=none ;;531 +esac532 +if test -r /proc/net/ipsec_klipsdebug533 +then534 + echo "KLIPS debug \`$debug'" | logonly535 + case "$debug" in536 + none) ipsec klipsdebug --none ;;537 + all) ipsec klipsdebug --all ;;538 + *) ipsec klipsdebug --none539 + for d in $debug540 + do541 + ipsec klipsdebug --set $d542 + done543 + ;;544 + esac545 +elif $klips546 +then547 + if test " $debug" != " none"548 + then549 + echo "klipsdebug=\`$debug' ignored, KLIPS lacks debug facilities"550 + fi551 +fi552 +553 +# figure out misc. kernel config554 +if test -d $sysflags555 +then556 + sysflag "$fragicmp" "fragicmp" yes icmp557 + echo 1 >$sysflags/inbound_policy_check # no debate558 + sysflag no "no_eroute_pass" no no_eroute_pass # obsolete parm559 + sysflag no "opportunistic" no opportunistic # obsolete parm560 + sysflag "$hidetos" "hidetos" yes tos561 +elif $klips562 +then563 + echo "WARNING: cannot adjust KLIPS flags, no $sysflags directory!"564 + # carry on565 +fi566 +567 +if $klips568 +then569 + # clear tables out in case dregs have been left over570 + ipsec eroute --clear571 + ipsec spi --clear572 +elif test $netkey573 +then574 + if ip xfrm state > /dev/null 2>&1575 + then576 + ip xfrm state flush577 + ip xfrm policy flush578 + elif type setkey > /dev/null 2>&1579 + then580 + # Check that the setkey command is available.581 + setkeycmd=582 + PATH=$PATH:/usr/local/sbin583 + for dir in `echo $PATH | tr ':' ' '`584 + do585 + if test -f $dir/setkey -a -x $dir/setkey586 + then587 + setkeycmd=$dir/setkey588 + break # NOTE BREAK OUT589 + fi590 + done591 + $setkeycmd -F592 + $setkeycmd -FP593 + else594 +595 + echo "WARNING: cannot flush state/policy database -- \`$1'. Install a newer version of iproute/iproute2 or install the ipsec-tools package to obtain the setkey command." |596 + logger -s -p daemon.error -t ipsec_setup597 + fi598 +fi599 +600 +# figure out interfaces601 +for i602 +do603 + case "$i" in604 + ipsec*=?*) klipsinterface "$i" ;;605 + %defaultroute) defaultinterface ;;606 + *) echo "interface \`$i' not understood"607 + exit 1608 + ;;609 + esac610 +done611 +612 +exit 0 -
package/openvpn/Makefile
r2f09cbe rb917538 8 8 9 9 PKG_NAME:= openvpn 10 PKG_VERSION:= 2.0. 710 PKG_VERSION:= 2.0.8 11 11 PKG_RELEASE:= 1 12 PKG_MD5SUM:= 93528233f1f6d02fc18e2c00f82e0aca12 PKG_MD5SUM:= de41592b6dd88d33b7c45c114a4f4e00 13 13 PKG_INIT:= 60 14 14 -
package/raddump/Config.in
r2f09cbe rb917538 2 2 prompt "raddump........................... raddump interprets captured RADIUS packets." 3 3 tristate 4 default m if CONFIG_DEVEL4 default n 5 5 select FWRT_PACKAGE_LIBOPENSSL 6 6 select FWRT_PACKAGE_LIBPCAP -
package/radvd/Config.in
r2f09cbe rb917538 2 2 prompt "radvd............................. IPv6 Routing Advertisement Daemon" 3 3 tristate 4 default m if CONFIG_DEVEL4 default n 5 5 select FWRT_PACKAGE_KMOD_IPV6 6 select BUSYBOX_CONFIG_FEATURE_IPV6 6 7 help 7 8 Routing Advertisement Daemon for IPv6 -
package/tinc/Config.in
r2f09cbe rb917538 2 2 prompt "tinc.............................. VPN tunneling daemon" 3 3 tristate 4 default m if CONFIG_DEVEL4 default n 5 5 select FWRT_PACKAGE_KMOD_TUN 6 6 select FWRT_PACKAGE_LIBLZO -
package/tinc/Makefile
r2f09cbe rb917538 49 49 --with-kernel=$(LINUX_DIR) \ 50 50 --with-zlib=$(STAGING_DIR)/usr/ \ 51 --with-lzo-include=$(STAGING_DIR)/usr/include/lzo \ 51 52 ); 52 53 touch $@ -
package/vtun/Makefile
r2f09cbe rb917538 13 13 14 14 PKG_SOURCE_URL:= @SF/vtun 15 PKG_SOURCE:= $(PKG_NAME)-$(PKG_VERSION).tar.gz16 15 17 16 WRKSRC= ${WRKDIR}/$(PKG_NAME) … … 28 27 LIBS="-L$(STAGING_DIR)/usr/lib" \ 29 28 BLOWFISH_HDR_DIR="$(STAGING_DIR)/usr/include/openssl" \ 30 LZO_HDR_DIR="$(STAGING_DIR)/usr/include " \29 LZO_HDR_DIR="$(STAGING_DIR)/usr/include/lzo" \ 31 30 SSL_HDR_DIR="$(STAGING_DIR)/usr/include/openssl" \ 32 31 ./configure \ -
target/linux/generic-2.4/patches/601-netfilter_ipp2p.patch
r2f09cbe rb917538 1 diff - urN linux.old/include/linux/netfilter_ipv4/ipt_ipp2p.h linux.dev/include/linux/netfilter_ipv4/ipt_ipp2p.h2 --- linux .old/include/linux/netfilter_ipv4/ipt_ipp2p.h 1970-01-01 01:00:00.000000000 +01003 +++ linux .dev/include/linux/netfilter_ipv4/ipt_ipp2p.h 2006-03-23 14:37:56.000000000 +01001 diff -Nur linux-2.4.33.3/include/linux/netfilter_ipv4/ipt_ipp2p.h linux-2.4.33.3.ipp2p/include/linux/netfilter_ipv4/ipt_ipp2p.h 2 --- linux-2.4.33.3/include/linux/netfilter_ipv4/ipt_ipp2p.h 1970-01-01 01:00:00.000000000 +0100 3 +++ linux-2.4.33.3.ipp2p/include/linux/netfilter_ipv4/ipt_ipp2p.h 2006-09-30 13:48:52.000000000 +0200 4 4 @@ -0,0 +1,31 @@ 5 5 +#ifndef __IPT_IPP2P_H 6 6 +#define __IPT_IPP2P_H 7 +#define IPP2P_VERSION "0.8. 1_rc1"7 +#define IPP2P_VERSION "0.8.2" 8 8 + 9 9 +struct ipt_p2p_info { … … 34 34 +#define IPP2P_WASTE (1 << 15) 35 35 +#define IPP2P_XDCC (1 << 16) 36 diff - urN linux.old/net/ipv4/netfilter/Config.in linux.dev/net/ipv4/netfilter/Config.in37 --- linux .old/net/ipv4/netfilter/Config.in 2006-03-23 14:35:20.000000000 +010038 +++ linux .dev/net/ipv4/netfilter/Config.in 2006-03-23 14:35:58.000000000 +010039 @@ -2 9,6 +29,7 @@36 diff -Nur linux-2.4.33.3/net/ipv4/netfilter/Config.in linux-2.4.33.3.ipp2p/net/ipv4/netfilter/Config.in 37 --- linux-2.4.33.3/net/ipv4/netfilter/Config.in 2006-08-31 19:03:20.000000000 +0200 38 +++ linux-2.4.33.3.ipp2p/net/ipv4/netfilter/Config.in 2006-09-30 13:45:19.000000000 +0200 39 @@ -26,6 +26,7 @@ 40 40 dep_tristate ' TOS match support' CONFIG_IP_NF_MATCH_TOS $CONFIG_IP_NF_IPTABLES 41 41 dep_tristate ' recent match support' CONFIG_IP_NF_MATCH_RECENT $CONFIG_IP_NF_IPTABLES … … 45 45 dep_tristate ' DSCP match support' CONFIG_IP_NF_MATCH_DSCP $CONFIG_IP_NF_IPTABLES 46 46 47 diff -urN linux.old/net/ipv4/netfilter/Makefile linux.dev/net/ipv4/netfilter/Makefile 48 --- linux.old/net/ipv4/netfilter/Makefile 2006-03-23 14:35:20.000000000 +0100 49 +++ linux.dev/net/ipv4/netfilter/Makefile 2006-03-23 14:35:58.000000000 +0100 50 @@ -76,6 +76,7 @@ 51 obj-$(CONFIG_IP_NF_MATCH_LIMIT) += ipt_limit.o 52 obj-$(CONFIG_IP_NF_MATCH_MARK) += ipt_mark.o 53 obj-$(CONFIG_IP_NF_MATCH_MAC) += ipt_mac.o 54 +obj-$(CONFIG_IP_NF_MATCH_IPP2P) += ipt_ipp2p.o 55 56 obj-$(CONFIG_IP_NF_MATCH_PKTTYPE) += ipt_pkttype.o 57 obj-$(CONFIG_IP_NF_MATCH_MULTIPORT) += ipt_multiport.o 58 diff -urN linux.old/net/ipv4/netfilter/ipt_ipp2p.c linux.dev/net/ipv4/netfilter/ipt_ipp2p.c 59 --- linux.old/net/ipv4/netfilter/ipt_ipp2p.c 1970-01-01 01:00:00.000000000 +0100 60 +++ linux.dev/net/ipv4/netfilter/ipt_ipp2p.c 2006-03-23 14:37:18.000000000 +0100 61 @@ -0,0 +1,868 @@ 47 diff -Nur linux-2.4.33.3/net/ipv4/netfilter/ipt_ipp2p.c linux-2.4.33.3.ipp2p/net/ipv4/netfilter/ipt_ipp2p.c 48 --- linux-2.4.33.3/net/ipv4/netfilter/ipt_ipp2p.c 1970-01-01 01:00:00.000000000 +0100 49 +++ linux-2.4.33.3.ipp2p/net/ipv4/netfilter/ipt_ipp2p.c 2006-09-30 13:47:58.000000000 +0200 50 @@ -0,0 +1,894 @@ 62 51 +#if defined(MODVERSIONS) 63 52 +#include <linux/modversions.h> … … 790 779 + const struct net_device *in, 791 780 + const struct net_device *out, 781 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,17) 782 + const struct xt_match *mymatch, 792 783 + const void *matchinfo, 793 784 + int offset, 785 + unsigned int myprotoff, 786 +#else 787 + const void *matchinfo, 788 + int offset, 789 +#endif 794 790 + 795 791 +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0) … … 878 874 +static int 879 875 +checkentry(const char *tablename, 880 + const struct ipt_ip *ip, 881 + void *matchinfo, 882 + unsigned int matchsize, 883 + unsigned int hook_mask) 876 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,17) 877 + const void *ip, 878 + const struct xt_match *mymatch, 879 +#else 880 + const struct ipt_ip *ip, 881 +#endif 882 + void *matchinfo, 883 + unsigned int matchsize, 884 + unsigned int hook_mask) 884 885 +{ 885 886 + /* Must specify -p tcp */ … … 892 893 + 893 894 + 894 + 895 +// TODO: find out what this structure is for (scheme taken 896 +// from kernel sources) 897 +// content seems to have a length of 8 bytes 898 +// (at least on my x86 machine) 899 +struct ipp2p_match_info { 900 + long int dunno_what_this_is_for; 901 + long int i_also_dunno_what_this_is_for; 902 +}; 895 903 + 896 904 +static struct ipt_match ipp2p_match = { … … 903 911 + THIS_MODULE 904 912 +#endif 905 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)913 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)) && (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,17)) 906 914 + .name = "ipp2p", 907 915 + .match = &match, 908 916 + .checkentry = &checkentry, 909 917 + .me = THIS_MODULE, 918 +#elif LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,17) 919 + .name = "ipp2p", 920 + .match = &match, 921 + .family = AF_INET, 922 + .matchsize = sizeof(struct ipp2p_match_info), 923 + .checkentry = &checkentry, 924 + .me = THIS_MODULE, 910 925 +#endif 911 926 +}; … … 928 943 + 929 944 + 945 diff -Nur linux-2.4.33.3/net/ipv4/netfilter/Makefile linux-2.4.33.3.ipp2p/net/ipv4/netfilter/Makefile 946 --- linux-2.4.33.3/net/ipv4/netfilter/Makefile 2006-08-31 19:03:20.000000000 +0200 947 +++ linux-2.4.33.3.ipp2p/net/ipv4/netfilter/Makefile 2006-09-30 13:45:19.000000000 +0200 948 @@ -67,6 +67,7 @@ 949 obj-$(CONFIG_IP_NF_MATCH_LIMIT) += ipt_limit.o 950 obj-$(CONFIG_IP_NF_MATCH_MARK) += ipt_mark.o 951 obj-$(CONFIG_IP_NF_MATCH_MAC) += ipt_mac.o 952 +obj-$(CONFIG_IP_NF_MATCH_IPP2P) += ipt_ipp2p.o 953 954 obj-$(CONFIG_IP_NF_MATCH_PKTTYPE) += ipt_pkttype.o 955 obj-$(CONFIG_IP_NF_MATCH_MULTIPORT) += ipt_multiport.o
Note:
See TracChangeset
for help on using the changeset viewer.
