From ba3359722cbf8aa7b0ed39e1f81d1d74ec88fecd Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 30 May 2009 20:39:07 +0200 Subject: optimize ipkg package management - generate ipkg control file from PKG_* variables - automatically install init scripts from ./files/*.init set #PKG pkgname to set the binary package - rename FWINIT -> INIT - move postinst and conffiles meta data to ./files - update the packages to the latest upstream version - remove some unready or unused package (strongswan,..) more cleanups needed after allmodconfig --- package/dhcpv6/patches/patch-configure | 26 +++++++++++++ package/dhcpv6/patches/patch-configure.orig | 25 ++++++++++++ package/dhcpv6/patches/patch-configure_ac | 21 +++++++++++ package/dhcpv6/patches/patch-configure_ac.orig | 21 +++++++++++ package/dhcpv6/patches/patch-src_relay6_socket_c | 48 ++++++++++++++++++++++++ 5 files changed, 141 insertions(+) create mode 100644 package/dhcpv6/patches/patch-configure create mode 100644 package/dhcpv6/patches/patch-configure.orig create mode 100644 package/dhcpv6/patches/patch-configure_ac create mode 100644 package/dhcpv6/patches/patch-configure_ac.orig create mode 100644 package/dhcpv6/patches/patch-src_relay6_socket_c (limited to 'package/dhcpv6/patches') diff --git a/package/dhcpv6/patches/patch-configure b/package/dhcpv6/patches/patch-configure new file mode 100644 index 000000000..2ef218d4a --- /dev/null +++ b/package/dhcpv6/patches/patch-configure @@ -0,0 +1,26 @@ +$Id: update-patches 24 2008-08-31 14:56:13Z wbx $ +--- dhcpv6-1.2.0.orig/configure 2009-04-03 04:45:15.000000000 +0200 ++++ dhcpv6-1.2.0/configure 2009-05-28 23:10:48.955142356 +0200 +@@ -12654,10 +12654,9 @@ done + + + +- + for ac_header in arpa/inet.h err.h errno.h getopt.h fcntl.h ifaddrs.h \ + libgen.h net/if.h net/if_arp.h netdb.h netinet/in.h \ +- sys/ioctl.h sys/timeb.h syslog.h ++ sys/ioctl.h syslog.h + do + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` + { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 +@@ -15942,9 +15941,7 @@ fi + + + +- +- +-for ac_func in bzero ftime gettimeofday memset select socket strchr strdup \ ++for ac_func in gettimeofday memset select socket strchr strdup \ + strerror strrchr strstr strtol strtoul + do + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` diff --git a/package/dhcpv6/patches/patch-configure.orig b/package/dhcpv6/patches/patch-configure.orig new file mode 100644 index 000000000..8ba5a08ed --- /dev/null +++ b/package/dhcpv6/patches/patch-configure.orig @@ -0,0 +1,25 @@ +$Id: update-patches 24 2008-08-31 14:56:13Z wbx $ +--- dhcpv6-1.2.0.orig/configure 2009-04-03 04:45:15.000000000 +0200 ++++ dhcpv6-1.2.0/configure 2009-05-28 23:09:45.591183981 +0200 +@@ -12654,10 +12654,9 @@ done + + + +- + for ac_header in arpa/inet.h err.h errno.h getopt.h fcntl.h ifaddrs.h \ + libgen.h net/if.h net/if_arp.h netdb.h netinet/in.h \ +- sys/ioctl.h sys/timeb.h syslog.h ++ sys/ioctl.h syslog.h + do + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` + { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 +@@ -15943,8 +15942,7 @@ fi + + + +- +-for ac_func in bzero ftime gettimeofday memset select socket strchr strdup \ ++for ac_func in ftime gettimeofday memset select socket strchr strdup \ + strerror strrchr strstr strtol strtoul + do + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` diff --git a/package/dhcpv6/patches/patch-configure_ac b/package/dhcpv6/patches/patch-configure_ac new file mode 100644 index 000000000..3ca204c05 --- /dev/null +++ b/package/dhcpv6/patches/patch-configure_ac @@ -0,0 +1,21 @@ +$Id: update-patches 24 2008-08-31 14:56:13Z wbx $ +--- dhcpv6-1.2.0.orig/configure.ac 2009-04-03 04:33:56.000000000 +0200 ++++ dhcpv6-1.2.0/configure.ac 2009-05-28 23:10:31.256646671 +0200 +@@ -45,7 +45,7 @@ AC_CHECK_HEADERS([sys/types.h sys/socket + # Check for headers we must have on the system + AC_CHECK_HEADERS([arpa/inet.h err.h errno.h getopt.h fcntl.h ifaddrs.h \ + libgen.h net/if.h net/if_arp.h netdb.h netinet/in.h \ +- sys/ioctl.h sys/timeb.h syslog.h], ++ sys/ioctl.h syslog.h], + [], + [AC_MSG_FAILURE([*** Header file $ac_header not found.])], + [[#ifdef HAVE_SYS_TYPES_H +@@ -97,7 +97,7 @@ AC_FUNC_REALLOC + AC_FUNC_SELECT_ARGTYPES + AC_TYPE_SIGNAL + AC_FUNC_STAT +-AC_CHECK_FUNCS([bzero ftime gettimeofday memset select socket strchr strdup \ ++AC_CHECK_FUNCS([gettimeofday memset select socket strchr strdup \ + strerror strrchr strstr strtol strtoul], + [], + [AC_MSG_FAILURE([*** Required function $ac_func not found.])]) diff --git a/package/dhcpv6/patches/patch-configure_ac.orig b/package/dhcpv6/patches/patch-configure_ac.orig new file mode 100644 index 000000000..b5ad3d3c8 --- /dev/null +++ b/package/dhcpv6/patches/patch-configure_ac.orig @@ -0,0 +1,21 @@ +$Id: update-patches 24 2008-08-31 14:56:13Z wbx $ +--- dhcpv6-1.2.0.orig/configure.ac 2009-04-03 04:33:56.000000000 +0200 ++++ dhcpv6-1.2.0/configure.ac 2009-05-28 23:09:25.701939971 +0200 +@@ -45,7 +45,7 @@ AC_CHECK_HEADERS([sys/types.h sys/socket + # Check for headers we must have on the system + AC_CHECK_HEADERS([arpa/inet.h err.h errno.h getopt.h fcntl.h ifaddrs.h \ + libgen.h net/if.h net/if_arp.h netdb.h netinet/in.h \ +- sys/ioctl.h sys/timeb.h syslog.h], ++ sys/ioctl.h syslog.h], + [], + [AC_MSG_FAILURE([*** Header file $ac_header not found.])], + [[#ifdef HAVE_SYS_TYPES_H +@@ -97,7 +97,7 @@ AC_FUNC_REALLOC + AC_FUNC_SELECT_ARGTYPES + AC_TYPE_SIGNAL + AC_FUNC_STAT +-AC_CHECK_FUNCS([bzero ftime gettimeofday memset select socket strchr strdup \ ++AC_CHECK_FUNCS([ftime gettimeofday memset select socket strchr strdup \ + strerror strrchr strstr strtol strtoul], + [], + [AC_MSG_FAILURE([*** Required function $ac_func not found.])]) diff --git a/package/dhcpv6/patches/patch-src_relay6_socket_c b/package/dhcpv6/patches/patch-src_relay6_socket_c new file mode 100644 index 000000000..c5f37d926 --- /dev/null +++ b/package/dhcpv6/patches/patch-src_relay6_socket_c @@ -0,0 +1,48 @@ +$Id: update-patches 24 2008-08-31 14:56:13Z wbx $ +--- dhcpv6-1.2.0.orig/src/relay6_socket.c 2009-04-03 00:53:38.000000000 +0200 ++++ dhcpv6-1.2.0/src/relay6_socket.c 2009-05-28 23:09:11.155499136 +0200 +@@ -399,7 +399,7 @@ int send_message() { + if (mesg->sent == 1) + return 0; + +- bzero((char *) &sin6, sizeof(struct sockaddr_in6)); ++ memset((char *) &sin6, 0, sizeof(struct sockaddr_in6)); + sin6.sin6_family = AF_INET6; + sin6.sin6_flowinfo = 0; + sin6.sin6_scope_id = 0; +@@ -494,7 +494,7 @@ int send_message() { + if (mesg->msg_type == DH6_RELAY_FORW) { + for (ipv6uni = IPv6_uniaddr_list.next; ipv6uni != &IPv6_uniaddr_list; + ipv6uni = ipv6uni->next) { +- bzero((char *) &sin6, sizeof(struct sockaddr_in6)); ++ memset((char *) &sin6, 0, sizeof(struct sockaddr_in6)); + sin6.sin6_family = AF_INET6; + + memset(dest_addr, 0, INET6_ADDRSTRLEN); +@@ -564,7 +564,7 @@ int send_message() { + iface = iface->next) { + uservers = iface->sname; + while (uservers != NULL) { +- bzero((char *) &sin6, sizeof(struct sockaddr_in6)); ++ memset((char *) &sin6, 0, sizeof(struct sockaddr_in6)); + sin6.sin6_family = AF_INET6; + + memset(dest_addr, 0, INET6_ADDRSTRLEN); +@@ -644,7 +644,7 @@ int send_message() { + + for (si = sifaces_list.next; si != &sifaces_list; si = si->next) { + *(mesg->hc_pointer) = MAXHOPCOUNT; +- bzero((char *) &sin6, sizeof(struct sockaddr_in6)); ++ memset((char *) &sin6, 0, sizeof(struct sockaddr_in6)); + sin6.sin6_family = AF_INET6; + + memset(dest_addr, 0, INET6_ADDRSTRLEN); +@@ -734,7 +734,7 @@ int send_message() { + continue; + + *(mesg->hc_pointer) = MAXHOPCOUNT; +- bzero((char *) &sin6, sizeof(struct sockaddr_in6)); ++ memset((char *) &sin6, 0, sizeof(struct sockaddr_in6)); + sin6.sin6_family = AF_INET6; + + memset(dest_addr, 0, INET6_ADDRSTRLEN); -- cgit v1.2.3