Explorar el Código

Merge remote-tracking branch 'openwrt/master' into bogofilter

W. Michael Petullo hace 10 años
padre
commit
332eb1b03b
Se han modificado 51 ficheros con 16145 adiciones y 180 borrados
  1. 1
    1
      lang/perl/Makefile
  2. 6
    6
      lang/perl/files/config.sh-arm.in
  3. 6
    6
      lang/perl/files/config.sh-armeb.in
  4. 6
    6
      lang/perl/files/config.sh-avr32.in
  5. 6
    6
      lang/perl/files/config.sh-i486.in
  6. 6
    6
      lang/perl/files/config.sh-mips.in
  7. 6
    6
      lang/perl/files/config.sh-mipsel.in
  8. 10
    10
      lang/perl/files/config.sh-powerpc.in
  9. 6
    6
      lang/perl/files/config.sh-x86_64.in
  10. 3
    9
      lang/python/Makefile
  11. 1
    0
      lang/python/files/config.site
  12. 5
    0
      lang/python/files/python-package.mk
  13. 14
    0
      lang/python/patches/120-do-not-add-include-dirs-when-cross-compiling.patch
  14. 37
    0
      lang/python/patches/130-do-not-run-distutils-tests.patch
  15. 55
    0
      libs/libantlr3c/Makefile
  16. 55
    0
      libs/libavl/Makefile
  17. 45
    0
      libs/libavl/patches/010-update_GNUmakefile.patch
  18. 59
    0
      libs/libunistring/Makefile
  19. 56
    0
      libs/mxml/Makefile
  20. 11
    0
      libs/mxml/patches/001-targets.patch
  21. 3
    3
      mail/dovecot/Makefile
  22. 2
    2
      mail/dovecot/patches/001-configure_in.patch
  23. 2
    2
      net/irssi/Makefile
  24. 53
    8
      net/knot/Makefile
  25. 2
    2
      net/nfs-kernel-server/Makefile
  26. 0
    36
      net/nfs-kernel-server/patches/100-nfs_utils_uclibc.patch
  27. 0
    0
      net/nfs-kernel-server/patches/100-no_malloc_h.patch
  28. 107
    0
      net/nut/Config.in
  29. 279
    0
      net/nut/Makefile
  30. 21
    0
      net/nut/files/nut-monitor.init
  31. 23
    0
      net/nut/files/nut-server.init
  32. 22
    0
      net/nut/patches/001-fix-missing-libmath-flags.patch
  33. 28
    0
      net/nut/patches/010-ignore_automake_k_bug.patch
  34. 2
    2
      net/openssh/Makefile
  35. 1
    1
      net/openssh/patches/100-no_cast_fix.patch
  36. 34
    0
      net/openvswitch/Makefile
  37. 1
    1
      net/sqm-scripts/Makefile
  38. 6
    45
      net/sqm-scripts/files/usr/lib/sqm/functions.sh
  39. 11
    4
      net/sqm-scripts/files/usr/lib/sqm/run.sh
  40. 7
    4
      net/sqm-scripts/files/usr/lib/sqm/simple.qos
  41. 5
    2
      net/sqm-scripts/files/usr/lib/sqm/simple_pppoe.qos
  42. 5
    2
      net/sqm-scripts/files/usr/lib/sqm/simplest.qos
  43. 11
    4
      net/sqm-scripts/files/usr/lib/sqm/stop.sh
  44. 66
    0
      sound/forked-daapd/Makefile
  45. 139
    0
      sound/forked-daapd/files/forked-daapd.conf
  46. 15
    0
      sound/forked-daapd/files/forked-daapd.init
  47. 14782
    0
      sound/forked-daapd/patches/010-include_pregen.patch
  48. 89
    0
      utils/lvm2/Makefile
  49. 12
    0
      utils/lvm2/files/lvm2.init
  50. 11
    0
      utils/lvm2/patches/000-compile.patch
  51. 12
    0
      utils/lvm2/patches/001-include_fix.patch

+ 1
- 1
lang/perl/Makefile Ver fichero

@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
9 9
 
10 10
 PKG_NAME:=perl
11 11
 PKG_VERSION:=5.20.0
12
-PKG_RELEASE:=5
12
+PKG_RELEASE:=6
13 13
 
14 14
 PKG_SOURCE_URL:=ftp://ftp.cpan.org/pub/CPAN/src/5.0 \
15 15
 		http://www.cpan.org/src/5.0/perl-5.20.0.tar.gz \

+ 6
- 6
lang/perl/files/config.sh-arm.in Ver fichero

@@ -740,12 +740,12 @@ lib_ext='.a'
740 740
 libc=''
741 741
 libperl='libperl.so'
742 742
 libpth='%%LIBDIRS%%'
743
-libs='-lgdbm -ldb -lnsl -ldl -lm -lcrypt -lutil -lc'
743
+libs='-lgdbm -ldb -ldl -lm -lcrypt -lutil -lc'
744 744
 libsdirs='%%LIBDIRS%%'
745
-libsfiles=' libnsl.so libdl.so libm.so libcrypt.so libutil.so libc.so'
746
-#libsfound=' /usr/lib/libnsl.so /usr/lib/libdl.so /usr/lib/libm.so /usr/lib/libcrypt.so /usr/lib/libutil.so /usr/lib/libc.so'
745
+libsfiles=' libdl.so libm.so libcrypt.so libutil.so libc.so'
746
+#libsfound=' /usr/lib/libdl.so /usr/lib/libm.so /usr/lib/libcrypt.so /usr/lib/libutil.so /usr/lib/libc.so'
747 747
 libspath='%%LIBDIRS%%'
748
-libswanted='sfio socket inet nsl nm ndbm gdbm dbm db malloc dl dld ld sun m crypt sec util c cposix posix ucb BSD'
748
+libswanted='sfio socket inet nm ndbm gdbm dbm db malloc dl dld ld sun m crypt sec util c cposix posix ucb BSD'
749 749
 libswanted_uselargefiles=''
750 750
 line=''
751 751
 lint=''
@@ -829,7 +829,7 @@ perl5=''
829 829
 perl=''
830 830
 perl_patchlevel=''
831 831
 perladmin='root@maia.dev.null'
832
-perllibs='-lnsl -ldl -lm -lcrypt -lutil -lc %%EXTRA_PERLLIBS%%'
832
+perllibs='-ldl -lm -lcrypt -lutil -lc %%EXTRA_PERLLIBS%%'
833 833
 perlpath='/usr/bin/perl'
834 834
 pg='pg'
835 835
 phostname='hostname'
@@ -1108,7 +1108,7 @@ i_stdbool='define'
1108 1108
 i_syspoll='define'
1109 1109
 #incpth='/usr/lib/gcc/i486-slackware-linux/4.8.2/include /usr/local/include /usr/lib/gcc/i486-slackware-linux/4.8.2/include-fixed /usr/include'
1110 1110
 ld_can_script='define'
1111
-#libsfound=' /usr/lib/libnsl.so /usr/lib/libgdbm.so /usr/lib/libdb.so /usr/lib/libdl.so /usr/lib/libm.so /usr/lib/libcrypt.so /usr/lib/libutil.so /usr/lib/libc.so'
1111
+#libsfound=' /usr/lib/libgdbm.so /usr/lib/libdb.so /usr/lib/libdl.so /usr/lib/libm.so /usr/lib/libcrypt.so /usr/lib/libutil.so /usr/lib/libc.so'
1112 1112
 nv_overflows_integers_at='0'
1113 1113
 perl_static_inline='static __inline__'
1114 1114
 sGMTIME_max='2147483647'

+ 6
- 6
lang/perl/files/config.sh-armeb.in Ver fichero

@@ -740,12 +740,12 @@ lib_ext='.a'
740 740
 libc=''
741 741
 libperl='libperl.so'
742 742
 libpth='%%LIBDIRS%%'
743
-libs='-lgdbm -ldb -lnsl -ldl -lm -lcrypt -lutil -lc'
743
+libs='-lgdbm -ldb -ldl -lm -lcrypt -lutil -lc'
744 744
 libsdirs='%%LIBDIRS%%'
745
-libsfiles=' libnsl.so libdl.so libm.so libcrypt.so libutil.so libc.so'
746
-#libsfound=' /usr/lib/libnsl.so /usr/lib/libdl.so /usr/lib/libm.so /usr/lib/libcrypt.so /usr/lib/libutil.so /usr/lib/libc.so'
745
+libsfiles=' libdl.so libm.so libcrypt.so libutil.so libc.so'
746
+#libsfound=' /usr/lib/libdl.so /usr/lib/libm.so /usr/lib/libcrypt.so /usr/lib/libutil.so /usr/lib/libc.so'
747 747
 libspath='%%LIBDIRS%%'
748
-libswanted='sfio socket inet nsl nm ndbm gdbm dbm db malloc dl dld ld sun m crypt sec util c cposix posix ucb BSD'
748
+libswanted='sfio socket inet nm ndbm gdbm dbm db malloc dl dld ld sun m crypt sec util c cposix posix ucb BSD'
749 749
 libswanted_uselargefiles=''
750 750
 line=''
751 751
 lint=''
@@ -829,7 +829,7 @@ perl5=''
829 829
 perl=''
830 830
 perl_patchlevel=''
831 831
 perladmin='root@maia.dev.null'
832
-perllibs='-lnsl -ldl -lm -lcrypt -lutil -lc %%EXTRA_PERLLIBS%%'
832
+perllibs='-ldl -lm -lcrypt -lutil -lc %%EXTRA_PERLLIBS%%'
833 833
 perlpath='/usr/bin/perl'
834 834
 pg='pg'
835 835
 phostname='hostname'
@@ -1108,7 +1108,7 @@ i_stdbool='define'
1108 1108
 i_syspoll='define'
1109 1109
 #incpth='/usr/lib/gcc/i486-slackware-linux/4.8.2/include /usr/local/include /usr/lib/gcc/i486-slackware-linux/4.8.2/include-fixed /usr/include'
1110 1110
 ld_can_script='define'
1111
-#libsfound=' /usr/lib/libnsl.so /usr/lib/libgdbm.so /usr/lib/libdb.so /usr/lib/libdl.so /usr/lib/libm.so /usr/lib/libcrypt.so /usr/lib/libutil.so /usr/lib/libc.so'
1111
+#libsfound=' /usr/lib/libgdbm.so /usr/lib/libdb.so /usr/lib/libdl.so /usr/lib/libm.so /usr/lib/libcrypt.so /usr/lib/libutil.so /usr/lib/libc.so'
1112 1112
 nv_overflows_integers_at='0'
1113 1113
 perl_static_inline='static __inline__'
1114 1114
 sGMTIME_max='2147483647'

+ 6
- 6
lang/perl/files/config.sh-avr32.in Ver fichero

@@ -742,12 +742,12 @@ lib_ext='.a'
742 742
 libc=''
743 743
 libperl='libperl.so'
744 744
 libpth='%%LIBDIRS%%'
745
-libs='-lgdbm -ldb -lnsl -ldl -lm -lcrypt -lutil -lc'
745
+libs='-lgdbm -ldb -ldl -lm -lcrypt -lutil -lc'
746 746
 libsdirs='%%LIBDIRS%%'
747
-libsfiles=' libnsl.so libdl.so libm.so libcrypt.so libutil.so libc.so'
748
-#libsfound=' /usr/lib/libnsl.so /usr/lib/libdl.so /usr/lib/libm.so /usr/lib/libcrypt.so /usr/lib/libutil.so /usr/lib/libc.so'
747
+libsfiles=' libdl.so libm.so libcrypt.so libutil.so libc.so'
748
+#libsfound=' /usr/lib/libdl.so /usr/lib/libm.so /usr/lib/libcrypt.so /usr/lib/libutil.so /usr/lib/libc.so'
749 749
 libspath='%%LIBDIRS%%'
750
-libswanted='sfio socket inet nsl nm ndbm gdbm dbm db malloc dl dld ld sun m crypt sec util c cposix posix ucb BSD'
750
+libswanted='sfio socket inet nm ndbm gdbm dbm db malloc dl dld ld sun m crypt sec util c cposix posix ucb BSD'
751 751
 libswanted_uselargefiles=''
752 752
 line=''
753 753
 lint=''
@@ -831,7 +831,7 @@ perl5=''
831 831
 perl=''
832 832
 perl_patchlevel=''
833 833
 perladmin='root@maia.dev.null'
834
-perllibs='-lnsl -ldl -lm -lcrypt -lutil -lc %%EXTRA_PERLLIBS%%'
834
+perllibs='-ldl -lm -lcrypt -lutil -lc %%EXTRA_PERLLIBS%%'
835 835
 perlpath='/usr/bin/perl'
836 836
 pg='pg'
837 837
 phostname='hostname'
@@ -1110,7 +1110,7 @@ i_stdbool='define'
1110 1110
 i_syspoll='define'
1111 1111
 #incpth='/usr/lib/gcc/i486-slackware-linux/4.8.2/include /usr/local/include /usr/lib/gcc/i486-slackware-linux/4.8.2/include-fixed /usr/include'
1112 1112
 ld_can_script='define'
1113
-#libsfound=' /usr/lib/libnsl.so /usr/lib/libgdbm.so /usr/lib/libdb.so /usr/lib/libdl.so /usr/lib/libm.so /usr/lib/libcrypt.so /usr/lib/libutil.so /usr/lib/libc.so'
1113
+#libsfound=' /usr/lib/libgdbm.so /usr/lib/libdb.so /usr/lib/libdl.so /usr/lib/libm.so /usr/lib/libcrypt.so /usr/lib/libutil.so /usr/lib/libc.so'
1114 1114
 nv_overflows_integers_at='0'
1115 1115
 perl_static_inline='static __inline__'
1116 1116
 sGMTIME_max='2147483647'

+ 6
- 6
lang/perl/files/config.sh-i486.in Ver fichero

@@ -733,12 +733,12 @@ lib_ext='.a'
733 733
 libc=''
734 734
 libperl='libperl.so'
735 735
 libpth='%%LIBDIRS%%'
736
-libs='-lgdbm -ldb -lnsl -ldl -lm -lcrypt -lutil -lc'
736
+libs='-lgdbm -ldb -ldl -lm -lcrypt -lutil -lc'
737 737
 libsdirs='%%LIBDIRS%%'
738
-libsfiles=' libnsl.so libdl.so libm.so libcrypt.so libutil.so libc.so'
739
-#libsfound=' /usr/lib/libnsl.so /usr/lib/libdl.so /usr/lib/libm.so /usr/lib/libcrypt.so /usr/lib/libutil.so /usr/lib/libc.so'
738
+libsfiles=' libdl.so libm.so libcrypt.so libutil.so libc.so'
739
+#libsfound=' /usr/lib/libdl.so /usr/lib/libm.so /usr/lib/libcrypt.so /usr/lib/libutil.so /usr/lib/libc.so'
740 740
 libspath='%%LIBDIRS%%'
741
-libswanted='sfio socket inet nsl nm ndbm gdbm dbm db malloc dl dld ld sun m crypt sec util c cposix posix ucb BSD'
741
+libswanted='sfio socket inet nm ndbm gdbm dbm db malloc dl dld ld sun m crypt sec util c cposix posix ucb BSD'
742 742
 libswanted_uselargefiles=''
743 743
 line=''
744 744
 lint=''
@@ -820,7 +820,7 @@ perl5=''
820 820
 perl=''
821 821
 perl_patchlevel=''
822 822
 perladmin='root@maia.dev.null'
823
-perllibs='-lnsl -ldl -lm -lcrypt -lutil -lc %%EXTRA_PERLLIBS%%'
823
+perllibs='-ldl -lm -lcrypt -lutil -lc %%EXTRA_PERLLIBS%%'
824 824
 perlpath='/usr/bin/perl'
825 825
 pg='pg'
826 826
 phostname='hostname'
@@ -1093,7 +1093,7 @@ i_stdbool='define'
1093 1093
 i_syspoll='define'
1094 1094
 #incpth='/usr/lib/gcc/i486-slackware-linux/4.8.2/include /usr/local/include /usr/lib/gcc/i486-slackware-linux/4.8.2/include-fixed /usr/include'
1095 1095
 ld_can_script='define'
1096
-#libsfound=' /usr/lib/libnsl.so /usr/lib/libgdbm.so /usr/lib/libdb.so /usr/lib/libdl.so /usr/lib/libm.so /usr/lib/libcrypt.so /usr/lib/libutil.so /usr/lib/libc.so'
1096
+#libsfound=' /usr/lib/libgdbm.so /usr/lib/libdb.so /usr/lib/libdl.so /usr/lib/libm.so /usr/lib/libcrypt.so /usr/lib/libutil.so /usr/lib/libc.so'
1097 1097
 nv_overflows_integers_at='0'
1098 1098
 perl_static_inline='static __inline__'
1099 1099
 sGMTIME_max='2147483647'

+ 6
- 6
lang/perl/files/config.sh-mips.in Ver fichero

@@ -740,12 +740,12 @@ lib_ext='.a'
740 740
 libc=''
741 741
 libperl='libperl.so'
742 742
 libpth='%%LIBDIRS%%'
743
-libs='-lgdbm -ldb -lnsl -ldl -lm -lcrypt -lutil -lc'
743
+libs='-lgdbm -ldb -ldl -lm -lcrypt -lutil -lc'
744 744
 libsdirs='%%LIBDIRS%%'
745
-libsfiles=' libnsl.so libdl.so libm.so libcrypt.so libutil.so libc.so'
746
-#libsfound=' /usr/lib/libnsl.so /usr/lib/libdl.so /usr/lib/libm.so /usr/lib/libcrypt.so /usr/lib/libutil.so /usr/lib/libc.so'
745
+libsfiles=' libdl.so libm.so libcrypt.so libutil.so libc.so'
746
+#libsfound=' /usr/lib/libdl.so /usr/lib/libm.so /usr/lib/libcrypt.so /usr/lib/libutil.so /usr/lib/libc.so'
747 747
 libspath='%%LIBDIRS%%'
748
-libswanted='sfio socket inet nsl nm ndbm gdbm dbm db malloc dl dld ld sun m crypt sec util c cposix posix ucb BSD'
748
+libswanted='sfio socket inet nm ndbm gdbm dbm db malloc dl dld ld sun m crypt sec util c cposix posix ucb BSD'
749 749
 libswanted_uselargefiles=''
750 750
 line=''
751 751
 lint=''
@@ -829,7 +829,7 @@ perl5=''
829 829
 perl=''
830 830
 perl_patchlevel=''
831 831
 perladmin='root@merope.dev.null'
832
-perllibs='-lnsl -ldl -lm -lcrypt -lutil -lc %%EXTRA_PERLLIBS%%'
832
+perllibs='-ldl -lm -lcrypt -lutil -lc %%EXTRA_PERLLIBS%%'
833 833
 perlpath='/usr/bin/perl'
834 834
 pg='pg'
835 835
 phostname='hostname'
@@ -1108,7 +1108,7 @@ i_stdbool='define'
1108 1108
 i_syspoll='define'
1109 1109
 #incpth='/usr/lib/gcc/i486-slackware-linux/4.8.2/include /usr/local/include /usr/lib/gcc/i486-slackware-linux/4.8.2/include-fixed /usr/include'
1110 1110
 ld_can_script='define'
1111
-#libsfound=' /usr/lib/libnsl.so /usr/lib/libgdbm.so /usr/lib/libdb.so /usr/lib/libdl.so /usr/lib/libm.so /usr/lib/libcrypt.so /usr/lib/libutil.so /usr/lib/libc.so'
1111
+#libsfound=' /usr/lib/libgdbm.so /usr/lib/libdb.so /usr/lib/libdl.so /usr/lib/libm.so /usr/lib/libcrypt.so /usr/lib/libutil.so /usr/lib/libc.so'
1112 1112
 nv_overflows_integers_at='0'
1113 1113
 perl_static_inline='static __inline__'
1114 1114
 sGMTIME_max='2147483647'

+ 6
- 6
lang/perl/files/config.sh-mipsel.in Ver fichero

@@ -733,12 +733,12 @@ lib_ext='.a'
733 733
 libc=''
734 734
 libperl='libperl.so'
735 735
 libpth='%%LIBDIRS%%'
736
-libs='-lgdbm -ldb -lnsl -ldl -lm -lcrypt -lutil -lc'
736
+libs='-lgdbm -ldb -ldl -lm -lcrypt -lutil -lc'
737 737
 libsdirs='%%LIBDIRS%%'
738
-libsfiles=' libnsl.so libdl.so libm.so libcrypt.so libutil.so libc.so'
739
-#libsfound=' /usr/lib/libnsl.so /usr/lib/libdl.so /usr/lib/libm.so /usr/lib/libcrypt.so /usr/lib/libutil.so /usr/lib/libc.so'
738
+libsfiles=' libdl.so libm.so libcrypt.so libutil.so libc.so'
739
+#libsfound=' /usr/lib/libdl.so /usr/lib/libm.so /usr/lib/libcrypt.so /usr/lib/libutil.so /usr/lib/libc.so'
740 740
 libspath='%%LIBDIRS%%'
741
-libswanted='sfio socket inet nsl nm ndbm gdbm dbm db malloc dl dld ld sun m crypt sec util c cposix posix ucb BSD'
741
+libswanted='sfio socket inet nm ndbm gdbm dbm db malloc dl dld ld sun m crypt sec util c cposix posix ucb BSD'
742 742
 libswanted_uselargefiles=''
743 743
 line=''
744 744
 lint=''
@@ -820,7 +820,7 @@ perl5=''
820 820
 perl=''
821 821
 perl_patchlevel=''
822 822
 perladmin='root@merope.dev.null'
823
-perllibs='-lnsl -ldl -lm -lcrypt -lutil -lc %%EXTRA_PERLLIBS%%'
823
+perllibs='-ldl -lm -lcrypt -lutil -lc %%EXTRA_PERLLIBS%%'
824 824
 perlpath='/usr/bin/perl'
825 825
 pg='pg'
826 826
 phostname='hostname'
@@ -1093,7 +1093,7 @@ i_stdbool='define'
1093 1093
 i_syspoll='define'
1094 1094
 #incpth='/usr/lib/gcc/i486-slackware-linux/4.8.2/include /usr/local/include /usr/lib/gcc/i486-slackware-linux/4.8.2/include-fixed /usr/include'
1095 1095
 ld_can_script='define'
1096
-#libsfound=' /usr/lib/libnsl.so /usr/lib/libgdbm.so /usr/lib/libdb.so /usr/lib/libdl.so /usr/lib/libm.so /usr/lib/libcrypt.so /usr/lib/libutil.so /usr/lib/libc.so'
1096
+#libsfound=' /usr/lib/libgdbm.so /usr/lib/libdb.so /usr/lib/libdl.so /usr/lib/libm.so /usr/lib/libcrypt.so /usr/lib/libutil.so /usr/lib/libc.so'
1097 1097
 nv_overflows_integers_at='0'
1098 1098
 perl_static_inline='static __inline__'
1099 1099
 sGMTIME_max='2147483647'

+ 10
- 10
lang/perl/files/config.sh-powerpc.in Ver fichero

@@ -600,13 +600,13 @@ html1direxp=''
600 600
 html3dir=' '
601 601
 html3direxp=''
602 602
 i16size='2'
603
-i16type='short'
603
+i16type='signed short'
604 604
 i32size='4'
605
-i32type='long'
605
+i32type='signed long'
606 606
 i64size='8'
607
-i64type='long long'
607
+i64type='signed long long'
608 608
 i8size='1'
609
-i8type='char'
609
+i8type='signed char'
610 610
 i_arpainet='define'
611 611
 i_bsdioctl=''
612 612
 i_crypt='define'
@@ -740,12 +740,12 @@ lib_ext='.a'
740 740
 libc=''
741 741
 libperl='libperl.so'
742 742
 libpth='%%LIBDIRS%%'
743
-libs='-lgdbm -ldb -lnsl -ldl -lm -lcrypt -lutil -lc'
743
+libs='-lgdbm -ldb -ldl -lm -lcrypt -lutil -lc'
744 744
 libsdirs='%%LIBDIRS%%'
745
-libsfiles=' libnsl.so libdl.so libm.so libcrypt.so libutil.so libc.so'
746
-#libsfound=' /usr/lib/libnsl.so /usr/lib/libdl.so /usr/lib/libm.so /usr/lib/libcrypt.so /usr/lib/libutil.so /usr/lib/libc.so'
745
+libsfiles=' libdl.so libm.so libcrypt.so libutil.so libc.so'
746
+#libsfound=' /usr/lib/libdl.so /usr/lib/libm.so /usr/lib/libcrypt.so /usr/lib/libutil.so /usr/lib/libc.so'
747 747
 libspath='%%LIBDIRS%%'
748
-libswanted='sfio socket inet nsl nm ndbm gdbm dbm db malloc dl dld ld sun m crypt sec util c cposix posix ucb BSD'
748
+libswanted='sfio socket inet nm ndbm gdbm dbm db malloc dl dld ld sun m crypt sec util c cposix posix ucb BSD'
749 749
 libswanted_uselargefiles=''
750 750
 line=''
751 751
 lint=''
@@ -829,7 +829,7 @@ perl5=''
829 829
 perl=''
830 830
 perl_patchlevel=''
831 831
 perladmin='root@maia.dev.null'
832
-perllibs='-lnsl -ldl -lm -lcrypt -lutil -lc %%EXTRA_PERLLIBS%%'
832
+perllibs='-ldl -lm -lcrypt -lutil -lc %%EXTRA_PERLLIBS%%'
833 833
 perlpath='/usr/bin/perl'
834 834
 pg='pg'
835 835
 phostname='hostname'
@@ -1108,7 +1108,7 @@ i_stdbool='define'
1108 1108
 i_syspoll='define'
1109 1109
 #incpth='/usr/lib/gcc/i486-slackware-linux/4.8.2/include /usr/local/include /usr/lib/gcc/i486-slackware-linux/4.8.2/include-fixed /usr/include'
1110 1110
 ld_can_script='define'
1111
-#libsfound=' /usr/lib/libnsl.so /usr/lib/libgdbm.so /usr/lib/libdb.so /usr/lib/libdl.so /usr/lib/libm.so /usr/lib/libcrypt.so /usr/lib/libutil.so /usr/lib/libc.so'
1111
+#libsfound=' /usr/lib/libgdbm.so /usr/lib/libdb.so /usr/lib/libdl.so /usr/lib/libm.so /usr/lib/libcrypt.so /usr/lib/libutil.so /usr/lib/libc.so'
1112 1112
 nv_overflows_integers_at='0'
1113 1113
 perl_static_inline='static __inline__'
1114 1114
 sGMTIME_max='2147483647'

+ 6
- 6
lang/perl/files/config.sh-x86_64.in Ver fichero

@@ -733,12 +733,12 @@ lib_ext='.a'
733 733
 libc=''
734 734
 libperl='libperl.so'
735 735
 libpth='%%LIBDIRS%%'
736
-libs='-lgdbm -ldb -lnsl -ldl -lm -lcrypt -lutil -lc'
736
+libs='-lgdbm -ldb -ldl -lm -lcrypt -lutil -lc'
737 737
 libsdirs='%%LIBDIRS%%'
738
-libsfiles=' libnsl.so libdl.so libm.so libcrypt.so libutil.so libc.so'
739
-#libsfound=' /usr/lib/libnsl.so /usr/lib/libdl.so /usr/lib/libm.so /usr/lib/libcrypt.so /usr/lib/libutil.so /usr/lib/libc.so'
738
+libsfiles=' libdl.so libm.so libcrypt.so libutil.so libc.so'
739
+#libsfound=' /usr/lib/libdl.so /usr/lib/libm.so /usr/lib/libcrypt.so /usr/lib/libutil.so /usr/lib/libc.so'
740 740
 libspath='%%LIBDIRS%%'
741
-libswanted='sfio socket inet nsl nm ndbm gdbm dbm db malloc dl dld ld sun m crypt sec util c cposix posix ucb BSD'
741
+libswanted='sfio socket inet nm ndbm gdbm dbm db malloc dl dld ld sun m crypt sec util c cposix posix ucb BSD'
742 742
 libswanted_uselargefiles=''
743 743
 line=''
744 744
 lint=''
@@ -820,7 +820,7 @@ perl5=''
820 820
 perl=''
821 821
 perl_patchlevel=''
822 822
 perladmin='root@maia.dev.null'
823
-perllibs='-lnsl -ldl -lm -lcrypt -lutil -lc %%EXTRA_PERLLIBS%%'
823
+perllibs='-ldl -lm -lcrypt -lutil -lc %%EXTRA_PERLLIBS%%'
824 824
 perlpath='/usr/bin/perl'
825 825
 pg='pg'
826 826
 phostname='hostname'
@@ -1093,7 +1093,7 @@ i_stdbool='define'
1093 1093
 i_syspoll='define'
1094 1094
 #incpth='/usr/lib/gcc/i486-slackware-linux/4.8.2/include /usr/local/include /usr/lib/gcc/i486-slackware-linux/4.8.2/include-fixed /usr/include'
1095 1095
 ld_can_script='define'
1096
-#libsfound=' /usr/lib/libnsl.so /usr/lib/libgdbm.so /usr/lib/libdb.so /usr/lib/libdl.so /usr/lib/libm.so /usr/lib/libcrypt.so /usr/lib/libutil.so /usr/lib/libc.so'
1096
+#libsfound=' /usr/lib/libgdbm.so /usr/lib/libdb.so /usr/lib/libdl.so /usr/lib/libm.so /usr/lib/libcrypt.so /usr/lib/libutil.so /usr/lib/libc.so'
1097 1097
 nv_overflows_integers_at='0'
1098 1098
 perl_static_inline='static __inline__'
1099 1099
 sGMTIME_max='67768036191676799'

+ 3
- 9
lang/python/Makefile Ver fichero

@@ -53,7 +53,7 @@ endef
53 53
 
54 54
 define Package/python
55 55
 $(call Package/python/Default)
56
-  DEPENDS:=+libpthread +zlib +libffi
56
+  DEPENDS:=+libpthread +zlib +libffi +libopenssl +libcrypto
57 57
 endef
58 58
 
59 59
 define Package/python/description
@@ -239,14 +239,11 @@ define PyPackage/python-full/filespec
239 239
 -|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/grp.so
240 240
 -|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/itertools.so
241 241
 -|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/math.so
242
--|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_md5.so
242
+-|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_hashlib.so
243 243
 -|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/operator.so
244 244
 -|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_random.so
245 245
 -|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/readline.so
246 246
 -|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/select.so
247
--|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_sha.so
248
--|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_sha256.so
249
--|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_sha512.so
250 247
 -|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_socket.so
251 248
 -|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/strop.so
252 249
 -|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_struct.so
@@ -328,13 +325,10 @@ define PyPackage/python/filespec
328 325
 +|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/grp.so
329 326
 +|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/itertools.so
330 327
 +|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/math.so
331
-+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_md5.so
328
++|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_hashlib.so
332 329
 +|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/operator.so
333 330
 +|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_random.so
334 331
 +|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/select.so
335
-+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_sha.so
336
-+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_sha256.so
337
-+|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_sha512.so
338 332
 +|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_socket.so
339 333
 +|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/strop.so
340 334
 +|/usr/lib/python$(PYTHON_VERSION)/lib-dynload/_struct.so

+ 1
- 0
lang/python/files/config.site Ver fichero

@@ -8,4 +8,5 @@
8 8
 
9 9
 ac_cv_file__dev_ptmx=yes
10 10
 ac_cv_file__dev_ptc=no
11
+ac_cv_buggy_getaddrinfo=no
11 12
 

+ 5
- 0
lang/python/files/python-package.mk Ver fichero

@@ -32,10 +32,15 @@ define PyPackage
32 32
   $(call shexport,PyPackage/$(1)/filespec)
33 33
 
34 34
   define Package/$(1)/install
35
+	find $(PKG_INSTALL_DIR) -name "*\.pyc" -o -name "*\.pyo" | xargs rm -f
35 36
 	@$(SH_FUNC) getvar $$(call shvar,PyPackage/$(1)/filespec) | ( \
36 37
 		IFS='|'; \
37 38
 		while read fop fspec fperm; do \
38 39
 		  if [ "$$$$$$$$fop" = "+" ]; then \
40
+			if [ ! -e "$(PKG_INSTALL_DIR)$$$$$$$$fspec" ]; then \
41
+			  echo "File not found '$(PKG_INSTALL_DIR)$$$$$$$$fspec'"; \
42
+			  exit 1; \
43
+			fi; \
39 44
 			dpath=`dirname "$$$$$$$$fspec"`; \
40 45
 			if [ -n "$$$$$$$$fperm" ]; then \
41 46
 			  dperm="-m$$$$$$$$fperm"; \

+ 14
- 0
lang/python/patches/120-do-not-add-include-dirs-when-cross-compiling.patch Ver fichero

@@ -0,0 +1,14 @@
1
+diff --git a/setup.py b/setup.py
2
+index cbdeaf3..5154412 100644
3
+--- a/setup.py
4
++++ b/setup.py
5
+@@ -480,7 +480,8 @@ class PyBuildExt(build_ext):
6
+                         add_dir_to_list(dir_list, directory)
7
+ 
8
+         if os.path.normpath(sys.prefix) != '/usr' \
9
+-                and not sysconfig.get_config_var('PYTHONFRAMEWORK'):
10
++                and not sysconfig.get_config_var('PYTHONFRAMEWORK') \
11
++                and not cross_compiling:
12
+             # OSX note: Don't add LIBDIR and INCLUDEDIR to building a framework
13
+             # (PYTHONFRAMEWORK is set) to avoid # linking problems when
14
+             # building a framework with different architectures than

+ 37
- 0
lang/python/patches/130-do-not-run-distutils-tests.patch Ver fichero

@@ -0,0 +1,37 @@
1
+diff --git a/Makefile.pre.in b/Makefile.pre.in
2
+index bcd83bf..c4dcc6d 100644
3
+--- a/Makefile.pre.in
4
++++ b/Makefile.pre.in
5
+@@ -1005,32 +1005,6 @@ libinstall:	build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c
6
+ 		done; \
7
+ 	done
8
+ 	$(INSTALL_DATA) $(srcdir)/LICENSE $(DESTDIR)$(LIBDEST)/LICENSE.txt
9
+-	if test -d $(DESTDIR)$(LIBDEST)/distutils/tests; then \
10
+-		$(INSTALL_DATA) $(srcdir)/Modules/xxmodule.c \
11
+-			$(DESTDIR)$(LIBDEST)/distutils/tests ; \
12
+-	fi
13
+-	PYTHONPATH=$(DESTDIR)$(LIBDEST)  $(RUNSHARED) \
14
+-		$(PYTHON_FOR_BUILD) -Wi -tt $(DESTDIR)$(LIBDEST)/compileall.py \
15
+-		-d $(LIBDEST) -f \
16
+-		-x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
17
+-		$(DESTDIR)$(LIBDEST)
18
+-	PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
19
+-		$(PYTHON_FOR_BUILD) -Wi -tt -O $(DESTDIR)$(LIBDEST)/compileall.py \
20
+-		-d $(LIBDEST) -f \
21
+-		-x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
22
+-		$(DESTDIR)$(LIBDEST)
23
+-	-PYTHONPATH=$(DESTDIR)$(LIBDEST)  $(RUNSHARED) \
24
+-		$(PYTHON_FOR_BUILD) -Wi -t $(DESTDIR)$(LIBDEST)/compileall.py \
25
+-		-d $(LIBDEST)/site-packages -f \
26
+-		-x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
27
+-	-PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
28
+-		$(PYTHON_FOR_BUILD) -Wi -t -O $(DESTDIR)$(LIBDEST)/compileall.py \
29
+-		-d $(LIBDEST)/site-packages -f \
30
+-		-x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
31
+-	-PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
32
+-		$(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST)/lib2to3/Grammar.txt
33
+-	-PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
34
+-		$(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST)/lib2to3/PatternGrammar.txt
35
+ 
36
+ # Create the PLATDIR source directory, if one wasn't distributed..
37
+ $(srcdir)/Lib/$(PLATDIR):

+ 55
- 0
libs/libantlr3c/Makefile Ver fichero

@@ -0,0 +1,55 @@
1
+#
2
+# Copyright (C) 2006-2014 OpenWrt.org
3
+#
4
+# This is free software, licensed under the GNU General Public License v2.
5
+# See /LICENSE for more information.
6
+#
7
+
8
+include $(TOPDIR)/rules.mk
9
+
10
+PKG_NAME:=libantlr3c
11
+PKG_VERSION:=3.2
12
+PKG_RELEASE:=1
13
+PKG_MD5SUM:=674646e1d1bf5c6015435480cead725a
14
+
15
+PKG_SOURCE_URL:=http://www.antlr3.org/download/C
16
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17
+PKG_INSTALL:=1
18
+
19
+PKG_MAINTAINER:=Espen Jürgensen <espenjurgensen+openwrt@gmail.com>
20
+PKG_LICENSE:=BSD-2-Clause
21
+PKG_LICENSE_FILES:=COPYING
22
+
23
+include $(INCLUDE_DIR)/package.mk
24
+
25
+define Package/libantlr3c
26
+  SECTION:=libs
27
+  CATEGORY:=Libraries
28
+  TITLE:=libantlr3c
29
+  URL:=http://www.antlr3.org/
30
+endef
31
+
32
+define Package/libantlr3c/description
33
+  ANother Tool for Language Recognition, is a language tool that provides a framework for constructing recognizers,
34
+  interpreters, compilers, and translators from grammatical descriptions containing actions in a variety of target languages.
35
+endef
36
+
37
+TARGET_CFLAGS += $(FPIC)
38
+
39
+CONFIGURE_ARGS += \
40
+	--enable-shared \
41
+	--enable-static
42
+
43
+define Build/InstallDev
44
+	$(INSTALL_DIR) $(1)/usr/include
45
+	$(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
46
+	$(INSTALL_DIR) $(1)/usr/lib
47
+	$(CP) $(PKG_INSTALL_DIR)/usr/lib/libantlr3c.{a,so} $(1)/usr/lib/
48
+endef
49
+
50
+define Package/libantlr3c/install
51
+	$(INSTALL_DIR) $(1)/usr/lib
52
+	$(CP) $(PKG_INSTALL_DIR)/usr/lib/libantlr3c.so  $(1)/usr/lib/
53
+endef
54
+
55
+$(eval $(call BuildPackage,libantlr3c))

+ 55
- 0
libs/libavl/Makefile Ver fichero

@@ -0,0 +1,55 @@
1
+#
2
+# Copyright (C) 2006-2014 OpenWrt.org
3
+#
4
+# This is free software, licensed under the GNU General Public License v2.
5
+# See /LICENSE for more information.
6
+#
7
+
8
+include $(TOPDIR)/rules.mk
9
+
10
+PKG_NAME:=libavl
11
+PKG_VERSION:=0.3.5
12
+PKG_RELEASE:=1
13
+PKG_MD5SUM:=882c68ea7f71876ca110f3b84d7ab12d
14
+
15
+PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
16
+PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/liba/libavl
17
+PKG_BUILD_DIR:=$(BUILD_DIR)/avl-$(PKG_VERSION)
18
+PKG_INSTALL:=1
19
+
20
+PKG_MAINTAINER:=Espen Jürgensen <espenjurgensen+openwrt@gmail.com>
21
+PKG_LICENSE:=LGPL-2.0+
22
+PKG_LICENSE_FILES:=COPYING
23
+
24
+include $(INCLUDE_DIR)/package.mk
25
+
26
+define Package/libavl
27
+  SECTION:=libs
28
+  CATEGORY:=Libraries
29
+  TITLE:=AVLTree (this is not GNU libavl)
30
+  URL:=https://packages.debian.org/wheezy/libavl1
31
+endef
32
+
33
+define Package/libavl/description
34
+  AVLTree is a small implementation of AVL trees for the C programming language.
35
+endef
36
+
37
+TARGET_CFLAGS += $(FPIC)
38
+
39
+CONFIGURE_ARGS += \
40
+	--enable-shared \
41
+	--enable-static
42
+
43
+define Build/InstallDev
44
+	$(INSTALL_DIR) $(1)/usr/include
45
+	$(CP) $(PKG_INSTALL_DIR)/usr/include/avl.h $(1)/usr/include/
46
+	$(INSTALL_DIR) $(1)/usr/lib
47
+	$(CP) $(PKG_INSTALL_DIR)/usr/lib/libavl.so* $(1)/usr/lib/
48
+endef
49
+
50
+define Package/libavl/install
51
+	$(INSTALL_DIR) $(1)/usr/lib
52
+	$(CP) $(PKG_INSTALL_DIR)/usr/lib/libavl.so.*  $(1)/usr/lib/
53
+endef
54
+
55
+$(eval $(call BuildPackage,libavl))

+ 45
- 0
libs/libavl/patches/010-update_GNUmakefile.patch Ver fichero

@@ -0,0 +1,45 @@
1
+--- a/GNUmakefile	2002-11-15 19:57:48.000000000 +0100
2
++++ a/GNUmakefile	2014-10-02 16:03:02.864803002 +0200
3
+@@ -6,7 +6,7 @@
4
+ LDCONFIG ?= /sbin/ldconfig
5
+ 
6
+ # Some suggestions: (-mcpu= generates i386 compatible code)
7
+-CFLAGS ?= -O2 -fomit-frame-pointer -pipe -mcpu=i686 -w
8
++CFLAGS ?= -O2 -pipe -Wall -Werror
9
+ #CFLAGS = -O2 -fomit-frame-pointer -pipe -march=i586 -Wall -g
10
+ #CFLAGS = -O6 -fomit-frame-pointer -pipe -march=i586 -Wall -ansi -pedantic
11
+ #CFLAGS = -O6 -fomit-frame-pointer -pipe -march=i686 -Wall -ansi -pedantic
12
+@@ -15,10 +15,9 @@
13
+ #CFLAGS = -g -pg -a -pipe -march=i686 -Wall
14
+ #LDFLAGS = -s
15
+ 
16
+-prefix ?= /usr/local
17
++prefix ?= /usr
18
+ libdir ?= $(prefix)/lib
19
+ includedir ?= $(prefix)/include
20
+-includedir ?= /usr/include
21
+ 
22
+ PROGRAMS = avlsort setdiff
23
+ LIBRARY = libavl.so.1.5
24
+@@ -34,16 +33,17 @@
25
+ 	$(CC) $(LDFLAGS) $^ -o $@ $(LIBS)
26
+ 
27
+ $(LIBRARY): avl.o
28
+-	$(CC) -nostdlib -shared -Wl,-soname,libavl.so.1 $^ -o $@ -lc
29
++	$(CC) -shared -Wl,-soname,libavl.so.1 $^ -o $@ -lc
30
+ 
31
+ clean:
32
+ 	$(RM) *.o $(PROGRAMS) libavl.*
33
+ 
34
+ install: all
35
+ 	$(INSTALL) -d $(DESTDIR)$(libdir)
36
+-	$(INSTALL) avl.h $(DESTDIR)$(includedir)
37
+-	$(INSTALL) $(LIBRARIES) $(DESTDIR)$(libdir)
38
+-	for i in $(LIBRARIES); do\
39
++	$(INSTALL) -d $(DESTDIR)$(includedir)
40
++	$(INSTALL) -m 644 avl.h $(DESTDIR)$(includedir)
41
++	$(INSTALL) -m 644 $(LIBRARY) $(DESTDIR)$(libdir)
42
++	for i in $(LIBRARY); do\
43
+ 		$(LN) -sf $$i $(DESTDIR)$(libdir)/$${i%.*};\
44
+ 		$(LN) -sf $${i%.*} $(DESTDIR)$(libdir)/$${i%.*.*};\
45
+ 	done

+ 59
- 0
libs/libunistring/Makefile Ver fichero

@@ -0,0 +1,59 @@
1
+#
2
+# Copyright (C) 2006-2014 OpenWrt.org
3
+#
4
+# This is free software, licensed under the GNU General Public License v2.
5
+# See /LICENSE for more information.
6
+#
7
+
8
+include $(TOPDIR)/rules.mk
9
+
10
+PKG_NAME:=libunistring
11
+PKG_VERSION:=0.9.4
12
+PKG_RELEASE:=1
13
+PKG_MD5SUM:=c24a6a3838d9ad4a41a62549312c4226
14
+
15
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16
+PKG_SOURCE_URL:=http://ftp.gnu.org/gnu/libunistring
17
+PKG_BUILD_PARALLEL:=1
18
+PKG_INSTALL:=1
19
+
20
+PKG_MAINTAINER:=Espen Jürgensen <espenjurgensen+openwrt@gmail.com>
21
+PKG_LICENSE:=GPL-3.0
22
+PKG_LICENSE_FILES:=COPYING
23
+
24
+include $(INCLUDE_DIR)/package.mk
25
+
26
+define Package/libunistring
27
+  SECTION:=libs
28
+  CATEGORY:=Libraries
29
+  TITLE:=libunistring
30
+  URL:=http://www.gnu.org/software/libunistring/
31
+endef
32
+
33
+define Package/libunistring/description
34
+  This library provides functions for manipulating Unicode strings and for manipulating C strings according to the Unicode standard.
35
+endef
36
+
37
+TARGET_CFLAGS += $(FPIC)
38
+
39
+CONFIGURE_ARGS += \
40
+	--enable-shared \
41
+	--enable-static \
42
+	--without-libiconv-prefix \
43
+	--without-libpth-prefix
44
+
45
+define Build/InstallDev
46
+	$(INSTALL_DIR) $(1)/usr/include
47
+	$(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
48
+	$(INSTALL_DIR) $(1)/usr/include/unistring
49
+	$(CP) $(PKG_INSTALL_DIR)/usr/include/unistring/*.h $(1)/usr/include/unistring/
50
+	$(INSTALL_DIR) $(1)/usr/lib
51
+	$(CP) $(PKG_INSTALL_DIR)/usr/lib/libunistring.{a,so*} $(1)/usr/lib/
52
+endef
53
+
54
+define Package/libunistring/install
55
+	$(INSTALL_DIR) $(1)/usr/lib
56
+	$(CP) $(PKG_INSTALL_DIR)/usr/lib/libunistring.so.* $(1)/usr/lib/
57
+endef
58
+
59
+$(eval $(call BuildPackage,libunistring))

+ 56
- 0
libs/mxml/Makefile Ver fichero

@@ -0,0 +1,56 @@
1
+#
2
+# Copyright (C) 2006-2014 OpenWrt.org
3
+#
4
+# This is free software, licensed under the GNU General Public License v2.
5
+# See /LICENSE for more information.
6
+#
7
+
8
+include $(TOPDIR)/rules.mk
9
+
10
+PKG_NAME:=mxml
11
+PKG_VERSION:=2.8
12
+PKG_RELEASE:=1
13
+PKG_MD5SUM:=d85ee6d30de053581242c4a86e79a5d2
14
+
15
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16
+PKG_SOURCE_URL:=http://www.msweet.org/files/project3/
17
+PKG_FIXUP:=autoreconf
18
+
19
+PKG_MAINTAINER:=Espen Jürgensen <espenjurgensen+openwrt@gmail.com>
20
+PKG_LICENSE:=GPL-2.0
21
+PKG_LICENSE_FILES:=COPYING
22
+
23
+include $(INCLUDE_DIR)/package.mk
24
+
25
+define Package/mxml
26
+  SECTION:=libs
27
+  CATEGORY:=Libraries
28
+  TITLE:=Mini-XML
29
+  URL:=http://www.minixml.org/
30
+endef
31
+
32
+define Package/mxml/description
33
+  A small xml library.
34
+endef
35
+
36
+TARGET_CFLAGS += $(FPIC)
37
+
38
+CONFIGURE_ARGS += \
39
+	--enable-shared \
40
+	--enable-static
41
+
42
+define Build/InstallDev
43
+	mkdir -p $(1)/usr/include
44
+	$(CP) $(PKG_BUILD_DIR)/mxml.h $(1)/usr/include/
45
+	mkdir -p $(1)/usr/lib
46
+	$(CP) $(PKG_BUILD_DIR)/libmxml.so* $(1)/usr/lib/
47
+	mkdir -p $(1)/usr/lib/pkgconfig
48
+	$(CP) $(PKG_BUILD_DIR)/mxml.pc $(1)/usr/lib/pkgconfig/
49
+endef
50
+
51
+define Package/mxml/install
52
+	$(INSTALL_DIR) $(1)/usr/lib
53
+	$(CP) $(PKG_BUILD_DIR)/libmxml.so.*  $(1)/usr/lib/
54
+endef
55
+
56
+$(eval $(call BuildPackage,mxml))

+ 11
- 0
libs/mxml/patches/001-targets.patch Ver fichero

@@ -0,0 +1,11 @@
1
+--- a/Makefile.in
2
++++ b/Makefile.in
3
+@@ -88,7 +88,7 @@ PUBLIBOBJS	=	mxml-attr.o mxml-entity.o m
4
+ 			mxml-index.o mxml-node.o mxml-search.o mxml-set.o
5
+ LIBOBJS		=	$(PUBLIBOBJS) mxml-private.o mxml-string.o
6
+ OBJS		=	mxmldoc.o testmxml.o $(LIBOBJS)
7
+-TARGETS		=	$(LIBMXML) mxmldoc testmxml mxml.xml doc/mxml.man
8
++TARGETS		=	$(LIBMXML)
9
+ 
10
+ 
11
+ #

+ 3
- 3
mail/dovecot/Makefile Ver fichero

@@ -8,12 +8,12 @@
8 8
 include $(TOPDIR)/rules.mk
9 9
 
10 10
 PKG_NAME:=dovecot
11
-PKG_VERSION:=2.2.13
12
-PKG_RELEASE:=2
11
+PKG_VERSION:=2.2.14
12
+PKG_RELEASE:=1
13 13
 
14 14
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 15
 PKG_SOURCE_URL:=http://www.dovecot.org/releases/2.2
16
-PKG_MD5SUM:=a3eb1c0b1822c4f2b0fe9247776baa71
16
+PKG_MD5SUM:=03315255920ee1c4b11039945246a8af
17 17
 PKG_LICENSE:=LGPL-2.1 MIT BSD-3-Clause Unique
18 18
 PKG_LICENSE_FILES:=COPYING COPYING.LGPL COPYING.MIT
19 19
 

+ 2
- 2
mail/dovecot/patches/001-configure_in.patch Ver fichero

@@ -12,7 +12,7 @@
12 12
        int main()
13 13
        {
14 14
  	return epoll_create(5) < 1;
15
-@@ -675,7 +675,7 @@ fi
15
+@@ -639,7 +639,7 @@ fi
16 16
  dnl * Old glibcs have broken posix_fallocate(). Make sure not to use it.
17 17
  dnl * It may also be broken in AIX.
18 18
  AC_CACHE_CHECK([whether posix_fallocate() works],i_cv_posix_fallocate_works,[
@@ -21,7 +21,7 @@
21 21
      #define _XOPEN_SOURCE 600
22 22
      #include <stdio.h>
23 23
      #include <stdlib.h>
24
-@@ -684,6 +684,7 @@ AC_CACHE_CHECK([whether posix_fallocate(
24
+@@ -648,6 +648,7 @@ AC_CACHE_CHECK([whether posix_fallocate(
25 25
      #if defined(__GLIBC__) && (__GLIBC__ < 2 || __GLIBC_MINOR__ < 7)
26 26
        possibly broken posix_fallocate
27 27
      #endif

+ 2
- 2
net/irssi/Makefile Ver fichero

@@ -8,12 +8,12 @@
8 8
 include $(TOPDIR)/rules.mk
9 9
 
10 10
 PKG_NAME:=irssi
11
-PKG_VERSION:=0.8.16
11
+PKG_VERSION:=0.8.17
12 12
 PKG_RELEASE:=1
13 13
 
14 14
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 15
 PKG_SOURCE_URL:=http://irssi.org/files/
16
-PKG_MD5SUM:=4346119c4c000d0198cda17666ff1f06
16
+PKG_MD5SUM:=ecf64be47978d89a742b435a81cb47db
17 17
 
18 18
 PKG_FIXUP:=autoreconf
19 19
 PKG_INSTALL:=1

+ 53
- 8
net/knot/Makefile Ver fichero

@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
9 9
 
10 10
 PKG_NAME:=knot
11 11
 PKG_VERSION:=1.5.3
12
-PKG_RELEASE:=1
12
+PKG_RELEASE:=2
13 13
 
14 14
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 15
 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
@@ -46,9 +46,27 @@ define Package/knot
46 46
 	DEPENDS+=+knot-libknot
47 47
 endef
48 48
 
49
-define Package/knot-utils
49
+define Package/knot-dig
50 50
 	$(call Package/knot/Default)
51
-	TITLE+= (utils)
51
+	TITLE+= lookup utility
52
+	DEPENDS+=+knot-libknot
53
+endef
54
+
55
+define Package/knot-host
56
+	$(call Package/knot/Default)
57
+	TITLE+= simple DNS lookup utility
58
+	DEPENDS+=+knot-libknot
59
+endef
60
+
61
+define Package/knot-nsec3hash
62
+	$(call Package/knot/Default)
63
+	TITLE+= simple NSEC3 hash utility
64
+	DEPENDS+=+knot-libknot
65
+endef
66
+
67
+define Package/knot-nsupdate
68
+	$(call Package/knot/Default)
69
+	TITLE+= dynamic DNS update utility
52 70
 	DEPENDS+=+knot-libknot
53 71
 endef
54 72
 
@@ -66,8 +84,20 @@ define Package/knot/description
66 84
 	High-performance authoritative-only DNS server.
67 85
 endef
68 86
 
69
-define Package/knot-utils/description
70
-	DNS utilities: kdig, khost, knsupdate and knsec3hash.
87
+define Package/knot-dig/description
88
+	Knot DNS lookup utility.
89
+endef
90
+
91
+define Package/knot-host/description
92
+	Knot DNS simple DNS lookup utility.
93
+endef
94
+
95
+define Package/knot-nsec3hash/description
96
+	Knot DNS simple utility to compute NSEC3 hash.
97
+endef
98
+
99
+define Package/knot-nsupdate/description
100
+	Knot DNS dynamic DNS update utility.
71 101
 endef
72 102
 
73 103
 define Package/knot-tests/description
@@ -114,14 +144,26 @@ define Package/knot/install
114 144
 	$(INSTALL_BIN) ./files/knotd.init	$(1)/etc/init.d/knotd
115 145
 endef
116 146
 
117
-define Package/knot-utils/install
147
+define Package/knot-dig/install
118 148
 	$(INSTALL_DIR)						$(1)/usr/bin
119 149
 	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/kdig		$(1)/usr/bin/
150
+endef
151
+
152
+define Package/knot-host/install
153
+	$(INSTALL_DIR)						$(1)/usr/bin
120 154
 	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/khost		$(1)/usr/bin/
121
-	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/knsupdate	$(1)/usr/bin/
155
+endef
156
+
157
+define Package/knot-nsec3hash/install
158
+	$(INSTALL_DIR)						$(1)/usr/bin
122 159
 	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/knsec3hash	$(1)/usr/bin/
123 160
 endef
124 161
 
162
+define Package/knot-nsupdate/install
163
+	$(INSTALL_DIR)						$(1)/usr/bin
164
+	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/knsupdate	$(1)/usr/bin/
165
+endef
166
+
125 167
 define Package/knot-tests/install
126 168
 	$(INSTALL_DIR) 						$(1)/usr/share/knot
127 169
 	$(INSTALL_BIN) ./files/runtests.sh			$(1)/usr/share/knot/
@@ -146,5 +188,8 @@ endef
146 188
 
147 189
 $(eval $(call BuildPackage,knot-libknot))
148 190
 $(eval $(call BuildPackage,knot))
149
-$(eval $(call BuildPackage,knot-utils))
191
+$(eval $(call BuildPackage,knot-dig))
192
+$(eval $(call BuildPackage,knot-host))
193
+$(eval $(call BuildPackage,knot-nsec3hash))
194
+$(eval $(call BuildPackage,knot-nsupdate))
150 195
 $(eval $(call BuildPackage,knot-tests))

+ 2
- 2
net/nfs-kernel-server/Makefile Ver fichero

@@ -7,9 +7,9 @@
7 7
 include $(TOPDIR)/rules.mk
8 8
 
9 9
 PKG_NAME:=nfs-kernel-server
10
-PKG_VERSION:=1.3.0
10
+PKG_VERSION:=1.3.1
11 11
 PKG_RELEASE:=1
12
-PKG_MD5SUM:=3ac3726eda563946d1f44ac3e5b61d56
12
+PKG_MD5SUM:=97f157f954edb6d4d4385a0c5986f36f
13 13
 
14 14
 PKG_SOURCE_URL:=@SF/nfs
15 15
 PKG_SOURCE:=nfs-utils-$(PKG_VERSION).tar.bz2

+ 0
- 36
net/nfs-kernel-server/patches/100-nfs_utils_uclibc.patch Ver fichero

@@ -1,36 +0,0 @@
1
---- a/support/nfs/svc_socket.c
2
-+++ b/support/nfs/svc_socket.c
3
-@@ -40,10 +40,13 @@ int getservport(u_long number, const cha
4
- 	char rpcdata[1024], servdata[1024];
5
- 	struct rpcent rpcbuf, *rpcp;
6
- 	struct servent servbuf, *servp = NULL;
7
--	int ret;
8
--
9
-+	int ret=0;
10
-+#ifndef __UCLIBC__
11
- 	ret = getrpcbynumber_r(number, &rpcbuf, rpcdata, sizeof rpcdata,
12
- 				&rpcp);
13
-+#else
14
-+	rpcp = getrpcbynumber (number);
15
-+#endif
16
- 	if (ret == 0 && rpcp != NULL) {
17
- 		/* First try name.  */
18
- 		ret = getservbyname_r(rpcp->r_name, proto, &servbuf, servdata,
19
---- a/utils/mountd/cache.c
20
-+++ b/utils/mountd/cache.c
21
-@@ -166,6 +166,7 @@ static void auth_unix_gid(FILE *f)
22
- 	pw = getpwuid(uid);
23
- 	if (!pw)
24
- 		rv = -1;
25
-+#ifndef __UCLIBC__
26
- 	else {
27
- 		rv = getgrouplist(pw->pw_name, pw->pw_gid, groups, &ngroups);
28
- 		if (rv == -1 && ngroups >= groups_len) {
29
-@@ -180,6 +181,7 @@ static void auth_unix_gid(FILE *f)
30
- 			}
31
- 		}
32
- 	}
33
-+#endif
34
- 	qword_printuint(f, uid);
35
- 	qword_printtimefrom(f, DEFAULT_TTL);
36
- 	if (rv >= 0) {

net/nfs-kernel-server/patches/101-no_malloc_h.patch → net/nfs-kernel-server/patches/100-no_malloc_h.patch Ver fichero


+ 107
- 0
net/nut/Config.in Ver fichero

@@ -0,0 +1,107 @@
1
+	config NUT_SERVER
2
+		depends on PACKAGE_nut
3
+		bool "Include server components (upsd)"
4
+		help
5
+			upsd is responsible for serving the data from the drivers to the
6
+			clients. It connects to each driver and maintains a local cache of the
7
+			current state. Queries from the clients are served from this cache, so
8
+			delays are minimal. This program is essential, and must be running at
9
+			all times to actually make any use out of the drivers and clients.
10
+		default y
11
+		
12
+	config NUT_CLIENTS_UPSC
13
+		depends on PACKAGE_nut
14
+		bool "Include command line client (upsc)"
15
+		help
16
+			upsc is provided as a quick way to poll the status of a UPS server. It
17
+			can be used inside shell scripts and other programs that need UPS data
18
+			but don't want to include the full interface.
19
+		default y
20
+		
21
+	config NUT_CLIENTS_UPSLOG
22
+		depends on PACKAGE_nut
23
+		bool "Include logging client (upslog)"
24
+		help
25
+			upslog is a daemon that will poll a UPS at periodic intervals, fetch the
26
+			variables that interest you, format them, and write them to a file.
27
+		default n
28
+		
29
+	config NUT_CLIENTS_UPSCMD
30
+		depends on PACKAGE_nut
31
+		bool "Include UPS controller (upscmd)"
32
+		help
33
+			upscmd allows you to invoke "instant commands" in your UPS hardware. Not
34
+			all hardware supports this, so check the list with -l to see if anything
35
+			will work on your equipment. On hardware that supports it, you can use
36
+			this program to start and stop battery tests, invoke a front panel test
37
+			(beep!), turn the load on or off, and more.
38
+		default n
39
+		
40
+	config NUT_CLIENTS_UPSRW
41
+		depends on PACKAGE_nut
42
+		bool "Include UPS variable editor (upsrw)"
43
+		help
44
+			upsrw allows you to view and change the read/write variables inside your
45
+			UPS. It sends commands via the upsd to your driver, which configures the
46
+			hardware for you. The list of variables that allow you to change their
47
+			values is based on the capabilities of your UPS equipment. Not all
48
+			models support this feature. Typically, cheaper hardware does not
49
+			support any of them.
50
+		default n
51
+		
52
+	config NUT_CLIENTS_UPSMON
53
+		depends on PACKAGE_nut
54
+		bool "Include monitor and shutdown controller (upsmon)"
55
+		help
56
+			upsmon is the client process that is responsible for the most important
57
+			part of UPS monitoring--shutting down the system when the power goes
58
+			out. It can call out to other helper programs for notification purposes
59
+			during power events. upsmon can monitor multiple systems using a single
60
+			process. Every UPS that is defined in the upsmon.conf configuration file
61
+			is assigned a power value and a type (slave or master).
62
+		default y
63
+		
64
+	config NUT_CLIENTS_UPSSCHED
65
+		depends on NUT_CLIENTS_UPSMON
66
+		bool "Include helper for triggering events from upsmon (upssched)"
67
+		help
68
+			upssched was created to allow users to execute programs at times relative
69
+			to events being monitored by upsmon. The original purpose was to allow
70
+			for a shutdown to occur after some fixed period on battery, but there are
71
+			other uses that are possible.
72
+			You can alternatively write your own script and save some space.
73
+		default n
74
+	
75
+	config NUT_SSL
76
+		depends on PACKAGE_nut
77
+		bool "Build with support for OpenSSL"
78
+		help
79
+			SSL allows sessions between upsd and clients to be encrypted and can
80
+			also be used to authenticate servers. This means that stealing port
81
+			3493 from upsd will no longer net you interesting passwords. SSL is
82
+			available via OpenSSL on OpenWRT (NSS doesn't seem to work). If you
83
+			are happy with using passwords to authenticate clients, you can save
84
+			some space and build NUT without SSL support.
85
+		default n
86
+	
87
+	config NUT_DRIVER_SERIAL
88
+		depends on PACKAGE_nut
89
+		bool "Build with support for serial drivers"
90
+		help
91
+			If you have a UPS connected via serial, select this.
92
+		default n
93
+	
94
+	config NUT_DRIVER_USB
95
+		depends on PACKAGE_nut
96
+		bool "Build with support for USB drivers"
97
+		help
98
+			If you have a UPS connected via USB, select this.
99
+		default y
100
+	
101
+	config NUT_DRIVER_SNMP
102
+		depends on PACKAGE_nut
103
+		bool "Build with support for SNMP drivers"
104
+		help
105
+			If you have a UPS you can connect to via SNMP, select this.
106
+		default n
107
+		

+ 279
- 0
net/nut/Makefile Ver fichero

@@ -0,0 +1,279 @@
1
+#
2
+# Copyright (C) 2006-2014 OpenWrt.org
3
+#
4
+# This is free software, licensed under the GNU General Public License v2.
5
+# See /LICENSE for more information.
6
+#
7
+
8
+include $(TOPDIR)/rules.mk
9
+
10
+PKG_NAME:=nut
11
+PKG_VERSION:=2.7.2
12
+PKG_RELEASE:=1
13
+
14
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15
+PKG_SOURCE_URL:=http://www.networkupstools.org/source/2.7/
16
+PKG_MD5SUM:=c3568b42e058cfc385b46d25140dced4
17
+PKG_MAINTAINER:=Martin Rowe <martin.p.rowe@gmail.com>
18
+PKG_LICENSE:=GPL-2.0
19
+PKG_LICENSE_FILES:=LICENSE-GPL2
20
+
21
+PKG_BUILD_DIR:=$(BUILD_DIR)/nut-$(PKG_VERSION)
22
+PKG_INSTALL:=1
23
+
24
+include $(INCLUDE_DIR)/package.mk
25
+
26
+define Package/nut/Default
27
+	SECTION:=net
28
+	CATEGORY:=Network
29
+	URL:=http://www.networkupstools.org/
30
+	DEPENDS:=nut
31
+endef
32
+
33
+define Package/nut/description
34
+Network UPS Tools (NUT) is a client/server monitoring system that
35
+allows computers to share uninterruptible power supply (UPS) and
36
+power distribution unit (PDU) hardware. Clients access the hardware
37
+through the server, and are notified whenever the power status
38
+changes.
39
+endef
40
+
41
+define Package/nut
42
+	$(call Package/nut/Default)
43
+	TITLE:=Network UPS Tools
44
+	DEPENDS:= \
45
+		+NUT_DRIVER_SNMP:libnetsnmp \
46
+		+NUT_DRIVER_USB:libusb-compat \
47
+		+NUT_SSL:libopenssl
48
+	MENU:=1
49
+endef
50
+
51
+define Package/nut/config
52
+	source "$(SOURCE)/Config.in"
53
+endef
54
+
55
+define Package/nut/conffiles
56
+	/etc/nut/nut.conf
57
+	$(if $(CONFIG_NUT_CLIENTS_UPSMON),/etc/nut/upsmon.conf)
58
+	$(if $(CONFIG_NUT_CLIENTS_UPSSCHED),/etc/nut/upssched.conf)
59
+	$(if $(CONFIG_NUT_SERVER),/etc/nut/ups.conf)
60
+	$(if $(CONFIG_NUT_SERVER),/etc/nut/upsd.conf)
61
+	$(if $(CONFIG_NUT_SERVER),/etc/nut/upsd.users)
62
+endef
63
+
64
+define Package/nut/install
65
+	$(INSTALL_DIR) $(1)/etc/nut
66
+	$(INSTALL_DIR) $(1)/usr/bin
67
+	$(INSTALL_DIR) $(1)/usr/bin
68
+	$(INSTALL_DIR) $(1)/usr/lib
69
+	$(INSTALL_DIR) $(1)/usr/sbin
70
+	$(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/nut/nut.conf.sample $(1)/etc/nut/nut.conf
71
+	$(if $(or $(CONFIG_NUT_CLIENTS_UPSC),\
72
+		$(CONFIG_NUT_CLIENTS_UPSCMD),\
73
+		$(CONFIG_NUT_CLIENTS_LOG),\
74
+		$(CONFIG_NUT_CLIENTS_UPSRW),\
75
+		$(CONFIG_NUT_CLIENTS_UPSMON),\
76
+		$(CONFIG_NUT_CLIENTS_UPSSCHED)),$(CP) $(PKG_INSTALL_DIR)/usr/lib/libupsclient.so* $(1)/usr/lib/)
77
+	$(if $(or $(CONFIG_NUT_SERVER),\
78
+		$(CONFIG_NUT_CLIENTS_UPSMON)),$(INSTALL_DIR) $(1)/etc/init.d)
79
+	$(if $(CONFIG_NUT_SERVER),$(INSTALL_DIR) $(1)/lib/nut)
80
+	$(if $(CONFIG_NUT_SERVER),$(INSTALL_DIR) $(1)/usr/share/nut)
81
+	$(if $(CONFIG_NUT_SERVER),$(CP) ./files/nut-server.init $(1)/etc/init.d/)
82
+	$(if $(CONFIG_NUT_SERVER),$(CP) $(PKG_INSTALL_DIR)/usr/sbin/upsd $(1)/usr/sbin)
83
+	$(if $(CONFIG_NUT_SERVER),$(CP) $(PKG_INSTALL_DIR)/usr/sbin/upsdrvctl $(1)/usr/sbin)
84
+	$(if $(CONFIG_NUT_SERVER),$(CP) $(PKG_INSTALL_DIR)/usr/share/nut/cmdvartab $(1)/usr/share/nut/)
85
+	$(if $(CONFIG_NUT_SERVER),$(CP) $(PKG_INSTALL_DIR)/usr/share/nut/driver.list $(1)/usr/share/nut/)
86
+	$(if $(CONFIG_NUT_SERVER),$(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/nut/ups.conf.sample $(1)/etc/nut/ups.conf)
87
+	$(if $(CONFIG_NUT_SERVER),$(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/nut/upsd.conf.sample $(1)/etc/nut/upsd.conf)
88
+	$(if $(CONFIG_NUT_SERVER),$(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/nut/upsd.users.sample $(1)/etc/nut/upsd.users)
89
+	$(if $(CONFIG_NUT_CLIENTS_UPSC),$(CP) $(PKG_INSTALL_DIR)/usr/bin/upsc $(1)/usr/bin/)
90
+	$(if $(CONFIG_NUT_CLIENTS_UPSCMD),$(CP) $(PKG_INSTALL_DIR)/usr/bin/upscmd $(1)/usr/bin/)
91
+	$(if $(CONFIG_NUT_CLIENTS_LOG),$(CP) $(PKG_INSTALL_DIR)/usr/bin/upslog $(1)/usr/bin/)
92
+	$(if $(CONFIG_NUT_CLIENTS_UPSRW),$(CP) $(PKG_INSTALL_DIR)/usr/bin/upsrw $(1)/usr/bin/)
93
+	$(if $(CONFIG_NUT_CLIENTS_UPSMON),$(CP) ./files/nut-monitor.init $(1)/etc/init.d/)
94
+	$(if $(CONFIG_NUT_CLIENTS_UPSMON),$(CP) $(PKG_INSTALL_DIR)/usr/sbin/upsmon $(1)/usr/sbin/)
95
+	$(if $(CONFIG_NUT_CLIENTS_UPSMON),$(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/nut/upsmon.conf.sample $(1)/etc/nut/upsmon.conf)
96
+	$(if $(CONFIG_NUT_CLIENTS_UPSSCHED),$(CP) $(PKG_INSTALL_DIR)/usr/bin/upssched-cmd $(1)/usr/bin/)
97
+	$(if $(CONFIG_NUT_CLIENTS_UPSSCHED),$(CP) $(PKG_INSTALL_DIR)/usr/sbin/upssched $(1)/usr/sbin/)
98
+	$(if $(CONFIG_NUT_CLIENTS_UPSSCHED),$(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/nut/upssched.conf.sample $(1)/etc/nut/upssched.conf)
99
+endef
100
+
101
+# Dealing with all of the drivers is very repetitive, but the previous
102
+# maintainer had a neat solution which just needed some tweaking.
103
+define DriverPackage
104
+        define Package/nut-driver-$(2)
105
+		$(call Package/nut/Default)
106
+		TITLE:=$(2) (NUT $(1) driver)
107
+		$(if $(filter $(1),serial),DEPENDS+= @NUT_DRIVER_SERIAL)
108
+		$(if $(filter $(1),snmp),DEPENDS+= @NUT_DRIVER_SNMP)
109
+		$(if $(filter $(1),usb),DEPENDS+= @NUT_DRIVER_USB)
110
+        endef
111
+	# Deliberately empty description in order to trigger a build failure.
112
+	# It should be overridden by the list below, and when updating to a
113
+	# new version of nut we will need to provide descriptions for any new
114
+	# drivers.
115
+        define Package/nut-driver-$(2)/description
116
+		
117
+        endef
118
+        define Package/nut-driver-$(2)/install
119
+        	$(INSTALL_DIR) $$(1)/lib/nut
120
+		$(CP) $$(PKG_INSTALL_DIR)/lib/nut/$(2) $$(1)/lib/nut/
121
+		$(if $(filter $(2),clone),$(CP) $$(PKG_INSTALL_DIR)/lib/nut/$(2)-outlet $$(1)/lib/nut/)
122
+        endef
123
+endef
124
+define DriverDescription
125
+        define Package/nut-driver-$(2)/description
126
+		$(3)
127
+        endef
128
+endef
129
+# These lists are lifted *directly* from drivers/Makefile.am in the nut
130
+# source tree. This it to make it simpler to keep in sync when updating
131
+# to a newer version of nut. Do not edit this manually.
132
+#
133
+# DO NOT EDIT (except to update with a fresh cut/paste)!
134
+SERIAL_DRIVERLIST = al175 bcmxcp belkin belkinunv bestfcom	\
135
+ bestfortress bestuferrups bestups dummy-ups etapro everups	 \
136
+ gamatronic genericups isbmex liebert liebert-esp2 masterguard metasys	\
137
+ oldmge-shut mge-utalk microdowell mge-shut oneac optiups powercom rhino	 \
138
+ safenet skel solis tripplite tripplitesu upscode2 victronups powerpanel \
139
+ blazer_ser clone clone-outlet ivtscd apcsmart apcsmart-old apcupsd-ups riello_ser	\
140
+ nutdrv_qx
141
+SNMP_DRIVERLIST = snmp-ups
142
+USB_LIBUSB_DRIVERLIST = usbhid-ups bcmxcp_usb tripplite_usb \
143
+ blazer_usb richcomm_usb riello_usb \
144
+ nutdrv_atcl_usb \
145
+ nutdrv_qx
146
+# END: DO NOT EDIT!
147
+SERIAL_DRIVERLIST_IGNORE:=skel clone-outlet nutdrv_qx
148
+# nutdrv_qx can be either USB or serial. Given most routers have USB
149
+# instead of serial ports, and not wanting two identical packages with
150
+# different names that conflict with each other, only the option for the
151
+# driver with USB bindings is provided. If you really want to save that
152
+# tiny bit of space and build it without USB support, remove nutdrv_qx
153
+# from the previous line.
154
+
155
+$(foreach d,$(filter-out $(SERIAL_DRIVERLIST_IGNORE),$(SERIAL_DRIVERLIST)),$(eval $(call DriverPackage,serial,$(d))))
156
+$(foreach d,$(SNMP_DRIVERLIST),$(eval $(call DriverPackage,snmp,$(d))))
157
+$(foreach d,$(USB_LIBUSB_DRIVERLIST),$(eval $(call DriverPackage,usb,$(d))))
158
+
159
+$(eval $(call DriverDescription,serial,al175,\
160
+	Driver for Eltek UPS models with AL175 alarm module))
161
+$(eval $(call DriverDescription,serial,bcmxcp,\
162
+	Driver for UPSes supporting the serial BCM/XCP protocol))
163
+$(eval $(call DriverDescription,serial,belkin,\
164
+	Driver for Belkin serial UPS equipment))
165
+$(eval $(call DriverDescription,serial,belkinunv,\
166
+	Driver for Belkin "Universal UPS" and compatible))
167
+$(eval $(call DriverDescription,serial,bestfcom,\
168
+	Driver for Best Power Fortress/Ferrups))
169
+$(eval $(call DriverDescription,serial,bestfortress,\
170
+	Driver for old Best Fortress UPS equipment))
171
+$(eval $(call DriverDescription,serial,bestuferrups,\
172
+	Driver for Best Power Micro-Ferrups))
173
+$(eval $(call DriverDescription,serial,bestups,\
174
+	Driver for Best Power / SOLA (Phoenixtec protocol) UPS equipment))
175
+$(eval $(call DriverDescription,serial,dummy-ups,\
176
+	Driver for multi-purpose UPS emulation))
177
+$(eval $(call DriverDescription,serial,etapro,\
178
+	Driver for ETA UPS equipment))
179
+$(eval $(call DriverDescription,serial,everups,\
180
+	Driver for Ever UPS models))
181
+$(eval $(call DriverDescription,serial,gamatronic,\
182
+	Driver for Gamatronic UPS equipment))
183
+$(eval $(call DriverDescription,serial,genericups,\
184
+	Driver for contact-closure UPS equipment))
185
+$(eval $(call DriverDescription,serial,isbmex,\
186
+	Driver for ISBMEX UPS equipment))
187
+$(eval $(call DriverDescription,serial,liebert,\
188
+	Driver for Liebert contact-closure UPS equipment))
189
+$(eval $(call DriverDescription,serial,liebert-esp2,\
190
+	Driver for Liebert UPS, using the ESP-II serial protocol))
191
+$(eval $(call DriverDescription,serial,masterguard,\
192
+	Driver for Masterguard UPS equipment))
193
+$(eval $(call DriverDescription,serial,metasys,\
194
+	Driver for Meta System UPS equipment))
195
+$(eval $(call DriverDescription,serial,oldmge-shut,\
196
+	Driver for SHUT Protocol UPS equipment, deprecated, use mge-shut))
197
+$(eval $(call DriverDescription,serial,mge-utalk,\
198
+	Driver for MGE UPS SYSTEMS UTalk protocol equipment))
199
+$(eval $(call DriverDescription,serial,microdowell,\
200
+	Driver for Microdowell Enterprise UPS series))
201
+$(eval $(call DriverDescription,serial,mge-shut,\
202
+	Driver for SHUT Protocol UPS equipment))
203
+$(eval $(call DriverDescription,serial,oneac,\
204
+	Driver for Oneac UPS equipment))
205
+$(eval $(call DriverDescription,serial,optiups,\
206
+	Driver for Opti-UPS (Viewsonic) UPS and Zinto D (ONLINE-USV) equipment))
207
+$(eval $(call DriverDescription,serial,powercom,\
208
+	Driver for serial Powercom/Trust/Advice UPS equipment))
209
+$(eval $(call DriverDescription,serial,rhino,\
210
+	Driver for Brazilian Microsol RHINO UPS equipment))
211
+$(eval $(call DriverDescription,serial,safenet,\
212
+	Driver for SafeNet compatible UPS equipment))
213
+$(eval $(call DriverDescription,serial,solis,\
214
+	Driver for Brazilian Microsol SOLIS UPS equipment))
215
+$(eval $(call DriverDescription,serial,tripplite,\
216
+	Driver for Tripp-Lite SmartPro UPS equipment))
217
+$(eval $(call DriverDescription,serial,tripplitesu,\
218
+	Driver for Tripp-Lite SmartOnline (SU) UPS equipment))
219
+$(eval $(call DriverDescription,serial,upscode2,\
220
+	Driver for UPScode II compatible UPS equipment))
221
+$(eval $(call DriverDescription,serial,victronups,\
222
+	Driver for IMV/Victron UPS unit Match, Match Lite, NetUps))
223
+$(eval $(call DriverDescription,serial,powerpanel,\
224
+	Driver for PowerPanel Plus compatible UPS equipment))
225
+$(eval $(call DriverDescription,serial,blazer_ser,\
226
+	Driver for Megatec/Q1 protocol serial based UPS equipment))
227
+$(eval $(call DriverDescription,serial,clone,\
228
+	UPS driver clone))
229
+$(eval $(call DriverDescription,serial,ivtscd,\
230
+	Driver for the IVT Solar Controller Device))
231
+$(eval $(call DriverDescription,serial,apcsmart,\
232
+	Driver for American Power Conversion Smart Protocol UPS equipment))
233
+$(eval $(call DriverDescription,serial,apcsmart-old,\
234
+	Driver for American Power Conversion Smart Protocol UPS equipment))
235
+$(eval $(call DriverDescription,serial,apcupsd-ups,\
236
+	Driver for apcupsd client access))
237
+$(eval $(call DriverDescription,serial,riello_ser,\
238
+	Driver for Riello UPS Protocol UPS equipment))
239
+$(eval $(call DriverDescription,snmp,snmp-ups,\
240
+	Multi-MIB Driver for SNMP UPS equipment))
241
+$(eval $(call DriverDescription,usb,usbhid-ups,\
242
+	Driver for USB/HID UPS equipment))
243
+$(eval $(call DriverDescription,usb,bcmxcp_usb,\
244
+	Experimental driver for UPSes supporting the BCM/XCP protocol over USB))
245
+$(eval $(call DriverDescription,usb,tripplite_usb,\
246
+	Driver for older Tripp Lite USB UPSes (not PDC HID)))
247
+$(eval $(call DriverDescription,usb,blazer_usb,\
248
+	Driver for Megatec/Q1 protocol USB based UPS equipment))
249
+$(eval $(call DriverDescription,usb,richcomm_usb,\
250
+	Driver for UPS equipment using Richcomm dry-contact to USB solution))
251
+$(eval $(call DriverDescription,usb,riello_usb,\
252
+	Driver for Riello UPS Protocol UPS equipment via USB))
253
+$(eval $(call DriverDescription,usb,nutdrv_atcl_usb,\
254
+	Driver for ATCL FOR UPS equipment))
255
+$(eval $(call DriverDescription,usb,nutdrv_qx,\
256
+	Driver for Q* protocol serial and USB based UPS equipment))
257
+
258
+CONFIGURE_ARGS += \
259
+	--$(if $(CONFIG_NUT_DRIVER_SERIAL),with,without)-serial \
260
+	--$(if $(CONFIG_NUT_DRIVER_USB),with,without)-usb \
261
+	--$(if $(CONFIG_NUT_DRIVER_SNMP),with,without)-snmp \
262
+	--without-neon \
263
+	--without-powerman \
264
+	--without-ipmi \
265
+	--without-freeipmi \
266
+	--$(if $(CONFIG_NUT_SSL),with,without)-ssl $(if $(CONFIG_NUT_SSL),--with-openssl) \
267
+	--without-avahi \
268
+	--without-libltdl \
269
+	--with-user=root \
270
+	--with-group=root \
271
+	--sysconfdir=/etc/nut \
272
+	--with-drvpath=/lib/nut \
273
+	--with-statepath=/var/run \
274
+	--datadir=/usr/share/nut
275
+
276
+$(eval $(call BuildPackage,nut))
277
+$(foreach d,$(filter-out $(SERIAL_DRIVERLIST_IGNORE),$(SERIAL_DRIVERLIST)),$(eval $(call BuildPackage,nut-driver-$(d))))
278
+$(foreach d,$(SNMP_DRIVERLIST),$(eval $(call BuildPackage,nut-driver-$(d))))
279
+$(foreach d,$(USB_LIBUSB_DRIVERLIST),$(eval $(call BuildPackage,nut-driver-$(d))))

+ 21
- 0
net/nut/files/nut-monitor.init Ver fichero

@@ -0,0 +1,21 @@
1
+#!/bin/sh /etc/rc.common
2
+
3
+START=60
4
+USE_PROCD=1
5
+
6
+restart() {
7
+	stop_service
8
+	start_service
9
+}
10
+
11
+start_service() {
12
+	upsmon -p
13
+}
14
+
15
+stop_service() {
16
+	upsmon -c stop
17
+}
18
+
19
+reload_service() {
20
+	upsmon -c reload
21
+}

+ 23
- 0
net/nut/files/nut-server.init Ver fichero

@@ -0,0 +1,23 @@
1
+#!/bin/sh /etc/rc.common
2
+
3
+START=50
4
+USE_PROCD=1
5
+
6
+restart() {
7
+	stop_service
8
+	start_service
9
+}
10
+
11
+start_service() {
12
+	upsdrvctl start
13
+	upsd
14
+}
15
+
16
+stop_service() {
17
+	upsd -c stop
18
+	upsdrvctl stop
19
+}
20
+
21
+reload_service() {
22
+	upsd -c reload
23
+}

+ 22
- 0
net/nut/patches/001-fix-missing-libmath-flags.patch Ver fichero

@@ -0,0 +1,22 @@
1
+--- a/drivers/Makefile.am
2
++++ b/drivers/Makefile.am
3
+@@ -171,7 +171,7 @@ tripplite_usb_SOURCES = tripplite_usb.c
4
+ tripplite_usb_LDADD = $(LDADD_DRIVERS) $(LIBUSB_LIBS) -lm
5
+ 
6
+ bcmxcp_usb_SOURCES = bcmxcp_usb.c bcmxcp.c usb-common.c
7
+-bcmxcp_usb_LDADD = $(LDADD_DRIVERS) $(LIBUSB_LIBS)
8
++bcmxcp_usb_LDADD = $(LDADD_DRIVERS) $(LIBUSB_LIBS) -lm
9
+ 
10
+ blazer_usb_SOURCES = blazer.c blazer_usb.c libusb.c usb-common.c
11
+ blazer_usb_LDADD = $(LDADD_DRIVERS) $(LIBUSB_LIBS) -lm
12
+--- a/drivers/Makefile.in
13
++++ b/drivers/Makefile.in
14
+@@ -785,7 +785,7 @@ usbhid_ups_LDADD = $(LDADD_DRIVERS) $(LI
15
+ tripplite_usb_SOURCES = tripplite_usb.c libusb.c usb-common.c
16
+ tripplite_usb_LDADD = $(LDADD_DRIVERS) $(LIBUSB_LIBS) -lm
17
+ bcmxcp_usb_SOURCES = bcmxcp_usb.c bcmxcp.c usb-common.c
18
+-bcmxcp_usb_LDADD = $(LDADD_DRIVERS) $(LIBUSB_LIBS)
19
++bcmxcp_usb_LDADD = $(LDADD_DRIVERS) $(LIBUSB_LIBS) -lm
20
+ blazer_usb_SOURCES = blazer.c blazer_usb.c libusb.c usb-common.c
21
+ blazer_usb_LDADD = $(LDADD_DRIVERS) $(LIBUSB_LIBS) -lm
22
+ nutdrv_atcl_usb_SOURCES = nutdrv_atcl_usb.c usb-common.c

+ 28
- 0
net/nut/patches/010-ignore_automake_k_bug.patch Ver fichero

@@ -0,0 +1,28 @@
1
+--- a/Makefile.in
2
++++ b/Makefile.in
3
+@@ -431,12 +431,6 @@ distclean-libtool:
4
+ # (2) otherwise, pass the desired values on the `make' command line.
5
+ $(RECURSIVE_TARGETS):
6
+ 	@fail= failcom='exit 1'; \
7
+-	for f in x $$MAKEFLAGS; do \
8
+-	  case $$f in \
9
+-	    *=* | --[!k]*);; \
10
+-	    *k*) failcom='fail=yes';; \
11
+-	  esac; \
12
+-	done; \
13
+ 	dot_seen=no; \
14
+ 	target=`echo $@ | sed s/-recursive//`; \
15
+ 	list='$(SUBDIRS)'; for subdir in $$list; do \
16
+@@ -456,12 +450,6 @@ $(RECURSIVE_TARGETS):
17
+ 
18
+ $(RECURSIVE_CLEAN_TARGETS):
19
+ 	@fail= failcom='exit 1'; \
20
+-	for f in x $$MAKEFLAGS; do \
21
+-	  case $$f in \
22
+-	    *=* | --[!k]*);; \
23
+-	    *k*) failcom='fail=yes';; \
24
+-	  esac; \
25
+-	done; \
26
+ 	dot_seen=no; \
27
+ 	case "$@" in \
28
+ 	  distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \

+ 2
- 2
net/openssh/Makefile Ver fichero

@@ -8,13 +8,13 @@
8 8
 include $(TOPDIR)/rules.mk
9 9
 
10 10
 PKG_NAME:=openssh
11
-PKG_VERSION:=6.6p1
11
+PKG_VERSION:=6.7p1
12 12
 PKG_RELEASE:=2
13 13
 
14 14
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 15
 PKG_SOURCE_URL:=http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/ \
16 16
 		http://ftp.belnet.be/pub/OpenBSD/OpenSSH/portable/
17
-PKG_MD5SUM:=3e9800e6bca1fbac0eea4d41baa7f239
17
+PKG_MD5SUM:=3246aa79317b1d23cae783a3bf8275d6
18 18
 
19 19
 PKG_LICENSE:=BSD ISC
20 20
 PKG_LICENSE_FILE:=LICENCE

+ 1
- 1
net/openssh/patches/100-no_cast_fix.patch Ver fichero

@@ -1,6 +1,6 @@
1 1
 --- a/cipher.c
2 2
 +++ b/cipher.c
3
-@@ -80,8 +80,10 @@ static const struct Cipher ciphers[] = {
3
+@@ -88,8 +88,10 @@ static const struct sshcipher ciphers[]
4 4
  	{ "3des-cbc",	SSH_CIPHER_SSH2, 8, 24, 0, 0, 0, 1, EVP_des_ede3_cbc },
5 5
  	{ "blowfish-cbc",
6 6
  			SSH_CIPHER_SSH2, 8, 16, 0, 0, 0, 1, EVP_bf_cbc },

+ 34
- 0
net/openvswitch/Makefile Ver fichero

@@ -26,6 +26,7 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
26 26
 
27 27
 include $(INCLUDE_DIR)/package.mk
28 28
 include $(INCLUDE_DIR)/kernel.mk
29
+$(call include_mk, python-package.mk)
29 30
 
30 31
 PKG_FIXUP=libtool
31 32
 
@@ -56,6 +57,27 @@ define Package/openvswitch/description
56 57
   Provides the main userspace components required for Open vSwitch to function.
57 58
 endef
58 59
 
60
+define Package/openvswitch-python
61
+  $(call Package/openvswitch/Default)
62
+  TITLE:=Open vSwitch Python Support
63
+  DEPENDS:=@PACKAGE_openvswitch +PACKAGE_openvswitch:openvswitch +python
64
+endef
65
+
66
+define Package/openvswitch-python/description
67
+  Provides bindings and libraries for using Python to manipulate/work with Open vSwitch.
68
+endef
69
+
70
+define Package/openvswitch-ipsec
71
+  $(call Package/openvswitch/Default)
72
+  TITLE:=Open vSwitch Userspace Package
73
+  DEPENDS:=@PACKAGE_openvswitch +PACKAGE_openvswitch:openvswitch-python
74
+endef
75
+
76
+define Package/openvswitch-ipsec/description
77
+  The ovs-monitor-ipsec script provides support for encrypting GRE tunnels with 
78
+  IPsec.
79
+endef
80
+
59 81
 define Package/openvswitch-benchmark
60 82
   $(call Package/openvswitch/Default)
61 83
   TITLE:=Open vSwitch Userspace Package
@@ -141,6 +163,16 @@ define Package/openvswitch/install
141 163
 	$(INSTALL_CONF) $(PKG_BUILD_DIR)/vswitchd/vswitch.ovsschema $(1)/usr/share/openvswitch/
142 164
 endef
143 165
 
166
+define Package/openvswitch-python/install
167
+	$(INSTALL_DIR) $(1)/usr/lib/python$(PYTHON_VERSION)/
168
+	$(CP) $(PKG_BUILD_DIR)/python/ovs/ $(1)/usr/lib/python$(PYTHON_VERSION)/
169
+endef
170
+
171
+define Package/openvswitch-ipsec/install
172
+	$(INSTALL_DIR) $(1)/usr/sbin/
173
+	$(INSTALL_BIN) $(PKG_BUILD_DIR)/debian/ovs-monitor-ipsec $(1)/usr/sbin/
174
+endef
175
+
144 176
 define Package/openvswitch-benchmark/install
145 177
 	$(INSTALL_DIR) $(1)/usr/bin/
146 178
 	$(INSTALL_BIN) $(PKG_BUILD_DIR)/utilities/.libs/ovs-benchmark $(1)/usr/bin/
@@ -152,6 +184,8 @@ define Package/openvswitch/postinst
152 184
 endef
153 185
 
154 186
 $(eval $(call BuildPackage,openvswitch))
187
+$(eval $(call BuildPackage,openvswitch-python))
188
+$(eval $(call BuildPackage,openvswitch-ipsec))
155 189
 $(eval $(call BuildPackage,openvswitch-benchmark))
156 190
 $(eval $(call KernelPackage,openvswitch))
157 191
 

+ 1
- 1
net/sqm-scripts/Makefile Ver fichero

@@ -8,7 +8,7 @@
8 8
 include $(TOPDIR)/rules.mk
9 9
 
10 10
 PKG_NAME:=sqm-scripts
11
-PKG_VERSION:=6
11
+PKG_VERSION:=7
12 12
 PKG_RELEASE:=1
13 13
 PKG_LICENSE:=GPLv2
14 14
 

+ 6
- 45
net/sqm-scripts/files/usr/lib/sqm/functions.sh Ver fichero

@@ -1,3 +1,9 @@
1
+# This program is free software; you can redistribute it and/or modify
2
+# it under the terms of the GNU General Public License version 2 as
3
+# published by the Free Software Foundation.
4
+#
5
+#       Copyright (C) 2012-4 Michael D. Taht, Toke Høiland-Jørgensen, Sebastian Moeller
6
+
1 7
 #improve the logread output
2 8
 sqm_logger() {
3 9
     logger -t SQM -s ${1}
@@ -74,42 +80,6 @@ get_ifb_associated_with_if() {
74 80
     echo ${CUR_IFB}
75 81
 }
76 82
 
77
-# what is the lowest-index currently not used ifb device
78
-#sm: hopefully this is not required any longer, and can be deleted after a bit more testing...
79
-get_lowest_unused_ifb() {
80
-    LOWEST_FREE_IFB=
81
-    # this just returns a list of currently existing IFBs, these need not be associated with any interface
82
-    CUR_UP_IFBS=$( ifconfig | grep -o -e ifb'[[:digit:]]\+' )
83
-    # the possible IFBs (N in insmod ifb numifbs=N)
84
-    here=$( pwd )
85
-    cd /sys/devices/virtual/net/
86
-    CUR_ALLOWED_IFBS=$( ls -d ifb* )
87
-    sqm_logger "Currently allowed IFBs: ${CUR_ALLOWED_IFBS}"
88
-    cd ${here}
89
-    # this is the sorted list of the active ifbs
90
-    # note for 3.10.32 unused and even down IFBs linger on in the tc output, so take $CUR_UP_IFBS instead
91
-    # a better test might be to check for each allowed IFB whether it is in use
92
-    # but the only way I figured out doing this means interating over all interfaces and that sounds costly
93
-    # so instead we rely on stop.sh actually calling ifconfig ${LAST_USED_IFB} down
94
-    CUR_USED_IFBS=$( tc -d qdisc | grep -o -e ifb'[[:digit:]]\+' | sort -u)
95
-    sqm_logger "Currently used IFBs: ${CUR_USED_IFBS}"
96
-    # now find the lowest index not in the sorted list
97
-    local CUR_IDX=0
98
-    while [ -z "$LOWEST_FREE_IFB" ]
99
-    do
100
-        #TMP=$( echo "${CUR_USED_IFBS}" | grep -o -e ifb${CUR_IDX} )
101
-        TMP=$( echo "${CUR_UP_IFBS}" | grep -o -e ifb${CUR_IDX} )
102
-        [ -z "$TMP" ] && LOWEST_FREE_IFB="ifb"${CUR_IDX}
103
-        CUR_IDX=$(( $CUR_IDX + 1 ))
104
-    done
105
-    # check whether the number is in the allowed range
106
-    LOWEST_FREE_IFB=$( echo "${CUR_ALLOWED_IFBS}" | grep -o -e ${LOWEST_FREE_IFB} )
107
-    [ -z "${LOWEST_FREE_IFB}" ] && sqm_logger "The IFB candidate ifb$(( ${CUR_IDX} - 1 )) is not in the range of allowed IFBs, bailing out..."
108
-    sqm_logger "selected ifb index: ${LOWEST_FREE_IFB}"
109
-    echo ${LOWEST_FREE_IFB}
110
-}
111
-
112
-# instead of playing around with indices just create a named IFB
113 83
 # ATTENTION, IFB names can only be 15 chararcters, so we chop of excessive characters at the start of the interface name 
114 84
 # if required
115 85
 create_new_ifb_for_if() {
@@ -134,8 +104,6 @@ get_ifb_for_if() {
134 104
     CUR_IF=$1
135 105
     # if an ifb is already associated return that
136 106
     CUR_IFB=$( get_ifb_associated_with_if ${CUR_IF} )
137
-    # otherwise find the lowest unused ifb device
138
-    #[ -z "$CUR_IFB" ] && CUR_IFB=$( get_lowest_unused_ifb )
139 107
     [ -z "$CUR_IFB" ] && CUR_IFB=$( create_new_ifb_for_if ${CUR_IF} )
140 108
     [ -z "$CUR_IFB" ] && sqm_logger "Could not find existing IFB for ${CUR_IF}, nor create a new IFB instead..."
141 109
     echo ${CUR_IFB}
@@ -145,13 +113,6 @@ get_ifb_for_if() {
145 113
 [ -z "$DEV" ] && DEV=$( get_ifb_for_if ${IFACE} )      # automagically get the right IFB device for the IFACE"
146 114
 
147 115
 
148
-
149
-#sqm_logger "iqdisc opts: ${iqdisc_opts}"
150
-#sqm_logger "eqdisc opts: ${eqdisc_opts}"
151
-
152
-#sqm_logger "LLAM: ${LLAM}"
153
-#sqm_logger "LINKLAYER: ${LINKLAYER}"
154
-
155 116
 get_htb_adsll_string() {
156 117
 	ADSLL=""
157 118
 	if [ "$LLAM" = "htb_private" -a "$LINKLAYER" != "none" ]; 

+ 11
- 4
net/sqm-scripts/files/usr/lib/sqm/run.sh Ver fichero

@@ -1,5 +1,12 @@
1 1
 #!/bin/sh
2 2
 
3
+# This program is free software; you can redistribute it and/or modify
4
+# it under the terms of the GNU General Public License version 2 as
5
+# published by the Free Software Foundation.
6
+#
7
+#       Copyright (C) 2012-4 Michael D. Taht, Toke Høiland-Jørgensen, Sebastian Moeller
8
+
9
+
3 10
 . /lib/functions.sh
4 11
 
5 12
 STOP=$1
@@ -17,7 +24,7 @@ for STATE_FILE in ${PROTO_STATE_FILE_LIST} ; do
17 24
     then
18 25
 	STATE_FILE_BASE_NAME=$( basename ${STATE_FILE} )
19 26
 	CURRENT_INTERFACE=${STATE_FILE_BASE_NAME:${#ACTIVE_STATE_PREFIX}:$(( ${#STATE_FILE_BASE_NAME} - ${#ACTIVE_STATE_PREFIX} ))}        
20
-	logger -t SQM -s "Stopping SQM on interface: ${CURRENT_INTERFACE}"
27
+	logger -t SQM -s "${0} Stopping SQM on interface: ${CURRENT_INTERFACE}"
21 28
 	/usr/lib/sqm/stop.sh ${CURRENT_INTERFACE}
22 29
 	rm ${STATE_FILE}	# well, we stop it so it is not running anymore and hence no active state file needed...
23 30
     fi
@@ -38,7 +45,7 @@ run_simple_qos() {
38 45
 		# this should not be possible, delete after testing
39 46
 		local SECTION_STOP="stop"	# it seems the user just de-selected enable, so stop the active SQM
40 47
 	    else
41
-		logger -t SQM -s "SQM for interface ${IFACE} is not enabled, skipping over..."
48
+		logger -t SQM -s "${0} SQM for interface ${IFACE} is not enabled, skipping over..."
42 49
 		return 0	# since SQM is not active on the current interface nothing to do here
43 50
 	    fi
44 51
 	fi
@@ -72,10 +79,10 @@ run_simple_qos() {
72 79
 #	     /usr/lib/sqm/stop.sh
73 80
 #	     [ -f ${ACTIVE_STATE_FILE_FQN} ] && rm ${ACTIVE_STATE_FILE_FQN}	# conditional to avoid errors ACTIVE_STATE_FILE_FQN does not exist anymore
74 81
 #	     $(config_set "$section" enabled 0)	# this does not save to the config file only to the loaded memory representation
75
-#	     logger -t SQM -s "SQM qdiscs on ${IFACE} removed"
82
+	     logger -t SQM -s "${0} SQM qdiscs on ${IFACE} removed"
76 83
 	     return 0
77 84
 	fi
78
-	logger -t SQM -s "Queue Setup Script: ${SCRIPT}"
85
+	logger -t SQM -s "${0} Queue Setup Script: ${SCRIPT}"
79 86
 	[ -x "$SCRIPT" ] && { $SCRIPT ; touch ${ACTIVE_STATE_FILE_FQN}; }
80 87
 }
81 88
 

+ 7
- 4
net/sqm-scripts/files/usr/lib/sqm/simple.qos Ver fichero

@@ -3,8 +3,11 @@
3 3
 # A 3 bin tc_codel and ipv6 enabled shaping script for
4 4
 # ethernet gateways
5 5
 
6
-# Copyright (C) 2012 Michael D Taht
7
-# GPLv2
6
+# This program is free software; you can redistribute it and/or modify
7
+# it under the terms of the GNU General Public License version 2 as
8
+# published by the Free Software Foundation.
9
+#
10
+#       Copyright (C) 2012-4 Michael D. Taht, Toke Høiland-Jørgensen, Sebastian Moeller
8 11
 
9 12
 # Compared to the complexity that debloat had become
10 13
 # this cleanly shows a means of going from diffserv marking
@@ -36,10 +39,10 @@ ipt -t mangle -A QOS_MARK_${IFACE} -m tos  --tos Minimize-Delay -j MARK --set-ma
36 39
 
37 40
 if [ "$SQUASH_DSCP" = "1" ]
38 41
 then
39
-sqm_logger "Squashing differentiad services code points (DSCP) from ingress."
42
+sqm_logger "Squashing differentiated services code points (DSCP) from ingress."
40 43
 ipt -t mangle -I PREROUTING -i $IFACE -m dscp ! --dscp 0 -j DSCP --set-dscp-class be
41 44
 else
42
-sqm_logger "Keeping differentiad services code points (DSCP) from ingress."
45
+sqm_logger "Keeping differentiated services code points (DSCP) from ingress."
43 46
 ipt -t mangle -A PREROUTING -i $IFACE -m mark --mark 0x00 -g QOS_MARK_${IFACE} 
44 47
 fi
45 48
 

+ 5
- 2
net/sqm-scripts/files/usr/lib/sqm/simple_pppoe.qos Ver fichero

@@ -3,8 +3,11 @@
3 3
 # A 3 bin tc_codel and ipv6 enabled shaping script for
4 4
 # ethernet gateways
5 5
 
6
-# Copyright (C) 2012 Michael D Taht
7
-# GPLv2
6
+# This program is free software; you can redistribute it and/or modify
7
+# it under the terms of the GNU General Public License version 2 as
8
+# published by the Free Software Foundation.
9
+#
10
+#       Copyright (C) 2012-4 Michael D. Taht, Toke Høiland-Jørgensen, Sebastian Moeller
8 11
 
9 12
 # Compared to the complexity that debloat had become
10 13
 # this cleanly shows a means of going from diffserv marking

+ 5
- 2
net/sqm-scripts/files/usr/lib/sqm/simplest.qos Ver fichero

@@ -3,8 +3,11 @@
3 3
 # A 1 bin tc_codel and ipv6 enabled shaping script for
4 4
 # ethernet gateways. This is nearly the simplest possible
5 5
 
6
-# Copyright (C) 2013 Michael D Taht
7
-# GPLv2
6
+# This program is free software; you can redistribute it and/or modify
7
+# it under the terms of the GNU General Public License version 2 as
8
+# published by the Free Software Foundation.
9
+#
10
+#       Copyright (C) 2012-4 Michael D. Taht, Toke Høiland-Jørgensen, Sebastian Moeller
8 11
 
9 12
 . /usr/lib/sqm/functions.sh
10 13
 sqm_logger "Starting simplest.qos"

+ 11
- 4
net/sqm-scripts/files/usr/lib/sqm/stop.sh Ver fichero

@@ -1,10 +1,17 @@
1 1
 #!/bin/sh
2 2
 
3
-. /usr/lib/sqm/functions.sh
3
+# This program is free software; you can redistribute it and/or modify
4
+# it under the terms of the GNU General Public License version 2 as
5
+# published by the Free Software Foundation.
6
+#
7
+#       Copyright (C) 2012-4 Michael D. Taht, Toke Høiland-Jørgensen, Sebastian Moeller
4 8
 
5 9
 # allow passing in the IFACE as first command line argument
6 10
 [ ! -z ${1} ] && IFACE=${1}
7
-sqm_logger "${0} Stopping ${IFACE}"
11
+# now IFACE is defined so we can source functions.sh without creating a spurious ifb4ge00
12
+. /usr/lib/sqm/functions.sh
13
+# sqm_logger is defined in functions.sh...
14
+sqm_logger "${0}: Stopping ${IFACE}"
8 15
 
9 16
 # make sure to only delete the ifb associated with the current interface
10 17
 CUR_IFB=$( get_ifb_associated_with_if ${IFACE} )
@@ -13,7 +20,7 @@ sqm_stop() {
13 20
 	tc qdisc del dev $IFACE ingress 2> /dev/null
14 21
 	tc qdisc del dev $IFACE root 2> /dev/null
15 22
 	[ ! -z "$CUR_IFB" ] && tc qdisc del dev $CUR_IFB root 2> /dev/null
16
-        [ ! -z "$CUR_IFB" ] && sqm_logger "${CUR_IFB} shaper deleted"
23
+        [ ! -z "$CUR_IFB" ] && sqm_logger "${0}: ${CUR_IFB} shaper deleted"
17 24
 }
18 25
 
19 26
 ipt_stop() {
@@ -30,6 +37,6 @@ sqm_stop
30 37
 ipt_stop
31 38
 [ ! -z "$CUR_IFB" ] && ifconfig ${CUR_IFB} down
32 39
 [ ! -z "$CUR_IFB" ] && ip link delete ${CUR_IFB} type ifb
33
-[ ! -z "$CUR_IFB" ] && sqm_logger "${CUR_IFB} interface deleted"
40
+[ ! -z "$CUR_IFB" ] && sqm_logger "${0}: ${CUR_IFB} interface deleted"
34 41
 
35 42
 exit 0

+ 66
- 0
sound/forked-daapd/Makefile Ver fichero

@@ -0,0 +1,66 @@
1
+#
2
+# Copyright (C) 2006-2014 OpenWrt.org
3
+#
4
+# This is free software, licensed under the GNU General Public License v2.
5
+# See /LICENSE for more information.
6
+#
7
+
8
+include $(TOPDIR)/rules.mk
9
+
10
+PKG_NAME:=forked-daapd
11
+PKG_VERSION:=22.0
12
+PKG_RELEASE:=20141016
13
+PKG_REV:=61a4da215c05b621951aa3903d7d390fd1839537
14
+
15
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16
+PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
17
+PKG_SOURCE_PROTO:=git
18
+PKG_SOURCE_URL:=git://github.com/ejurgensen/forked-daapd.git
19
+PKG_SOURCE_VERSION:=$(PKG_REV)
20
+PKG_FIXUP:=autoreconf
21
+PKG_USE_MIPS16:=0
22
+PKG_INSTALL:=1
23
+
24
+PKG_MAINTAINER:=Espen Jürgensen <espenjurgensen+openwrt@gmail.com>
25
+PKG_LICENSE:=GPL-2.0
26
+PKG_LICENSE_FILES:=COPYING
27
+
28
+include $(INCLUDE_DIR)/package.mk
29
+
30
+define Package/forked-daapd
31
+SECTION:=sound
32
+CATEGORY:=Sound
33
+TITLE:=Improved iTunes (DAAP) server. Support for Apple Remote and AirPlay.
34
+URL:=https://github.com/ejurgensen/forked-daapd
35
+DEPENDS:=+libgpg-error +libgcrypt +libgdbm +zlib +libexpat +libunistring \
36
+	+libevent +libdaemon +libantlr3c +confuse +glib2 +alsa-lib +libffmpeg-full \
37
+	+mxml +libavl +avahi-daemon +libavahi-client +sqlite3-cli +libplist
38
+endef
39
+
40
+define Package/forked-daapd/conffiles
41
+/etc/forked-daapd.conf
42
+endef
43
+
44
+CONFIGURE_ARGS += \
45
+	--enable-itunes
46
+
47
+# Fix for libevent
48
+TARGET_CPPFLAGS += -I$(STAGING_DIR)/usr/include/libevent
49
+TARGET_LDFLAGS += -L$(STAGING_DIR)/usr/lib/libevent
50
+
51
+TARGET_CFLAGS += $(FPIC)
52
+TARGET_LDFLAGS += -Wl,-rpath-link,$(STAGING_DIR)/usr/lib
53
+
54
+define Package/forked-daapd/install
55
+	$(INSTALL_DIR) $(1)/etc
56
+	$(INSTALL_DATA) ./files/forked-daapd.conf $(1)/etc/
57
+	$(INSTALL_DIR) $(1)/usr/lib
58
+	$(INSTALL_DIR) $(1)/usr/lib/forked-daapd
59
+	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/forked-daapd/* $(1)/usr/lib/forked-daapd/
60
+	$(INSTALL_DIR) $(1)/usr/sbin
61
+	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/forked-daapd $(1)/usr/sbin/
62
+	$(INSTALL_DIR) $(1)/etc/init.d
63
+	$(INSTALL_BIN) ./files/forked-daapd.init $(1)/etc/init.d/forked-daapd
64
+endef
65
+
66
+$(eval $(call BuildPackage,forked-daapd))

+ 139
- 0
sound/forked-daapd/files/forked-daapd.conf Ver fichero

@@ -0,0 +1,139 @@
1
+# A quick guide to configuring forked-daapd:
2
+#
3
+# For regular use, the most important setting to configure is "directories",
4
+# which should be the location of your media. Whatever user you have set as
5
+# "uid" must have read access to this location. Also make sure to add the user.
6
+# If the location is a network mount, please see the README.
7
+#
8
+# In all likelihood, that's all you need to do!
9
+
10
+general {
11
+	# Username
12
+	uid = "daapd"
13
+	logfile = "/var/log/forked-daapd.log"
14
+	# Database location
15
+	db_path = "/var/run/forked-daapd.db"
16
+	# Available levels: fatal, log, warning, info, debug, spam
17
+	loglevel = log
18
+	# Admin password for the non-existent web interface
19
+	admin_password = "unused"
20
+	# Enable/disable IPv6
21
+	ipv6 = no
22
+	# Location of DAAP cache
23
+	daapcache_path = "/var/run/daapcache.db"
24
+	# DAAP requests that take longer than this threshold (in msec) get their
25
+	# replies cached for next time. Set to 0 to disable caching.
26
+#	daapcache_threshold = 1000
27
+}
28
+
29
+# Library configuration
30
+library {
31
+	# Name of the library as displayed by the clients
32
+	# %h: hostname, %v: version
33
+	name = "My Music on %h"
34
+	# TCP port to listen on. Default port is 3689 (daap)
35
+	port = 3689
36
+	# Password for the library. Optional.
37
+#	password = ""
38
+
39
+	# Directories to index
40
+	directories = { "/srv/music" }
41
+
42
+	# Directories containing podcasts
43
+	# For each directory that is indexed the path is matched against these
44
+	# names. If there is a match all items in the directory are marked as 
45
+	# podcasts. Eg. if you index /srv/music, and your podcasts are in
46
+	# /srv/music/Podcasts, you can set this to "/Podcasts".
47
+	# (changing this setting only takes effect after rescan, see the README)
48
+	podcasts = { "/Podcasts" }
49
+
50
+	# Directories containing audiobooks
51
+	# For each directory that is indexed the path is matched against these
52
+	# names. If there is a match all items in the directory are marked as 
53
+	# audiobooks.
54
+	# (changing this setting only takes effect after rescan, see the README)
55
+	audiobooks = { "/Audiobooks" }
56
+
57
+	# Directories containing compilations (eg soundtracks)
58
+	# For each directory that is indexed the path is matched against these
59
+	# names. If there is a match all items in the directory are marked as 
60
+	# compilations.
61
+	# (changing this setting only takes effect after rescan, see the README)
62
+	compilations = { "/Compilations" }
63
+
64
+	# Compilations usually have many artists, and if you don't want every
65
+	# artist to be listed when artist browsing in Remote, you can set
66
+	# a single name which will be used for all music in the compilation dir
67
+	# (changing this setting only takes effect after rescan, see the README)
68
+	compilation_artist = "Various artists"
69
+
70
+	# There are 5 default playlists: "Library", "Music", "Movies", "TV Shows"
71
+	# and "Podcasts". Here you can change the names of these playlists.
72
+#	name_library    = "Library"
73
+#	name_music      = "Music"
74
+#	name_movies     = "Movies"
75
+#	name_tvshows    = "TV Shows"
76
+#	name_podcasts   = "Podcasts"
77
+#	name_audiobooks = "Audiobooks"
78
+
79
+	# Artwork file names (without file type extension)
80
+	# forked-daapd will look for jpg and png files with these base names
81
+#	artwork_basenames = { "artwork", "cover", "Folder" }
82
+
83
+	# File types the scanner should ignore
84
+	# Non-audio files will never be added to the database, but here you
85
+	# can prevent the scanner from even probing them. This might improve
86
+	# scan time. By default .db and .ini are ignored.
87
+#	filetypes_ignore = { ".db", ".ini" }
88
+
89
+	# Disable startup file scanning
90
+	# When forked-daapd starts it will do an initial file scan of your
91
+	# library (and then watch it for changes). If you are sure your library
92
+	# never changes while forked-daapd is not running, you can disable the
93
+	# initial file scan and save some system ressources. Disabling this scan
94
+	# may lead to forked-daapd's database coming out of sync with the
95
+	# library. If that happens read the instructions in the README on how
96
+	# to trigger a full rescan.
97
+#	filescan_disable = false
98
+
99
+	# Should iTunes metadata override ours?
100
+#	itunes_overrides = false
101
+
102
+	# Formats: mp4a, mp4v, mpeg, alac, flac, mpc, ogg, wma, wmal, wmav, aif, wav
103
+	# Formats that should never be transcoded
104
+#	no_transcode = { "alac", "mp4a" }
105
+	# Formats that should always be transcoded
106
+#	force_transcode = { "ogg", "flac" }
107
+}
108
+
109
+# Local audio output
110
+audio {
111
+	# Name - used in the speaker list in Remote
112
+	nickname = "OpenWrt"
113
+	# Audio device name for local audio output
114
+#	card = "default"
115
+	# Mixer channel to use for volume control - ALSA/Linux only
116
+	# If not set, PCM will be used if available, otherwise Master.
117
+#	mixer = ""
118
+}
119
+
120
+# AirPlay/Airport Express device settings
121
+# (make sure you get the capitalization of the device name right)
122
+#airplay "My AirPlay device" {
123
+	# forked-daapd's volume goes to 11! If that's more than you can handle
124
+	# you can set a lower value here
125
+#	max_volume = 11
126
+	# AirPlay password
127
+#	password = "s1kr3t"
128
+#}
129
+
130
+# Spotify settings (only have effect if Spotify enabled - see README/INSTALL)
131
+spotify {
132
+	# Directory where user settings should be stored (credentials)
133
+#	settings_dir = "/var/cache/forked-daapd/libspotify"
134
+	# Cache directory
135
+#	cache_dir = "/tmp"
136
+	# Set preferred bitrate for music streaming
137
+	# 0: No preference (default), 1: 96kbps, 2: 160kbps, 3: 320kbps
138
+#	bitrate = 0
139
+}

+ 15
- 0
sound/forked-daapd/files/forked-daapd.init Ver fichero

@@ -0,0 +1,15 @@
1
+#!/bin/sh /etc/rc.common
2
+# Copyright (C) 2014 OpenWrt.org
3
+
4
+START=99
5
+BIN=/usr/sbin/forked-daapd
6
+PID=/var/run/forked-daapd.pid
7
+SSD=start-stop-daemon
8
+
9
+start() {
10
+        $SSD -p $PID -S -x $BIN -- -P $PID
11
+}
12
+	
13
+stop() {
14
+        $SSD -p $PID -K -s SIGINT
15
+}

+ 14782
- 0
sound/forked-daapd/patches/010-include_pregen.patch
La diferencia del archivo ha sido suprimido porque es demasiado grande
Ver fichero


+ 89
- 0
utils/lvm2/Makefile Ver fichero

@@ -0,0 +1,89 @@
1
+#
2
+# Copyright (C) 2009-2010 Stefan Monnier
3
+# Copyright (C) 2011-2014 OpenWrt.org
4
+#
5
+# This is free software, licensed under the GNU General Public License v3+.
6
+# See /LICENSE for more information.
7
+#
8
+
9
+include $(TOPDIR)/rules.mk
10
+
11
+PKG_NAME:=LVM2
12
+PKG_VERSION:=2.02.111
13
+PKG_RELEASE:=1
14
+PKG_LICENSE:=GPL-2.0 LGPL-2.1
15
+
16
+PKG_SOURCE:=$(PKG_NAME).$(PKG_VERSION).tgz
17
+PKG_SOURCE_URL:=ftp://sources.redhat.com/pub/lvm2
18
+PKG_MD5SUM:=02487ab2a9e02d1ee76fe217183df28a
19
+PKG_MAINTAINER:=Daniel Golle <daniel@makrotopia.org>
20
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME).$(PKG_VERSION)
21
+
22
+include $(INCLUDE_DIR)/package.mk
23
+
24
+define Package/libdevmapper
25
+  SECTION:=libs
26
+  CATEGORY:=Libraries
27
+  TITLE:=The Linux Kernel Device Mapper userspace library
28
+  URL:=http://sourceware.org/dm/
29
+  DEPENDS:=+kmod-dm +libpthread
30
+endef
31
+
32
+define Package/libdevmapper/description
33
+ The device-mapper is a component of the 2.6 linux kernel that supports logical
34
+ volume management. It is required by LVM2 and EVMS.
35
+endef
36
+
37
+define Package/lvm2
38
+  SECTION:=utils
39
+  CATEGORY:=Utilities
40
+  SUBMENU:=disc
41
+  TITLE:=The Linux Logical Volume Manager
42
+  URL:=http://sourceware.org/lvm2/
43
+  DEPENDS:=+libdevmapper +libblkid +libreadline +libncurses
44
+endef
45
+
46
+define Package/lvm2/description
47
+ LVM2 refers to a new userspace toolset that provide logical volume management
48
+ facilities on linux. It is reasonably backwards-compatible with the original
49
+ LVM toolset.
50
+endef
51
+
52
+CONFIGURE_ARGS += --disable-o_direct
53
+
54
+define Build/Compile
55
+	$(MAKE) -C $(PKG_BUILD_DIR) \
56
+		CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) $(FPIC)" \
57
+		DESTDIR="$(PKG_INSTALL_DIR)" \
58
+		install
59
+endef
60
+
61
+define Build/InstallDev
62
+	$(INSTALL_DIR) $(1)/usr/include
63
+	$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/libdevmapper.h $(1)/usr/include
64
+	$(INSTALL_DIR) $(1)/usr/lib
65
+	$(CP) $(PKG_INSTALL_DIR)/usr/lib/libdevmapper.so* $(1)/usr/lib
66
+	$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
67
+	$(CP) $(PKG_BUILD_DIR)/libdm/libdevmapper.pc $(1)/usr/lib/pkgconfig
68
+endef
69
+
70
+define Package/libdevmapper/install
71
+	$(INSTALL_DIR) $(1)/usr/lib
72
+	$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libdevmapper.so.* $(1)/usr/lib
73
+endef
74
+
75
+define Package/lvm2/install
76
+	$(INSTALL_DIR) $(1)/sbin
77
+	$(INSTALL_BIN) $(PKG_BUILD_DIR)/tools/lvm $(1)/sbin
78
+	$(INSTALL_DIR) $(1)/etc/lvm
79
+	$(INSTALL_CONF) $(PKG_BUILD_DIR)/conf/example.conf $(1)/etc/lvm/lvm.conf
80
+	$(INSTALL_DIR) $(1)/etc/init.d
81
+	$(INSTALL_BIN) ./files/lvm2.init $(1)/etc/init.d/lvm2
82
+endef
83
+
84
+define Package/lvm2/conffiles
85
+/etc/lvm/lvm.conf
86
+endef
87
+
88
+$(eval $(call BuildPackage,libdevmapper))
89
+$(eval $(call BuildPackage,lvm2))

+ 12
- 0
utils/lvm2/files/lvm2.init Ver fichero

@@ -0,0 +1,12 @@
1
+#!/bin/sh /etc/rc.common
2
+# Copyright (C) 2009 Stefan Monnier
3
+START=15
4
+
5
+start () {
6
+   /sbin/lvm vgscan --ignorelockingfailure --mknodes || :
7
+   /sbin/lvm vgchange -aly --ignorelockingfailure || return 2
8
+}
9
+
10
+stop () {
11
+    /sbin/lvm vgchange -aln --ignorelockingfailure || return 2
12
+}

+ 11
- 0
utils/lvm2/patches/000-compile.patch Ver fichero

@@ -0,0 +1,11 @@
1
+--- a/make.tmpl.in
2
++++ b/make.tmpl.in
3
+@@ -19,7 +19,7 @@
4
+ 
5
+ # Allow environment to override any built-in default value for CC.
6
+ # If there is a built-in default, CC is NOT set to @CC@ here.
7
+-CC ?= @CC@
8
++CC = @CC@
9
+ 
10
+ # If $(CC) holds the usual built-in default value of 'cc' then replace it with
11
+ # the configured value.

+ 12
- 0
utils/lvm2/patches/001-include_fix.patch Ver fichero

@@ -0,0 +1,12 @@
1
+diff -urN LVM2.2.02.111.old/lib/device/dev-type.c LVM2.2.02.111/lib/device/dev-type.c
2
+--- LVM2.2.02.111.old/lib/device/dev-type.c	2014-09-17 09:41:08.281821278 -0400
3
++++ LVM2.2.02.111/lib/device/dev-type.c	2014-09-17 09:41:50.773821280 -0400
4
+@@ -22,7 +22,7 @@
5
+ #include <ctype.h>
6
+ 
7
+ #ifdef BLKID_WIPING_SUPPORT
8
+-#include <blkid.h>
9
++#include <blkid/blkid.h>
10
+ #endif
11
+ 
12
+ #include "device-types.h"