├── README ├── admin ├── asterisk11-gui │ ├── Makefile │ └── files │ │ ├── gui_http.conf │ │ ├── gui_manager.conf │ │ └── gui_users.conf └── asterisk18-gui │ ├── Makefile │ └── files │ ├── asterisk-gui.init │ ├── gui_http.conf │ ├── gui_manager.conf │ └── gui_users.conf ├── devel └── packr │ └── Makefile ├── ipv6 └── miredo │ ├── Makefile │ ├── files │ └── miredo.init │ └── patches │ ├── 001-fix-musl-pthread-non-portable.patch │ ├── 002-fix-redefinition-ethadr.patch │ ├── 003-fix-warnings-portable-defined.patch │ └── 004-reproducible.patch ├── lang ├── jamvm │ ├── Makefile │ └── patches │ │ ├── 001-Use-fenv.h-instead-of-fpu_control.h.patch │ │ └── 010-musl.patch ├── node-mozilla-iot-gateway │ ├── Config.in │ ├── Makefile │ ├── README.md │ └── files │ │ └── mozilla-iot-gateway.init ├── python │ ├── django-appconf │ │ └── Makefile │ ├── django-compressor │ │ └── Makefile │ ├── django-formtools │ │ └── Makefile │ ├── django-jsonfield │ │ └── Makefile │ ├── django-jsonfield2 │ │ └── Makefile │ ├── django-picklefield │ │ ├── Makefile │ │ └── patches │ │ │ └── 001-no-import-self-during-setup.patch │ ├── django-postoffice │ │ └── Makefile │ ├── django-ranged-response │ │ └── Makefile │ ├── django-restframework39 │ │ └── Makefile │ ├── django-simple-captcha │ │ └── Makefile │ ├── django-statici18n │ │ └── Makefile │ ├── django-webpack-loader │ │ └── Makefile │ ├── django1 │ │ ├── Makefile │ │ └── patches │ │ │ └── 001-load-byte-compiled-db-migrations.patch │ ├── gunicorn │ │ └── Makefile │ ├── pyjwt │ │ └── Makefile │ ├── pypi.mk │ ├── python-asn1crypto │ │ └── Makefile │ ├── python-crypto │ │ ├── Makefile │ │ └── patches │ │ │ ├── 001-no-host-paths.patch │ │ │ ├── 002-fix-endianness-detect.patch │ │ │ ├── 003-omit-tests.patch │ │ │ ├── 100-CVE-2013-7459.patch │ │ │ └── 101-CVE-2018-6594.patch │ ├── python-exceptiongroup │ │ └── Makefile │ ├── python-mysqlclient │ │ └── Makefile │ ├── python-oauthlib │ │ └── Makefile │ ├── python-package-install.sh │ ├── python-qrcode │ │ └── Makefile │ ├── python-rcssmin │ │ └── Makefile │ ├── python-requests-oauthlib │ │ └── Makefile │ ├── python-simplejson │ │ └── Makefile │ ├── python2-astral │ │ └── Makefile │ ├── python2-attrs │ │ └── Makefile │ ├── python2-automat │ │ ├── Makefile │ │ └── patches │ │ │ ├── 001-do-not-use-setuptools-scm-m2r.patch │ │ │ ├── 002-omit-visualize.patch │ │ │ └── 003-omit-tests.patch │ ├── python2-awscli │ │ └── Makefile │ ├── python2-bcrypt │ │ └── Makefile │ ├── python2-botocore │ │ └── Makefile │ ├── python2-certifi │ │ └── Makefile │ ├── python2-cffi │ │ └── Makefile │ ├── python2-chardet │ │ └── Makefile │ ├── python2-colorama │ │ └── Makefile │ ├── python2-constantly │ │ └── Makefile │ ├── python2-crcmod │ │ └── Makefile │ ├── python2-crypto │ │ ├── Makefile │ │ └── patches │ │ │ ├── 001-no-host-paths.patch │ │ │ ├── 002-fix-endianness-detect.patch │ │ │ ├── 003-omit-tests.patch │ │ │ ├── 100-CVE-2013-7459.patch │ │ │ └── 101-CVE-2018-6594.patch │ ├── python2-cryptodome │ │ ├── Makefile │ │ └── patches │ │ │ ├── 001-fix-libgmp-loading.patch │ │ │ └── 002-omit-tests.patch │ ├── python2-cryptodomex │ │ ├── Makefile │ │ └── patches │ │ │ ├── 001-fix-libgmp-loading.patch │ │ │ └── 002-omit-tests.patch │ ├── python2-cryptography │ │ ├── Makefile │ │ └── patches │ │ │ ├── 001-disable-setup-requirements.patch │ │ │ ├── 010-remove-npn.patch │ │ │ ├── 020-disable-npn.patch │ │ │ └── 030-remove-npn.patch │ ├── python2-curl │ │ └── Makefile │ ├── python2-dateutil │ │ └── Makefile │ ├── python2-defusedxml │ │ └── Makefile │ ├── python2-django-appconf │ │ └── Makefile │ ├── python2-django-compressor │ │ └── Makefile │ ├── python2-django-constance │ │ └── Makefile │ ├── python2-django-formtools │ │ └── Makefile │ ├── python2-django-jsonfield │ │ └── Makefile │ ├── python2-django-picklefield │ │ ├── Makefile │ │ └── patches │ │ │ └── 001-no-import-self-during-setup.patch │ ├── python2-django-postoffice │ │ └── Makefile │ ├── python2-django-ranged-response │ │ └── Makefile │ ├── python2-django-restframework39 │ │ └── Makefile │ ├── python2-django-simple-captcha │ │ └── Makefile │ ├── python2-django-statici18n │ │ └── Makefile │ ├── python2-django-webpack-loader │ │ └── Makefile │ ├── python2-django1 │ │ ├── Makefile │ │ └── patches │ │ │ └── 001-load-byte-compiled-db-migrations.patch │ ├── python2-dns │ │ └── Makefile │ ├── python2-docutils │ │ └── Makefile │ ├── python2-dpkt │ │ └── Makefile │ ├── python2-egenix-mx-base │ │ └── Makefile │ ├── python2-enum34 │ │ ├── Makefile │ │ └── patches │ │ │ └── 001-omit-docs.patch │ ├── python2-et_xmlfile │ │ └── Makefile │ ├── python2-evdev │ │ └── Makefile │ ├── python2-flup │ │ └── Makefile │ ├── python2-futures │ │ └── Makefile │ ├── python2-gmpy2 │ │ └── Makefile │ ├── python2-gnupg │ │ └── Makefile │ ├── python2-gunicorn │ │ └── Makefile │ ├── python2-host.mk │ ├── python2-hyperlink │ │ ├── Makefile │ │ └── patches │ │ │ └── 001-omit-tests.patch │ ├── python2-idna │ │ └── Makefile │ ├── python2-incremental │ │ ├── Makefile │ │ └── patches │ │ │ └── 001-omit-tests.patch │ ├── python2-ipaddress │ │ └── Makefile │ ├── python2-jdcal │ │ └── Makefile │ ├── python2-jmespath │ │ └── Makefile │ ├── python2-ldap │ │ └── Makefile │ ├── python2-libmodbus │ │ └── Makefile │ ├── python2-lxml │ │ └── Makefile │ ├── python2-mysqlclient │ │ └── Makefile │ ├── python2-oauthlib │ │ └── Makefile │ ├── python2-openpyxl │ │ └── Makefile │ ├── python2-package.mk │ ├── python2-packages │ │ ├── Makefile │ │ └── README.md │ ├── python2-parsley │ │ ├── Makefile │ │ └── patches │ │ │ ├── 001-py3-read-utf8.patch │ │ │ └── 002-omit-tests.patch │ ├── python2-passlib │ │ └── Makefile │ ├── python2-pcapy │ │ ├── Makefile │ │ └── patches │ │ │ └── 010-libcxx.patch │ ├── python2-pillow │ │ └── Makefile │ ├── python2-ply │ │ └── Makefile │ ├── python2-psycopg2 │ │ └── Makefile │ ├── python2-pyasn1-modules │ │ └── Makefile │ ├── python2-pyasn1 │ │ └── Makefile │ ├── python2-pycparser │ │ ├── Makefile │ │ └── patches │ │ │ └── 001-use-external-ply.patch │ ├── python2-pyjwt │ │ └── Makefile │ ├── python2-pyodbc │ │ └── Makefile │ ├── python2-pyopenssl │ │ └── Makefile │ ├── python2-pyptlib │ │ └── Makefile │ ├── python2-pyserial │ │ └── Makefile │ ├── python2-pytz │ │ └── Makefile │ ├── python2-qrcode │ │ └── Makefile │ ├── python2-rcssmin │ │ └── Makefile │ ├── python2-requests-oauthlib │ │ └── Makefile │ ├── python2-requests │ │ └── Makefile │ ├── python2-rsa │ │ └── Makefile │ ├── python2-ruamel-yaml │ │ └── Makefile │ ├── python2-s3transfer │ │ └── Makefile │ ├── python2-service-identity │ │ └── Makefile │ ├── python2-simplejson │ │ └── Makefile │ ├── python2-six │ │ └── Makefile │ ├── python2-text-unidecode │ │ └── Makefile │ ├── python2-twisted │ │ ├── Makefile │ │ └── patches │ │ │ ├── 001-omit-tkconch.patch │ │ │ └── 002-omit-tests.patch │ ├── python2-txsocksx │ │ ├── Makefile │ │ └── patches │ │ │ ├── 001-omit-tests.patch │ │ │ └── 002-do-not-use-vcversioner.patch │ ├── python2-urllib3 │ │ └── Makefile │ ├── python2-version.mk │ ├── python2-vobject │ │ └── Makefile │ ├── python2-voluptuous │ │ └── Makefile │ ├── python2-yaml │ │ └── Makefile │ ├── python2-zope-interface │ │ ├── Makefile │ │ └── patches │ │ │ └── 001-omit-tests.patch │ ├── python2 │ │ ├── Config-python2-light.in │ │ ├── Makefile │ │ ├── files │ │ │ ├── config.site │ │ │ ├── python-config.in │ │ │ ├── python2-package-codecs.mk │ │ │ ├── python2-package-compiler.mk │ │ │ ├── python2-package-ctypes.mk │ │ │ ├── python2-package-db.mk │ │ │ ├── python2-package-decimal.mk │ │ │ ├── python2-package-dev.mk │ │ │ ├── python2-package-distutils.mk │ │ │ ├── python2-package-email.mk │ │ │ ├── python2-package-gdbm.mk │ │ │ ├── python2-package-lib2to3.mk │ │ │ ├── python2-package-logging.mk │ │ │ ├── python2-package-multiprocessing.mk │ │ │ ├── python2-package-ncurses.mk │ │ │ ├── python2-package-openssl.mk │ │ │ ├── python2-package-pip.mk │ │ │ ├── python2-package-pkg-resources.mk │ │ │ ├── python2-package-pydoc.mk │ │ │ ├── python2-package-setuptools.mk │ │ │ ├── python2-package-sqlite3.mk │ │ │ ├── python2-package-unittest.mk │ │ │ └── python2-package-xml.mk │ │ ├── patches-setuptools │ │ │ ├── 001-reproducible.patch │ │ │ ├── 002-sorted-requires.patch │ │ │ └── 003-PKG-INFO-output-reproducible.patch │ │ └── patches │ │ │ ├── 001-enable-zlib.patch │ │ │ ├── 002-do-not-add-include-dirs-when-cross-compiling.patch │ │ │ ├── 003-do-not-compile-tests-at-build.patch │ │ │ ├── 004-do-not-write-bytes-codes.patch │ │ │ ├── 005-fix-bluetooth-support.patch │ │ │ ├── 006-remove-multi-arch-and-local-paths.patch │ │ │ ├── 007-distutils-do-not-adjust-path.patch │ │ │ ├── 008-distutils-use-python-sysroot.patch │ │ │ ├── 009-do-not-use-dblib_dir-when-cross-compiling.patch │ │ │ ├── 010-do-not-add-rt-lib-dirs-when-cross-compiling.patch │ │ │ ├── 012-add-support-source-date-epoch-pyc.patch │ │ │ ├── 013-getbuildinfo-date-time-source-date-epoch.patch │ │ │ ├── 021-compileall-add-recursion-option.patch │ │ │ ├── 024-musl-find_library.patch │ │ │ ├── 025-utime.patch │ │ │ ├── 026-bpo-34585-Dont-do-runtime-test-to-get-float-byte-order-GH-9085.patch │ │ │ └── 027-bpo-34585-run-autoconf-GH-9411-edited.patch │ └── python3-django-etesync-journal │ │ └── Makefile └── urbi │ ├── Makefile │ └── patches │ ├── 001-no_examples.patch │ └── 005-fix-gcc_4_3-compile.patch ├── libs ├── avro │ ├── Makefile │ └── patches │ │ ├── 010-pkgconfig.patch │ │ ├── 020-bin-shared.patch │ │ └── 030-ssize_t.patch ├── botan │ └── Makefile ├── classpath │ ├── Makefile │ └── patches │ │ ├── 010-double-memleak.patch │ │ └── 020-fix-statement-may-fall-through.patch ├── fbthrift │ ├── Makefile │ └── patches │ │ ├── 010-no-boost-thread.patch │ │ └── 020-compiler.patch ├── fbzmq │ ├── Makefile │ └── patches │ │ └── 010-fbthrift.patch ├── fcgi │ ├── Makefile │ └── patches │ │ └── 100-fcgio-int-type-fix.patch ├── fftw3 │ └── Makefile ├── glpk │ └── Makefile ├── gsm │ ├── Makefile │ └── patches │ │ └── 001-debian-libsgm-1.0.10-13.patch ├── ipfs-http-client │ ├── Makefile │ └── patches │ │ └── 001-add-srv-addr.patch ├── libartnet │ ├── Makefile │ └── patches │ │ ├── 001-bswap_16.patch │ │ └── 002-gcc7.patch ├── libaudiofile │ ├── Makefile │ └── patches │ │ ├── 010-gcc6-fix-left-shift-negative-number.patch │ │ ├── 020-remove-tests-examples-docs.patch │ │ ├── 030-CVE-2015-7747.patch │ │ ├── 110-Always-check-the-number-of-coefficients.patch │ │ ├── 120-clamp-index-values-to-fix-index-overflow-in-IMA.cpp.patch │ │ ├── 130-Check-for-multiplication-overflow-in-sfconvert.patch │ │ ├── 140-Actually-fail-when-error-occurs-in-parseFormat.patch │ │ ├── 150-Check-for-multiplication-overflow-in-MSADPCM-decodeS.patch │ │ ├── 160-Fix-signature-of-multiplyCheckOverflow.patch │ │ └── 170-Check-for-division-by-zero-in-BlockCodec.patch ├── libavl │ ├── Makefile │ └── patches │ │ └── 010-update_GNUmakefile.patch ├── libcanfestival │ ├── Makefile │ └── patches │ │ ├── 001-sigval-ref-fix.patch │ │ ├── 002-makefile-gcc-linker.patch │ │ ├── 003-makefile-skip-examples.patch │ │ └── 004-override-cflags.patch ├── libcelt │ └── Makefile ├── libcxx │ ├── Makefile │ ├── files │ │ └── g++-libcxx │ └── patches │ │ ├── 010-ssp.patch │ │ └── 020-remove-monorepo-requirement.patch ├── libcxxabi │ ├── Makefile │ └── patches │ │ ├── 010-arm.patch │ │ └── 020-remove-monorepo-requirement.patch ├── libdaq │ ├── Makefile │ └── patches │ │ ├── 001-compile.patch │ │ └── 100-musl-compat.patch ├── libdouble-conversion │ └── Makefile ├── libebml │ ├── Makefile │ └── patches │ │ └── 010-gcc11.patch ├── libevhtp │ ├── Makefile │ └── patches │ │ └── 010-openssl-thread.patch ├── libfizz │ ├── Makefile │ └── patches │ │ └── 010-no-boost-thread.patch ├── libfolly │ ├── Makefile │ └── patches │ │ ├── 100-cmake-fix-regex-match-path.patch │ │ ├── 101-remove-undefined-dcheck.patch │ │ ├── 102-no-boost-thread.patch │ │ └── 103-arm-yield.patch ├── libgflags │ └── Makefile ├── libglog │ ├── Makefile │ └── patches │ │ ├── 100-fix-musl-compilation.patch │ │ └── 110-nanosleep.patch ├── libmatroska │ └── Makefile ├── libmstch │ └── Makefile ├── libnfc │ └── Makefile ├── librsocket-cpp │ ├── Makefile │ └── patches │ │ ├── 101-do-not-use-gold.patch │ │ ├── 102-gcc9.patch │ │ └── 103-no-boost-thread.patch ├── libsearpc │ ├── Makefile │ └── patches │ │ ├── 001-no-python-compile.patch │ │ └── 002-no-future-import.patch ├── libsigar │ ├── Makefile │ └── patches │ │ ├── 010-rindex.patch │ │ └── 020-sysmacros.patch ├── libsoup │ ├── Makefile │ └── patches │ │ └── 010-libxml-1.12.patch ├── libuvc │ └── Makefile ├── libwangle │ ├── Makefile │ └── patches │ │ ├── 010-c++14.patch │ │ └── 020-no-boost-thread.patch ├── libzdb │ ├── Makefile │ └── patches │ │ ├── 010-do-not-run-test-progs.patch │ │ └── 020-filterh-use-host-built-version.patch ├── measurement-kit │ └── Makefile ├── nspr │ ├── Makefile │ └── patches │ │ └── 001-compile.patch ├── opencv │ ├── Makefile │ └── README.md ├── openh323 │ ├── Makefile │ └── patches │ │ └── 001-configure.patch ├── pugixml │ └── Makefile ├── pwlib │ ├── Makefile │ └── patches │ │ ├── 001-bison3-fix.patch │ │ └── 002-lib_mak.patch ├── rblibtorrent │ ├── Makefile │ └── patches │ │ └── enable-shared-linking.patch ├── rxtx │ ├── Makefile │ └── patches │ │ └── 010-acm-devices.patch ├── spdlog │ └── Makefile ├── toxcore │ └── Makefile ├── zaptel-1.4.x │ ├── Makefile │ ├── files │ │ └── 10-create-device-node │ └── patches │ │ ├── 002-upstream_hrtimer.patch │ │ ├── 100-no_hrtimer_on_x86_only.patch │ │ ├── 200-Makefile-pwd.patch │ │ ├── 330-uname_m.patch │ │ ├── 340-2.6.32.patch │ │ ├── 350-2.6.34.patch │ │ ├── 360-slab.patch │ │ ├── 370-2.6.36.patch │ │ ├── 371-3.x.patch │ │ ├── 380-use_cross_ar.patch │ │ └── 390-include_spinlock_h.patch └── zaptel │ ├── Makefile │ └── patches │ └── 110-Makefile-tonezone_install.patch ├── mail ├── clamsmtp │ ├── Makefile │ ├── files │ │ └── clamsmtpd.init │ └── patches │ │ └── 010-fix-build.patch ├── mailman │ ├── Makefile │ ├── files │ │ └── mailman.init │ └── patches │ │ ├── 100-postfix.patch │ │ ├── 200-nohostdnspython.patch │ │ ├── 300-targetpython.patch │ │ └── 400-modules.patch ├── msmtp-scripts │ ├── Makefile │ └── files │ │ ├── msmtpq-ng-mta.init │ │ ├── msmtpq-ng-mta.rc │ │ └── msmtpq-ng.rc └── ssmtp │ ├── Makefile │ └── patches │ ├── 002-fix_pointer.patch │ ├── 004-remove_dead-letter.patch │ ├── 006-add_ip-header.patch │ ├── 008-remove_garbage.patch │ ├── 010-fix_message-header.patch │ └── 020-openssl-deprecated.patch ├── multimedia ├── crtmpserver │ ├── Makefile │ ├── files │ │ └── crtmpserver.init │ └── patches │ │ ├── 010-no-werror.patch │ │ ├── 030-default-config.patch │ │ ├── 070-disable-apple-streaming.patch │ │ ├── 080-fix-define.patch │ │ └── 090-openssl-1.1-compat.patch ├── gerbera │ ├── Makefile │ ├── files │ │ ├── gerbera.config │ │ └── gerbera.init │ └── patches │ │ ├── 010-matroska-memory-leak.patch │ │ └── 020-meson.patch ├── gst-ffmpeg │ ├── Config.in │ └── Makefile ├── gst-plugins-bad │ ├── Makefile │ └── patches │ │ └── 000-gettext.patch ├── gst-plugins-base │ ├── Makefile │ └── patches │ │ ├── 001-no_docs.patch │ │ ├── 002-no_tests.patch │ │ ├── 003-no_translations.patch │ │ └── 004-vorbisdec-support_modern_Tremor_versions.patch ├── gst-plugins-good │ ├── Makefile │ └── patches │ │ ├── 001-no_docs.patch │ │ ├── 002-no_tests.patch │ │ └── 003-no_translations.patch ├── gst-plugins-ugly │ ├── Makefile │ └── patches │ │ ├── 001-no_docs.patch │ │ ├── 002-no_tests.patch │ │ └── 003-no_translations.patch └── gstreamer │ ├── Makefile │ └── patches │ ├── 001-no_docs.patch │ ├── 002-no_tests.patch │ ├── 003-no_translations.patch │ ├── 004-add_gst_debug_log2_debug_symbol.patch │ └── 005-YYLEX_PARAM_to_lex-param.patch ├── net ├── aodv-uu │ ├── Makefile │ ├── files │ │ └── aodv-uu.modules │ └── patches │ │ ├── 001-normalize.patch │ │ ├── 002-linux_2.6.19_ip_route_me_harder_change.patch │ │ ├── 003-linux_2.6.19_security_netlink_recv_change.patch │ │ ├── 004-linux_2.6.19_includes.patch │ │ └── 005-linux_2.6.22_skbuff.patch ├── asterisk-1.8.x │ ├── Makefile │ ├── files │ │ ├── asterisk.default │ │ └── asterisk.init │ ├── patches │ │ ├── 030-GNU-GLOB-exts-only-on-glibc.patch │ │ ├── 100-build_tools-iconv.patch │ │ ├── 200-addons-defaultenable.patch │ │ ├── 201-utils-defaultenable.patch │ │ ├── 500-nres.patch │ │ └── 900-revert-r416994.patch │ └── src-lantiq │ │ ├── channels │ │ └── chan_lantiq.c │ │ └── configs │ │ └── lantiq.conf.sample ├── asterisk-11.x │ ├── Config.in │ ├── Makefile │ ├── files │ │ └── asterisk.init │ ├── patches │ │ ├── 001-pjproject-change-configure-args.patch │ │ ├── 010-asterisk-configure-undef-res-ninit.patch │ │ ├── 020-asterisk-enable-default-modules.patch │ │ ├── 021-asterisk-utils-enable-default-modules.patch │ │ ├── 030-GNU-GLOB-exts-only-on-glibc.patch │ │ ├── 035-pjproject-non-gnu-mutex-type.patch │ │ ├── 050-musl-glob-compat.patch │ │ ├── 052-musl-libcap.patch │ │ └── 053-musl-mutex-init.patch │ └── src-lantiq │ │ ├── channels │ │ └── chan_lantiq.c │ │ └── configs │ │ └── lantiq.conf.sample ├── asterisk-13.x-chan-lantiq │ ├── Makefile │ └── files │ │ └── default.exports ├── asterisk-13.x │ ├── Config.in │ ├── Makefile │ ├── files │ │ ├── asterisk.default │ │ └── asterisk.init │ └── patches │ │ ├── 001-disable-semaphores-check.patch │ │ ├── 002-undef-res-ninit.patch │ │ ├── 004-ifdef-missing-execinfo.patch │ │ ├── 030-GNU-GLOB-exts-only-on-glibc.patch │ │ ├── 050-musl-glob-compat.patch │ │ ├── 052-musl-libcap.patch │ │ ├── 053-musl-mutex-init.patch │ │ ├── 056-fix-check_expr2-build.patch │ │ ├── 100-build-reproducibly.patch │ │ ├── 110-AST-2019-002-13.diff │ │ └── 120-AST-2019-003-13.diff ├── click │ ├── Makefile │ ├── files │ │ └── roofnet.init │ └── patches │ │ ├── 100-compile_fix.patch │ │ └── 110-multithread_fix.patch ├── daemonlogger │ └── Makefile ├── danish │ └── Makefile ├── deluge │ ├── Makefile │ └── files │ │ ├── deluge.config │ │ └── deluge.init ├── e2guardian │ ├── Makefile │ └── files │ │ ├── e2guardian.config │ │ ├── e2guardian.init │ │ └── e2guardianf1.conf ├── fossil │ ├── Makefile │ ├── files │ │ ├── fossil.config │ │ └── fossil.init │ └── patches │ │ └── 001-no_https.patch ├── freepops │ └── Makefile ├── freeradius2 │ ├── Config.in │ ├── Makefile │ ├── files │ │ └── radiusd.init │ └── patches │ │ ├── 001-fix-makefile.patch │ │ ├── 002-config.patch │ │ ├── 004-ldap_configure.patch │ │ ├── 008-honor_ccpflags.patch │ │ └── 010-disbale-openssl-check.patch ├── freeswitch │ ├── Config.in │ ├── Makefile │ ├── files │ │ ├── freeswitch.config │ │ ├── freeswitch.default │ │ ├── freeswitch.hotplug │ │ └── freeswitch.init │ └── patches │ │ ├── glibc │ │ ├── Makefile_am.patch │ │ ├── build-config-erlang_m4.patch │ │ ├── build-modules_conf_in.patch │ │ ├── build-openwrt_rules.mk.patch │ │ ├── configure_ac.patch │ │ ├── libs-apr-configure_ac.patch │ │ ├── libs-apr-util-configure_gnu.patch │ │ ├── libs-srtp-configure_ac.patch │ │ ├── src-mod-applications-mod_http_cache-conf-autoload_configs-http_cache_conf_xml.patch │ │ ├── src-mod-endpoints-mod_sofia-conf-sofia_conf_xml.patch │ │ ├── src-mod-endpoints-mod_verto-Makefile_am.patch │ │ ├── src-mod-languages-mod_perl-Makefile_am.patch │ │ ├── src-mod-languages-mod_python-Makefile_am.patch │ │ └── src-mod-languages-mod_python-freeswitch_python_cpp.patch │ │ ├── musl │ │ ├── Makefile_am.patch │ │ ├── build-config-erlang_m4.patch │ │ ├── build-modules_conf_in.patch │ │ ├── build-openwrt_rules.mk.patch │ │ ├── configure_ac.patch │ │ ├── libs-apr-configure_ac.patch │ │ ├── libs-apr-util-configure_gnu.patch │ │ ├── libs-srtp-configure_ac.patch │ │ ├── src-mod-applications-mod_http_cache-conf-autoload_configs-http_cache_conf_xml.patch │ │ ├── src-mod-endpoints-mod_sofia-conf-sofia_conf_xml.patch │ │ ├── src-mod-endpoints-mod_verto-Makefile_am.patch │ │ ├── src-mod-languages-mod_perl-Makefile_am.patch │ │ ├── src-mod-languages-mod_python-Makefile_am.patch │ │ └── src-mod-languages-mod_python-freeswitch_python_cpp.patch │ │ └── uClibc │ │ ├── Makefile_am.patch │ │ ├── build-config-erlang_m4.patch │ │ ├── build-modules_conf_in.patch │ │ ├── build-openwrt_rules.mk.patch │ │ ├── configure_ac.patch │ │ ├── libs-apr-configure_ac.patch │ │ ├── libs-apr-util-configure_gnu.patch │ │ ├── libs-srtp-configure_ac.patch │ │ ├── src-mod-applications-mod_http_cache-conf-autoload_configs-http_cache_conf_xml.patch │ │ ├── src-mod-endpoints-mod_sofia-conf-sofia_conf_xml.patch │ │ ├── src-mod-endpoints-mod_verto-Makefile_am.patch │ │ ├── src-mod-languages-mod_perl-Makefile_am.patch │ │ ├── src-mod-languages-mod_python-Makefile_am.patch │ │ └── src-mod-languages-mod_python-freeswitch_python_cpp.patch ├── iotivity │ ├── Makefile │ ├── files │ │ └── etc │ │ │ └── iotivity │ │ │ ├── ReadMe.txt │ │ │ ├── oic_svr_db.cbor │ │ │ └── oic_svr_db.json │ └── patches │ │ ├── 001-no_unit_test.patch │ │ ├── 002-do-not-chck-for-boost.patch │ │ ├── 020-linux-Add-more-architectures.patch │ │ ├── 021-build-do-not-set-TARGET_ARCH-to-default.patch │ │ ├── 022-build-restrict-compiler-options-to-supported-archite.patch │ │ ├── 023-build-take-compiler-options-from-environment.patch │ │ ├── 030-remove-check-for-curl.patch │ │ ├── 040-linux-Use-system-sqlite3.patch │ │ ├── 050-csdk-move-OCEntityHandlerResponse-from-stack-to-heap.patch │ │ ├── 051-csdk-move-OCClientResponse-from-stack-to-heap.patch │ │ ├── 053-src-move-OCClientResponse-from-stack-to-heap.patch │ │ ├── 070-ssl-fix-compilation-against-non-debug-mbedtls.patch │ │ ├── 071-ssl-call-mbedtls_version_get_string-only-if-availabl.patch │ │ ├── 072-ssl-call-mbedtls_ssl_conf_renegotiation-only-if-avai.patch │ │ ├── 075-ssl-enable-usage-of-patched-mbed-functions-condition.patch │ │ ├── 078-use-system-mbedtls.patch │ │ ├── 080-zigbee_wrapper-do-not-check-for-floating-point.patch │ │ ├── 140-remove-glib2.patch │ │ ├── 200-examples-OICMiddle-try-to-load-security-configuratio.patch │ │ └── 300-resource-Include-functional-header-for-g-7.1.0.patch ├── kamailio-3.x │ ├── Makefile │ ├── files │ │ ├── kamailio.default │ │ └── kamailio.init │ └── patches │ │ ├── 050-fix-kamailio-utils.patch │ │ ├── 100-cross_compile.patch │ │ └── 110-include-sys-time-h-in-ld_session-h.patch ├── kamailio-4.x │ ├── Makefile │ ├── files │ │ ├── kamailio.default │ │ └── kamailio.init │ └── patches │ │ ├── 050-fix-kamailio-utils.patch │ │ └── 120-libevent-libs.patch ├── linuxigd │ ├── Makefile │ ├── files │ │ ├── upnpd.conf │ │ └── upnpd.init │ └── patches │ │ ├── 001-iptables_defs.patch │ │ ├── 002-netfilter_nat_headers.patch │ │ ├── 003-Makefile-fix.patch │ │ ├── 004-iptables-1.4.3.2-compat.patch │ │ └── 005-includes.patch ├── mstpd │ ├── Config.in │ ├── Makefile │ ├── files │ │ ├── etc │ │ │ └── init.d │ │ │ │ └── mstpd.init │ │ └── sbin │ │ │ └── bridge-stp │ └── patches │ │ └── 010-bsd.patch ├── multiwan │ ├── Makefile │ └── files │ │ ├── etc │ │ ├── config │ │ │ └── multiwan │ │ └── init.d │ │ │ └── multiwan │ │ └── usr │ │ └── bin │ │ └── multiwan ├── obfsproxy │ ├── Makefile │ ├── files │ │ ├── obfsproxy.conf │ │ └── obfsproxy.init │ └── patches │ │ ├── 001-exclude-tests.patch │ │ ├── 002-fix-python-path.patch │ │ ├── 003-remove-argparse-dependency-test.patch │ │ └── 004-add-syslog-support.patch ├── ooniprobe │ ├── Makefile │ └── test.sh ├── polipo │ ├── Makefile │ └── files │ │ ├── polipo.config │ │ └── polipo.init ├── restund │ ├── Makefile │ ├── files │ │ ├── restund.default │ │ └── restund.init │ └── patches │ │ └── 100-reproducible-builds.patch ├── seafile-ccnet │ ├── Makefile │ └── patches │ │ ├── 010-Makefile.patch │ │ ├── 011-no-python-compile.patch │ │ ├── 020-Remove-API-deprecated-in-openssl-1.1.patch │ │ └── 030-uci-conf.patch ├── seafile-seahub │ ├── Django-1.11.txt │ ├── Makefile │ └── patches │ │ ├── 020-Makefile-fixes.patch │ │ ├── 030-uci-conf.patch │ │ └── 040-manage-shebang.patch ├── seafile-server │ ├── Makefile │ ├── README.md │ ├── files │ │ ├── create-seafile-admin.sh │ │ ├── seafile-server.config │ │ ├── seafile-server.init │ │ └── seafile-server.upgrade │ └── patches │ │ ├── 010-configure-libevent_openssl.patch │ │ ├── 011-configure-liconv.patch │ │ ├── 012-automake-no-python-compile.patch │ │ ├── 020-installpath.patch │ │ ├── 021-bin-paths.patch │ │ ├── 022-uci-conf.patch │ │ ├── 023-pgrep-patterns.patch │ │ ├── 024-seahub-pyc.patch │ │ ├── 025-command-names.patch │ │ ├── 030-controller-pid-dir-permissions.patch │ │ ├── 031-sqlite2mysql-bash-python3.patch │ │ ├── 032-seafile-no-stat.patch │ │ ├── 033-seahub-do-not-create-admin.patch │ │ ├── 034-seaf-fuse-no-fuse_opt_h.patch │ │ ├── 040-setup-skip-dir-check.patch │ │ ├── 041-setup-add-custom-seahub-settings.patch │ │ ├── 042-setup-skip-user-manuals.patch │ │ ├── 043-setup-skip-server-symlink.patch │ │ ├── 044-setup-sleep-whole-number.patch │ │ ├── 045-setup-copy-default-avatars.patch │ │ ├── 046-setup-show-create-admin-message.patch │ │ ├── 050-libseafile-makefile-fixes.patch │ │ ├── 060-timestamps-as-int64.patch │ │ ├── 110-libevhtp-linking.patch │ │ ├── 120-recent-libevhtp.patch │ │ └── 130-newer-libevhtp.patch ├── sipsak │ ├── Makefile │ └── patches │ │ ├── 001-ssp.patch │ │ └── 002-no_cares_ruli.patch ├── smap │ ├── Makefile │ └── patches │ │ ├── 00-fix-broadcast.patch │ │ ├── 01-add-tecom-supported-header.patch │ │ └── 02-segfault-and-toofast-bugfixes.patch ├── snort │ ├── Config.in │ ├── Makefile │ ├── files │ │ ├── snort.config │ │ └── snort.init │ └── patches │ │ ├── 001-compile.patch │ │ ├── 002-fix_include.patch │ │ ├── 003-include-tirpc.patch │ │ └── 900-Convert-project-to-PCRE2.patch ├── tor-fw-helper │ └── Makefile ├── trojan-go │ ├── Makefile │ └── test.sh ├── vncrepeater │ ├── Makefile │ └── patches │ │ ├── 001-uclibcxx_linking.patch │ │ └── 002-cfg-path.patch ├── wifidog-ng │ ├── Makefile │ ├── files │ │ ├── ssl.crt │ │ ├── ssl.key │ │ ├── wifidog-ng.config │ │ ├── wifidog-ng.hotplug │ │ ├── wifidog-ng.init │ │ ├── wifidog-ng.lua │ │ └── wifidog-ng │ │ │ ├── auth.lua │ │ │ ├── config.lua │ │ │ ├── heartbeat.lua │ │ │ ├── ubus.lua │ │ │ ├── util.lua │ │ │ └── version.lua │ └── src │ │ ├── Makefile │ │ ├── config.c │ │ ├── config.h │ │ ├── main.c │ │ └── utils.h └── yaaw │ └── Makefile ├── sound ├── shairplay │ ├── Makefile │ ├── files │ │ ├── shairplay.config │ │ └── shairplay.init │ └── patches │ │ ├── 001-key_file_dir.patch │ │ ├── 003-fix_big-endian.patch │ │ └── 010-configure-only-check-for-dns_sd.h-in-case-libdl-was-.patch └── shairport │ ├── Makefile │ ├── files │ ├── shairport.config │ └── shairport.init │ └── patches │ └── 001-disable_pulseaudio.patch └── utils ├── infozip ├── Makefile └── patches │ ├── 001-unix-configure-borrow-the-LFS-test-from-autotools.patch │ ├── 010-remove-build-date.patch │ └── 020-format.patch ├── ntfsprogs ├── Makefile └── patches │ └── 001-autoconf_fixes.patch ├── restorefactory ├── Makefile └── files │ ├── hotplug_restorefactory │ └── uci_defaults_restorefactory ├── shinit ├── Makefile └── files │ └── etc │ ├── profile.d │ └── shinit.sh │ └── shinit └── yunbridge ├── Makefile ├── files ├── etc │ ├── config │ │ └── yunbridge │ └── init.d │ │ └── yunbridge ├── sbin │ └── yunbridge └── usr │ ├── bin │ └── pretty-wifi-info.lua │ └── lib │ └── lua │ └── luci │ ├── controller │ └── arduino │ │ └── index.lua │ └── sha256.lua └── patches └── 000-scripts.patch /README: -------------------------------------------------------------------------------- 1 | This is an OpenWrt package feed containing abandoned or broken packages. 2 | 3 | To use these packages, add the following line to the feeds.conf 4 | in the OpenWrt buildroot: 5 | 6 | src-git openwrt-abandoned git://github.com/openwrt/packages-abandoned.git 7 | 8 | Update the feed: 9 | 10 | ./scripts/feeds update openwrt-abandoned 11 | 12 | Activate the packages: 13 | 14 | ./scripts/feeds install -a -p openwrt-abandoned 15 | 16 | The extra packages should now appear in menuconfig. 17 | 18 | -------------------------------------------------------------------------------- /admin/asterisk11-gui/files/gui_manager.conf: -------------------------------------------------------------------------------- 1 | ; 2 | ; Asterisk Call Management support 3 | ; 4 | 5 | ; By default asterisk will listen on localhost only. 6 | [general] 7 | enabled = yes 8 | webenabled=yes 9 | port = 5038 10 | bindaddr = 0.0.0.0 11 | 12 | ; No access is allowed by default. 13 | ; To set a password, create a file in /etc/asterisk/manager.d 14 | ; use creative permission games to allow other serivces to create their own 15 | ; files 16 | 17 | #[admin] 18 | # secret = securePassword 19 | # read = system,call,log,verbose,command,agent,config 20 | # write = system,call,log,verbose,command,agent,config 21 | 22 | -------------------------------------------------------------------------------- /admin/asterisk11-gui/files/gui_users.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openwrt/packages-abandoned/6b44abff226586f2d1f4920281c0d4a857f1bdc5/admin/asterisk11-gui/files/gui_users.conf -------------------------------------------------------------------------------- /admin/asterisk18-gui/files/asterisk-gui.init: -------------------------------------------------------------------------------- 1 | #!/bin/sh /etc/rc.common 2 | START=99 3 | start() { 4 | [ ! -L /var/lib/asterisk ] && { 5 | mkdir /var/lib -p 6 | ln -sf /usr/lib/asterisk /var/lib/asterisk 7 | } 8 | } 9 | 10 | stop() { 11 | [ -L /var/lib/asterisk ] && { 12 | rm /var/lib/asterisk 13 | } 14 | } 15 | 16 | restart() { 17 | stop 18 | start 19 | } 20 | 21 | -------------------------------------------------------------------------------- /admin/asterisk18-gui/files/gui_manager.conf: -------------------------------------------------------------------------------- 1 | ; 2 | ; Asterisk Call Management support 3 | ; 4 | 5 | ; By default asterisk will listen on localhost only. 6 | [general] 7 | enabled = yes 8 | webenabled=yes 9 | port = 5038 10 | bindaddr = 0.0.0.0 11 | 12 | ; No access is allowed by default. 13 | ; To set a password, create a file in /etc/asterisk/manager.d 14 | ; use creative permission games to allow other serivces to create their own 15 | ; files 16 | 17 | #[admin] 18 | # secret = securePassword 19 | # read = system,call,log,verbose,command,agent,config 20 | # write = system,call,log,verbose,command,agent,config 21 | 22 | -------------------------------------------------------------------------------- /admin/asterisk18-gui/files/gui_users.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openwrt/packages-abandoned/6b44abff226586f2d1f4920281c0d4a857f1bdc5/admin/asterisk18-gui/files/gui_users.conf -------------------------------------------------------------------------------- /ipv6/miredo/files/miredo.init: -------------------------------------------------------------------------------- 1 | #!/bin/sh /etc/rc.common 2 | 3 | USE_PROCD=1 4 | START=41 5 | 6 | PROG=/usr/sbin/miredo 7 | CONFFILE=/etc/miredo/miredo.conf 8 | 9 | start_service() { 10 | procd_open_instance 11 | procd_set_param command $PROG -f -c $CONFFILE 12 | procd_set_param respawn 13 | procd_set_param file $CONFFILE 14 | procd_set_param stdout 1 # forward stdout of the command to logd 15 | procd_set_param stderr 1 # same for stderr 16 | procd_close_instance 17 | } 18 | -------------------------------------------------------------------------------- /ipv6/miredo/patches/001-fix-musl-pthread-non-portable.patch: -------------------------------------------------------------------------------- 1 | --- a/libteredo/debug.h 2 | +++ b/libteredo/debug.h 3 | @@ -43,8 +43,10 @@ static inline void debug (const char *st 4 | # ifdef __linux__ 5 | # include 6 | # include 7 | -# undef PTHREAD_MUTEX_INITIALIZER 8 | -# define PTHREAD_MUTEX_INITIALIZER PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP 9 | +# if defined(PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP) 10 | +# undef PTHREAD_MUTEX_INITIALIZER 11 | +# define PTHREAD_MUTEX_INITIALIZER PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP 12 | +# endif 13 | 14 | static inline int 15 | d_pthread_mutex_init (pthread_mutex_t *mutex, pthread_mutexattr_t *pattr) 16 | @@ -57,7 +59,7 @@ d_pthread_mutex_init (pthread_mutex_t *m 17 | pthread_mutexattr_init (&attr); 18 | } 19 | 20 | - pthread_mutexattr_settype (pattr, PTHREAD_MUTEX_ERRORCHECK_NP); 21 | + pthread_mutexattr_settype (pattr, PTHREAD_MUTEX_ERRORCHECK); 22 | int res = pthread_mutex_init (mutex, pattr); 23 | 24 | if (pattr == &attr) 25 | -------------------------------------------------------------------------------- /ipv6/miredo/patches/002-fix-redefinition-ethadr.patch: -------------------------------------------------------------------------------- 1 | --- a/libtun6/tun6.c 2 | +++ b/libtun6/tun6.c 3 | @@ -53,7 +53,7 @@ 4 | const char os_driver[] = "Linux"; 5 | # define USE_LINUX 1 6 | 7 | -# include // TUNSETIFF - Linux tunnel driver 8 | +# include // TUNSETIFF - Linux tunnel driver, ETH_P_IPV6 9 | /* 10 | * conflicts with and , 11 | * so we've got to declare this structure by hand. 12 | @@ -65,7 +65,7 @@ struct in6_ifreq { 13 | }; 14 | 15 | # include // struct in6_rtmsg 16 | -# include // ETH_P_IPV6 17 | +//# include // ETH_P_IPV6 18 | 19 | typedef struct 20 | { 21 | -------------------------------------------------------------------------------- /ipv6/miredo/patches/004-reproducible.patch: -------------------------------------------------------------------------------- 1 | From: Tomasz Buchert 2 | Date: Fri, 6 Feb 2015 11:33:20 +0100 3 | Subject: Fix reproducibility issues 4 | 5 | We replace unreproducible CC macros with 6 | N/A placeholders. This fixes #776716. 7 | --- 8 | src/main.c | 6 +++--- 9 | 1 file changed, 3 insertions(+), 3 deletions(-) 10 | 11 | --- a/src/main.c 12 | +++ b/src/main.c 13 | @@ -92,10 +92,11 @@ miredo_version (void) 14 | #ifndef VERSION 15 | # define VERSION "unknown version" 16 | #endif 17 | + const char* UNKNOWN = "N/A"; 18 | printf (_("Miredo: Teredo IPv6 tunneling software %s (%s)\n" 19 | " built %s on %s (%s)\n"), 20 | - VERSION, PACKAGE_HOST, __DATE__, 21 | - PACKAGE_BUILD_HOSTNAME, PACKAGE_BUILD); 22 | + VERSION, UNKNOWN, UNKNOWN, 23 | + UNKNOWN, UNKNOWN); 24 | printf (_("Configured with: %s\n"), PACKAGE_CONFIGURE_INVOCATION); 25 | puts (_("Written by Remi Denis-Courmont.\n")); 26 | 27 | -------------------------------------------------------------------------------- /lang/jamvm/patches/010-musl.patch: -------------------------------------------------------------------------------- 1 | --- a/src/os/linux/os.c 2 | +++ b/src/os/linux/os.c 3 | @@ -26,6 +26,9 @@ 4 | #include 5 | 6 | #define __USE_GNU 7 | +#ifndef _GNU_SOURCE 8 | +#define _GNU_SOURCE 9 | +#endif 10 | #include 11 | #include 12 | 13 | -------------------------------------------------------------------------------- /lang/node-mozilla-iot-gateway/Config.in: -------------------------------------------------------------------------------- 1 | if PACKAGE_node-mozilla-iot-gateway 2 | 3 | comment "Optional features" 4 | 5 | config MOIT_enable-plugin-support 6 | bool "Enable packages needed for some plugins" 7 | default y 8 | 9 | endif 10 | -------------------------------------------------------------------------------- /lang/node-mozilla-iot-gateway/files/mozilla-iot-gateway.init: -------------------------------------------------------------------------------- 1 | #!/bin/sh /etc/rc.common 2 | 3 | START=99 4 | 5 | USE_PROCD=1 6 | 7 | HOME=/root 8 | MOZIOT_HOME="${HOME}/.mozilla-iot" 9 | export PATH="/opt/mozilla-iot/gateway/tools:${PATH}" 10 | 11 | start_service() 12 | { 13 | mkdir -p /usr/etc/ 14 | ln -sf /etc/openzwave /usr/etc/openzwave 15 | 16 | procd_open_instance mozilla-iot-gateway 17 | procd_set_param command /usr/bin/npm start --prefix /opt/mozilla-iot/gateway 18 | procd_set_param stdout 1 19 | procd_set_param stderr 1 20 | procd_close_instance 21 | } 22 | -------------------------------------------------------------------------------- /lang/python/django-picklefield/patches/001-no-import-self-during-setup.patch: -------------------------------------------------------------------------------- 1 | --- a/setup.py 2 | +++ b/setup.py 3 | @@ -2,14 +2,14 @@ from __future__ import unicode_literals 4 | 5 | from setuptools import find_packages, setup 6 | 7 | -import picklefield 8 | +import os 9 | 10 | with open('README.rst') as file_: 11 | long_description = file_.read() 12 | 13 | setup( 14 | name='django-picklefield', 15 | - version=picklefield.__version__, 16 | + version=os.getenv('PKG_VERSION'), 17 | description='Pickled object field for Django', 18 | long_description=long_description, 19 | author='Simon Charette', 20 | -------------------------------------------------------------------------------- /lang/python/django1/patches/001-load-byte-compiled-db-migrations.patch: -------------------------------------------------------------------------------- 1 | --- a/django/db/migrations/loader.py 2 | +++ b/django/db/migrations/loader.py 3 | @@ -106,7 +106,7 @@ class MigrationLoader(object): 4 | # Scan for .py files 5 | migration_names = set() 6 | for name in os.listdir(directory): 7 | - if name.endswith(".py"): 8 | + if name.endswith(".py") or name.endswith(".pyc"): 9 | import_name = name.rsplit(".", 1)[0] 10 | if import_name[0] not in "_.~": 11 | migration_names.add(import_name) 12 | -------------------------------------------------------------------------------- /lang/python/pyjwt/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # This is free software, licensed under the GNU General Public License v2. 3 | # See /LICENSE for more information. 4 | # 5 | 6 | include $(TOPDIR)/rules.mk 7 | 8 | PKG_NAME:=pyjwt 9 | PKG_VERSION:=2.2.0 10 | PKG_RELEASE:=1 11 | 12 | PKG_MAINTAINER:=Eneas U de Queiroz 13 | PKG_LICENSE:=MIT 14 | PKG_LICENSE_FILES:=LICENSE 15 | 16 | PYPI_NAME:=PyJWT 17 | PKG_HASH:=a0b9a3b4e5ca5517cac9f1a6e9cd30bf1aa80be74fcdf4e28eded582ecfcfbae 18 | 19 | include ../pypi.mk 20 | include $(INCLUDE_DIR)/package.mk 21 | include ../python3-package.mk 22 | 23 | define Package/python3-pyjwt 24 | SUBMENU:=Python 25 | SECTION:=lang 26 | CATEGORY:=Languages 27 | TITLE:=JSON Web Token implementation in Python 28 | URL:=http://github.com/jpadilla/pyjwt 29 | DEPENDS:=+python3 30 | endef 31 | 32 | define Package/python3-pyjwt/description 33 | A Python implementation of RFC 7519. 34 | endef 35 | 36 | $(eval $(call Py3Package,python3-pyjwt)) 37 | $(eval $(call BuildPackage,python3-pyjwt)) 38 | $(eval $(call BuildPackage,python3-pyjwt-src)) 39 | -------------------------------------------------------------------------------- /lang/python/pypi.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2019 Jeffery To 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | ifndef DUMP 9 | ifdef __package_mk 10 | $(warning pypi.mk should be included before package.mk) 11 | endif 12 | endif 13 | 14 | ifneq ($(strip $(PYPI_NAME)),) 15 | PYPI_SOURCE_NAME?=$(PYPI_NAME) 16 | PYPI_SOURCE_EXT?=tar.gz 17 | PYPI_NAME_FIRST_LETTER?=$(strip $(foreach a,$(chars_lower) $(chars_upper) 0 1 2 3 4 5 6 7 8 9 _ -,$(if $(PYPI_NAME:$a%=),,$a))) 18 | 19 | PKG_SOURCE?=$(PYPI_SOURCE_NAME)-$(PKG_VERSION).$(PYPI_SOURCE_EXT) 20 | PKG_SOURCE_URL?=https://files.pythonhosted.org/packages/source/$(PYPI_NAME_FIRST_LETTER)/$(PYPI_NAME) 21 | 22 | PKG_BUILD_DIR:=$(BUILD_DIR)/pypi/$(if $(BUILD_VARIANT),$(PKG_NAME)-$(BUILD_VARIANT)/)$(PYPI_SOURCE_NAME)$(if $(PKG_VERSION),-$(PKG_VERSION)) 23 | HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/pypi/$(PYPI_SOURCE_NAME)$(if $(PKG_VERSION),-$(PKG_VERSION)) 24 | endif 25 | -------------------------------------------------------------------------------- /lang/python/python-crypto/patches/001-no-host-paths.patch: -------------------------------------------------------------------------------- 1 | --- a/setup.py 2 | +++ b/setup.py 3 | @@ -370,7 +370,7 @@ kw = {'name':"pycrypto", 4 | 'ext_modules': plat_ext + [ 5 | # _fastmath (uses GNU mp library) 6 | Extension("Crypto.PublicKey._fastmath", 7 | - include_dirs=['src/','/usr/include/'], 8 | + include_dirs=['src/'], 9 | libraries=['gmp'], 10 | sources=["src/_fastmath.c"]), 11 | 12 | -------------------------------------------------------------------------------- /lang/python/python-crypto/patches/002-fix-endianness-detect.patch: -------------------------------------------------------------------------------- 1 | --- a/setup.py 2 | +++ b/setup.py 3 | @@ -100,6 +100,10 @@ def PrintErr(*args, **kwd): 4 | w(kwd.get("end", "\n")) 5 | 6 | def endianness_macro(): 7 | + if os.environ["CONFIG_BIG_ENDIAN"] == "y": 8 | + return ('PCT_BIG_ENDIAN', 1) 9 | + else: 10 | + return ('PCT_LITTLE_ENDIAN', 1) 11 | s = struct.pack("@I", 0x33221100) 12 | if s == "\x00\x11\x22\x33".encode(): # little endian 13 | return ('PCT_LITTLE_ENDIAN', 1) 14 | -------------------------------------------------------------------------------- /lang/python/python-crypto/patches/003-omit-tests.patch: -------------------------------------------------------------------------------- 1 | --- a/setup.py 2 | +++ b/setup.py 3 | @@ -357,16 +357,6 @@ kw = {'name':"pycrypto", 4 | "Crypto.Random", 5 | "Crypto.Random.Fortuna", 6 | "Crypto.Random.OSRNG", 7 | - "Crypto.SelfTest", 8 | - "Crypto.SelfTest.Cipher", 9 | - "Crypto.SelfTest.Hash", 10 | - "Crypto.SelfTest.Protocol", 11 | - "Crypto.SelfTest.PublicKey", 12 | - "Crypto.SelfTest.Random", 13 | - "Crypto.SelfTest.Random.Fortuna", 14 | - "Crypto.SelfTest.Random.OSRNG", 15 | - "Crypto.SelfTest.Util", 16 | - "Crypto.SelfTest.Signature", 17 | "Crypto.Protocol", 18 | "Crypto.PublicKey", 19 | "Crypto.Signature"], 20 | -------------------------------------------------------------------------------- /lang/python/python2-automat/patches/001-do-not-use-setuptools-scm-m2r.patch: -------------------------------------------------------------------------------- 1 | --- a/setup.py 2 | +++ b/setup.py 3 | @@ -2,6 +2,7 @@ 4 | Setup file for automat 5 | """ 6 | 7 | +import os 8 | from setuptools import setup, find_packages 9 | 10 | try: 11 | @@ -14,7 +15,7 @@ except(IOError, ImportError): 12 | 13 | setup( 14 | name='Automat', 15 | - use_scm_version=True, 16 | + version=os.getenv('PKG_VERSION'), 17 | url='https://github.com/glyph/Automat', 18 | description=""" 19 | Self-service finite-state machines for the programmer on the go. 20 | @@ -22,10 +23,6 @@ setup( 21 | long_description=long_description, 22 | packages=find_packages(exclude=[]), 23 | package_dir={'automat': 'automat'}, 24 | - setup_requires=[ 25 | - 'setuptools-scm', 26 | - 'm2r', 27 | - ], 28 | install_requires=[ 29 | "attrs>=19.2.0", 30 | "six", 31 | -------------------------------------------------------------------------------- /lang/python/python2-automat/patches/002-omit-visualize.patch: -------------------------------------------------------------------------------- 1 | --- a/setup.py 2 | +++ b/setup.py 3 | @@ -27,15 +27,6 @@ setup( 4 | "attrs>=19.2.0", 5 | "six", 6 | ], 7 | - extras_require={ 8 | - "visualize": ["graphviz>0.5.1", 9 | - "Twisted>=16.1.1"], 10 | - }, 11 | - entry_points={ 12 | - "console_scripts": [ 13 | - "automat-visualize = automat._visualize:tool" 14 | - ], 15 | - }, 16 | author='Glyph', 17 | author_email='glyph@twistedmatrix.com', 18 | include_package_data=True, 19 | -------------------------------------------------------------------------------- /lang/python/python2-automat/patches/003-omit-tests.patch: -------------------------------------------------------------------------------- 1 | --- a/setup.py 2 | +++ b/setup.py 3 | @@ -21,7 +21,7 @@ setup( 4 | Self-service finite-state machines for the programmer on the go. 5 | """.strip(), 6 | long_description=long_description, 7 | - packages=find_packages(exclude=[]), 8 | + packages=find_packages(exclude=["*._test", "*._test.*"]), 9 | package_dir={'automat': 'automat'}, 10 | install_requires=[ 11 | "attrs>=19.2.0", 12 | @@ -30,6 +30,7 @@ setup( 13 | author='Glyph', 14 | author_email='glyph@twistedmatrix.com', 15 | include_package_data=True, 16 | + exclude_package_data={'':['_test/*']}, 17 | license="MIT", 18 | keywords='fsm finite state machine automata', 19 | classifiers=[ 20 | -------------------------------------------------------------------------------- /lang/python/python2-crypto/patches/001-no-host-paths.patch: -------------------------------------------------------------------------------- 1 | --- a/setup.py 2 | +++ b/setup.py 3 | @@ -370,7 +370,7 @@ kw = {'name':"pycrypto", 4 | 'ext_modules': plat_ext + [ 5 | # _fastmath (uses GNU mp library) 6 | Extension("Crypto.PublicKey._fastmath", 7 | - include_dirs=['src/','/usr/include/'], 8 | + include_dirs=['src/'], 9 | libraries=['gmp'], 10 | sources=["src/_fastmath.c"]), 11 | 12 | -------------------------------------------------------------------------------- /lang/python/python2-crypto/patches/002-fix-endianness-detect.patch: -------------------------------------------------------------------------------- 1 | --- a/setup.py 2 | +++ b/setup.py 3 | @@ -100,6 +100,10 @@ def PrintErr(*args, **kwd): 4 | w(kwd.get("end", "\n")) 5 | 6 | def endianness_macro(): 7 | + if os.environ["CONFIG_BIG_ENDIAN"] == "y": 8 | + return ('PCT_BIG_ENDIAN', 1) 9 | + else: 10 | + return ('PCT_LITTLE_ENDIAN', 1) 11 | s = struct.pack("@I", 0x33221100) 12 | if s == "\x00\x11\x22\x33".encode(): # little endian 13 | return ('PCT_LITTLE_ENDIAN', 1) 14 | -------------------------------------------------------------------------------- /lang/python/python2-crypto/patches/003-omit-tests.patch: -------------------------------------------------------------------------------- 1 | --- a/setup.py 2 | +++ b/setup.py 3 | @@ -357,16 +357,6 @@ kw = {'name':"pycrypto", 4 | "Crypto.Random", 5 | "Crypto.Random.Fortuna", 6 | "Crypto.Random.OSRNG", 7 | - "Crypto.SelfTest", 8 | - "Crypto.SelfTest.Cipher", 9 | - "Crypto.SelfTest.Hash", 10 | - "Crypto.SelfTest.Protocol", 11 | - "Crypto.SelfTest.PublicKey", 12 | - "Crypto.SelfTest.Random", 13 | - "Crypto.SelfTest.Random.Fortuna", 14 | - "Crypto.SelfTest.Random.OSRNG", 15 | - "Crypto.SelfTest.Util", 16 | - "Crypto.SelfTest.Signature", 17 | "Crypto.Protocol", 18 | "Crypto.PublicKey", 19 | "Crypto.Signature"], 20 | -------------------------------------------------------------------------------- /lang/python/python2-cryptodome/patches/001-fix-libgmp-loading.patch: -------------------------------------------------------------------------------- 1 | --- a/lib/Crypto/Math/_IntegerGMP.py 2 | +++ b/lib/Crypto/Math/_IntegerGMP.py 3 | @@ -92,7 +92,7 @@ gmp_defs = """typedef unsigned long UNIX_ULONG; 4 | int __gmpz_divisible_ui_p (const mpz_t n, UNIX_ULONG d); 5 | """ 6 | 7 | -lib = load_lib("gmp", gmp_defs) 8 | +lib = load_lib("libgmp.so.10", gmp_defs) 9 | implementation = {"library": "gmp", "api": backend} 10 | 11 | if hasattr(lib, "__mpir_version"): 12 | -------------------------------------------------------------------------------- /lang/python/python2-cryptodome/patches/002-omit-tests.patch: -------------------------------------------------------------------------------- 1 | --- a/setup.py 2 | +++ b/setup.py 3 | @@ -293,6 +293,9 @@ package_data = { 4 | ], 5 | } 6 | 7 | +packages = [i for i in packages if not i.startswith('Crypto.SelfTest')] 8 | +package_data = {k: v for k, v in package_data.items() if not k.startswith('Crypto.SelfTest')} 9 | + 10 | ext_modules = [ 11 | # Hash functions 12 | Extension("Crypto.Hash._MD2", 13 | -------------------------------------------------------------------------------- /lang/python/python2-cryptodomex/patches/001-fix-libgmp-loading.patch: -------------------------------------------------------------------------------- 1 | --- a/lib/Cryptodome/Math/_IntegerGMP.py 2 | +++ b/lib/Cryptodome/Math/_IntegerGMP.py 3 | @@ -92,7 +92,7 @@ gmp_defs = """typedef unsigned long UNIX_ULONG; 4 | int __gmpz_divisible_ui_p (const mpz_t n, UNIX_ULONG d); 5 | """ 6 | 7 | -lib = load_lib("gmp", gmp_defs) 8 | +lib = load_lib("libgmp.so.10", gmp_defs) 9 | implementation = {"library": "gmp", "api": backend} 10 | 11 | if hasattr(lib, "__mpir_version"): 12 | -------------------------------------------------------------------------------- /lang/python/python2-cryptodomex/patches/002-omit-tests.patch: -------------------------------------------------------------------------------- 1 | --- a/setup.py 2 | +++ b/setup.py 3 | @@ -293,6 +293,9 @@ package_data = { 4 | ], 5 | } 6 | 7 | +packages = [i for i in packages if not i.startswith('Crypto.SelfTest')] 8 | +package_data = {k: v for k, v in package_data.items() if not k.startswith('Crypto.SelfTest')} 9 | + 10 | ext_modules = [ 11 | # Hash functions 12 | Extension("Crypto.Hash._MD2", 13 | -------------------------------------------------------------------------------- /lang/python/python2-cryptography/patches/001-disable-setup-requirements.patch: -------------------------------------------------------------------------------- 1 | --- a/setup.py 2 | +++ b/setup.py 3 | @@ -243,6 +243,7 @@ class DummyPyTest(test): 4 | with open(os.path.join(base_dir, "README.rst")) as f: 5 | long_description = f.read() 6 | 7 | +setup_requirements=[] 8 | 9 | setup( 10 | name=about["__title__"], 11 | -------------------------------------------------------------------------------- /lang/python/python2-cryptography/patches/020-disable-npn.patch: -------------------------------------------------------------------------------- 1 | From d7293d64d503fcbde442d69a3e11c55bf6f1374a Mon Sep 17 00:00:00 2001 2 | From: Paul Kehrer 3 | Date: Mon, 25 Feb 2019 11:05:46 +0800 4 | Subject: [PATCH] set Cryptography_HAS_NEXTPROTONEG to 0 for pyOpenSSL 5 | 6 | we can remove this symbol in like...5 years. 7 | --- 8 | src/_cffi_src/openssl/ssl.py | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | diff --git a/src/_cffi_src/openssl/ssl.py b/src/_cffi_src/openssl/ssl.py 12 | index 0e8610f988..e3a7790ee1 100644 13 | --- a/src/_cffi_src/openssl/ssl.py 14 | +++ b/src/_cffi_src/openssl/ssl.py 15 | @@ -623,7 +623,7 @@ 16 | static const long Cryptography_HAS_SSL_OP_MSIE_SSLV2_RSA_PADDING = 1; 17 | static const long Cryptography_HAS_SSL_OP_NO_TICKET = 1; 18 | static const long Cryptography_HAS_SSL_SET_SSL_CTX = 1; 19 | -static const long Cryptography_HAS_NEXTPROTONEG = 1; 20 | +static const long Cryptography_HAS_NEXTPROTONEG = 0; 21 | 22 | /* SSL_get0_param was added in OpenSSL 1.0.2. */ 23 | #if CRYPTOGRAPHY_OPENSSL_LESS_THAN_102 && !CRYPTOGRAPHY_LIBRESSL_27_OR_GREATER 24 | -------------------------------------------------------------------------------- /lang/python/python2-cryptography/patches/030-remove-npn.patch: -------------------------------------------------------------------------------- 1 | From b0b50b6bbbdf3abadc70b64c56e25b872721a7f3 Mon Sep 17 00:00:00 2001 2 | From: Paul Kehrer 3 | Date: Mon, 25 Feb 2019 11:12:10 +0800 4 | Subject: [PATCH] remove another NPN related definition 5 | 6 | --- 7 | src/_cffi_src/openssl/ssl.py | 2 -- 8 | 1 file changed, 2 deletions(-) 9 | 10 | diff --git a/src/_cffi_src/openssl/ssl.py b/src/_cffi_src/openssl/ssl.py 11 | index e3a7790ee1..f98f576838 100644 12 | --- a/src/_cffi_src/openssl/ssl.py 13 | +++ b/src/_cffi_src/openssl/ssl.py 14 | @@ -139,8 +139,6 @@ 15 | static const long TLS_ST_BEFORE; 16 | static const long TLS_ST_OK; 17 | 18 | -static const long OPENSSL_NPN_NEGOTIATED; 19 | - 20 | typedef ... SSL_METHOD; 21 | typedef ... SSL_CTX; 22 | 23 | -------------------------------------------------------------------------------- /lang/python/python2-django-picklefield/patches/001-no-import-self-during-setup.patch: -------------------------------------------------------------------------------- 1 | --- a/setup.py 2 | +++ b/setup.py 3 | @@ -2,14 +2,14 @@ from __future__ import unicode_literals 4 | 5 | from setuptools import find_packages, setup 6 | 7 | -import picklefield 8 | +import os 9 | 10 | with open('README.rst') as file_: 11 | long_description = file_.read() 12 | 13 | setup( 14 | name='django-picklefield', 15 | - version=picklefield.__version__, 16 | + version=os.getenv('PKG_VERSION'), 17 | description='Pickled object field for Django', 18 | long_description=long_description, 19 | author='Simon Charette', 20 | -------------------------------------------------------------------------------- /lang/python/python2-django1/patches/001-load-byte-compiled-db-migrations.patch: -------------------------------------------------------------------------------- 1 | --- a/django/db/migrations/loader.py 2 | +++ b/django/db/migrations/loader.py 3 | @@ -106,7 +106,7 @@ class MigrationLoader(object): 4 | # Scan for .py files 5 | migration_names = set() 6 | for name in os.listdir(directory): 7 | - if name.endswith(".py"): 8 | + if name.endswith(".py") or name.endswith(".pyc"): 9 | import_name = name.rsplit(".", 1)[0] 10 | if import_name[0] not in "_.~": 11 | migration_names.add(import_name) 12 | -------------------------------------------------------------------------------- /lang/python/python2-enum34/patches/001-omit-docs.patch: -------------------------------------------------------------------------------- 1 | --- a/setup.py 2 | +++ b/setup.py 3 | @@ -71,15 +71,6 @@ data = dict( 4 | version='1.1.10', 5 | url='https://bitbucket.org/stoneleaf/enum34', 6 | packages=packages, 7 | - package_data={ 8 | - 'enum' : [ 9 | - 'LICENSE', 10 | - 'README', 11 | - 'doc/enum.rst', 12 | - 'doc/enum.pdf', 13 | - 'test.py', 14 | - ] 15 | - }, 16 | license='BSD License', 17 | description='Python 3.4 Enum backported to 3.3, 3.2, 3.1, 2.7, 2.6, 2.5, and 2.4', 18 | long_description=long_desc, 19 | -------------------------------------------------------------------------------- /lang/python/python2-futures/Makefile: -------------------------------------------------------------------------------- 1 | include $(TOPDIR)/rules.mk 2 | 3 | PKG_NAME:=python2-futures 4 | PKG_VERSION:=3.2.0 5 | PKG_RELEASE:=1 6 | 7 | PYPI_NAME:=futures 8 | PKG_HASH:=9ec02aa7d674acb8618afb127e27fde7fc68994c0437ad759fa094a574adb265 9 | 10 | PKG_MAINTAINER:=Daniel Danzberger 11 | PKG_LICENSE:=MIT 12 | 13 | include ../pypi.mk 14 | include $(INCLUDE_DIR)/package.mk 15 | include ../python2-package.mk 16 | 17 | define Package/python2-futures 18 | SUBMENU:=Python 19 | SECTION:=lang 20 | CATEGORY:=Languages 21 | TITLE:=futures 22 | URL:=https://github.com/agronholm/pythonfutures 23 | DEPENDS:=+python2 24 | VARIANT:=python2 25 | endef 26 | 27 | define Package/python2-futures/description 28 | This is a backport of the concurrent.futures standard library module to Python 2. 29 | It should not be installed on Python 3, although there should be no harm in doing so, 30 | as the standard library takes precedence over third party libraries. 31 | endef 32 | 33 | $(eval $(call Py2Package,python2-futures)) 34 | $(eval $(call BuildPackage,python2-futures)) 35 | $(eval $(call BuildPackage,python2-futures-src)) 36 | -------------------------------------------------------------------------------- /lang/python/python2-hyperlink/patches/001-omit-tests.patch: -------------------------------------------------------------------------------- 1 | --- a/setup.py 2 | +++ b/setup.py 3 | @@ -24,8 +24,9 @@ setup(name='hyperlink', 4 | author=__author__, 5 | author_email=__contact__, 6 | url=__url__, 7 | - packages=['hyperlink', 'hyperlink.test'], 8 | + packages=['hyperlink'], 9 | include_package_data=True, 10 | + exclude_package_data={'':['test/*']}, 11 | zip_safe=False, 12 | license=__license__, 13 | platforms='any', 14 | -------------------------------------------------------------------------------- /lang/python/python2-incremental/patches/001-omit-tests.patch: -------------------------------------------------------------------------------- 1 | --- a/setup.py 2 | +++ b/setup.py 3 | @@ -32,7 +32,7 @@ setup( 4 | "Programming Language :: Python :: 3.5", 5 | "Programming Language :: Python :: 3.6", 6 | ], 7 | - packages=find_packages("src", exclude=("exampleproj",)), 8 | + packages=find_packages("src", exclude=("exampleproj", "*.tests", "*.tests.*")), 9 | package_dir={"": "src"}, 10 | extras_require={ 11 | "scripts": [ 12 | -------------------------------------------------------------------------------- /lang/python/python2-parsley/patches/001-py3-read-utf8.patch: -------------------------------------------------------------------------------- 1 | --- a/setup.py 2 | +++ b/setup.py 3 | @@ -4,6 +4,7 @@ 4 | Setup script for the Parsley distribution. 5 | """ 6 | 7 | +import io 8 | from distutils.core import setup 9 | setup( 10 | name="Parsley", 11 | @@ -13,7 +14,7 @@ setup( 12 | author="Allen Short", 13 | author_email="washort42@gmail.com", 14 | license="MIT License", 15 | - long_description=open("README").read(), 16 | + long_description=io.open("README", encoding="utf-8").read(), 17 | packages=["ometa", "terml", "ometa._generated", "terml._generated", 18 | "ometa.test", "terml.test"], 19 | py_modules=["parsley"] 20 | -------------------------------------------------------------------------------- /lang/python/python2-parsley/patches/002-omit-tests.patch: -------------------------------------------------------------------------------- 1 | --- a/setup.py 2 | +++ b/setup.py 3 | @@ -15,7 +15,6 @@ setup( 4 | author_email="washort42@gmail.com", 5 | license="MIT License", 6 | long_description=io.open("README", encoding="utf-8").read(), 7 | - packages=["ometa", "terml", "ometa._generated", "terml._generated", 8 | - "ometa.test", "terml.test"], 9 | + packages=["ometa", "terml", "ometa._generated", "terml._generated"], 10 | py_modules=["parsley"] 11 | ) 12 | -------------------------------------------------------------------------------- /lang/python/python2-pcapy/patches/010-libcxx.patch: -------------------------------------------------------------------------------- 1 | diff --git a/setup.py b/setup.py 2 | index 4da69bc..165059b 100644 3 | --- a/setup.py 4 | +++ b/setup.py 5 | @@ -28,7 +28,7 @@ if sys.platform == 'win32': 6 | library_dirs.append(r'c:\wpdpack\Lib') 7 | libraries = ['wpcap', 'packet', 'ws2_32'] 8 | else: 9 | - libraries = ['pcap', 'stdc++'] 10 | + libraries = ['pcap'] 11 | 12 | 13 | # end of user configurable parameters 14 | -------------------------------------------------------------------------------- /lang/python/python2-pycparser/patches/001-use-external-ply.patch: -------------------------------------------------------------------------------- 1 | --- a/pycparser/c_lexer.py 2 | +++ b/pycparser/c_lexer.py 3 | @@ -9,8 +9,8 @@ 4 | import re 5 | import sys 6 | 7 | -from .ply import lex 8 | -from .ply.lex import TOKEN 9 | +from ply import lex 10 | +from ply.lex import TOKEN 11 | 12 | 13 | class CLexer(object): 14 | --- a/pycparser/c_parser.py 15 | +++ b/pycparser/c_parser.py 16 | @@ -8,7 +8,7 @@ 17 | #------------------------------------------------------------------------------ 18 | import re 19 | 20 | -from .ply import yacc 21 | +from ply import yacc 22 | 23 | from . import c_ast 24 | from .c_lexer import CLexer 25 | --- a/setup.py 26 | +++ b/setup.py 27 | @@ -60,7 +60,7 @@ setup( 28 | 'Programming Language :: Python :: 3.6', 29 | ], 30 | python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*", 31 | - packages=['pycparser', 'pycparser.ply'], 32 | + packages=['pycparser'], 33 | package_data={'pycparser': ['*.cfg']}, 34 | cmdclass={'install': install, 'sdist': sdist}, 35 | ) 36 | -------------------------------------------------------------------------------- /lang/python/python2-twisted/patches/001-omit-tkconch.patch: -------------------------------------------------------------------------------- 1 | --- a/src/twisted/python/_setup.py 2 | +++ b/src/twisted/python/_setup.py 3 | @@ -151,7 +151,6 @@ _CONSOLE_SCRIPTS = [ 4 | "conch = twisted.conch.scripts.conch:run", 5 | "mailmail = twisted.mail.scripts.mailmail:run", 6 | "pyhtmlizer = twisted.scripts.htmlizer:run", 7 | - "tkconch = twisted.conch.scripts.tkconch:run", 8 | "trial = twisted.scripts.trial:run", 9 | "twist = twisted.application.twist._twist:Twist.main", 10 | "twistd = twisted.scripts.twistd:run", 11 | --- a/src/twisted/python/twisted-completion.zsh 12 | +++ b/src/twisted/python/twisted-completion.zsh 13 | @@ -1,4 +1,4 @@ 14 | -#compdef twist twistd trial conch cftp ckeygen pyhtmlizer tkconch 15 | +#compdef twist twistd trial conch cftp ckeygen pyhtmlizer 16 | # 17 | # This is the ZSH completion file for Twisted commands. It calls the current 18 | # command-line with the special "--_shell-completion" option which is handled 19 | -------------------------------------------------------------------------------- /lang/python/python2-txsocksx/patches/001-omit-tests.patch: -------------------------------------------------------------------------------- 1 | --- a/setup.py 2 | +++ b/setup.py 3 | @@ -35,5 +35,5 @@ setup( 4 | 'version_module_paths': ['txsocksx/_version.py'], 5 | }, 6 | install_requires=install_requires, 7 | - packages=['txsocksx', 'txsocksx.test'], 8 | + packages=['txsocksx'], 9 | ) 10 | -------------------------------------------------------------------------------- /lang/python/python2-txsocksx/patches/002-do-not-use-vcversioner.patch: -------------------------------------------------------------------------------- 1 | --- a/setup.py 2 | +++ b/setup.py 3 | @@ -1,6 +1,8 @@ 4 | # Copyright (c) Aaron Gallagher <_@habnab.it> 5 | # See COPYING for details. 6 | 7 | +import os 8 | + 9 | from setuptools import setup 10 | 11 | 12 | @@ -30,10 +32,11 @@ setup( 13 | ], 14 | license='ISC', 15 | 16 | - setup_requires=['vcversioner>=1'], 17 | - vcversioner={ 18 | - 'version_module_paths': ['txsocksx/_version.py'], 19 | - }, 20 | + #setup_requires=['vcversioner>=1'], 21 | + #vcversioner={ 22 | + # 'version_module_paths': ['txsocksx/_version.py'], 23 | + #}, 24 | + version=os.environ.get('PKG_VERSION'), 25 | install_requires=install_requires, 26 | packages=['txsocksx'], 27 | ) 28 | -------------------------------------------------------------------------------- /lang/python/python2-version.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2016 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 | PYTHON2_VERSION:=2.7 9 | PYTHON2_VERSION_MICRO:=17 10 | 11 | PYTHON2_SETUPTOOLS_PKG_RELEASE:=1 12 | PYTHON2_PIP_PKG_RELEASE:=1 13 | 14 | PYTHON2_SETUPTOOLS_VERSION:=41.2.0 15 | PYTHON2_PIP_VERSION:=19.2.3 16 | -------------------------------------------------------------------------------- /lang/python/python2-zope-interface/patches/001-omit-tests.patch: -------------------------------------------------------------------------------- 1 | --- a/setup.py 2 | +++ b/setup.py 3 | @@ -125,7 +125,7 @@ setup(name='zope.interface', 4 | "Framework :: Zope :: 3", 5 | "Topic :: Software Development :: Libraries :: Python Modules", 6 | ], 7 | - packages=find_packages('src'), 8 | + packages=find_packages('src', exclude=["*.tests", "*.tests.*"]), 9 | package_dir={'': 'src'}, 10 | namespace_packages=["zope"], 11 | cmdclass={ 12 | @@ -133,6 +133,7 @@ setup(name='zope.interface', 13 | }, 14 | test_suite='zope.interface.tests', 15 | include_package_data=True, 16 | + exclude_package_data={'':['tests/*']}, 17 | zip_safe=False, 18 | tests_require=tests_require, 19 | install_requires=['setuptools'], 20 | -------------------------------------------------------------------------------- /lang/python/python2/Config-python2-light.in: -------------------------------------------------------------------------------- 1 | menu "Configuration" 2 | 3 | config PYTHON2_BLUETOOTH_SUPPORT 4 | bool "Enable Bluetooth support" 5 | default n 6 | 7 | endmenu 8 | -------------------------------------------------------------------------------- /lang/python/python2/files/config.site: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # 3 | # Copyright (C) 2007-2014 OpenWrt.org 4 | # 5 | # This is free software, licensed under the GNU General Public License v2. 6 | # See /LICENSE for more information. 7 | # 8 | 9 | ac_cv_file__dev_ptmx=yes 10 | ac_cv_file__dev_ptc=no 11 | ac_cv_buggy_getaddrinfo=no 12 | 13 | -------------------------------------------------------------------------------- /lang/python/python2/files/python2-package-codecs.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2006-2016 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 | define Package/python2-codecs 9 | $(call Package/python2/Default) 10 | TITLE:=Python $(PYTHON2_VERSION) codecs + unicode support 11 | DEPENDS:=+python2-light 12 | endef 13 | 14 | $(eval $(call Py2BasePackage,python2-codecs, \ 15 | /usr/lib/python$(PYTHON2_VERSION)/encodings \ 16 | /usr/lib/python$(PYTHON2_VERSION)/lib-dynload/_codecs_cn.so \ 17 | /usr/lib/python$(PYTHON2_VERSION)/lib-dynload/_codecs_hk.so \ 18 | /usr/lib/python$(PYTHON2_VERSION)/lib-dynload/_codecs_iso2022.so \ 19 | /usr/lib/python$(PYTHON2_VERSION)/lib-dynload/_codecs_jp.so \ 20 | /usr/lib/python$(PYTHON2_VERSION)/lib-dynload/_codecs_kr.so \ 21 | /usr/lib/python$(PYTHON2_VERSION)/lib-dynload/_codecs_tw.so \ 22 | /usr/lib/python$(PYTHON2_VERSION)/lib-dynload/unicodedata.so \ 23 | )) 24 | -------------------------------------------------------------------------------- /lang/python/python2/files/python2-package-compiler.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2006-2016 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 | define Package/python2-compiler 9 | $(call Package/python2/Default) 10 | TITLE:=Python $(PYTHON2_VERSION) compiler module 11 | DEPENDS:=+python2-light 12 | endef 13 | 14 | $(eval $(call Py2BasePackage,python2-compiler, \ 15 | /usr/lib/python$(PYTHON2_VERSION)/compiler \ 16 | )) 17 | -------------------------------------------------------------------------------- /lang/python/python2/files/python2-package-ctypes.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2006-2016 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 | define Package/python2-ctypes 9 | $(call Package/python2/Default) 10 | TITLE:=Python $(PYTHON2_VERSION) ctypes module 11 | DEPENDS:=+python2-light 12 | endef 13 | 14 | $(eval $(call Py2BasePackage,python2-ctypes, \ 15 | /usr/lib/python$(PYTHON2_VERSION)/ctypes \ 16 | /usr/lib/python$(PYTHON2_VERSION)/lib-dynload/_ctypes.so \ 17 | /usr/lib/python$(PYTHON2_VERSION)/lib-dynload/_ctypes_test.so \ 18 | )) 19 | -------------------------------------------------------------------------------- /lang/python/python2/files/python2-package-db.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2006-2016 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 | define Package/python2-db 9 | $(call Package/python2/Default) 10 | TITLE:=Python $(PYTHON2_VERSION) db module 11 | DEPENDS:=+python2-light +libdb47 12 | endef 13 | 14 | $(eval $(call Py2BasePackage,python2-db, \ 15 | /usr/lib/python$(PYTHON2_VERSION)/bsddb \ 16 | /usr/lib/python$(PYTHON2_VERSION)/lib-dynload/_bsddb.so \ 17 | /usr/lib/python$(PYTHON2_VERSION)/lib-dynload/dbm.so \ 18 | )) 19 | -------------------------------------------------------------------------------- /lang/python/python2/files/python2-package-decimal.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2006-2016 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 | define Package/python2-decimal 9 | $(call Package/python2/Default) 10 | TITLE:=Python $(PYTHON2_VERSION) decimal module 11 | DEPENDS:=+python2-light 12 | endef 13 | 14 | $(eval $(call Py2BasePackage,python2-decimal, \ 15 | /usr/lib/python$(PYTHON2_VERSION)/decimal.py \ 16 | )) 17 | -------------------------------------------------------------------------------- /lang/python/python2/files/python2-package-dev.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2006-2016 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 | define Package/python2-dev 9 | $(call Package/python2/Default) 10 | TITLE:=Python $(PYTHON2_VERSION) development files 11 | DEPENDS:=+python2 +python2-lib2to3 12 | endef 13 | 14 | define Py2Package/python2-dev/install 15 | $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/lib 16 | $(CP) $(PKG_INSTALL_DIR)/usr/bin/python$(PYTHON2_VERSION)-config $(1)/usr/bin 17 | $(LN) python$(PYTHON2_VERSION)-config $(1)/usr/bin/python2-config 18 | $(LN) python$(PYTHON_VERSION)/config/libpython$(PYTHON2_VERSION).a $(1)/usr/lib/ 19 | endef 20 | 21 | $(eval $(call Py2BasePackage,python2-dev, \ 22 | /usr/lib/python$(PYTHON_VERSION)/config \ 23 | /usr/include/python$(PYTHON_VERSION) \ 24 | /usr/lib/pkgconfig \ 25 | , \ 26 | DO_NOT_ADD_TO_PACKAGE_DEPENDS \ 27 | )) 28 | -------------------------------------------------------------------------------- /lang/python/python2/files/python2-package-distutils.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2006-2016 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 | define Package/python2-distutils 9 | $(call Package/python2/Default) 10 | TITLE:=Python $(PYTHON2_VERSION) distutils 11 | DEPENDS:=+python2-light 12 | endef 13 | 14 | $(eval $(call Py2BasePackage,python2-distutils, \ 15 | /usr/lib/python$(PYTHON2_VERSION)/distutils \ 16 | )) 17 | -------------------------------------------------------------------------------- /lang/python/python2/files/python2-package-email.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2006-2016 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 | define Package/python2-email 9 | $(call Package/python2/Default) 10 | TITLE:=Python $(PYTHON2_VERSION) email module 11 | DEPENDS:=+python2-light 12 | endef 13 | 14 | $(eval $(call Py2BasePackage,python2-email, \ 15 | /usr/lib/python$(PYTHON2_VERSION)/email \ 16 | )) 17 | -------------------------------------------------------------------------------- /lang/python/python2/files/python2-package-gdbm.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2006-2016 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 | define Package/python2-gdbm 9 | $(call Package/python2/Default) 10 | TITLE:=Python $(PYTHON2_VERSION) gdbm module 11 | DEPENDS:=+python2-light +libgdbm 12 | endef 13 | 14 | $(eval $(call Py2BasePackage,python2-gdbm, \ 15 | /usr/lib/python$(PYTHON2_VERSION)/lib-dynload/gdbm.so \ 16 | )) 17 | -------------------------------------------------------------------------------- /lang/python/python2/files/python2-package-lib2to3.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2006-2016 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 | define Package/python2-lib2to3 9 | $(call Package/python2/Default) 10 | TITLE:=Python $(PYTHON2_VERSION) lib2to3 module 11 | DEPENDS:=+python2 12 | endef 13 | 14 | $(eval $(call Py2BasePackage,python2-lib2to3, \ 15 | /usr/lib/python$(PYTHON2_VERSION)/lib2to3 \ 16 | , \ 17 | DO_NOT_ADD_TO_PACKAGE_DEPENDS \ 18 | )) 19 | -------------------------------------------------------------------------------- /lang/python/python2/files/python2-package-logging.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2006-2016 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 | define Package/python2-logging 9 | $(call Package/python2/Default) 10 | TITLE:=Python $(PYTHON2_VERSION) logging module 11 | DEPENDS:=+python2-light 12 | endef 13 | 14 | $(eval $(call Py2BasePackage,python2-logging, \ 15 | /usr/lib/python$(PYTHON2_VERSION)/logging \ 16 | )) 17 | -------------------------------------------------------------------------------- /lang/python/python2/files/python2-package-multiprocessing.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2006-2016 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 | define Package/python2-multiprocessing 9 | $(call Package/python2/Default) 10 | TITLE:=Python $(PYTHON2_VERSION) multiprocessing 11 | DEPENDS:=+python2-light 12 | endef 13 | 14 | $(eval $(call Py2BasePackage,python2-multiprocessing, \ 15 | /usr/lib/python$(PYTHON2_VERSION)/multiprocessing \ 16 | /usr/lib/python$(PYTHON2_VERSION)/lib-dynload/_multiprocessing.so \ 17 | )) 18 | -------------------------------------------------------------------------------- /lang/python/python2/files/python2-package-ncurses.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2006-2016 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 | define Package/python2-ncurses 9 | $(call Package/python2/Default) 10 | TITLE:=Python $(PYTHON2_VERSION) ncurses module 11 | DEPENDS:=+python2-light +libncurses 12 | endef 13 | 14 | $(eval $(call Py2BasePackage,python2-ncurses, \ 15 | /usr/lib/python$(PYTHON2_VERSION)/curses \ 16 | /usr/lib/python$(PYTHON2_VERSION)/lib-dynload/_curses.so \ 17 | /usr/lib/python$(PYTHON2_VERSION)/lib-dynload/_curses_panel.so \ 18 | )) 19 | -------------------------------------------------------------------------------- /lang/python/python2/files/python2-package-openssl.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2006-2016 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 | define Package/python2-openssl 9 | $(call Package/python2/Default) 10 | TITLE:=Python $(PYTHON2_VERSION) SSL module 11 | DEPENDS:=+python2-light +libopenssl 12 | endef 13 | 14 | $(eval $(call Py2BasePackage,python2-openssl, \ 15 | /usr/lib/python$(PYTHON2_VERSION)/lib-dynload/_hashlib.so \ 16 | /usr/lib/python$(PYTHON2_VERSION)/lib-dynload/_ssl.so \ 17 | )) 18 | -------------------------------------------------------------------------------- /lang/python/python2/files/python2-package-pkg-resources.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2019 Alexandru Ardelean 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | define Package/python2-pkg-resources 9 | $(call Package/python2/Default) 10 | TITLE:=Python $(PYTHON2_VERSION) pkg_resources module (part of setuptools) 11 | VERSION:=$(PYTHON2_SETUPTOOLS_VERSION)-$(PYTHON2_SETUPTOOLS_PKG_RELEASE) 12 | LICENSE:=MIT 13 | LICENSE_FILES:=LICENSE 14 | # CPE_ID:=cpe:/a:python:setuptools # not currently handled this way by uscan 15 | DEPENDS:=+python2 16 | endef 17 | 18 | define Py2Package/python2-pkg-resources/install 19 | $(INSTALL_DIR) $(1)/usr/lib/python$(PYTHON2_VERSION)/site-packages 20 | $(CP) \ 21 | $(PKG_BUILD_DIR)/install-setuptools/usr/lib/python$(PYTHON2_VERSION)/site-packages/pkg_resources \ 22 | $(1)/usr/lib/python$(PYTHON2_VERSION)/site-packages 23 | endef 24 | 25 | $(eval $(call Py2BasePackage,python2-pkg-resources, \ 26 | , \ 27 | DO_NOT_ADD_TO_PACKAGE_DEPENDS \ 28 | )) 29 | -------------------------------------------------------------------------------- /lang/python/python2/files/python2-package-pydoc.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2006-2016 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 | define Package/python2-pydoc 9 | $(call Package/python2/Default) 10 | TITLE:=Python $(PYTHON2_VERSION) pydoc module 11 | DEPENDS:=+python2-light 12 | endef 13 | 14 | $(eval $(call Py2BasePackage,python2-pydoc, \ 15 | /usr/lib/python$(PYTHON2_VERSION)/doctest.py \ 16 | /usr/lib/python$(PYTHON2_VERSION)/pydoc.py \ 17 | /usr/lib/python$(PYTHON2_VERSION)/pydoc_data \ 18 | )) 19 | -------------------------------------------------------------------------------- /lang/python/python2/files/python2-package-sqlite3.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2006-2016 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 | define Package/python2-sqlite3 9 | $(call Package/python2/Default) 10 | TITLE:=Python $(PYTHON2_VERSION) sqlite3 module 11 | DEPENDS:=+python2-light +libsqlite3 12 | endef 13 | 14 | $(eval $(call Py2BasePackage,python2-sqlite3, \ 15 | /usr/lib/python$(PYTHON2_VERSION)/lib-dynload/_sqlite3.so \ 16 | /usr/lib/python$(PYTHON2_VERSION)/sqlite3 \ 17 | )) 18 | -------------------------------------------------------------------------------- /lang/python/python2/files/python2-package-unittest.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2006-2016 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 | define Package/python2-unittest 9 | $(call Package/python2/Default) 10 | TITLE:=Python $(PYTHON2_VERSION) unittest module 11 | DEPENDS:=+python2-light 12 | endef 13 | 14 | $(eval $(call Py2BasePackage,python2-unittest, \ 15 | /usr/lib/python$(PYTHON2_VERSION)/unittest \ 16 | )) 17 | -------------------------------------------------------------------------------- /lang/python/python2/files/python2-package-xml.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2006-2016 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 | define Package/python2-xml 9 | $(call Package/python2/Default) 10 | TITLE:=Python $(PYTHON2_VERSION) xml libs 11 | DEPENDS:=+python2-light +libexpat 12 | endef 13 | 14 | $(eval $(call Py2BasePackage,python2-xml, \ 15 | /usr/lib/python$(PYTHON2_VERSION)/xml \ 16 | /usr/lib/python$(PYTHON2_VERSION)/xmllib.py \ 17 | /usr/lib/python$(PYTHON2_VERSION)/xmlrpclib.py \ 18 | /usr/lib/python$(PYTHON2_VERSION)/lib-dynload/_elementtree.so \ 19 | /usr/lib/python$(PYTHON2_VERSION)/lib-dynload/pyexpat.so \ 20 | )) 21 | -------------------------------------------------------------------------------- /lang/python/python2/patches-setuptools/001-reproducible.patch: -------------------------------------------------------------------------------- 1 | https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=848136 2 | https://sources.debian.org/patches/python-setuptools/40.8.0-1/reproducible.diff/ 3 | 4 | Index: b/setuptools/command/easy_install.py 5 | =================================================================== 6 | --- a/setuptools/command/easy_install.py 7 | +++ b/setuptools/command/easy_install.py 8 | @@ -436,7 +436,7 @@ consider to install to another location, 9 | for spec in self.args: 10 | self.easy_install(spec, not self.no_deps) 11 | if self.record: 12 | - outputs = self.outputs 13 | + outputs = list(sorted(self.outputs)) 14 | if self.root: # strip any package prefix 15 | root_len = len(self.root) 16 | for counter in range(len(outputs)): 17 | -------------------------------------------------------------------------------- /lang/python/python2/patches-setuptools/002-sorted-requires.patch: -------------------------------------------------------------------------------- 1 | https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=804249 2 | https://sources.debian.org/patches/python-setuptools/40.8.0-1/sorted-requires.diff/ 3 | 4 | Index: b/setuptools/command/egg_info.py 5 | =================================================================== 6 | --- a/setuptools/command/egg_info.py 7 | +++ b/setuptools/command/egg_info.py 8 | @@ -621,7 +621,7 @@ def warn_depends_obsolete(cmd, basename, 9 | def _write_requirements(stream, reqs): 10 | lines = yield_lines(reqs or ()) 11 | append_cr = lambda line: line + '\n' 12 | - lines = map(append_cr, lines) 13 | + lines = map(append_cr, sorted(lines)) 14 | stream.writelines(lines) 15 | 16 | 17 | -------------------------------------------------------------------------------- /lang/python/python2/patches-setuptools/003-PKG-INFO-output-reproducible.patch: -------------------------------------------------------------------------------- 1 | https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=894215 2 | https://sources.debian.org/patches/python-setuptools/40.8.0-1/PKG-INFO-output-reproducible.diff/ 3 | 4 | --- a/setuptools/dist.py 5 | +++ b/setuptools/dist.py 6 | @@ -191,7 +191,7 @@ def write_pkg_file(self, file): 7 | self.long_description_content_type 8 | ) 9 | if self.provides_extras: 10 | - for extra in self.provides_extras: 11 | + for extra in sorted(self.provides_extras): 12 | write_field('Provides-Extra', extra) 13 | 14 | 15 | -------------------------------------------------------------------------------- /lang/python/python2/patches/001-enable-zlib.patch: -------------------------------------------------------------------------------- 1 | From 6eeab87bc852481e599325549c854b701bf2e39f Mon Sep 17 00:00:00 2001 2 | From: Alexandru Ardelean 3 | Date: Thu, 25 Sep 2014 18:18:29 +0300 4 | Subject: [PATCH] enable zlib 5 | 6 | --- 7 | Modules/Setup.dist | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | --- a/Modules/Setup.dist 11 | +++ b/Modules/Setup.dist 12 | @@ -464,7 +464,7 @@ GLHACK=-Dclear=__GLclear 13 | # Andrew Kuchling's zlib module. 14 | # This require zlib 1.1.3 (or later). 15 | # See http://www.gzip.org/zlib/ 16 | -#zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib -lz 17 | +zlib zlibmodule.c -lz 18 | 19 | # Interface to the Expat XML parser 20 | # More information on Expat can be found at www.libexpat.org. 21 | -------------------------------------------------------------------------------- /lang/python/python2/patches/002-do-not-add-include-dirs-when-cross-compiling.patch: -------------------------------------------------------------------------------- 1 | --- a/setup.py 2 | +++ b/setup.py 3 | @@ -543,7 +543,8 @@ class PyBuildExt(build_ext): 4 | add_dir_to_list(dir_list, directory) 5 | 6 | if os.path.normpath(sys.prefix) != '/usr' \ 7 | - and not sysconfig.get_config_var('PYTHONFRAMEWORK'): 8 | + and not sysconfig.get_config_var('PYTHONFRAMEWORK') \ 9 | + and not cross_compiling: 10 | # OSX note: Don't add LIBDIR and INCLUDEDIR to building a framework 11 | # (PYTHONFRAMEWORK is set) to avoid # linking problems when 12 | # building a framework with different architectures than 13 | -------------------------------------------------------------------------------- /lang/python/python2/patches/003-do-not-compile-tests-at-build.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile.pre.in 2 | +++ b/Makefile.pre.in 3 | @@ -1133,6 +1133,7 @@ libinstall: build_all $(srcdir)/Lib/$(PL 4 | done; \ 5 | done 6 | $(INSTALL_DATA) $(srcdir)/LICENSE $(DESTDIR)$(LIBDEST)/LICENSE.txt 7 | +ifeq (@COMPILE_ALL_TESTS@,yes) 8 | if test -d $(DESTDIR)$(LIBDEST)/distutils/tests; then \ 9 | $(INSTALL_DATA) $(srcdir)/Modules/xxmodule.c \ 10 | $(DESTDIR)$(LIBDEST)/distutils/tests ; \ 11 | @@ -1159,6 +1160,7 @@ libinstall: build_all $(srcdir)/Lib/$(PL 12 | $(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST)/lib2to3/Grammar.txt 13 | -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ 14 | $(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST)/lib2to3/PatternGrammar.txt 15 | +endif 16 | 17 | # Create the PLATDIR source directory, if one wasn't distributed.. 18 | $(srcdir)/Lib/$(PLATDIR): 19 | -------------------------------------------------------------------------------- /lang/python/python2/patches/004-do-not-write-bytes-codes.patch: -------------------------------------------------------------------------------- 1 | --- a/Python/pythonrun.c 2 | +++ b/Python/pythonrun.c 3 | @@ -71,7 +71,7 @@ int Py_InteractiveFlag; /* Needed by Py_ 4 | int Py_InspectFlag; /* Needed to determine whether to exit at SystemExit */ 5 | int Py_NoSiteFlag; /* Suppress 'import site' */ 6 | int Py_BytesWarningFlag; /* Warn on comparison between bytearray and unicode */ 7 | -int Py_DontWriteBytecodeFlag; /* Suppress writing bytecode files (*.py[co]) */ 8 | +int Py_DontWriteBytecodeFlag = 1; /* Suppress writing bytecode files (*.py[co]) */ 9 | int Py_UseClassExceptionsFlag = 1; /* Needed by bltinmodule.c: deprecated */ 10 | int Py_FrozenFlag; /* Needed by getpath.c */ 11 | int Py_UnicodeFlag = 0; /* Needed by compile.c */ 12 | -------------------------------------------------------------------------------- /lang/python/python2/patches/006-remove-multi-arch-and-local-paths.patch: -------------------------------------------------------------------------------- 1 | --- a/setup.py 2 | +++ b/setup.py 3 | @@ -500,13 +500,8 @@ class PyBuildExt(build_ext): 4 | os.unlink(tmpfile) 5 | 6 | def detect_modules(self): 7 | - # Ensure that /usr/local is always used 8 | - if not cross_compiling: 9 | - add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') 10 | - add_dir_to_list(self.compiler.include_dirs, '/usr/local/include') 11 | if cross_compiling: 12 | self.add_gcc_paths() 13 | - self.add_multiarch_paths() 14 | 15 | # Add paths specified in the environment variables LDFLAGS and 16 | # CPPFLAGS for header and library files. 17 | -------------------------------------------------------------------------------- /lang/python/python2/patches/007-distutils-do-not-adjust-path.patch: -------------------------------------------------------------------------------- 1 | --- a/Lib/distutils/command/build_scripts.py 2 | +++ b/Lib/distutils/command/build_scripts.py 3 | @@ -89,6 +89,7 @@ class build_scripts (Command): 4 | adjust = 1 5 | post_interp = match.group(1) or '' 6 | 7 | + adjust = 0 8 | if adjust: 9 | log.info("copying and adjusting %s -> %s", script, 10 | self.build_dir) 11 | -------------------------------------------------------------------------------- /lang/python/python2/patches/010-do-not-add-rt-lib-dirs-when-cross-compiling.patch: -------------------------------------------------------------------------------- 1 | --- a/setup.py 2 | +++ b/setup.py 3 | @@ -509,8 +509,9 @@ class PyBuildExt(build_ext): 4 | # directly since an inconsistently reproducible issue comes up where 5 | # the environment variable is not set even though the value were passed 6 | # into configure and stored in the Makefile (issue found on OS X 10.3). 7 | + rt_lib_dirs = [] if cross_compiling else self.compiler.runtime_library_dirs 8 | for env_var, arg_name, dir_list in ( 9 | - ('LDFLAGS', '-R', self.compiler.runtime_library_dirs), 10 | + ('LDFLAGS', '-R', rt_lib_dirs), 11 | ('LDFLAGS', '-L', self.compiler.library_dirs), 12 | ('CPPFLAGS', '-I', self.compiler.include_dirs)): 13 | env_val = sysconfig.get_config_var(env_var) 14 | -------------------------------------------------------------------------------- /lang/python/python2/patches/012-add-support-source-date-epoch-pyc.patch: -------------------------------------------------------------------------------- 1 | --- a/Lib/py_compile.py 2 | +++ b/Lib/py_compile.py 3 | @@ -108,6 +108,7 @@ def compile(file, cfile=None, dfile=None 4 | timestamp = long(os.fstat(f.fileno()).st_mtime) 5 | except AttributeError: 6 | timestamp = long(os.stat(file).st_mtime) 7 | + timestamp = long(os.getenv('SOURCE_DATE_EPOCH', timestamp)) 8 | codestring = f.read() 9 | try: 10 | codeobject = __builtin__.compile(codestring, dfile or file,'exec') 11 | -------------------------------------------------------------------------------- /lang/python/python2/patches/025-utime.patch: -------------------------------------------------------------------------------- 1 | --- a/Modules/posixmodule.c 2 | +++ b/Modules/posixmodule.c 3 | @@ -3070,7 +3070,7 @@ done: 4 | if (arg == Py_None) { 5 | /* optional time values not given */ 6 | Py_BEGIN_ALLOW_THREADS 7 | - res = utime(path, NULL); 8 | + res = utimes(path, NULL); 9 | Py_END_ALLOW_THREADS 10 | } 11 | else if (!PyTuple_Check(arg) || PyTuple_Size(arg) != 2) { 12 | -------------------------------------------------------------------------------- /lang/urbi/patches/005-fix-gcc_4_3-compile.patch: -------------------------------------------------------------------------------- 1 | diff --git a/libport/semaphore.hxx b/libport/semaphore.hxx 2 | index bb2546d..38b0d8e 100644 3 | --- a/libport/semaphore.hxx 4 | +++ b/libport/semaphore.hxx 5 | @@ -5,6 +5,7 @@ 6 | # include "exception.hh" 7 | # include 8 | # include 9 | +# include 10 | 11 | namespace libport 12 | { 13 | --- a/src/liburbi/uconversion.cc 2007-01-31 11:37:04.000000000 +0100 14 | +++ b/src/liburbi/uconversion.cc 2010-03-29 09:43:00.000000000 +0200 15 | @@ -1,5 +1,7 @@ 16 | #include "urbi/uconversion.hh" 17 | 18 | +#include 19 | + 20 | #ifndef NO_IMAGE_CONVERSION 21 | # include 22 | 23 | -------------------------------------------------------------------------------- /libs/avro/patches/010-pkgconfig.patch: -------------------------------------------------------------------------------- 1 | --- a/src/CMakeLists.txt 2 | +++ b/src/CMakeLists.txt 3 | @@ -122,9 +122,8 @@ endif(WIN32) 4 | 5 | # Install pkg-config file 6 | 7 | -set(prefix ${CMAKE_INSTALL_PREFIX}) 8 | set(VERSION ${AVRO_VERSION}) 9 | -configure_file(avro-c.pc.in avro-c.pc) 10 | +configure_file(avro-c.pc.in avro-c.pc @ONLY) 11 | install(FILES ${CMAKE_CURRENT_BINARY_DIR}/avro-c.pc 12 | DESTINATION lib/pkgconfig) 13 | 14 | --- a/src/avro-c.pc.in 15 | +++ b/src/avro-c.pc.in 16 | @@ -1,7 +1,12 @@ 17 | +prefix=@CMAKE_INSTALL_PREFIX@ 18 | +exec_prefix=@CMAKE_INSTALL_PREFIX@ 19 | +libdir=${exec_prefix}/lib 20 | +includedir=${prefix}/include 21 | + 22 | Name: avro-c 23 | Description: C library for parsing Avro data 24 | Version: @VERSION@ 25 | URL: https://avro.apache.org/ 26 | -Libs: -L@prefix@/lib -lavro 27 | -Cflags: -I@prefix@/include 28 | +Libs: -L${libdir} -lavro 29 | +Cflags: -I${includedir} 30 | Requires: @CODEC_PKG@ 31 | -------------------------------------------------------------------------------- /libs/avro/patches/020-bin-shared.patch: -------------------------------------------------------------------------------- 1 | --- a/src/CMakeLists.txt 2 | +++ b/src/CMakeLists.txt 3 | @@ -129,20 +129,20 @@ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/avro-c.pc 4 | DESTINATION lib/pkgconfig) 5 | 6 | add_executable(avrocat avrocat.c) 7 | -target_link_libraries(avrocat avro-static) 8 | +target_link_libraries(avrocat avro-shared) 9 | install(TARGETS avrocat RUNTIME DESTINATION bin) 10 | 11 | add_executable(avroappend avroappend.c) 12 | -target_link_libraries(avroappend avro-static) 13 | +target_link_libraries(avroappend avro-shared) 14 | install(TARGETS avroappend RUNTIME DESTINATION bin) 15 | 16 | if (NOT WIN32) 17 | #TODO: Port getopt() to Windows to compile avropipe.c and avromod.c 18 | add_executable(avropipe avropipe.c) 19 | -target_link_libraries(avropipe avro-static) 20 | +target_link_libraries(avropipe avro-shared) 21 | install(TARGETS avropipe RUNTIME DESTINATION bin) 22 | 23 | add_executable(avromod avromod.c) 24 | -target_link_libraries(avromod avro-static) 25 | +target_link_libraries(avromod avro-shared) 26 | install(TARGETS avromod RUNTIME DESTINATION bin) 27 | endif(NOT WIN32) 28 | -------------------------------------------------------------------------------- /libs/avro/patches/030-ssize_t.patch: -------------------------------------------------------------------------------- 1 | --- a/src/avro_generic_internal.h 2 | +++ b/src/avro_generic_internal.h 3 | @@ -28,6 +28,8 @@ extern "C" { 4 | #include "avro/schema.h" 5 | #include "avro/value.h" 6 | 7 | +#include 8 | + 9 | /* 10 | * Each generic value implementation struct defines a couple of extra 11 | * methods that we use to control the lifecycle of the value objects. 12 | -------------------------------------------------------------------------------- /libs/classpath/patches/020-fix-statement-may-fall-through.patch: -------------------------------------------------------------------------------- 1 | --- a/native/jni/java-math/gnu_java_math_GMP.c 2 | +++ b/native/jni/java-math/gnu_java_math_GMP.c 3 | @@ -1132,6 +1132,7 @@ 4 | break; 5 | case 1: 6 | res = mpz_popcount (_this); 7 | + __attribute__((fallthrough)); 8 | default: 9 | JCL_ThrowException (env, "java/lang/Error", 10 | "Unexpected sign value for a native MPI"); 11 | -------------------------------------------------------------------------------- /libs/fbthrift/patches/010-no-boost-thread.patch: -------------------------------------------------------------------------------- 1 | --- a/CMakeLists.txt 2 | +++ b/CMakeLists.txt 3 | @@ -49,7 +49,6 @@ find_package( 4 | program_options 5 | regex 6 | system 7 | - thread 8 | ) 9 | include_directories(${Boost_INCLUDE_DIRS}) 10 | 11 | -------------------------------------------------------------------------------- /libs/fbthrift/patches/020-compiler.patch: -------------------------------------------------------------------------------- 1 | --- a/thrift/cmake/FBThriftConfig.cmake.in 2 | +++ b/thrift/cmake/FBThriftConfig.cmake.in 3 | @@ -20,7 +20,7 @@ set_and_check(FBTHRIFT_INCLUDE_DIR "@PACKAGE_INCLUDE_INSTALL_DIR@") 4 | if (WIN32) 5 | set_and_check(FBTHRIFT_COMPILER "@PACKAGE_BIN_INSTALL_DIR@/thrift1.exe") 6 | else() 7 | - set_and_check(FBTHRIFT_COMPILER "@PACKAGE_BIN_INSTALL_DIR@/thrift1") 8 | +# set_and_check(FBTHRIFT_COMPILER "@PACKAGE_BIN_INSTALL_DIR@/thrift1") 9 | endif() 10 | 11 | if (NOT TARGET FBThrift::thriftcpp2) 12 | -------------------------------------------------------------------------------- /libs/fbzmq/patches/010-fbthrift.patch: -------------------------------------------------------------------------------- 1 | --- a/CMakeLists.txt 2 | +++ b/CMakeLists.txt 3 | @@ -34,6 +34,10 @@ find_package(Threads REQUIRED) 4 | find_package(Boost 1.67.0 MODULE 5 | COMPONENTS 6 | context 7 | + filesystem 8 | + program_options 9 | + regex 10 | + system 11 | REQUIRED 12 | ) 13 | 14 | -------------------------------------------------------------------------------- /libs/libartnet/patches/001-bswap_16.patch: -------------------------------------------------------------------------------- 1 | --- a/artnet/private.h 2 | +++ b/artnet/private.h 3 | @@ -100,7 +100,9 @@ extern uint16_t HIGH_BYTE; 4 | #endif 5 | 6 | // byte ordering macros 7 | +#ifndef bswap_16 8 | #define bswap_16(x) ((((x) >> 8) & 0xff) | (((x) & 0xff) << 8)) 9 | +#endif 10 | 11 | // htols : convert short from host to little endian order 12 | #ifdef WIN32 13 | -------------------------------------------------------------------------------- /libs/libartnet/patches/002-gcc7.patch: -------------------------------------------------------------------------------- 1 | --- a/artnet/transmit.c 2 | +++ b/artnet/transmit.c 3 | @@ -163,7 +163,7 @@ int artnet_tx_tod_data(node n, int id) { 4 | bloc = 0; 5 | 6 | while (remaining > 0) { 7 | - memset(&tod.data.toddata.tod,0x00, ARTNET_MAX_UID_COUNT); 8 | + memset(&tod.data.toddata.tod,0x00, sizeof(tod.data.toddata.tod)); 9 | lim = min(ARTNET_MAX_UID_COUNT, remaining); 10 | tod.data.toddata.blockCount = bloc++; 11 | tod.data.toddata.uidCount = lim; 12 | -------------------------------------------------------------------------------- /libs/libaudiofile/patches/010-gcc6-fix-left-shift-negative-number.patch: -------------------------------------------------------------------------------- 1 | Description: Fix FTBFS with GCC 6 2 | Author: Michael Schwendt 3 | Origin: vendor, https://github.com/mpruett/audiofile/pull/27 4 | Bug-Debian: https://bugs.debian.org/812055 5 | --- 6 | This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ 7 | 8 | --- a/libaudiofile/modules/SimpleModule.h 9 | +++ b/libaudiofile/modules/SimpleModule.h 10 | @@ -123,7 +123,7 @@ struct signConverter 11 | typedef typename IntTypes::UnsignedType UnsignedType; 12 | 13 | static const int kScaleBits = (Format + 1) * CHAR_BIT - 1; 14 | - static const int kMinSignedValue = -1 << kScaleBits; 15 | + static const int kMinSignedValue = 0-(1U< 18 | { 19 | -------------------------------------------------------------------------------- /libs/libaudiofile/patches/020-remove-tests-examples-docs.patch: -------------------------------------------------------------------------------- 1 | --- a/configure.ac 2 | +++ b/configure.ac 3 | @@ -159,12 +159,8 @@ AC_CONFIG_FILES([ 4 | audiofile.pc 5 | audiofile-uninstalled.pc 6 | sfcommands/Makefile 7 | - test/Makefile 8 | - gtest/Makefile 9 | - examples/Makefile 10 | libaudiofile/Makefile 11 | libaudiofile/alac/Makefile 12 | libaudiofile/modules/Makefile 13 | - docs/Makefile 14 | Makefile]) 15 | AC_OUTPUT 16 | --- a/Makefile.am 17 | +++ b/Makefile.am 18 | @@ -1,6 +1,6 @@ 19 | ## Process this file with automake to produce Makefile.in 20 | 21 | -SUBDIRS = gtest libaudiofile sfcommands test examples docs 22 | +SUBDIRS = libaudiofile sfcommands 23 | 24 | EXTRA_DIST = \ 25 | ACKNOWLEDGEMENTS \ 26 | -------------------------------------------------------------------------------- /libs/libaudiofile/patches/030-CVE-2015-7747.patch: -------------------------------------------------------------------------------- 1 | Description: fix buffer overflow when changing both sample format and 2 | number of channels 3 | Origin: backport, https://github.com/mpruett/audiofile/pull/25 4 | Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/audiofile/+bug/1502721 5 | Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=801102 6 | 7 | Index: audiofile-0.3.6/libaudiofile/modules/ModuleState.cpp 8 | =================================================================== 9 | --- audiofile-0.3.6.orig/libaudiofile/modules/ModuleState.cpp 2015-10-20 08:00:58.036128202 -0400 10 | +++ audiofile-0.3.6/libaudiofile/modules/ModuleState.cpp 2015-10-20 08:00:58.036128202 -0400 11 | @@ -402,7 +402,7 @@ 12 | addModule(new Transform(outfc, in.pcm, out.pcm)); 13 | 14 | if (in.channelCount != out.channelCount) 15 | - addModule(new ApplyChannelMatrix(infc, isReading, 16 | + addModule(new ApplyChannelMatrix(outfc, isReading, 17 | in.channelCount, out.channelCount, 18 | in.pcm.minClip, in.pcm.maxClip, 19 | track->channelMatrix)); 20 | -------------------------------------------------------------------------------- /libs/libaudiofile/patches/170-Check-for-division-by-zero-in-BlockCodec.patch: -------------------------------------------------------------------------------- 1 | From: Antonio Larrosa 2 | Date: Thu, 9 Mar 2017 10:21:18 +0100 3 | Subject: Check for division by zero in BlockCodec::runPull 4 | 5 | --- 6 | libaudiofile/modules/BlockCodec.cpp | 2 +- 7 | 1 file changed, 1 insertion(+), 1 deletion(-) 8 | 9 | diff --git a/libaudiofile/modules/BlockCodec.cpp b/libaudiofile/modules/BlockCodec.cpp 10 | index 4731be1..eb2fb4d 100644 11 | --- a/libaudiofile/modules/BlockCodec.cpp 12 | +++ b/libaudiofile/modules/BlockCodec.cpp 13 | @@ -47,7 +47,7 @@ void BlockCodec::runPull() 14 | 15 | // Read the compressed data. 16 | ssize_t bytesRead = read(m_inChunk->buffer, m_bytesPerPacket * blockCount); 17 | - int blocksRead = bytesRead >= 0 ? bytesRead / m_bytesPerPacket : 0; 18 | + int blocksRead = (bytesRead >= 0 && m_bytesPerPacket > 0) ? bytesRead / m_bytesPerPacket : 0; 19 | 20 | // Decompress into m_outChunk. 21 | for (int i=0; i 3 | Date: Tue, 11 Aug 2020 08:27:41 -0700 4 | Subject: [PATCH] libcxxabi: Remove monorepo requirement 5 | 6 | --- 7 | libcxxabi/CMakeLists.txt | 4 ---- 8 | 1 file changed, 4 deletions(-) 9 | 10 | diff --git a/libcxxabi/CMakeLists.txt b/libcxxabi/CMakeLists.txt 11 | index 6cb139b311c..f124c09fcac 100644 12 | --- a/CMakeLists.txt 13 | +++ b/CMakeLists.txt 14 | @@ -1,9 +1,5 @@ 15 | # See www/CMake.html for instructions on how to build libcxxabi with CMake. 16 | 17 | -if (NOT IS_DIRECTORY "${CMAKE_CURRENT_LIST_DIR}/../libcxx") 18 | - message(FATAL_ERROR "libc++abi now requires being built in a monorepo layout with libcxx available") 19 | -endif() 20 | - 21 | #=============================================================================== 22 | # Setup Project 23 | #=============================================================================== 24 | -------------------------------------------------------------------------------- /libs/libdaq/patches/001-compile.patch: -------------------------------------------------------------------------------- 1 | --- a/configure 2 | +++ b/configure 3 | @@ -13244,10 +13244,11 @@ if ${daq_cv_libpcap_version_1x+:} false; 4 | else 5 | 6 | if test "$cross_compiling" = yes; then : 7 | - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8 | -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9 | -as_fn_error $? "cannot run test program while cross compiling 10 | -See \`config.log' for more details" "$LINENO" 5; } 11 | +# { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12 | +#$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13 | +#as_fn_error $? "cannot run test program while cross compiling 14 | +#See \`config.log' for more details" "$LINENO" 5; } 15 | + echo " No cross compiling test." 16 | else 17 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18 | /* end confdefs.h. */ 19 | -------------------------------------------------------------------------------- /libs/libdaq/patches/100-musl-compat.patch: -------------------------------------------------------------------------------- 1 | --- a/os-daq-modules/daq_ipfw.c 2 | +++ b/os-daq-modules/daq_ipfw.c 3 | @@ -23,10 +23,10 @@ 4 | #include 5 | #include 6 | #include 7 | +#include 8 | 9 | #include 10 | #include 11 | -#include 12 | 13 | #include 14 | #include 15 | --- a/os-daq-modules/daq_ipq.c 16 | +++ b/os-daq-modules/daq_ipq.c 17 | @@ -24,10 +24,10 @@ 18 | #include 19 | #include 20 | #include 21 | +#include 22 | 23 | #include 24 | #include 25 | -#include 26 | 27 | #include 28 | 29 | --- a/os-daq-modules/daq_nfq.c 30 | +++ b/os-daq-modules/daq_nfq.c 31 | @@ -24,10 +24,10 @@ 32 | #include 33 | #include 34 | #include 35 | +#include 36 | 37 | #include 38 | #include 39 | -#include 40 | 41 | #include 42 | 43 | -------------------------------------------------------------------------------- /libs/libebml/patches/010-gcc11.patch: -------------------------------------------------------------------------------- 1 | --- a/src/EbmlString.cpp 2 | +++ b/src/EbmlString.cpp 3 | @@ -34,6 +34,7 @@ 4 | \author Steve Lhomme 5 | */ 6 | #include 7 | +#include 8 | 9 | #include "ebml/EbmlString.h" 10 | 11 | --- a/src/EbmlUnicodeString.cpp 12 | +++ b/src/EbmlUnicodeString.cpp 13 | @@ -36,6 +36,7 @@ 14 | */ 15 | 16 | #include 17 | +#include 18 | 19 | #include "ebml/EbmlUnicodeString.h" 20 | 21 | -------------------------------------------------------------------------------- /libs/libevhtp/patches/010-openssl-thread.patch: -------------------------------------------------------------------------------- 1 | --- a/evhtp.c 2 | +++ b/evhtp.c 3 | @@ -2863,7 +2863,7 @@ htp__accept_cb_(struct evconnlistener * 4 | } /* htp__accept_cb_ */ 5 | 6 | #ifndef EVHTP_DISABLE_SSL 7 | -#ifndef EVHTP_DISABLE_EVTHR 8 | +#if !defined(EVHTP_DISABLE_EVTHR) && (OPENSSL_VERSION_NUMBER < 0x10100000L) 9 | 10 | #ifndef WIN32 11 | #define _HTP_tid (unsigned long)pthread_self() 12 | @@ -4575,7 +4575,7 @@ htp__use_threads_(evhtp_t * htp, 13 | htp->thread_init_cb = init_cb; 14 | htp->thread_exit_cb = exit_cb; 15 | 16 | -#ifndef EVHTP_DISABLE_SSL 17 | +#if !defined(EVHTP_DISABLE_EVTHR) && (OPENSSL_VERSION_NUMBER < 0x10100000L) 18 | evhtp_ssl_use_threads(); 19 | #endif 20 | 21 | @@ -4723,7 +4723,7 @@ evhtp_set_post_accept_cb(evhtp_t * htp, 22 | } 23 | 24 | #ifndef EVHTP_DISABLE_SSL 25 | -#ifndef EVHTP_DISABLE_EVTHR 26 | +#if !defined(EVHTP_DISABLE_EVTHR) && (OPENSSL_VERSION_NUMBER < 0x10100000L) 27 | int 28 | evhtp_ssl_use_threads(void) 29 | { 30 | -------------------------------------------------------------------------------- /libs/libfizz/patches/010-no-boost-thread.patch: -------------------------------------------------------------------------------- 1 | --- a/fizz/CMakeLists.txt 2 | +++ b/fizz/CMakeLists.txt 3 | @@ -52,7 +52,7 @@ if (NOT folly_FOUND) 4 | find_package(Folly MODULE REQUIRED) 5 | endif() 6 | 7 | -find_package(Boost REQUIRED COMPONENTS system thread filesystem regex context 8 | +find_package(Boost REQUIRED COMPONENTS system filesystem regex context 9 | program_options) 10 | find_package(OpenSSL REQUIRED) 11 | find_package(Glog REQUIRED) 12 | -------------------------------------------------------------------------------- /libs/libfolly/patches/101-remove-undefined-dcheck.patch: -------------------------------------------------------------------------------- 1 | --- a/folly/stats/detail/BufferedStat-inl.h 2 | +++ b/folly/stats/detail/BufferedStat-inl.h 3 | @@ -69,7 +69,6 @@ void BufferedStat::doUpdate( 4 | TimePoint now, 5 | const std::unique_lock& g, 6 | UpdateMode updateMode) { 7 | - DCHECK(g.owns_lock()); 8 | // Check that no other thread has performed the slide after the check 9 | auto oldExpiry = expiry_.load(std::memory_order_relaxed).tp; 10 | if (now > oldExpiry || updateMode == UpdateMode::Now) { 11 | -------------------------------------------------------------------------------- /libs/libfolly/patches/102-no-boost-thread.patch: -------------------------------------------------------------------------------- 1 | diff --git a/CMake/folly-deps.cmake b/CMake/folly-deps.cmake 2 | index 0c212057..a4c06695 100644 3 | --- a/CMake/folly-deps.cmake 4 | +++ b/CMake/folly-deps.cmake 5 | @@ -12,7 +12,6 @@ find_package(Boost 1.51.0 MODULE 6 | program_options 7 | regex 8 | system 9 | - thread 10 | REQUIRED 11 | ) 12 | list(APPEND FOLLY_LINK_LIBRARIES ${Boost_LIBRARIES}) 13 | -------------------------------------------------------------------------------- /libs/libfolly/patches/103-arm-yield.patch: -------------------------------------------------------------------------------- 1 | --- a/folly/portability/Asm.h 2 | +++ b/folly/portability/Asm.h 3 | @@ -38,7 +38,7 @@ inline void asm_volatile_pause() { 4 | ::_mm_pause(); 5 | #elif defined(__i386__) || FOLLY_X64 6 | asm volatile("pause"); 7 | -#elif FOLLY_AARCH64 || defined(__arm__) 8 | +#elif FOLLY_AARCH64 || (defined(__arm__) && !(__ARM_ARCH < 7)) 9 | asm volatile("yield"); 10 | #elif FOLLY_PPC64 11 | asm volatile("or 27,27,27"); 12 | -------------------------------------------------------------------------------- /libs/libglog/patches/100-fix-musl-compilation.patch: -------------------------------------------------------------------------------- 1 | Index: glog-0.4.0/src/symbolize_unittest.cc 2 | =================================================================== 3 | --- glog-0.4.0.orig/src/symbolize_unittest.cc 4 | +++ glog-0.4.0/src/symbolize_unittest.cc 5 | @@ -401,7 +401,7 @@ int main(int argc, char **argv) { 6 | FLAGS_logtostderr = true; 7 | InitGoogleLogging(argv[0]); 8 | InitGoogleTest(&argc, argv); 9 | -#if defined(HAVE_SYMBOLIZE) 10 | +#if defined(HAVE_SYMBOLIZE) && defined(HAVE_STACKTRACE) 11 | # if defined(__ELF__) 12 | // We don't want to get affected by the callback interface, that may be 13 | // used to install some callback function at InitGoogle() time. 14 | -------------------------------------------------------------------------------- /libs/libglog/patches/110-nanosleep.patch: -------------------------------------------------------------------------------- 1 | From d7b02b6929baf5b21ee6e15a700b4fc82d962e9c Mon Sep 17 00:00:00 2001 2 | From: Rosen Penev 3 | Date: Thu, 25 Jul 2019 19:14:42 -0700 4 | Subject: [PATCH] googletest: Switch to nanosleep 5 | 6 | usleep is deprecated and optionally not available with uClibc-ng. 7 | --- 8 | src/googletest.h | 3 ++- 9 | 1 file changed, 2 insertions(+), 1 deletion(-) 10 | 11 | diff --git a/src/googletest.h b/src/googletest.h 12 | index 49ddbc0a..39fb29fb 100644 13 | --- a/src/googletest.h 14 | +++ b/src/googletest.h 15 | @@ -574,7 +574,8 @@ class Thread { 16 | 17 | static inline void SleepForMilliseconds(int t) { 18 | #ifndef OS_WINDOWS 19 | - usleep(t * 1000); 20 | + const struct timespec req = {0, t * 1000 * 1000}; 21 | + nanosleep(&req, NULL); 22 | #else 23 | Sleep(t); 24 | #endif 25 | -------------------------------------------------------------------------------- /libs/librsocket-cpp/patches/101-do-not-use-gold.patch: -------------------------------------------------------------------------------- 1 | --- a/CMakeLists.txt 2 | +++ b/CMakeLists.txt 3 | @@ -67,7 +67,6 @@ 4 | if (RSOCKET_ASAN) 5 | set(ASAN_FLAGS -fsanitize=address,undefined) 6 | endif () 7 | - set(EXTRA_LINK_FLAGS ${EXTRA_LINK_FLAGS} -fuse-ld=gold) 8 | 9 | elseif (${CMAKE_CXX_COMPILER_ID} MATCHES Clang) 10 | if (RSOCKET_ASAN) 11 | -------------------------------------------------------------------------------- /libs/librsocket-cpp/patches/102-gcc9.patch: -------------------------------------------------------------------------------- 1 | --- a/yarpl/Refcounted.h 2 | +++ b/yarpl/Refcounted.h 3 | @@ -42,7 +42,7 @@ std::shared_ptr atomic_exchange( 4 | auto refptr = ar->ref.lock(); 5 | auto old = std::move(*refptr); 6 | *refptr = std::move(r); 7 | - return std::move(old); 8 | + return old; 9 | } 10 | 11 | template 12 | -------------------------------------------------------------------------------- /libs/librsocket-cpp/patches/103-no-boost-thread.patch: -------------------------------------------------------------------------------- 1 | --- a/CMakeLists.txt 2 | +++ b/CMakeLists.txt 3 | @@ -195,7 +195,7 @@ find_package(Gflags REQUIRED) 4 | find_package(Glog REQUIRED) 5 | 6 | # find boost::* to satisfy the folly dep 7 | -find_package(Boost REQUIRED COMPONENTS system thread filesystem regex context 8 | +find_package(Boost REQUIRED COMPONENTS system filesystem regex context 9 | program_options) 10 | 11 | include_directories(SYSTEM ${OPENSSL_INCLUDE_DIR}) 12 | -------------------------------------------------------------------------------- /libs/libsearpc/patches/001-no-python-compile.patch: -------------------------------------------------------------------------------- 1 | --- a/pysearpc/Makefile.am 2 | +++ b/pysearpc/Makefile.am 3 | @@ -1,4 +1,4 @@ 4 | 5 | pysearpcdir=${pyexecdir}/pysearpc 6 | 7 | -pysearpc_PYTHON = __init__.py client.py common.py errors.py named_pipe.py server.py transport.py utils.py 8 | +pysearpc_DATA = __init__.py client.py common.py errors.py named_pipe.py server.py transport.py utils.py 9 | -------------------------------------------------------------------------------- /libs/libsearpc/patches/002-no-future-import.patch: -------------------------------------------------------------------------------- 1 | --- a/pysearpc/named_pipe.py 2 | +++ b/pysearpc/named_pipe.py 3 | @@ -2,8 +2,6 @@ 4 | RPC client/server implementation based on named pipe transport. 5 | """ 6 | 7 | -from future import standard_library 8 | -standard_library.install_aliases() 9 | from builtins import object 10 | import json 11 | import logging 12 | -------------------------------------------------------------------------------- /libs/libsigar/Makefile: -------------------------------------------------------------------------------- 1 | include $(TOPDIR)/rules.mk 2 | 3 | PKG_NAME:=libsigar 4 | PKG_SOURCE_DATE:=2017-02-21 5 | PKG_SOURCE_VERSION:=a6c61edf8c64e013411e8c9d753165cd03102c6e 6 | PKG_RELEASE:=3 7 | 8 | PKG_SOURCE_PROTO:=git 9 | PKG_SOURCE_URL:=https://github.com/boundary/sigar 10 | PKG_MIRROR_HASH:=5f017e10ab1d929c9dfb2937fef16a45962b60958cd1569573d18f00fcea290f 11 | 12 | PKG_MAINTAINER:=Amol Bhave 13 | PKG_LICENSE:=Apache-2.0 14 | PKG_LICENSE_FILE:=LICENSE 15 | 16 | include $(INCLUDE_DIR)/package.mk 17 | include $(INCLUDE_DIR)/cmake.mk 18 | 19 | PKG_BUILD_PARALLEL:=1 20 | CMAKE_INSTALL:=1 21 | 22 | define Package/libsigar 23 | SECTION:=libs 24 | CATEGORY:=Libraries 25 | TITLE:=System Information Gatherer And Reporter 26 | URL:=https://github.com/boundary/sigar 27 | DEPENDS:=+libtirpc 28 | endef 29 | 30 | define Package/libsigar/description 31 | System Information Gatherer And Reporter 32 | endef 33 | 34 | define Package/libsigar/install 35 | $(INSTALL_DIR) $(1)/usr/lib 36 | $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsigar.so* $(1)/usr/lib/ 37 | endef 38 | 39 | $(eval $(call BuildPackage,libsigar)) 40 | -------------------------------------------------------------------------------- /libs/libsigar/patches/010-rindex.patch: -------------------------------------------------------------------------------- 1 | --- a/src/sigar_util.c 2 | +++ b/src/sigar_util.c 3 | @@ -954,14 +954,10 @@ int sigar_file2str(const char *fname, char *buffer, int buflen) 4 | #define vsnprintf _vsnprintf 5 | #endif 6 | 7 | -#ifdef WIN32 8 | -# define rindex strrchr 9 | -#endif 10 | - 11 | static int proc_module_get_self(void *data, char *name, int len) 12 | { 13 | sigar_t *sigar = (sigar_t *)data; 14 | - char *ptr = rindex(name, '/'); 15 | + char *ptr = strrchr(name, '/'); 16 | 17 | if (!ptr) { 18 | return SIGAR_OK; 19 | -------------------------------------------------------------------------------- /libs/libsigar/patches/020-sysmacros.patch: -------------------------------------------------------------------------------- 1 | --- a/src/os/linux/linux_sigar.c 2 | +++ b/src/os/linux/linux_sigar.c 3 | @@ -23,6 +23,7 @@ 4 | #include 5 | #include 6 | #include 7 | +#include 8 | #include 9 | #include 10 | #include 11 | -------------------------------------------------------------------------------- /libs/libsoup/patches/010-libxml-1.12.patch: -------------------------------------------------------------------------------- 1 | --- a/libsoup/soup-xmlrpc-old.c 2 | +++ b/libsoup/soup-xmlrpc-old.c 3 | @@ -11,7 +11,7 @@ 4 | 5 | #include 6 | 7 | -#include 8 | +#include 9 | 10 | #include "soup-xmlrpc-old.h" 11 | #include "soup.h" 12 | --- a/libsoup/soup-xmlrpc.c 13 | +++ b/libsoup/soup-xmlrpc.c 14 | @@ -17,7 +17,7 @@ 15 | 16 | #include 17 | #include 18 | -#include 19 | +#include 20 | #include "soup-xmlrpc.h" 21 | #include "soup.h" 22 | 23 | -------------------------------------------------------------------------------- /libs/libwangle/patches/010-c++14.patch: -------------------------------------------------------------------------------- 1 | --- a/wangle/CMakeLists.txt 2 | +++ b/wangle/CMakeLists.txt 3 | @@ -9,7 +9,7 @@ cmake_minimum_required(VERSION 3.0.2) 4 | 5 | project("wangle" VERSION 1.0.0 LANGUAGES CXX C) 6 | 7 | -add_compile_options(-std=c++1z) 8 | +add_compile_options(-std=c++14) 9 | set(CMAKE_POSITION_INDEPENDENT_CODE ON) 10 | set(CMAKE_MODULE_PATH 11 | "${CMAKE_CURRENT_SOURCE_DIR}/cmake/" 12 | -------------------------------------------------------------------------------- /libs/libwangle/patches/020-no-boost-thread.patch: -------------------------------------------------------------------------------- 1 | --- a/wangle/CMakeLists.txt 2 | +++ b/wangle/CMakeLists.txt 3 | @@ -56,7 +56,7 @@ if (NOT folly_FOUND) 4 | endif() 5 | 6 | find_package(fizz CONFIG REQUIRED) 7 | -find_package(Boost REQUIRED COMPONENTS system thread filesystem regex context 8 | +find_package(Boost REQUIRED COMPONENTS system filesystem regex context 9 | program_options) 10 | find_package(OpenSSL REQUIRED) 11 | find_package(Glog REQUIRED) 12 | -------------------------------------------------------------------------------- /libs/libzdb/patches/010-do-not-run-test-progs.patch: -------------------------------------------------------------------------------- 1 | --- a/configure.ac 2 | +++ b/configure.ac 3 | @@ -454,16 +454,6 @@ if test $ondarwin -eq 1; then 4 | else 5 | stdc="gnu" 6 | fi 7 | -AC_RUN_IFELSE( 8 | -[AC_LANG_PROGRAM([], [dnl 9 | - #ifdef __STDC_VERSION__ 10 | - #if __STDC_VERSION__ >= 201112L 11 | - return 0; 12 | - #endif 13 | - #endif 14 | - return 1; 15 | - ])], [CFLAGS="$CFLAGS -std=${stdc}11"], [CFLAGS="$CFLAGS -std=${stdc}99"]) 16 | -AC_CHECK_HEADERS([stdint.h stdbool.h], [], [AC_MSG_ERROR([toolchain does not have C99 headers])]) 17 | 18 | # --------------------------------------------------------------------------- 19 | # Outputs 20 | -------------------------------------------------------------------------------- /libs/libzdb/patches/020-filterh-use-host-built-version.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile.am 2 | +++ b/Makefile.am 3 | @@ -12,7 +12,7 @@ LIBRARY_NAME = zdb 4 | 5 | RE2C = @RE2C@ 6 | RE2CFLAGS = -b 7 | -FILTERH = ./tools/bin/filterh 8 | +FILTERH = $(STAGING_DIR_HOSTPKG)/bin/filterh 9 | 10 | AM_CPPFLAGS = $(CPPFLAGS) $(DBCPPFLAGS) 11 | AM_CPPFLAGS += -Isrc -Isrc/util -Isrc/net -Isrc/db -Isrc/db/oracle -Isrc/exceptions 12 | -------------------------------------------------------------------------------- /libs/nspr/patches/001-compile.patch: -------------------------------------------------------------------------------- 1 | --- a/nspr/config/Makefile.in 2 | +++ b/nspr/config/Makefile.in 3 | @@ -30,7 +30,6 @@ CSRCS = now.c 4 | 5 | # This version hasn't been ported for us; the one in mozilla/config has 6 | ifneq ($(OS_ARCH),OS2) 7 | -CSRCS += nsinstall.c 8 | 9 | PLSRCS = nfspwd.pl 10 | endif 11 | @@ -84,7 +83,6 @@ else 12 | ifeq (,$(filter-out SYMBIAN WINCE,$(OS_ARCH))) 13 | TARGETS = $(PROGS) 14 | else 15 | -PROGS += $(OBJDIR)/nsinstall$(PROG_SUFFIX) 16 | TARGETS = $(PROGS) $(PLSRCS:.pl=) 17 | endif 18 | endif 19 | @@ -114,6 +112,7 @@ endif 20 | $(OBJDIR)/%$(PROG_SUFFIX): $(OBJDIR)/%.$(OBJ_SUFFIX) 21 | @$(MAKE_OBJDIR) 22 | $(CC) $(XCFLAGS) $< $(LDFLAGS) $(XLDOPTS) $(OUTOPTION)$@ 23 | + gcc nsinstall.c -o nsinstall 24 | 25 | install:: nspr.m4 26 | $(NSINSTALL) -D $(DESTDIR)$(datadir)/aclocal 27 | -------------------------------------------------------------------------------- /libs/opencv/README.md: -------------------------------------------------------------------------------- 1 | Introduction 2 | === 3 | 4 | #### OpenCV: Open Source Computer Vision Library.OpenCV is based on (open source) issued cross-platform computer vision library, you can run on Linux, Windows and Mac OS operating systems. 5 | 6 | #### Resources 7 | 8 | * Homepage: 9 | * Docs: 10 | * Q&A forum: 11 | * Issue tracking: 12 | 13 | #### Contributing 14 | 15 | Please read before starting work on a pull request: 16 | 17 | Summary of guidelines: 18 | 19 | * One pull request per issue; 20 | * Choose the right base branch; 21 | * Include tests and documentation; 22 | * Clean up "oops" commits before submitting; 23 | * Follow the coding style guide. 24 | -------------------------------------------------------------------------------- /libs/pwlib/patches/002-lib_mak.patch: -------------------------------------------------------------------------------- 1 | --- pwlib-cvs-20051227/make/lib.mak.orig 2005-09-25 12:51:23.000000000 +0200 2 | +++ pwlib-cvs-20051227/make/lib.mak 2005-12-30 01:18:21.000000000 +0100 3 | @@ -201,7 +201,7 @@ 4 | LDSOOPTS += -Wl,--kill-at 5 | else 6 | ifneq ($(OSTYPE),Darwin) 7 | - LDSOOPTS += -Wl,-soname,$(LIB_SONAME) 8 | + LDSOOPTS += -soname,$(LIB_SONAME) 9 | endif 10 | endif 11 | LD = $(CPLUS) 12 | -------------------------------------------------------------------------------- /libs/rblibtorrent/patches/enable-shared-linking.patch: -------------------------------------------------------------------------------- 1 | --- libtorrent-rasterbar-0.14.7/bindings/python/Makefile.in 2009-11-18 09:25:39.000000000 +0100 2 | +++ libtorrent-rasterbar-0.14.7/bindings/python/Makefile.in 2010-02-26 13:27:58.000000000 +0100 3 | @@ -408,7 +408,7 @@ 4 | 5 | 6 | @ENABLE_PYTHON_BINDING_TRUE@all-local: 7 | -@ENABLE_PYTHON_BINDING_TRUE@ $(PYTHON) setup.py build 8 | +@ENABLE_PYTHON_BINDING_TRUE@ CXX="$(CXX) -pthread -shared" $(PYTHON) setup.py build 9 | 10 | @ENABLE_PYTHON_BINDING_TRUE@install-exec-local: 11 | @ENABLE_PYTHON_BINDING_TRUE@ $(PYTHON) setup.py install @PYTHON_INSTALL_PARAMS@ 12 | -------------------------------------------------------------------------------- /libs/rxtx/patches/010-acm-devices.patch: -------------------------------------------------------------------------------- 1 | diff -rupN rxtx-2.2pre2/src/gnu/io/RXTXCommDriver.java rxtx-2.2pre2.new/src/gnu/io/RXTXCommDriver.java 2 | --- rxtx-2.2pre2/src/gnu/io/RXTXCommDriver.java 2008-11-13 16:44:01.000000000 -0800 3 | +++ rxtx-2.2pre2.new/src/gnu/io/RXTXCommDriver.java 2015-08-21 16:19:14.330743949 -0700 4 | @@ -579,6 +579,7 @@ public class RXTXCommDriver implements C 5 | "ttyUSB", // for USB frobs 6 | "rfcomm", // bluetooth serial device 7 | "ttyircomm", // linux IrCommdevices (IrDA serial emu) 8 | + "ttyACM" // linux CDC ACM devices 9 | }; 10 | CandidatePortPrefixes=Temp; 11 | } 12 | -------------------------------------------------------------------------------- /libs/zaptel-1.4.x/files/10-create-device-node: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | case "$ACTION" in 4 | add) 5 | /bin/mkdir -p /dev/zap 6 | /bin/mknod -m 0644 /dev/zap/${DEVICENAME#zap} c $MAJOR $MINOR 7 | ;; 8 | esac 9 | 10 | -------------------------------------------------------------------------------- /libs/zaptel-1.4.x/patches/100-no_hrtimer_on_x86_only.patch: -------------------------------------------------------------------------------- 1 | --- 2 | kernel/ztdummy.c | 2 -- 3 | 1 file changed, 2 deletions(-) 4 | 5 | --- a/kernel/ztdummy.c 6 | +++ b/kernel/ztdummy.c 7 | @@ -53,7 +53,6 @@ 8 | * If using an i386 architecture without a PC real-time clock, 9 | * the #define USE_RTC should be commented out. 10 | */ 11 | -#if defined(__i386__) || defined(__x86_64__) 12 | #if LINUX_VERSION_CODE >= VERSION_CODE(2,6,15) 13 | /* The symbol hrtimer_forward is only exported as of 2.6.22: */ 14 | #if defined(CONFIG_HIGH_RES_TIMERS) && LINUX_VERSION_CODE >= VERSION_CODE(2,6,22) 15 | @@ -66,7 +65,6 @@ 16 | #define USE_RTC 17 | #endif 18 | #endif 19 | -#endif 20 | 21 | #include 22 | #include 23 | -------------------------------------------------------------------------------- /libs/zaptel-1.4.x/patches/200-Makefile-pwd.patch: -------------------------------------------------------------------------------- 1 | --- 2 | Makefile | 1 + 3 | 1 file changed, 1 insertion(+) 4 | 5 | --- a/Makefile 6 | +++ b/Makefile 7 | @@ -18,6 +18,7 @@ ifeq ($(MAKELEVEL),0) 8 | PWD:=$(shell pwd) 9 | export PWD 10 | endif 11 | +PWD:=`pwd` 12 | 13 | ifeq ($(ARCH),) 14 | ARCH:=$(shell uname -m | sed -e s/i.86/i386/) 15 | -------------------------------------------------------------------------------- /libs/zaptel-1.4.x/patches/330-uname_m.patch: -------------------------------------------------------------------------------- 1 | --- 2 | Makefile | 2 +- 3 | 1 file changed, 1 insertion(+), 1 deletion(-) 4 | 5 | --- a/Makefile 6 | +++ b/Makefile 7 | @@ -25,7 +25,7 @@ ARCH:=$(shell uname -m | sed -e s/i.86/i 8 | endif 9 | 10 | ifeq ($(DEB_HOST_GNU_TYPE),) 11 | -UNAME_M:=$(shell uname -m) 12 | +UNAME_M:=$(ARCH) 13 | else 14 | UNAME_M:=$(DEB_HOST_GNU_TYPE) 15 | endif 16 | -------------------------------------------------------------------------------- /libs/zaptel-1.4.x/patches/340-2.6.32.patch: -------------------------------------------------------------------------------- 1 | --- 2 | kernel/zaptel-base.c | 3 +++ 3 | 1 file changed, 3 insertions(+) 4 | 5 | --- a/kernel/zaptel-base.c 6 | +++ b/kernel/zaptel-base.c 7 | @@ -59,6 +59,9 @@ 8 | #include 9 | #endif 10 | #include 11 | +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,32) 12 | +#include 13 | +#endif 14 | 15 | #ifndef CONFIG_OLD_HDLC_API 16 | #define NEW_HDLC_INTERFACE 17 | -------------------------------------------------------------------------------- /libs/zaptel-1.4.x/patches/350-2.6.34.patch: -------------------------------------------------------------------------------- 1 | --- a/kernel/zconfig.h 2 | +++ b/kernel/zconfig.h 3 | @@ -22,6 +22,8 @@ 4 | #include 5 | #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,18) 6 | #include 7 | +#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 33)) 8 | +#include 9 | #else 10 | #include 11 | #endif 12 | -------------------------------------------------------------------------------- /libs/zaptel-1.4.x/patches/360-slab.patch: -------------------------------------------------------------------------------- 1 | --- a/kernel/wctdm.c 2 | +++ b/kernel/wctdm.c 3 | @@ -30,6 +30,8 @@ 4 | #include 5 | #include 6 | #include 7 | +#include 8 | +#include 9 | #include 10 | #include "proslic.h" 11 | #include "wctdm.h" 12 | --- a/kernel/wcusb.c 13 | +++ b/kernel/wcusb.c 14 | @@ -37,6 +37,7 @@ 15 | #include 16 | #include 17 | #include 18 | +#include 19 | 20 | #include 21 | #if LINUX_VERSION_CODE > KERNEL_VERSION(2,4,19) 22 | --- a/kernel/ztdummy.c 23 | +++ b/kernel/ztdummy.c 24 | @@ -38,6 +38,7 @@ 25 | */ 26 | 27 | #include 28 | +#include 29 | 30 | #ifndef VERSION_CODE 31 | # define VERSION_CODE(vers,rel,seq) ( ((vers)<<16) | ((rel)<<8) | (seq) ) 32 | -------------------------------------------------------------------------------- /libs/zaptel-1.4.x/patches/370-2.6.36.patch: -------------------------------------------------------------------------------- 1 | --- 2 | kernel/zaptel-base.c | 18 ++++++++++++++++++ 3 | 1 file changed, 18 insertions(+) 4 | 5 | --- a/kernel/zaptel-base.c 6 | +++ b/kernel/zaptel-base.c 7 | @@ -5181,6 +5181,20 @@ static int zt_ioctl(struct inode *inode, 8 | return zt_chan_ioctl(inode, file, cmd, data, unit); 9 | } 10 | 11 | +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,36) 12 | +#include 13 | +static long zt_ioctl_unlocked(struct file *file, unsigned int cmd, unsigned long data) 14 | +{ 15 | + int ret; 16 | + 17 | + lock_kernel(); 18 | + ret = zt_ioctl(file->f_path.dentry->d_inode, file, cmd, data); 19 | + unlock_kernel(); 20 | + 21 | + return ret; 22 | +} 23 | +#endif 24 | + 25 | int zt_register(struct zt_span *span, int prefmaster) 26 | { 27 | int x; 28 | @@ -7632,7 +7646,11 @@ static struct file_operations zt_fops = 29 | llseek: NULL, 30 | open: zt_open, 31 | release: zt_release, 32 | +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,36) 33 | + unlocked_ioctl: zt_ioctl_unlocked, 34 | +#else 35 | ioctl: zt_ioctl, 36 | +#endif 37 | read: zt_read, 38 | write: zt_write, 39 | poll: zt_poll, 40 | -------------------------------------------------------------------------------- /libs/zaptel-1.4.x/patches/371-3.x.patch: -------------------------------------------------------------------------------- 1 | --- a/kernel/zaptel-base.c 2 | +++ b/kernel/zaptel-base.c 3 | @@ -5182,14 +5182,20 @@ static int zt_ioctl(struct inode *inode, 4 | } 5 | 6 | #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,36) 7 | +#ifdef CONFIG_BKL 8 | #include 9 | +#endif 10 | static long zt_ioctl_unlocked(struct file *file, unsigned int cmd, unsigned long data) 11 | { 12 | int ret; 13 | 14 | +#ifdef CONFIG_BKL 15 | lock_kernel(); 16 | +#endif 17 | ret = zt_ioctl(file->f_path.dentry->d_inode, file, cmd, data); 18 | +#ifdef CONFIG_BKL 19 | unlock_kernel(); 20 | +#endif 21 | 22 | return ret; 23 | } 24 | -------------------------------------------------------------------------------- /libs/zaptel-1.4.x/patches/380-use_cross_ar.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile 2 | +++ b/Makefile 3 | @@ -30,6 +30,9 @@ else 4 | UNAME_M:=$(DEB_HOST_GNU_TYPE) 5 | endif 6 | 7 | +AR ?= ar 8 | +RANLIB ?= ranlib 9 | + 10 | # If you want to build for a kernel other than the current kernel, set KVERS 11 | ifndef KVERS 12 | KVERS:=$(shell uname -r) 13 | @@ -352,8 +355,8 @@ ztspeed: CFLAGS= 14 | sethdlc-new: CFLAGS+=-I$(KINCLUDES) 15 | 16 | $(LTZ_A): $(LTZ_A_OBJS) 17 | - ar rcs $@ $^ 18 | - ranlib $@ 19 | + $(AR) rcs $@ $^ 20 | + $(RANLIB) $@ 21 | 22 | $(LTZ_SO): $(LTZ_SO_OBJS) 23 | $(CC) $(CFLAGS) -shared -Wl,-soname,$(LTZ_SO).$(LTZ_SO_MAJOR_VER).$(LTZ_SO_MINOR_VER) -o $@ $^ $(LDFLAGS) $(LDLIBS) -lm 24 | -------------------------------------------------------------------------------- /libs/zaptel-1.4.x/patches/390-include_spinlock_h.patch: -------------------------------------------------------------------------------- 1 | --- a/kernel/ztdummy.c 2 | +++ b/kernel/ztdummy.c 3 | @@ -79,6 +79,7 @@ 4 | #include 5 | #endif 6 | #ifdef LINUX26 7 | +#include 8 | #ifdef USE_HIGHRESTIMER 9 | #include 10 | #endif 11 | @@ -328,7 +329,7 @@ int init_module(void) 12 | #ifdef LINUX26 13 | ztd->counter = 0; 14 | #ifdef USE_RTC 15 | - ztd->rtclock = SPIN_LOCK_UNLOCKED; 16 | + spin_lock_init(&ztd->rtclock); 17 | ztd->rtc_task.func = ztdummy_rtc_interrupt; 18 | ztd->rtc_task.private_data = ztd; 19 | err = rtc_register(&ztd->rtc_task); 20 | -------------------------------------------------------------------------------- /libs/zaptel/patches/110-Makefile-tonezone_install.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile 2 | +++ b/Makefile 3 | @@ -501,6 +501,16 @@ install-include: zaptel.h torisa.h 4 | install -d $(DESTDIR)$(INCLUDE_DIR)/linux 5 | install -m 644 zaptel.h torisa.h $(DESTDIR)$(INCLUDE_DIR)/linux/ 6 | 7 | +install-tonezone: $(LIBTONEZONE_SO) 8 | + install -D -m 755 $(LIBTONEZONE_SO) $(DESTDIR)/usr/lib/$(LIBTONEZONE_SO).$(LIBTONEZONE_SO_MAJOR_VER).$(LIBTONEZONE_SO_MINOR_VER) 9 | + rm -f $(DESTDIR)/usr/lib/$(LIBTONEZONE_SO) 10 | + ln -sf $(LIBTONEZONE_SO).$(LIBTONEZONE_SO_MAJOR_VER).$(LIBTONEZONE_SO_MINOR_VER) \ 11 | + $(DESTDIR)/usr/lib/$(LIBTONEZONE_SO).$(LIBTONEZONE_SO_MAJOR_VER) 12 | + ln -sf $(LIBTONEZONE_SO).$(LIBTONEZONE_SO_MAJOR_VER).$(LIBTONEZONE_SO_MINOR_VER) \ 13 | + $(DESTDIR)/usr/lib/$(LIBTONEZONE_SO) 14 | + install -D -m 644 zaptel.h $(DESTDIR)/usr/include/linux/zaptel.h 15 | + install -D -m 644 tonezone.h $(DESTDIR)/usr/include/tonezone.h 16 | + 17 | install-udev: devices 18 | 19 | # FIRMWARE_DIR also implies HOTPLUG_FIRMWARE, unless set manually. 20 | -------------------------------------------------------------------------------- /mail/clamsmtp/files/clamsmtpd.init: -------------------------------------------------------------------------------- 1 | #!/bin/sh /etc/rc.common 2 | # Copyright (C) 2017 Lucian Cristian 3 | 4 | START=91 5 | USE_PROCD=1 6 | 7 | PROG=/usr/sbin/clamsmtpd 8 | 9 | start_service(){ 10 | procd_open_instance 11 | procd_set_param command $PROG -p /var/run/clamsmtpd.pid 12 | procd_close_instance 13 | } 14 | service_triggers(){ 15 | procd_add_reload_trigger "clamsmtpd" 16 | } 17 | -------------------------------------------------------------------------------- /mail/clamsmtp/patches/010-fix-build.patch: -------------------------------------------------------------------------------- 1 | --- a/configure.in 2 | +++ b/configure.in 3 | @@ -78,16 +78,6 @@ AC_CHECK_HEADERS([limits.h err.h paths.h],,) 4 | AC_CHECK_HEADERS([unistd.h stdio.h stddef.h fcntl.h stdlib.h assert.h errno.h stdarg.h string.h netdb.h], , 5 | [echo "ERROR: Required C header missing"; exit 1]) 6 | 7 | -# Check for linux type transparent proxy support 8 | -AC_CHECK_HEADERS([linux/netfilter_ipv4.h], 9 | - AC_DEFINE(LINUX_TRANSPARENT_PROXY, 1, [Whether the system supports a linux type transparent proxy]), 10 | - , 11 | - [[ 12 | - #ifdef HAVE_LIMITS_H 13 | - #include 14 | - #endif 15 | - ]] ) 16 | - 17 | # Checks for typedefs, structures, and compiler characteristics. 18 | AC_C_CONST 19 | AC_TYPE_SIZE_T 20 | -------------------------------------------------------------------------------- /mail/mailman/files/mailman.init: -------------------------------------------------------------------------------- 1 | #!/bin/sh /etc/rc.common 2 | # Copyright (C) 2014 OpenWrt.org 3 | 4 | START=50 5 | STOP=50 6 | 7 | PYTHON=/usr/bin/python2 8 | MAILMANHOME=/usr/local/mailman 9 | MAILMANCTL=$MAILMANHOME/bin/mailmanctl 10 | 11 | start() { 12 | #rm -f $MAILMANHOME/locks/* 13 | $PYTHON $MAILMANCTL -s -q start 14 | } 15 | 16 | stop() { 17 | $PYTHON $MAILMANCTL -q stop 18 | } 19 | 20 | restart() { 21 | $PYTHON $MAILMANCTL -q restart 22 | } 23 | -------------------------------------------------------------------------------- /mail/mailman/patches/100-postfix.patch: -------------------------------------------------------------------------------- 1 | --- a/Mailman/Defaults.py.in 2 | +++ b/Mailman/Defaults.py.in 3 | @@ -506,7 +506,7 @@ SMTPLIB_DEBUG_LEVEL = 0 4 | # standard out (or send an email to the site list owner) for manual twiddling 5 | # of an /etc/aliases style file. Use 'Postfix' if you are using the Postfix 6 | # MTA -- but then also see POSTFIX_STYLE_VIRTUAL_DOMAINS. 7 | -MTA = 'Manual' 8 | +MTA = 'Postfix' 9 | 10 | # If you set MTA='Postfix', then you also want to set the following variable, 11 | # depending on whether you're using virtual domains in Postfix, and which 12 | -------------------------------------------------------------------------------- /mail/mailman/patches/300-targetpython.patch: -------------------------------------------------------------------------------- 1 | --- a/configure 2 | +++ b/configure 3 | @@ -3957,6 +3957,8 @@ fi 4 | $as_echo "$URLHOST" >&6; } 5 | rm -f conftest.out conftest.py 6 | 7 | +PYTHON=/usr/bin/python2 8 | + 9 | # Checks for libraries. 10 | 11 | for ac_func in strerror setregid syslog 12 | -------------------------------------------------------------------------------- /mail/msmtp-scripts/files/msmtpq-ng-mta.init: -------------------------------------------------------------------------------- 1 | #!/bin/sh /etc/rc.common 2 | # Copyright (C) 2006-2016 OpenWrt.org 3 | 4 | START=90 5 | 6 | boot() { 7 | if [ ! -d /var/spool/msmtp ]; then 8 | mkdir -m1777 -p /var/spool/msmtp 9 | else 10 | chmod 1777 /var/spool/msmtp 11 | fi 12 | 13 | if [ ! -d /var/lock/msmtp ]; then 14 | mkdir -m1777 -p /var/lock/msmtp 15 | else 16 | chmod 1777 /var/spool/msmtp 17 | fi 18 | } 19 | 20 | -------------------------------------------------------------------------------- /mail/msmtp-scripts/files/msmtpq-ng-mta.rc: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | #Q=/var/spool/msmtp/"$(id -un)" 4 | #LOG=syslog 5 | #MAXLOGLEVEL=7 6 | #MSMTP_LOCK_DIR=/var/lock/msmtp/"$(id -un)" 7 | #MSMTP_UMASK=077 8 | #MSMTP_LOG_UMASK=007 9 | #MSMTP_QUEUE_QUIET=true 10 | #MSMTP_IGNORE_NO_RECIPIENTS=true 11 | #MSMTP_QUEUE_ONLY=false 12 | #MSMTP_SEND_DELAY=0 13 | #MSMTP_MAXIMUM_QUEUE_LIFETIME=345600 # Four days 14 | #MSMTPQ_NG=msmtpq-ng 15 | #MSMTPQ_NG_QUEUE=msmtpq-ng-queue 16 | #MSMTP_CONF=/etc/msmtprc 17 | EMAIL_CONN_TEST=n 18 | #EMAIL_CONN_TEST_PING=openwrt.org 19 | #EMAIL_CONN_TEST_IP=8.8.8.8 20 | EMAIL_CONN_TEST_SITE=openwrt.org 21 | #MSMTP_HOLD_SMTP_MAIL=true 22 | #MSMTP_HOLD_CLI_MAIL=false 23 | -------------------------------------------------------------------------------- /mail/msmtp-scripts/files/msmtpq-ng.rc: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | #Q=~/msmtp.queue 4 | #LOG=~/log/.msmtp.queue.log 5 | #MAXLOGLEVEL=7 6 | #MSMTP_LOCK_DIR=~/.msmtp.lock 7 | EMAIL_CONN_TEST=n 8 | #EMAIL_CONN_TEST_PING=openwrt.org 9 | #EMAIL_CONN_TEST_IP=8.8.8.8 10 | EMAIL_CONN_TEST_SITE=openwrt.org 11 | #MSMTP_UMASK=077 12 | #MSMTP_LOG_UMASK=077 13 | #MSMTP_QUEUE_QUIET=false 14 | #MSMTP_IGNORE_NO_RECIPIENTS=true 15 | #MSMTP_QUEUE_ONLY=false 16 | #MSMTP_SEND_DELAY=0 17 | #MSMTP_MAXIMUM_QUEUE_LIFETIME=345600 # Four days 18 | #MSMTP=msmtp 19 | #MSMTPQ_NG_QUEUE=msmtpq-ng-queue 20 | #MSMTP_HOLD_SMTP_MAIL=true 21 | #MSMTP_HOLD_CLI_MAIL=false 22 | #MSMTP_CONF=/etc/msmtprc 23 | #LOCK_CMD=flock 24 | -------------------------------------------------------------------------------- /mail/ssmtp/patches/006-add_ip-header.patch: -------------------------------------------------------------------------------- 1 | --- a/ssmtp.c 2 | +++ b/ssmtp.c 3 | @@ -1338,6 +1338,7 @@ ssmtp() -- send the message (exactly one 4 | int ssmtp(char *argv[]) 5 | { 6 | char b[(BUF_SZ + 2)], *buf = b+1, *p, *q; 7 | + char *remote_addr; 8 | #ifdef MD5AUTH 9 | char challenge[(BUF_SZ + 1)]; 10 | #endif 11 | @@ -1541,6 +1542,10 @@ int ssmtp(char *argv[]) 12 | outbytes += smtp_write(sock, "From: %s", from); 13 | } 14 | 15 | + if(remote_addr=getenv("REMOTE_ADDR")) { 16 | + outbytes += smtp_write(sock, "X-Originating-IP: %s", remote_addr); 17 | + } 18 | + 19 | if(have_date == False) { 20 | outbytes += smtp_write(sock, "Date: %s", arpadate); 21 | } 22 | -------------------------------------------------------------------------------- /mail/ssmtp/patches/008-remove_garbage.patch: -------------------------------------------------------------------------------- 1 | --- a/ssmtp.c 2 | +++ b/ssmtp.c 3 | @@ -1591,12 +1591,12 @@ int ssmtp(char *argv[]) 4 | outbytes += smtp_write(sock, "%s", leadingdot ? b : buf); 5 | } else { 6 | if (log_level > 0) { 7 | - log_event(LOG_INFO, "Sent a very long line in chunks"); 8 | + log_event(LOG_INFO, "Sending a partial line"); 9 | } 10 | if (leadingdot) { 11 | - outbytes += fd_puts(sock, b, sizeof(b)); 12 | + outbytes += fd_puts(sock, b, strlen(b)); 13 | } else { 14 | - outbytes += fd_puts(sock, buf, bufsize); 15 | + outbytes += fd_puts(sock, buf, strlen(buf)); 16 | } 17 | } 18 | (void)alarm((unsigned) MEDWAIT); 19 | -------------------------------------------------------------------------------- /mail/ssmtp/patches/020-openssl-deprecated.patch: -------------------------------------------------------------------------------- 1 | --- a/ssmtp.c 2 | +++ b/ssmtp.c 3 | @@ -1046,8 +1046,10 @@ int smtp_open(char *host, int port) 4 | /* Init SSL stuff */ 5 | SSL_CTX *ctx = NULL; 6 | X509 *server_cert; 7 | +#if OPENSSL_VERSION_NUMBER < 0x10100000L 8 | SSL_load_error_strings(); 9 | SSLeay_add_ssl_algorithms(); 10 | +#endif 11 | ctx = SSL_CTX_new(SSLv23_client_method()); 12 | if(!ctx) { 13 | log_event(LOG_ERR, "No SSL support initiated\n"); 14 | -------------------------------------------------------------------------------- /multimedia/crtmpserver/files/crtmpserver.init: -------------------------------------------------------------------------------- 1 | #!/bin/sh /etc/rc.common 2 | # Copyright (C) 2009-2010 OpenWrt.org 3 | 4 | START=99 5 | STOP=80 6 | 7 | SERVICE_USE_PID=1 8 | 9 | CRTMPSERVER_BIN="/usr/bin/crtmpserver" 10 | CRTMPSERVER_CONFIG="/etc/crtmpserver.lua" 11 | CRTMPSERVER_PID="/var/run/crtmpserver.pid" 12 | 13 | start() 14 | { 15 | echo "start $CRTMPSERVER_BIN" 16 | start-stop-daemon -S -x "$CRTMPSERVER_BIN" -- --daemon --pid="$CRTMPSERVER_PID" \ 17 | "$CRTMPSERVER_CONFIG" 18 | } 19 | stop() { 20 | 21 | echo "stop $CRTMPSERVER_BIN" 22 | start-stop-daemon -K -x $CRTMPSERVER_BIN -p $CRTMPSERVER_PID 23 | } 24 | 25 | reload() 26 | { 27 | stop 28 | start 29 | } 30 | 31 | -------------------------------------------------------------------------------- /multimedia/crtmpserver/patches/080-fix-define.patch: -------------------------------------------------------------------------------- 1 | --- a/sources/thelib/include/protocols/ts/basetsappprotocolhandler.h 2 | +++ b/sources/thelib/include/protocols/ts/basetsappprotocolhandler.h 3 | @@ -18,7 +18,7 @@ 4 | */ 5 | 6 | 7 | -#if defined HAS_PROTOCOL_TS && defined HAS_MEDIA_TS 8 | +#if defined HAS_PROTOCOL_TS || defined HAS_MEDIA_TS 9 | #ifndef _BASETSAPPPROTOCOLHANDLER_H 10 | #define _BASETSAPPPROTOCOLHANDLER_H 11 | 12 | -------------------------------------------------------------------------------- /multimedia/gerbera/files/gerbera.config: -------------------------------------------------------------------------------- 1 | config gerbera config 2 | option enabled '0' 3 | option debug '0' 4 | option user 'gerbera' 5 | option group 'gerbera' 6 | option home '/tmp/gerbera' 7 | -------------------------------------------------------------------------------- /multimedia/gerbera/patches/010-matroska-memory-leak.patch: -------------------------------------------------------------------------------- 1 | From c479fba2f0f478e828cd08dde3c3b5e8ae7908d4 Mon Sep 17 00:00:00 2001 2 | From: Rosen Penev 3 | Date: Mon, 29 Nov 2021 18:31:14 -0800 4 | Subject: [PATCH] fix matroska memory leaks 5 | 6 | Signed-off-by: Rosen Penev 7 | --- 8 | src/metadata/matroska_handler.cc | 2 -- 9 | 1 file changed, 2 deletions(-) 10 | 11 | --- a/src/metadata/matroska_handler.cc 12 | +++ b/src/metadata/matroska_handler.cc 13 | @@ -137,8 +137,6 @@ void MatroskaHandler::parseMKV(const std 14 | 15 | delete (elL1->SkipData(ebmlStream, EBML_CONTEXT(elL1))); 16 | delete elL1; 17 | - if (activeFlag == 0) // terminate search 18 | - break; 19 | } // while elementLevel1 20 | 21 | delete (elL0->SkipData(ebmlStream, LIBMATROSKA_NAMESPACE::KaxSegment_Context)); 22 | -------------------------------------------------------------------------------- /multimedia/gst-plugins-bad/patches/000-gettext.patch: -------------------------------------------------------------------------------- 1 | diff -ur gst-plugins-bad-0.10.19.orig/configure.ac gst-plugins-bad-0.10.19/configure.ac 2 | --- gst-plugins-bad-0.10.19.orig/configure.ac 2011-01-07 01:44:21.000000000 +0100 3 | +++ gst-plugins-bad-0.10.19/configure.ac 2011-01-07 01:45:31.000000000 +0100 4 | @@ -1772,7 +1772,6 @@ 5 | ext/vp8/Makefile 6 | ext/xvid/Makefile 7 | ext/zbar/Makefile 8 | -po/Makefile.in 9 | docs/Makefile 10 | docs/plugins/Makefile 11 | docs/version.entities 12 | diff -ur gst-plugins-bad-0.10.19.orig/Makefile.am gst-plugins-bad-0.10.19/Makefile.am 13 | --- gst-plugins-bad-0.10.19.orig/Makefile.am 2011-01-07 01:44:21.000000000 +0100 14 | +++ gst-plugins-bad-0.10.19/Makefile.am 2011-01-07 01:46:17.000000000 +0100 15 | @@ -2,7 +2,7 @@ 16 | 17 | SUBDIRS = \ 18 | gst-libs gst sys ext pkgconfig \ 19 | - m4 common docs tests po tools 20 | + m4 common docs tests tools 21 | 22 | DIST_SUBDIRS = \ 23 | gst gst-libs sys ext pkgconfig \ 24 | -------------------------------------------------------------------------------- /multimedia/gst-plugins-base/patches/001-no_docs.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile.am 2 | +++ b/Makefile.am 3 | @@ -12,14 +12,12 @@ SUBDIRS = \ 4 | gst sys $(SUBDIRS_EXT) \ 5 | tools \ 6 | tests \ 7 | - docs \ 8 | po \ 9 | common \ 10 | m4 11 | 12 | DIST_SUBDIRS = \ 13 | pkgconfig \ 14 | - docs \ 15 | gst-libs \ 16 | gst sys ext \ 17 | tools \ 18 | --- a/Makefile.in 19 | +++ b/Makefile.in 20 | @@ -464,14 +464,12 @@ SUBDIRS = \ 21 | gst sys $(SUBDIRS_EXT) \ 22 | tools \ 23 | tests \ 24 | - docs \ 25 | po \ 26 | common \ 27 | m4 28 | 29 | DIST_SUBDIRS = \ 30 | pkgconfig \ 31 | - docs \ 32 | gst-libs \ 33 | gst sys ext \ 34 | tools \ 35 | -------------------------------------------------------------------------------- /multimedia/gst-plugins-base/patches/002-no_tests.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile.am 2 | +++ b/Makefile.am 3 | @@ -11,7 +11,6 @@ SUBDIRS = \ 4 | gst-libs \ 5 | gst sys $(SUBDIRS_EXT) \ 6 | tools \ 7 | - tests \ 8 | po \ 9 | common \ 10 | m4 11 | @@ -21,7 +20,6 @@ DIST_SUBDIRS = \ 12 | gst-libs \ 13 | gst sys ext \ 14 | tools \ 15 | - tests \ 16 | po \ 17 | common \ 18 | m4 19 | --- a/Makefile.in 20 | +++ b/Makefile.in 21 | @@ -463,7 +463,6 @@ SUBDIRS = \ 22 | gst-libs \ 23 | gst sys $(SUBDIRS_EXT) \ 24 | tools \ 25 | - tests \ 26 | po \ 27 | common \ 28 | m4 29 | @@ -473,7 +472,6 @@ DIST_SUBDIRS = \ 30 | gst-libs \ 31 | gst sys ext \ 32 | tools \ 33 | - tests \ 34 | po \ 35 | common \ 36 | m4 37 | -------------------------------------------------------------------------------- /multimedia/gst-plugins-base/patches/003-no_translations.patch: -------------------------------------------------------------------------------- 1 | --- a/configure.ac 2 | +++ b/configure.ac 3 | @@ -1031,7 +1031,6 @@ docs/design/Makefile 4 | docs/libs/Makefile 5 | docs/plugins/Makefile 6 | docs/version.entities 7 | -po/Makefile.in 8 | common/Makefile 9 | common/m4/Makefile 10 | m4/Makefile 11 | --- a/Makefile.am 12 | +++ b/Makefile.am 13 | @@ -11,7 +11,6 @@ SUBDIRS = \ 14 | gst-libs \ 15 | gst sys $(SUBDIRS_EXT) \ 16 | tools \ 17 | - po \ 18 | common \ 19 | m4 20 | 21 | @@ -20,7 +19,6 @@ DIST_SUBDIRS = \ 22 | gst-libs \ 23 | gst sys ext \ 24 | tools \ 25 | - po \ 26 | common \ 27 | m4 28 | 29 | --- a/Makefile.in 30 | +++ b/Makefile.in 31 | @@ -463,7 +463,6 @@ SUBDIRS = \ 32 | gst-libs \ 33 | gst sys $(SUBDIRS_EXT) \ 34 | tools \ 35 | - po \ 36 | common \ 37 | m4 38 | 39 | @@ -472,7 +471,6 @@ DIST_SUBDIRS = \ 40 | gst-libs \ 41 | gst sys ext \ 42 | tools \ 43 | - po \ 44 | common \ 45 | m4 46 | 47 | -------------------------------------------------------------------------------- /multimedia/gst-plugins-good/patches/001-no_docs.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile.am 2 | +++ b/Makefile.am 3 | @@ -9,7 +9,6 @@ endif 4 | ALWAYS_SUBDIRS = \ 5 | gst sys ext \ 6 | tests \ 7 | - docs \ 8 | po \ 9 | common \ 10 | m4 \ 11 | --- a/Makefile.in 12 | +++ b/Makefile.in 13 | @@ -476,7 +476,6 @@ DISTCHECK_CONFIGURE_FLAGS = --enable-gtk 14 | ALWAYS_SUBDIRS = \ 15 | gst sys ext \ 16 | tests \ 17 | - docs \ 18 | po \ 19 | common \ 20 | m4 \ 21 | -------------------------------------------------------------------------------- /multimedia/gst-plugins-good/patches/002-no_tests.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile.am 2 | +++ b/Makefile.am 3 | @@ -8,7 +8,6 @@ endif 4 | 5 | ALWAYS_SUBDIRS = \ 6 | gst sys ext \ 7 | - tests \ 8 | po \ 9 | common \ 10 | m4 \ 11 | --- a/Makefile.in 12 | +++ b/Makefile.in 13 | @@ -475,7 +475,6 @@ DISTCHECK_CONFIGURE_FLAGS = --enable-gtk 14 | @USE_GCONFTOOL_TRUE@GCONF_DIR = gconf 15 | ALWAYS_SUBDIRS = \ 16 | gst sys ext \ 17 | - tests \ 18 | po \ 19 | common \ 20 | m4 \ 21 | -------------------------------------------------------------------------------- /multimedia/gst-plugins-good/patches/003-no_translations.patch: -------------------------------------------------------------------------------- 1 | --- a/configure.ac 2 | +++ b/configure.ac 3 | @@ -1147,7 +1147,6 @@ sys/sunaudio/Makefile 4 | sys/v4l2/Makefile 5 | sys/waveform/Makefile 6 | sys/ximage/Makefile 7 | -po/Makefile.in 8 | tests/Makefile 9 | tests/check/Makefile 10 | tests/examples/Makefile 11 | --- a/Makefile.am 12 | +++ b/Makefile.am 13 | @@ -8,7 +8,6 @@ endif 14 | 15 | ALWAYS_SUBDIRS = \ 16 | gst sys ext \ 17 | - po \ 18 | common \ 19 | m4 \ 20 | pkgconfig 21 | --- a/Makefile.in 22 | +++ b/Makefile.in 23 | @@ -475,7 +475,6 @@ DISTCHECK_CONFIGURE_FLAGS = --enable-gtk 24 | @USE_GCONFTOOL_TRUE@GCONF_DIR = gconf 25 | ALWAYS_SUBDIRS = \ 26 | gst sys ext \ 27 | - po \ 28 | common \ 29 | m4 \ 30 | pkgconfig 31 | -------------------------------------------------------------------------------- /multimedia/gst-plugins-ugly/patches/001-no_docs.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile.am 2 | +++ b/Makefile.am 3 | @@ -1,7 +1,7 @@ 4 | DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc 5 | 6 | SUBDIRS = \ 7 | - gst-libs gst ext docs m4 tests common pkgconfig po 8 | + gst-libs gst ext m4 tests common pkgconfig po 9 | 10 | # include before EXTRA_DIST for win32 assignment 11 | include $(top_srcdir)/common/win32.mak 12 | --- a/Makefile.in 13 | +++ b/Makefile.in 14 | @@ -395,7 +395,7 @@ top_builddir = @top_builddir@ 15 | top_srcdir = @top_srcdir@ 16 | DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc 17 | SUBDIRS = \ 18 | - gst-libs gst ext docs m4 tests common pkgconfig po 19 | + gst-libs gst ext m4 tests common pkgconfig po 20 | 21 | 22 | # the MANIFEST contains all win32 related files that should be disted 23 | -------------------------------------------------------------------------------- /multimedia/gst-plugins-ugly/patches/002-no_tests.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile.am 2 | +++ b/Makefile.am 3 | @@ -1,7 +1,7 @@ 4 | DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc 5 | 6 | SUBDIRS = \ 7 | - gst-libs gst ext m4 tests common pkgconfig po 8 | + gst-libs gst ext m4 common pkgconfig po 9 | 10 | # include before EXTRA_DIST for win32 assignment 11 | include $(top_srcdir)/common/win32.mak 12 | --- a/Makefile.in 13 | +++ b/Makefile.in 14 | @@ -395,7 +395,7 @@ top_builddir = @top_builddir@ 15 | top_srcdir = @top_srcdir@ 16 | DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc 17 | SUBDIRS = \ 18 | - gst-libs gst ext m4 tests common pkgconfig po 19 | + gst-libs gst ext m4 common pkgconfig po 20 | 21 | 22 | # the MANIFEST contains all win32 related files that should be disted 23 | -------------------------------------------------------------------------------- /multimedia/gst-plugins-ugly/patches/003-no_translations.patch: -------------------------------------------------------------------------------- 1 | --- a/configure.ac 2 | +++ b/configure.ac 3 | @@ -495,7 +495,6 @@ docs/version.entities 4 | tests/Makefile 5 | tests/check/Makefile 6 | m4/Makefile 7 | -po/Makefile.in 8 | pkgconfig/Makefile 9 | pkgconfig/gstreamer-plugins-ugly-uninstalled.pc 10 | gst-plugins-ugly.spec 11 | ) 12 | 13 | --- a/Makefile.am 14 | +++ b/Makefile.am 15 | @@ -1,7 +1,7 @@ 16 | DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc 17 | 18 | SUBDIRS = \ 19 | - gst-libs gst ext m4 common pkgconfig po 20 | + gst-libs gst ext m4 common pkgconfig 21 | 22 | # include before EXTRA_DIST for win32 assignment 23 | include $(top_srcdir)/common/win32.mak 24 | --- a/Makefile.in 25 | +++ b/Makefile.in 26 | @@ -395,7 +395,7 @@ top_builddir = @top_builddir@ 27 | top_srcdir = @top_srcdir@ 28 | DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc 29 | SUBDIRS = \ 30 | - gst-libs gst ext m4 common pkgconfig po 31 | + gst-libs gst ext m4 common pkgconfig 32 | 33 | 34 | # the MANIFEST contains all win32 related files that should be disted 35 | -------------------------------------------------------------------------------- /multimedia/gstreamer/patches/001-no_docs.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile.am 2 | +++ b/Makefile.am 3 | @@ -8,7 +8,6 @@ aclocal_DATA = gst-element-check-@GST_MA 4 | 5 | SUBDIRS = pkgconfig \ 6 | gst libs plugins tools tests \ 7 | - docs \ 8 | po \ 9 | m4 \ 10 | common 11 | @@ -16,7 +15,6 @@ SUBDIRS = pkgconfig \ 12 | # These are all the possible subdirs 13 | DIST_SUBDIRS = pkgconfig \ 14 | gst libs plugins tools tests \ 15 | - docs \ 16 | po \ 17 | m4 \ 18 | common 19 | --- a/Makefile.in 20 | +++ b/Makefile.in 21 | @@ -469,7 +469,6 @@ aclocaldir = $(datadir)/aclocal 22 | aclocal_DATA = gst-element-check-@GST_MAJORMINOR@.m4 23 | SUBDIRS = pkgconfig \ 24 | gst libs plugins tools tests \ 25 | - docs \ 26 | po \ 27 | m4 \ 28 | common 29 | @@ -478,7 +477,6 @@ SUBDIRS = pkgconfig \ 30 | # These are all the possible subdirs 31 | DIST_SUBDIRS = pkgconfig \ 32 | gst libs plugins tools tests \ 33 | - docs \ 34 | po \ 35 | m4 \ 36 | common 37 | -------------------------------------------------------------------------------- /multimedia/gstreamer/patches/002-no_tests.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile.am 2 | +++ b/Makefile.am 3 | @@ -7,14 +7,14 @@ aclocaldir = $(datadir)/aclocal 4 | aclocal_DATA = gst-element-check-@GST_MAJORMINOR@.m4 5 | 6 | SUBDIRS = pkgconfig \ 7 | - gst libs plugins tools tests \ 8 | + gst libs plugins tools \ 9 | po \ 10 | m4 \ 11 | common 12 | 13 | # These are all the possible subdirs 14 | DIST_SUBDIRS = pkgconfig \ 15 | - gst libs plugins tools tests \ 16 | + gst libs plugins tools \ 17 | po \ 18 | m4 \ 19 | common 20 | --- a/Makefile.in 21 | +++ b/Makefile.in 22 | @@ -468,7 +468,7 @@ DISTCHECK_CONFIGURE_FLAGS = --enable-gtk 23 | aclocaldir = $(datadir)/aclocal 24 | aclocal_DATA = gst-element-check-@GST_MAJORMINOR@.m4 25 | SUBDIRS = pkgconfig \ 26 | - gst libs plugins tools tests \ 27 | + gst libs plugins tools \ 28 | po \ 29 | m4 \ 30 | common 31 | @@ -476,7 +476,7 @@ SUBDIRS = pkgconfig \ 32 | 33 | # These are all the possible subdirs 34 | DIST_SUBDIRS = pkgconfig \ 35 | - gst libs plugins tools tests \ 36 | + gst libs plugins tools \ 37 | po \ 38 | m4 \ 39 | common 40 | -------------------------------------------------------------------------------- /multimedia/gstreamer/patches/003-no_translations.patch: -------------------------------------------------------------------------------- 1 | --- a/configure.ac 2 | +++ b/configure.ac 3 | @@ -763,7 +763,6 @@ libs/gst/net/Makefile 4 | plugins/Makefile 5 | plugins/indexers/Makefile 6 | plugins/elements/Makefile 7 | -po/Makefile.in 8 | tests/Makefile 9 | tests/benchmarks/Makefile 10 | tests/check/Makefile 11 | --- a/Makefile.am 12 | +++ b/Makefile.am 13 | @@ -8,14 +8,12 @@ aclocal_DATA = gst-element-check-@GST_MA 14 | 15 | SUBDIRS = pkgconfig \ 16 | gst libs plugins tools \ 17 | - po \ 18 | m4 \ 19 | common 20 | 21 | # These are all the possible subdirs 22 | DIST_SUBDIRS = pkgconfig \ 23 | gst libs plugins tools \ 24 | - po \ 25 | m4 \ 26 | common 27 | 28 | --- a/Makefile.in 29 | +++ b/Makefile.in 30 | @@ -469,7 +469,6 @@ aclocaldir = $(datadir)/aclocal 31 | aclocal_DATA = gst-element-check-@GST_MAJORMINOR@.m4 32 | SUBDIRS = pkgconfig \ 33 | gst libs plugins tools \ 34 | - po \ 35 | m4 \ 36 | common 37 | 38 | @@ -477,7 +476,6 @@ SUBDIRS = pkgconfig \ 39 | # These are all the possible subdirs 40 | DIST_SUBDIRS = pkgconfig \ 41 | gst libs plugins tools \ 42 | - po \ 43 | m4 \ 44 | common 45 | 46 | -------------------------------------------------------------------------------- /multimedia/gstreamer/patches/005-YYLEX_PARAM_to_lex-param.patch: -------------------------------------------------------------------------------- 1 | From 60516f4798894f958fc53b470e1283318d0f8706 Mon Sep 17 00:00:00 2001 2 | From: Kerrick Staley 3 | Date: Wed, 21 Aug 2013 06:59:29 +0000 4 | Subject: parse: make grammar.y work with Bison 3 5 | 6 | YYLEX_PARAM is no longer supported in Bison 3. 7 | 8 | https://bugzilla.gnome.org/show_bug.cgi?id=706462 9 | --- 10 | --- a/gst/parse/grammar.y 11 | +++ b/gst/parse/grammar.y 12 | @@ -26,7 +26,6 @@ 13 | */ 14 | 15 | #define YYERROR_VERBOSE 1 16 | -#define YYLEX_PARAM scanner 17 | 18 | #define YYENABLE_NLS 0 19 | 20 | @@ -648,6 +647,7 @@ static int yyerror (void *scanner, graph 21 | %right '.' 22 | %left '!' '=' 23 | 24 | +%lex-param { void *scanner } 25 | %parse-param { void *scanner } 26 | %parse-param { graph_t *graph } 27 | %pure-parser 28 | -------------------------------------------------------------------------------- /net/aodv-uu/files/aodv-uu.modules: -------------------------------------------------------------------------------- 1 | kaodv 2 | -------------------------------------------------------------------------------- /net/aodv-uu/patches/002-linux_2.6.19_ip_route_me_harder_change.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openwrt/packages-abandoned/6b44abff226586f2d1f4920281c0d4a857f1bdc5/net/aodv-uu/patches/002-linux_2.6.19_ip_route_me_harder_change.patch -------------------------------------------------------------------------------- /net/aodv-uu/patches/003-linux_2.6.19_security_netlink_recv_change.patch: -------------------------------------------------------------------------------- 1 | Index: aodv-uu-0.9.3/lnx/kaodv-netlink.c 2 | =================================================================== 3 | --- aodv-uu-0.9.3.orig/lnx/kaodv-netlink.c 2007-06-04 13:22:19.810843576 +0200 4 | +++ aodv-uu-0.9.3/lnx/kaodv-netlink.c 2007-06-04 13:22:20.326765144 +0200 5 | @@ -284,7 +284,11 @@ 6 | /* RCV_SKB_FAIL(-EINVAL); */ 7 | 8 | #ifdef KERNEL26 9 | +# if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19) 10 | + if (security_netlink_recv(skb, CAP_NET_ADMIN)) 11 | +# else 12 | if (security_netlink_recv(skb)) 13 | +# endif 14 | RCV_SKB_FAIL(-EPERM); 15 | #endif 16 | //write_lock_bh(&queue_lock); 17 | -------------------------------------------------------------------------------- /net/aodv-uu/patches/004-linux_2.6.19_includes.patch: -------------------------------------------------------------------------------- 1 | Index: aodv-uu-0.9.3/main.c 2 | =================================================================== 3 | --- aodv-uu-0.9.3.orig/main.c 2007-06-04 13:22:19.782847832 +0200 4 | +++ aodv-uu-0.9.3/main.c 2007-06-04 13:22:20.513736720 +0200 5 | @@ -26,6 +26,8 @@ 6 | #include 7 | #include 8 | #include 9 | +#include 10 | +#include 11 | #include 12 | #include 13 | #include 14 | Index: aodv-uu-0.9.3/nl.c 15 | =================================================================== 16 | --- aodv-uu-0.9.3.orig/nl.c 2007-06-04 13:22:19.789846768 +0200 17 | +++ aodv-uu-0.9.3/nl.c 2007-06-04 13:22:20.513736720 +0200 18 | @@ -33,6 +33,10 @@ 19 | #include 20 | #include 21 | #include 22 | +#include 23 | +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19) 24 | +#include 25 | +#endif 26 | 27 | #include "defs.h" 28 | #include "lnx/kaodv-netlink.h" 29 | -------------------------------------------------------------------------------- /net/asterisk-1.8.x/files/asterisk.default: -------------------------------------------------------------------------------- 1 | ## startup options for /etc/init.d/asterisk 2 | 3 | ENABLE_ASTERISK="yes" 4 | OPTIONS="" 5 | -------------------------------------------------------------------------------- /net/asterisk-1.8.x/patches/100-build_tools-iconv.patch: -------------------------------------------------------------------------------- 1 | --- a/build_tools/menuselect-deps.in 2 | +++ b/build_tools/menuselect-deps.in 3 | @@ -16,7 +16,7 @@ GTK2=@PBX_GTK2@ 4 | H323=@PBX_H323@ 5 | HOARD=@PBX_HOARD@ 6 | ICAL=@PBX_ICAL@ 7 | -ICONV=@PBX_ICONV@ 8 | +ICONV=0 9 | IKSEMEL=@PBX_IKSEMEL@ 10 | IMAP_TK=@PBX_IMAP_TK@ 11 | IODBC=@PBX_IODBC@ 12 | -------------------------------------------------------------------------------- /net/asterisk-1.8.x/patches/201-utils-defaultenable.patch: -------------------------------------------------------------------------------- 1 | --- a/utils/utils.xml 2 | +++ b/utils/utils.xml 3 | @@ -33,7 +33,7 @@ 4 | extended 5 | 6 | 7 | - no 8 | + yes 9 | popt 10 | extended 11 | 12 | -------------------------------------------------------------------------------- /net/asterisk-1.8.x/patches/500-nres.patch: -------------------------------------------------------------------------------- 1 | --- a/configure 2 | +++ b/configure 3 | @@ -16902,8 +16902,6 @@ if ac_fn_c_try_link "$LINENO"; then : 4 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5 | $as_echo "yes" >&6; } 6 | 7 | -$as_echo "#define HAVE_RES_NINIT 1" >>confdefs.h 8 | - 9 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_ndestroy" >&5 10 | $as_echo_n "checking for library containing res_9_ndestroy... " >&6; } 11 | if ${ac_cv_search_res_9_ndestroy+:} false; then : 12 | -------------------------------------------------------------------------------- /net/asterisk-11.x/Config.in: -------------------------------------------------------------------------------- 1 | menu "Advanced configuration" 2 | depends on PACKAGE_asterisk11 3 | 4 | config ASTERISK11_LOW_MEMORY 5 | bool "Optimize Asterisk 11 for low memory usage" 6 | default n 7 | help 8 | Warning: this feature is known to cause problems with some modules. 9 | Disable it if you experience problems like segmentation faults. 10 | 11 | endmenu 12 | -------------------------------------------------------------------------------- /net/asterisk-11.x/files/asterisk.init: -------------------------------------------------------------------------------- 1 | #!/bin/sh /etc/rc.common 2 | # Copyright (C) 2014 OpenWrt.org 3 | 4 | START=99 5 | APP=asterisk 6 | OPTIONS= 7 | DEST= 8 | BIN_FILE=$DEST/usr/sbin/$APP 9 | PID_FILE=$DEST/var/run/$APP/$APP.pid 10 | 11 | start() { 12 | [ -d $DEST/var/run/asterisk ] || mkdir -p $DEST/var/run/asterisk 13 | [ -d $DEST/var/log/asterisk ] || mkdir -p $DEST/var/log/asterisk 14 | [ -d $DEST/var/spool/asterisk ] || mkdir -p $DEST/var/spool/asterisk 15 | [ -d $DEST/var/lib/asterisk ] || mkdir -p $DEST/var/lib/asterisk 16 | [ -d $DEST/var/lib/asterisk/keys ] || mkdir -p $DEST/var/lib/asterisk/keys 17 | [ -d $DEST/var/log/asterisk/cdr-csv ] || mkdir -p $DEST/var/log/asterisk/cdr-csv 18 | 19 | SERVICE_PID_FILE="/var/run/asterisk/asterisk.pid" \ 20 | service_start $BIN_FILE $OPTIONS 21 | } 22 | 23 | stop() { 24 | SERVICE_PID_FILE="/var/run/asterisk/asterisk.pid" \ 25 | service_stop $BIN_FILE 26 | } 27 | 28 | reload() { 29 | SERVICE_PID_FILE="/var/run/asterisk/asterisk.pid" \ 30 | service_reload $BIN_FILE 31 | } 32 | -------------------------------------------------------------------------------- /net/asterisk-11.x/patches/001-pjproject-change-configure-args.patch: -------------------------------------------------------------------------------- 1 | --- a/res/Makefile 2 | +++ b/res/Makefile 3 | @@ -78,7 +78,7 @@ distclean:: 4 | rm -f pjproject/build.mak 5 | 6 | pjproject/build.mak: pjproject/aconfigure 7 | - (cd pjproject && CFLAGS="-fPIC" ./configure --build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM) --disable-floating-point --disable-sound --disable-oss --disable-speex-aec --disable-l16-codec --disable-gsm-codec --disable-g722-codec --disable-g7221-codec --disable-speex-codec --disable-ilbc-codec --disable-g711-codec) 8 | + (cd pjproject && CFLAGS="-fPIC" ./configure --build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM) --disable-floating-point --disable-sound --disable-oss --disable-speex-aec --disable-l16-codec --disable-gsm-codec --disable-g722-codec --disable-g7221-codec --disable-speex-codec --disable-ilbc-codec --disable-g711-codec --disable-opencore-amrnb --disable-video --disable-sdl --disable-ffmpeg --disable-v4l2) 9 | 10 | ifneq ($(findstring $(MAKECMDGOALS),all),) 11 | -include pjproject/build.mak 12 | -------------------------------------------------------------------------------- /net/asterisk-11.x/patches/010-asterisk-configure-undef-res-ninit.patch: -------------------------------------------------------------------------------- 1 | --- a/configure.ac 2 | +++ b/configure.ac 3 | @@ -1168,7 +1168,6 @@ AC_LINK_IFELSE( 4 | #include ], 5 | [int foo = res_ninit(NULL);])], 6 | AC_MSG_RESULT(yes) 7 | - AC_DEFINE([HAVE_RES_NINIT], 1, [Define to 1 if your system has the re-entrant resolver functions.]) 8 | AC_SEARCH_LIBS(res_9_ndestroy, resolv) 9 | AC_MSG_CHECKING(for res_ndestroy) 10 | AC_LINK_IFELSE( 11 | -------------------------------------------------------------------------------- /net/asterisk-11.x/patches/021-asterisk-utils-enable-default-modules.patch: -------------------------------------------------------------------------------- 1 | --- a/utils/utils.xml 2 | +++ b/utils/utils.xml 3 | @@ -41,7 +41,7 @@ 4 | extended 5 | 6 | 7 | - no 8 | + yes 9 | popt 10 | extended 11 | 12 | -------------------------------------------------------------------------------- /net/asterisk-11.x/patches/030-GNU-GLOB-exts-only-on-glibc.patch: -------------------------------------------------------------------------------- 1 | --- a/res/ael/ael.flex 2 | +++ b/res/ael/ael.flex 3 | @@ -595,7 +595,7 @@ includes { STORE_POS; return KW_INCLUDES 4 | snprintf(fnamebuf2,sizeof(fnamebuf2), "%s/%s", (char *)ast_config_AST_CONFIG_DIR, fnamebuf); 5 | ast_copy_string(fnamebuf,fnamebuf2,sizeof(fnamebuf)); 6 | } 7 | -#ifdef SOLARIS 8 | +#if !defined(HAVE_GLOB_NOMAGIC) || !defined(HAVE_GLOB_BRACE) || defined(DEBUG_NONGNU) 9 | glob_ret = glob(fnamebuf, GLOB_NOCHECK, NULL, &globbuf); 10 | #else 11 | glob_ret = glob(fnamebuf, GLOB_NOMAGIC|GLOB_BRACE, NULL, &globbuf); 12 | --- a/res/ael/ael_lex.c 13 | +++ b/res/ael/ael_lex.c 14 | @@ -1976,7 +1967,7 @@ YY_RULE_SETUP 15 | snprintf(fnamebuf2,sizeof(fnamebuf2), "%s/%s", (char *)ast_config_AST_CONFIG_DIR, fnamebuf); 16 | ast_copy_string(fnamebuf,fnamebuf2,sizeof(fnamebuf)); 17 | } 18 | -#ifdef SOLARIS 19 | +#if !defined(HAVE_GLOB_NOMAGIC) || !defined(HAVE_GLOB_BRACE) || defined(DEBUG_NONGNU) 20 | glob_ret = glob(fnamebuf, GLOB_NOCHECK, NULL, &globbuf); 21 | #else 22 | glob_ret = glob(fnamebuf, GLOB_NOMAGIC|GLOB_BRACE, NULL, &globbuf); 23 | -------------------------------------------------------------------------------- /net/asterisk-11.x/patches/050-musl-glob-compat.patch: -------------------------------------------------------------------------------- 1 | --- a/res/ael/ael.flex 2 | +++ b/res/ael/ael.flex 3 | @@ -79,6 +79,12 @@ 4 | #if !defined(GLOB_ABORTED) 5 | #define GLOB_ABORTED GLOB_ABEND 6 | #endif 7 | +#if !defined(GLOB_BRACE) 8 | +#define GLOB_BRACE 0 9 | +#endif 10 | +#if !defined(GLOB_NOMAGIC) 11 | +#define GLOB_NOMAGIC 0 12 | +#endif 13 | 14 | #include "asterisk/logger.h" 15 | #include "asterisk/utils.h" 16 | Only in asterisk-11.7.0: res/ael/ael.tab.o 17 | --- a/res/ael/ael_lex.c 18 | +++ b/res/ael/ael_lex.c 19 | @@ -838,6 +838,12 @@ 20 | #if !defined(GLOB_ABORTED) 21 | #define GLOB_ABORTED GLOB_ABEND 22 | #endif 23 | +#if !defined(GLOB_BRACE) 24 | +#define GLOB_BRACE 0 25 | +#endif 26 | +#if !defined(GLOB_NOMAGIC) 27 | +#define GLOB_NOMAGIC 0 28 | +#endif 29 | 30 | #include "asterisk/logger.h" 31 | #include "asterisk/utils.h" 32 | -------------------------------------------------------------------------------- /net/asterisk-11.x/patches/053-musl-mutex-init.patch: -------------------------------------------------------------------------------- 1 | --- a/include/asterisk/lock.h 2 | +++ b/include/asterisk/lock.h 3 | @@ -65,7 +65,7 @@ 4 | #define AST_PTHREADT_NULL (pthread_t) -1 5 | #define AST_PTHREADT_STOP (pthread_t) -2 6 | 7 | -#if (defined(SOLARIS) || defined(BSD)) 8 | +#if (defined(SOLARIS) || defined(BSD) || !defined(HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP)) 9 | #define AST_MUTEX_INIT_W_CONSTRUCTORS 10 | #endif /* SOLARIS || BSD */ 11 | 12 | -------------------------------------------------------------------------------- /net/asterisk-13.x-chan-lantiq/files/default.exports: -------------------------------------------------------------------------------- 1 | { 2 | global: 3 | /* See main/asterisk.exports.in for an explanation why this is 4 | * needed. */ 5 | _IO_stdin_used; 6 | local: 7 | *; 8 | }; 9 | -------------------------------------------------------------------------------- /net/asterisk-13.x/Config.in: -------------------------------------------------------------------------------- 1 | menu "Advanced configuration" 2 | depends on PACKAGE_asterisk13 3 | 4 | config ASTERISK13_LOW_MEMORY 5 | bool "Optimize Asterisk 13 for low memory usage" 6 | default n 7 | help 8 | Warning: this feature is known to cause problems with some modules. 9 | Disable it if you experience problems like segmentation faults. 10 | 11 | endmenu 12 | -------------------------------------------------------------------------------- /net/asterisk-13.x/files/asterisk.default: -------------------------------------------------------------------------------- 1 | ## startup options for /etc/init.d/asterisk 2 | 3 | ENABLE_ASTERISK="yes" 4 | OPTIONS="" 5 | -------------------------------------------------------------------------------- /net/asterisk-13.x/patches/001-disable-semaphores-check.patch: -------------------------------------------------------------------------------- 1 | --- a/configure.ac 2 | +++ b/configure.ac 3 | @@ -1030,19 +1030,6 @@ AC_LINK_IFELSE( 4 | ] 5 | ) 6 | 7 | -# Some platforms define sem_init(), but only support sem_open(). joyous. 8 | -AC_MSG_CHECKING(for working unnamed semaphores) 9 | -AC_RUN_IFELSE( 10 | - [AC_LANG_PROGRAM([#include ], 11 | - [sem_t sem; return sem_init(&sem, 0, 0);])], 12 | - AC_MSG_RESULT(yes) 13 | - AC_DEFINE([HAS_WORKING_SEMAPHORE], 1, [Define to 1 if anonymous semaphores work.]), 14 | - AC_MSG_RESULT(no), 15 | - AC_MSG_RESULT(cross-compile) 16 | - AC_MSG_NOTICE([WARNING: result yes guessed because of cross compilation]) 17 | - AC_DEFINE([HAS_WORKING_SEMAPHORE], 1, [Define to 1 if anonymous semaphores work.]) 18 | -) 19 | - 20 | LIBS="$save_LIBS" 21 | CFLAGS="$save_CFLAGS" 22 | if test "${ac_cv_pthread_rwlock_timedwrlock}" = "yes"; then 23 | -------------------------------------------------------------------------------- /net/asterisk-13.x/patches/002-undef-res-ninit.patch: -------------------------------------------------------------------------------- 1 | --- a/configure.ac 2 | +++ b/configure.ac 3 | @@ -1377,7 +1377,6 @@ AC_LINK_IFELSE( 4 | #include ], 5 | [int foo = res_ninit(NULL);])], 6 | AC_MSG_RESULT(yes) 7 | - AC_DEFINE([HAVE_RES_NINIT], 1, [Define to 1 if your system has the re-entrant resolver functions.]) 8 | AC_SEARCH_LIBS(res_9_ndestroy, resolv) 9 | AC_MSG_CHECKING(for res_ndestroy) 10 | AC_LINK_IFELSE( 11 | -------------------------------------------------------------------------------- /net/asterisk-13.x/patches/030-GNU-GLOB-exts-only-on-glibc.patch: -------------------------------------------------------------------------------- 1 | --- a/res/ael/ael.flex 2 | +++ b/res/ael/ael.flex 3 | @@ -595,7 +595,7 @@ includes { STORE_POS; return KW_INCLUDES 4 | snprintf(fnamebuf2,sizeof(fnamebuf2), "%s/%s", (char *)ast_config_AST_CONFIG_DIR, fnamebuf); 5 | ast_copy_string(fnamebuf,fnamebuf2,sizeof(fnamebuf)); 6 | } 7 | -#ifdef SOLARIS 8 | +#if !defined(HAVE_GLOB_NOMAGIC) || !defined(HAVE_GLOB_BRACE) || defined(DEBUG_NONGNU) 9 | glob_ret = glob(fnamebuf, GLOB_NOCHECK, NULL, &globbuf); 10 | #else 11 | glob_ret = glob(fnamebuf, GLOB_NOMAGIC|GLOB_BRACE, NULL, &globbuf); 12 | --- a/res/ael/ael_lex.c 13 | +++ b/res/ael/ael_lex.c 14 | @@ -1976,7 +1976,7 @@ YY_RULE_SETUP 15 | snprintf(fnamebuf2,sizeof(fnamebuf2), "%s/%s", (char *)ast_config_AST_CONFIG_DIR, fnamebuf); 16 | ast_copy_string(fnamebuf,fnamebuf2,sizeof(fnamebuf)); 17 | } 18 | -#ifdef SOLARIS 19 | +#if !defined(HAVE_GLOB_NOMAGIC) || !defined(HAVE_GLOB_BRACE) || defined(DEBUG_NONGNU) 20 | glob_ret = glob(fnamebuf, GLOB_NOCHECK, NULL, &globbuf); 21 | #else 22 | glob_ret = glob(fnamebuf, GLOB_NOMAGIC|GLOB_BRACE, NULL, &globbuf); 23 | -------------------------------------------------------------------------------- /net/asterisk-13.x/patches/050-musl-glob-compat.patch: -------------------------------------------------------------------------------- 1 | --- a/res/ael/ael.flex 2 | +++ b/res/ael/ael.flex 3 | @@ -79,6 +79,12 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revisi 4 | #if !defined(GLOB_ABORTED) 5 | #define GLOB_ABORTED GLOB_ABEND 6 | #endif 7 | +#if !defined(GLOB_BRACE) 8 | +#define GLOB_BRACE 0 9 | +#endif 10 | +#if !defined(GLOB_NOMAGIC) 11 | +#define GLOB_NOMAGIC 0 12 | +#endif 13 | 14 | #include "asterisk/logger.h" 15 | #include "asterisk/utils.h" 16 | --- a/res/ael/ael_lex.c 17 | +++ b/res/ael/ael_lex.c 18 | @@ -838,6 +838,12 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revisi 19 | #if !defined(GLOB_ABORTED) 20 | #define GLOB_ABORTED GLOB_ABEND 21 | #endif 22 | +#if !defined(GLOB_BRACE) 23 | +#define GLOB_BRACE 0 24 | +#endif 25 | +#if !defined(GLOB_NOMAGIC) 26 | +#define GLOB_NOMAGIC 0 27 | +#endif 28 | 29 | #include "asterisk/logger.h" 30 | #include "asterisk/utils.h" 31 | -------------------------------------------------------------------------------- /net/asterisk-13.x/patches/053-musl-mutex-init.patch: -------------------------------------------------------------------------------- 1 | --- a/include/asterisk/lock.h 2 | +++ b/include/asterisk/lock.h 3 | @@ -68,7 +68,7 @@ 4 | #define AST_PTHREADT_NULL (pthread_t) -1 5 | #define AST_PTHREADT_STOP (pthread_t) -2 6 | 7 | -#if (defined(SOLARIS) || defined(BSD)) 8 | +#if (defined(SOLARIS) || defined(BSD) || !defined(HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP)) 9 | #define AST_MUTEX_INIT_W_CONSTRUCTORS 10 | #endif /* SOLARIS || BSD */ 11 | 12 | -------------------------------------------------------------------------------- /net/asterisk-13.x/patches/056-fix-check_expr2-build.patch: -------------------------------------------------------------------------------- 1 | --- a/utils/Makefile 2 | +++ b/utils/Makefile 3 | @@ -180,7 +180,6 @@ check_expr2: $(ASTTOPDIR)/main/ast_expr2 4 | $(CC) -g -o check_expr2 ast_expr2fz.o ast_expr2z.o -lm $(_ASTLDFLAGS) 5 | $(ECHO_PREFIX) echo " [RM] ast_expr2fz.o ast_expr2z.o" 6 | rm ast_expr2z.o ast_expr2fz.o 7 | - ./check_expr2 expr2.testinput 8 | 9 | smsq: smsq.o strcompat.o 10 | smsq: LIBS+=$(POPT_LIB) 11 | -------------------------------------------------------------------------------- /net/asterisk-13.x/patches/100-build-reproducibly.patch: -------------------------------------------------------------------------------- 1 | --- a/build_tools/make_build_h 2 | +++ b/build_tools/make_build_h 3 | @@ -5,6 +5,14 @@ MACHINE=`uname -m | sed 's/\\\\/\\\\\\\ 4 | OS=`uname -s` 5 | USER=`id | awk -F")" '{print $1}'| awk -F"(" '{print $2}' | sed 's/\\\\/\\\\\\\\/g'` 6 | DATE=`date -u "+%Y-%m-%d %H:%M:%S"` 7 | +if [ -n "${SOURCE_DATE_EPOCH}" ]; then 8 | + # building reproducibly, faking some data 9 | + HOSTNAME='buildd.debian.org' 10 | + KERNEL='unknown' 11 | + MACHINE='unknown' 12 | + USER='nobody' 13 | + DATE=`date -u "+%Y-%m-%d %H:%M:%S" -d @${SOURCE_DATE_EPOCH}` 14 | +fi 15 | cat << END 16 | /* 17 | * build.h 18 | --- a/Makefile 19 | +++ b/Makefile 20 | @@ -488,7 +488,7 @@ doc/core-en_US.xml: makeopts .lastclean 21 | @echo "" >> $@ 22 | @for x in $(MOD_SUBDIRS); do \ 23 | printf "$$x " ; \ 24 | - for i in `find $$x -name '*.c'`; do \ 25 | + for i in `find $$x -name '*.c' | LC_ALL=C sort`; do \ 26 | $(AWK) -f build_tools/get_documentation $$i >> $@ ; \ 27 | done ; \ 28 | done 29 | -------------------------------------------------------------------------------- /net/click/files/roofnet.init: -------------------------------------------------------------------------------- 1 | #!/bin/sh /etc/rc.common 2 | # Copyright (C) 2006 OpenWrt.org 3 | START=50 4 | 5 | start() { 6 | killall -q click 7 | cp /usr/bin/srcr.click /tmp 8 | sh /usr/bin/gen_config_roofnet.sh > /tmp/unaligned.click 9 | click-align /tmp/unaligned.click > /tmp/roofnet.click 10 | /usr/bin/click /tmp/roofnet.click > /tmp/roofnet.log 2>&1 & 11 | } 12 | 13 | stop() { 14 | killall click 15 | } 16 | -------------------------------------------------------------------------------- /net/click/patches/100-compile_fix.patch: -------------------------------------------------------------------------------- 1 | --- a/tools/click-mkmindriver/Makefile.in 2 | +++ b/tools/click-mkmindriver/Makefile.in 3 | @@ -60,7 +60,7 @@ DEPCFLAGS = @DEPCFLAGS@ 4 | DEFS = @DEFS@ 5 | INCLUDES = -I$(top_builddir)/include -I$(top_srcdir)/include \ 6 | -I$(top_srcdir)/tools/lib -I$(srcdir) 7 | -LDFLAGS = @LDFLAGS@ 8 | +LDFLAGS = @LDFLAGS@ -lrt 9 | LIBS = @LIBS@ @POSIX_CLOCK_LIBS@ $(DL_LIBS) 10 | 11 | CXXCOMPILE = $(CXX) $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CXXFLAGS) $(DEPCFLAGS) 12 | --- a/configure 13 | +++ b/configure 14 | @@ -7135,7 +7135,7 @@ fi 15 | $as_echo "$ac_cv_va_list_addr" >&6; } 16 | if test "x$ac_cv_va_list_addr" = xyes; then 17 | 18 | -$as_echo "#define HAVE_ADDRESSABLE_VA_LIST 1" >>confdefs.h 19 | +$as_echo "#define HAVE_ADDRESSABLE_VA_LIST 0" >>confdefs.h 20 | 21 | fi 22 | 23 | -------------------------------------------------------------------------------- /net/click/patches/110-multithread_fix.patch: -------------------------------------------------------------------------------- 1 | --- a/lib/master.cc 2 | +++ b/lib/master.cc 3 | @@ -409,7 +409,9 @@ Master::process_pending(RouterThread *th 4 | while (Task *t = Task::pending_to_task(my_pending)) { 5 | my_pending = t->_pending_nextptr; 6 | t->_pending_nextptr = 0; 7 | +# if HAVE_MULTITHREAD 8 | click_master_mb(); 9 | +# endif 10 | t->process_pending(thread); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /net/deluge/files/deluge.config: -------------------------------------------------------------------------------- 1 | config global deluged 2 | option 'user' 'deluge' 3 | option 'group' 'deluge' 4 | option 'home' '' 5 | option 'options' '' 6 | option 'enabled' 1 7 | -------------------------------------------------------------------------------- /net/fossil/files/fossil.config: -------------------------------------------------------------------------------- 1 | config server 'dummy' 2 | option repository '/tmp/fossil/dummy' 3 | option port 8008 4 | option localhost 0 5 | option create 1 6 | -------------------------------------------------------------------------------- /net/fossil/patches/001-no_https.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile.classic 2 | +++ b/Makefile.classic 3 | @@ -41,9 +41,6 @@ 4 | # FOSSIL_ENABLE_MINIZ = 1 5 | # TCC += -DFOSSIL_ENABLE_MINIZ 6 | 7 | -# To add support for HTTPS 8 | -TCC += -DFOSSIL_ENABLE_SSL 9 | - 10 | #### We sometimes add the -static option here so that we can build a 11 | # static executable that will run in a chroot jail. 12 | #LIB = -static 13 | @@ -60,9 +57,6 @@ 14 | # If using zlib: 15 | LIB += $(ZLIB_LIB.$(FOSSIL_ENABLE_MINIZ)) $(LDFLAGS) 16 | 17 | -# If using HTTPS: 18 | -LIB += -lcrypto -lssl 19 | - 20 | #### Tcl shell for use in running the fossil testsuite. If you do not 21 | # care about testing the end result, this can be blank. 22 | # 23 | -------------------------------------------------------------------------------- /net/freeradius2/Config.in: -------------------------------------------------------------------------------- 1 | # FreeRADIUS avanced configuration 2 | 3 | choice 4 | prompt "SSL library" 5 | default FREERADIUS_OPENSSL 6 | depends on PACKAGE_freeradius2-common 7 | 8 | config FREERADIUS_NOSSL 9 | bool "No SSL support" 10 | 11 | config FREERADIUS_OPENSSL 12 | bool "OpenSSL" 13 | 14 | endchoice 15 | -------------------------------------------------------------------------------- /net/freeradius2/files/radiusd.init: -------------------------------------------------------------------------------- 1 | #!/bin/sh /etc/rc.common 2 | # 3 | # Copyright (C) 2006-2015 OpenWrt.org 4 | # 5 | 6 | USE_PROCD=1 7 | 8 | START=50 9 | 10 | NAME=radiusd 11 | PROG=/usr/sbin/radiusd 12 | DEFAULT=/etc/default/radiusd 13 | 14 | start_service() 15 | { 16 | [ -f $DEFAULT ] && . $DEFAULT 17 | mkdir -p /var/log 18 | mkdir -p /var/run 19 | mkdir -p /var/db/radacct 20 | mkdir -p /tmp/radiusd 21 | 22 | procd_open_instance 23 | procd_set_param command $PROG -f 24 | procd_set_param env LD_LIBRARY_PATH=/usr/lib/freeradius2 25 | [ -n "$IPADDR" ] && procd_append_param command -i $IPADDR 26 | [ -n "$OPTIONS" ] && procd_append_param command $OPTIONS 27 | procd_set_param respawn 28 | procd_close_instance 29 | } 30 | -------------------------------------------------------------------------------- /net/freeradius2/patches/001-fix-makefile.patch: -------------------------------------------------------------------------------- 1 | Index: freeradius-server-2.2.7/Make.inc.in 2 | =================================================================== 3 | --- freeradius-server-2.2.7.orig/Make.inc.in 4 | +++ freeradius-server-2.2.7/Make.inc.in 5 | @@ -5,6 +5,7 @@ 6 | # 7 | 8 | # Location of files. 9 | +SHELL = @SHELL@ 10 | prefix = @prefix@ 11 | exec_prefix = @exec_prefix@ 12 | sysconfdir = @sysconfdir@ 13 | -------------------------------------------------------------------------------- /net/freeradius2/patches/008-honor_ccpflags.patch: -------------------------------------------------------------------------------- 1 | Index: freeradius-server-2.2.7/src/modules/rules.mak 2 | =================================================================== 3 | --- freeradius-server-2.2.7.orig/src/modules/rules.mak 4 | +++ freeradius-server-2.2.7/src/modules/rules.mak 5 | @@ -63,10 +63,10 @@ $(LT_OBJS): $(SERVER_HEADERS) 6 | # 7 | ####################################################################### 8 | %.lo: %.c 9 | - $(LIBTOOL) --mode=compile --tag=CC $(CC) $(CFLAGS) $(RLM_CFLAGS) -c $< 10 | + $(LIBTOOL) --mode=compile --tag=CC $(CC) $(CFLAGS) $(CPPFLAGS) $(RLM_CFLAGS) -c $< 11 | 12 | %.lo: %.cpp 13 | - $(LIBTOOL) --mode=compile --tag=CXX $(CXX) $(CFLAGS) $(RLM_CFLAGS) -c $< 14 | + $(LIBTOOL) --mode=compile --tag=CXX $(CXX) $(CFLAGS) $(CPPFLAGS) $(RLM_CFLAGS) -c $< 15 | 16 | ifneq ($(TARGET),) 17 | ####################################################################### 18 | -------------------------------------------------------------------------------- /net/freeswitch/files/freeswitch.config: -------------------------------------------------------------------------------- 1 | 2 | config 'global' 'state' 3 | option 'started' '0' 4 | 5 | config 'profile_top' 'internal_top' 6 | 7 | config 'profile_top' 'external_top' 8 | 9 | config 'external_gateway' 'external_example' 10 | 11 | 12 | -------------------------------------------------------------------------------- /net/freeswitch/files/freeswitch.default: -------------------------------------------------------------------------------- 1 | #FS_DIR="/opt" 2 | FS_DIR_ETC="$FS_DIR/etc/freeswitch" 3 | FS_DIR_MOD="$FS_DIR/usr/lib/freeswitch" 4 | FS_DIR_DB="$FS_DIR/tmp/freeswitch/db" 5 | FS_DIR_LOG="$FS_DIR/tmp/freeswitch/log" 6 | FS_DIR_SCRIPTS="$FS_DIR/usr/share/freeswitch/scripts" 7 | FS_DIR_HTDOCS="$FS_DIR/usr/share/freeswitch/htdocs" 8 | FS_DIR_RECORDINGS="/var/lib/freeswitch/recordings" # NOTE: must be changed in config as well 9 | FS_DIR_VM_STORAGE="/var/lib/freeswitch/storage" # NOTE: must be changed in config as well 10 | 11 | OPTIONS="-conf $FS_DIR_ETC -log $FS_DIR_LOG -db $FS_DIR_DB -mod $FS_DIR_MOD -htdocs $FS_DIR_HTDOCS -scripts $FS_DIR_SCRIPTS" 12 | -------------------------------------------------------------------------------- /net/freeswitch/files/freeswitch.init: -------------------------------------------------------------------------------- 1 | #!/bin/sh /etc/rc.common 2 | # Copyright (C) 2006 OpenWrt.org 3 | START=90 4 | 5 | DEFAULT=/etc/default/freeswitch 6 | OPTIONS="" 7 | 8 | #boot() { 9 | # # Do nothing on boot 10 | # exit 0 11 | #} 12 | 13 | start() { 14 | [ -f $DEFAULT ] && . $DEFAULT 15 | mkdir -p $FS_DIR_DB 16 | mkdir -p $FS_DIR_LOG 17 | mkdir -p $FS_DIR_RECORDINGS 18 | mkdir -p $FS_DIR_VM_STORAGE 19 | ulimit -s 240 20 | $FS_DIR/usr/bin/freeswitch $OPTIONS -nc 21 | } 22 | 23 | stop() { 24 | [ -f $DEFAULT ] && . $DEFAULT 25 | $FS_DIR/usr/bin/freeswitch $OPTIONS -stop 26 | } 27 | 28 | restart() { 29 | # stopping freeswitch is non-blocking, so we wait until freeswitch's 30 | # event socket is down, and then wait an additional ten seconds so that 31 | # freeswitch should be completely shutdown before we start it again 32 | local retval 33 | stop 34 | fs_cli -x status >/dev/null 2>&1 35 | retval=$? 36 | while [ $retval -eq 0 ]; do sleep 1; fs_cli -x status >/dev/null 2>&1; retval=$?; done 37 | sleep 10 38 | start 39 | } 40 | 41 | -------------------------------------------------------------------------------- /net/freeswitch/patches/glibc/Makefile_am.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile.am 2 | +++ b/Makefile.am 3 | @@ -559,7 +559,7 @@ libs/libzrtp/libzrtp.a: 4 | cd libs/libzrtp && $(MAKE) 5 | 6 | libs/libvpx/Makefile: 7 | - cd libs/libvpx && CC="$(CC)" CXX="$(CXX)" CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)" ./configure --enable-pic --disable-docs --disable-examples --disable-install-bins --disable-install-srcs --disable-unit-tests --extra-cflags="$(VISIBILITY_FLAG)" 8 | + cd libs/libvpx && CC="$(CC)" CXX="$(CXX)" CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" CROSS="$(ARCH)-openwrt-linux LD=$(CXX)" ./configure --target=generic-gnu --enable-pic --disable-docs --disable-examples --disable-install-bins --disable-install-srcs --disable-unit-tests --extra-cflags="$(VISIBILITY_FLAG)" 9 | 10 | libs/libvpx/libvpx.a: libs/libvpx/Makefile 11 | @cd libs/libvpx && $(MAKE) 12 | -------------------------------------------------------------------------------- /net/freeswitch/patches/glibc/build-modules_conf_in.patch: -------------------------------------------------------------------------------- 1 | --- a/build/modules.conf.in 2 | +++ b/build/modules.conf.in 3 | @@ -39,6 +39,7 @@ applications/mod_httapi 4 | #applications/mod_rad_auth 5 | #applications/mod_redis 6 | #applications/mod_rss 7 | +#applications/mod_skel 8 | applications/mod_sms 9 | #applications/mod_sms_flowroute 10 | #applications/mod_snapshot 11 | -------------------------------------------------------------------------------- /net/freeswitch/patches/glibc/build-openwrt_rules.mk.patch: -------------------------------------------------------------------------------- 1 | --- /dev/null 2 | +++ b/build/openwrt_rules.mk 3 | @@ -0,0 +1,7 @@ 4 | +OPENWRT_DIR=$(shell (cd $(BASE)/../../..;pwd)) 5 | +STAGING_PREFIX=$(OPENWRT_DIR)/staging_dir/host 6 | +STAGING_DIR=$(OPENWRT_DIR)/staging_dir/$(shell (cd $(BASE)/..;basename `pwd`)) 7 | +ARCH="$(shell grep CONFIG_ARCH $(OPENWRT_DIR)/.config|cut -d= -d'"' -f2)" 8 | +GNU_TARGET_NAME=$(ARCH)-openwrt-linux 9 | + 10 | +include $(OPENWRT_DIR)/rules.mk 11 | -------------------------------------------------------------------------------- /net/freeswitch/patches/glibc/libs-apr-util-configure_gnu.patch: -------------------------------------------------------------------------------- 1 | --- a/libs/apr-util/configure.gnu 2 | +++ b/libs/apr-util/configure.gnu 3 | @@ -1,4 +1,4 @@ 4 | #! /bin/sh 5 | srcpath=$(dirname $0 2>/dev/null ) || srcpath="." 6 | -$srcpath/configure "$@" --with-apr=../apr --disable-shared --with-pic --without-sqlite2 --without-sqlite3 --with-expat=builtin 7 | +$srcpath/configure "$@" --with-apr=../apr --disable-shared --with-expat=builtin 8 | 9 | -------------------------------------------------------------------------------- /net/freeswitch/patches/glibc/libs-srtp-configure_ac.patch: -------------------------------------------------------------------------------- 1 | --- a/libs/srtp/configure.ac 2 | +++ b/libs/srtp/configure.ac 3 | @@ -130,10 +130,6 @@ if test "$enable_kernel_linux" = "yes"; 4 | fi 5 | AC_MSG_RESULT($enable_kernel_linux) 6 | 7 | -dnl Check for /dev/urandom 8 | -AC_CHECK_FILE(/dev/urandom, DEV_URANDOM=/dev/urandom, 9 | - [AC_CHECK_FILE(/dev/random, DEV_URANDOM=/dev/random)]) 10 | - 11 | dnl Checks for header files. 12 | AC_HEADER_STDC 13 | AC_CHECK_HEADERS(stdlib.h) 14 | -------------------------------------------------------------------------------- /net/freeswitch/patches/glibc/src-mod-applications-mod_http_cache-conf-autoload_configs-http_cache_conf_xml.patch: -------------------------------------------------------------------------------- 1 | --- a/src/mod/applications/mod_http_cache/conf/autoload_configs/http_cache.conf.xml 2 | +++ b/src/mod/applications/mod_http_cache/conf/autoload_configs/http_cache.conf.xml 3 | @@ -9,9 +9,9 @@ 4 | 5 | 6 | 7 | - 8 | + 9 | 10 | - 11 | + 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /net/freeswitch/patches/glibc/src-mod-endpoints-mod_sofia-conf-sofia_conf_xml.patch: -------------------------------------------------------------------------------- 1 | --- a/src/mod/endpoints/mod_sofia/conf/sofia.conf.xml 2 | +++ b/src/mod/endpoints/mod_sofia/conf/sofia.conf.xml 3 | @@ -216,7 +216,7 @@ 4 | 5 | 6 | 7 | - 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /net/freeswitch/patches/glibc/src-mod-languages-mod_python-Makefile_am.patch: -------------------------------------------------------------------------------- 1 | --- a/src/mod/languages/mod_python/Makefile.am 2 | +++ b/src/mod/languages/mod_python/Makefile.am 3 | @@ -2,7 +2,7 @@ include $(top_srcdir)/build/modmake.rule 4 | MODNAME=mod_python 5 | 6 | PYMOD=freeswitch 7 | -PYTHON_SITE_DIR=@PYTHON_SITE_DIR@ 8 | +PYTHON_SITE_DIR=/usr/lib/python@PYTHON_VER@/site-packages 9 | 10 | SWIGCFILE=../../../switch_swig.c 11 | SWIGIFILE=../../../switch_swig.i 12 | @@ -20,7 +20,7 @@ swigclean: clean 13 | rm -f mod_python_wrap.* freeswitch.py 14 | 15 | mod_python_wrap.cpp: mod_python_extra.c hack.diff 16 | - swig2.0 -python -c++ -I../../../../src/include -oh mod_python_wrap.h -o mod_python_wrap.cpp mod_python.i 17 | + ${STAGING_DIR_HOSTPKG}/bin/swig -python -c++ -I../../../../src/include -oh mod_python_wrap.h -o mod_python_wrap.cpp mod_python.i 18 | echo "#include \"mod_python_extra.c\"" >> mod_python_wrap.cpp 19 | patch -s -p0 -i hack.diff 20 | 21 | -------------------------------------------------------------------------------- /net/freeswitch/patches/glibc/src-mod-languages-mod_python-freeswitch_python_cpp.patch: -------------------------------------------------------------------------------- 1 | --- a/src/mod/languages/mod_python/freeswitch_python.cpp 2 | +++ b/src/mod/languages/mod_python/freeswitch_python.cpp 3 | @@ -319,7 +319,12 @@ switch_status_t Session::run_dtmf_callba 4 | } 5 | 6 | if ((pyresult = PyEval_CallObject(cb_function, arglist))) { 7 | +#if PY_MAJOR_VERSION < 3 8 | str = (char *) PyString_AsString(pyresult); 9 | +#else 10 | + //str = (char *) pyresult->encode('UTF-8'); 11 | + str = (char *) PyUnicode_AsUnicode(pyresult); 12 | +#endif 13 | } else { 14 | PyErr_Print(); 15 | } 16 | -------------------------------------------------------------------------------- /net/freeswitch/patches/musl/Makefile_am.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile.am 2 | +++ b/Makefile.am 3 | @@ -559,7 +559,7 @@ libs/libzrtp/libzrtp.a: 4 | cd libs/libzrtp && $(MAKE) 5 | 6 | libs/libvpx/Makefile: 7 | - cd libs/libvpx && CC="$(CC)" CXX="$(CXX)" CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)" ./configure --enable-pic --disable-docs --disable-examples --disable-install-bins --disable-install-srcs --disable-unit-tests --extra-cflags="$(VISIBILITY_FLAG)" 8 | + cd libs/libvpx && CC="$(CC)" CXX="$(CXX)" CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" CROSS="$(ARCH)-openwrt-linux LD=$(CXX)" ./configure --target=generic-gnu --enable-pic --disable-docs --disable-examples --disable-install-bins --disable-install-srcs --disable-unit-tests --extra-cflags="$(VISIBILITY_FLAG)" 9 | 10 | libs/libvpx/libvpx.a: libs/libvpx/Makefile 11 | @cd libs/libvpx && $(MAKE) 12 | -------------------------------------------------------------------------------- /net/freeswitch/patches/musl/build-modules_conf_in.patch: -------------------------------------------------------------------------------- 1 | --- a/build/modules.conf.in 2 | +++ b/build/modules.conf.in 3 | @@ -39,6 +39,7 @@ applications/mod_httapi 4 | #applications/mod_rad_auth 5 | #applications/mod_redis 6 | #applications/mod_rss 7 | +#applications/mod_skel 8 | applications/mod_sms 9 | #applications/mod_sms_flowroute 10 | #applications/mod_snapshot 11 | -------------------------------------------------------------------------------- /net/freeswitch/patches/musl/build-openwrt_rules.mk.patch: -------------------------------------------------------------------------------- 1 | --- /dev/null 2 | +++ b/build/openwrt_rules.mk 3 | @@ -0,0 +1,7 @@ 4 | +OPENWRT_DIR=$(shell (cd $(BASE)/../../..;pwd)) 5 | +STAGING_PREFIX=$(OPENWRT_DIR)/staging_dir/host 6 | +STAGING_DIR=$(OPENWRT_DIR)/staging_dir/$(shell (cd $(BASE)/..;basename `pwd`)) 7 | +ARCH="$(shell grep CONFIG_ARCH $(OPENWRT_DIR)/.config|cut -d= -d'"' -f2)" 8 | +GNU_TARGET_NAME=$(ARCH)-openwrt-linux 9 | + 10 | +include $(OPENWRT_DIR)/rules.mk 11 | -------------------------------------------------------------------------------- /net/freeswitch/patches/musl/libs-apr-util-configure_gnu.patch: -------------------------------------------------------------------------------- 1 | --- a/libs/apr-util/configure.gnu 2 | +++ b/libs/apr-util/configure.gnu 3 | @@ -1,4 +1,4 @@ 4 | #! /bin/sh 5 | srcpath=$(dirname $0 2>/dev/null ) || srcpath="." 6 | -$srcpath/configure "$@" --with-apr=../apr --disable-shared --with-pic --without-sqlite2 --without-sqlite3 --with-expat=builtin 7 | +$srcpath/configure "$@" --with-apr=../apr --disable-shared --with-expat=builtin 8 | 9 | -------------------------------------------------------------------------------- /net/freeswitch/patches/musl/libs-srtp-configure_ac.patch: -------------------------------------------------------------------------------- 1 | --- a/libs/srtp/configure.ac 2 | +++ b/libs/srtp/configure.ac 3 | @@ -130,10 +130,6 @@ if test "$enable_kernel_linux" = "yes"; 4 | fi 5 | AC_MSG_RESULT($enable_kernel_linux) 6 | 7 | -dnl Check for /dev/urandom 8 | -AC_CHECK_FILE(/dev/urandom, DEV_URANDOM=/dev/urandom, 9 | - [AC_CHECK_FILE(/dev/random, DEV_URANDOM=/dev/random)]) 10 | - 11 | dnl Checks for header files. 12 | AC_HEADER_STDC 13 | AC_CHECK_HEADERS(stdlib.h) 14 | -------------------------------------------------------------------------------- /net/freeswitch/patches/musl/src-mod-applications-mod_http_cache-conf-autoload_configs-http_cache_conf_xml.patch: -------------------------------------------------------------------------------- 1 | --- a/src/mod/applications/mod_http_cache/conf/autoload_configs/http_cache.conf.xml 2 | +++ b/src/mod/applications/mod_http_cache/conf/autoload_configs/http_cache.conf.xml 3 | @@ -9,9 +9,9 @@ 4 | 5 | 6 | 7 | - 8 | + 9 | 10 | - 11 | + 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /net/freeswitch/patches/musl/src-mod-endpoints-mod_sofia-conf-sofia_conf_xml.patch: -------------------------------------------------------------------------------- 1 | --- a/src/mod/endpoints/mod_sofia/conf/sofia.conf.xml 2 | +++ b/src/mod/endpoints/mod_sofia/conf/sofia.conf.xml 3 | @@ -216,7 +216,7 @@ 4 | 5 | 6 | 7 | - 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /net/freeswitch/patches/musl/src-mod-languages-mod_python-Makefile_am.patch: -------------------------------------------------------------------------------- 1 | --- a/src/mod/languages/mod_python/Makefile.am 2 | +++ b/src/mod/languages/mod_python/Makefile.am 3 | @@ -2,7 +2,7 @@ include $(top_srcdir)/build/modmake.rule 4 | MODNAME=mod_python 5 | 6 | PYMOD=freeswitch 7 | -PYTHON_SITE_DIR=@PYTHON_SITE_DIR@ 8 | +PYTHON_SITE_DIR=/usr/lib/python@PYTHON_VER@/site-packages 9 | 10 | SWIGCFILE=../../../switch_swig.c 11 | SWIGIFILE=../../../switch_swig.i 12 | @@ -20,7 +20,7 @@ swigclean: clean 13 | rm -f mod_python_wrap.* freeswitch.py 14 | 15 | mod_python_wrap.cpp: mod_python_extra.c hack.diff 16 | - swig2.0 -python -c++ -I../../../../src/include -oh mod_python_wrap.h -o mod_python_wrap.cpp mod_python.i 17 | + ${STAGING_DIR_HOSTPKG}/bin/swig -python -c++ -I../../../../src/include -oh mod_python_wrap.h -o mod_python_wrap.cpp mod_python.i 18 | echo "#include \"mod_python_extra.c\"" >> mod_python_wrap.cpp 19 | patch -s -p0 -i hack.diff 20 | 21 | -------------------------------------------------------------------------------- /net/freeswitch/patches/musl/src-mod-languages-mod_python-freeswitch_python_cpp.patch: -------------------------------------------------------------------------------- 1 | --- a/src/mod/languages/mod_python/freeswitch_python.cpp 2 | +++ b/src/mod/languages/mod_python/freeswitch_python.cpp 3 | @@ -319,7 +319,12 @@ switch_status_t Session::run_dtmf_callba 4 | } 5 | 6 | if ((pyresult = PyEval_CallObject(cb_function, arglist))) { 7 | +#if PY_MAJOR_VERSION < 3 8 | str = (char *) PyString_AsString(pyresult); 9 | +#else 10 | + //str = (char *) pyresult->encode('UTF-8'); 11 | + str = (char *) PyUnicode_AsUnicode(pyresult); 12 | +#endif 13 | } else { 14 | PyErr_Print(); 15 | } 16 | -------------------------------------------------------------------------------- /net/freeswitch/patches/uClibc/Makefile_am.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile.am 2 | +++ b/Makefile.am 3 | @@ -559,7 +559,7 @@ libs/libzrtp/libzrtp.a: 4 | cd libs/libzrtp && $(MAKE) 5 | 6 | libs/libvpx/Makefile: 7 | - cd libs/libvpx && CC="$(CC)" CXX="$(CXX)" CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)" ./configure --enable-pic --disable-docs --disable-examples --disable-install-bins --disable-install-srcs --disable-unit-tests --extra-cflags="$(VISIBILITY_FLAG)" 8 | + cd libs/libvpx && CC="$(CC)" CXX="$(CXX)" CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" CROSS="$(ARCH)-openwrt-linux LD=$(CXX)" ./configure --target=generic-gnu --enable-pic --disable-docs --disable-examples --disable-install-bins --disable-install-srcs --disable-unit-tests --extra-cflags="$(VISIBILITY_FLAG)" 9 | 10 | libs/libvpx/libvpx.a: libs/libvpx/Makefile 11 | @cd libs/libvpx && $(MAKE) 12 | -------------------------------------------------------------------------------- /net/freeswitch/patches/uClibc/build-modules_conf_in.patch: -------------------------------------------------------------------------------- 1 | --- a/build/modules.conf.in 2 | +++ b/build/modules.conf.in 3 | @@ -39,6 +39,7 @@ applications/mod_httapi 4 | #applications/mod_rad_auth 5 | #applications/mod_redis 6 | #applications/mod_rss 7 | +#applications/mod_skel 8 | applications/mod_sms 9 | #applications/mod_sms_flowroute 10 | #applications/mod_snapshot 11 | -------------------------------------------------------------------------------- /net/freeswitch/patches/uClibc/build-openwrt_rules.mk.patch: -------------------------------------------------------------------------------- 1 | --- /dev/null 2 | +++ b/build/openwrt_rules.mk 3 | @@ -0,0 +1,7 @@ 4 | +OPENWRT_DIR=$(shell (cd $(BASE)/../../..;pwd)) 5 | +STAGING_PREFIX=$(OPENWRT_DIR)/staging_dir/host 6 | +STAGING_DIR=$(OPENWRT_DIR)/staging_dir/$(shell (cd $(BASE)/..;basename `pwd`)) 7 | +ARCH="$(shell grep CONFIG_ARCH $(OPENWRT_DIR)/.config|cut -d= -d'"' -f2)" 8 | +GNU_TARGET_NAME=$(ARCH)-openwrt-linux 9 | + 10 | +include $(OPENWRT_DIR)/rules.mk 11 | -------------------------------------------------------------------------------- /net/freeswitch/patches/uClibc/libs-apr-util-configure_gnu.patch: -------------------------------------------------------------------------------- 1 | --- a/libs/apr-util/configure.gnu 2 | +++ b/libs/apr-util/configure.gnu 3 | @@ -1,4 +1,4 @@ 4 | #! /bin/sh 5 | srcpath=$(dirname $0 2>/dev/null ) || srcpath="." 6 | -$srcpath/configure "$@" --with-apr=../apr --disable-shared --with-pic --without-sqlite2 --without-sqlite3 --with-expat=builtin 7 | +$srcpath/configure "$@" --with-apr=../apr --disable-shared --with-expat=builtin 8 | 9 | -------------------------------------------------------------------------------- /net/freeswitch/patches/uClibc/libs-srtp-configure_ac.patch: -------------------------------------------------------------------------------- 1 | --- a/libs/srtp/configure.ac 2 | +++ b/libs/srtp/configure.ac 3 | @@ -130,10 +130,6 @@ if test "$enable_kernel_linux" = "yes"; 4 | fi 5 | AC_MSG_RESULT($enable_kernel_linux) 6 | 7 | -dnl Check for /dev/urandom 8 | -AC_CHECK_FILE(/dev/urandom, DEV_URANDOM=/dev/urandom, 9 | - [AC_CHECK_FILE(/dev/random, DEV_URANDOM=/dev/random)]) 10 | - 11 | dnl Checks for header files. 12 | AC_HEADER_STDC 13 | AC_CHECK_HEADERS(stdlib.h) 14 | -------------------------------------------------------------------------------- /net/freeswitch/patches/uClibc/src-mod-applications-mod_http_cache-conf-autoload_configs-http_cache_conf_xml.patch: -------------------------------------------------------------------------------- 1 | --- a/src/mod/applications/mod_http_cache/conf/autoload_configs/http_cache.conf.xml 2 | +++ b/src/mod/applications/mod_http_cache/conf/autoload_configs/http_cache.conf.xml 3 | @@ -9,9 +9,9 @@ 4 | 5 | 6 | 7 | - 8 | + 9 | 10 | - 11 | + 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /net/freeswitch/patches/uClibc/src-mod-endpoints-mod_sofia-conf-sofia_conf_xml.patch: -------------------------------------------------------------------------------- 1 | --- a/src/mod/endpoints/mod_sofia/conf/sofia.conf.xml 2 | +++ b/src/mod/endpoints/mod_sofia/conf/sofia.conf.xml 3 | @@ -216,7 +216,7 @@ 4 | 5 | 6 | 7 | - 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /net/freeswitch/patches/uClibc/src-mod-languages-mod_python-Makefile_am.patch: -------------------------------------------------------------------------------- 1 | --- a/src/mod/languages/mod_python/Makefile.am 2 | +++ b/src/mod/languages/mod_python/Makefile.am 3 | @@ -2,7 +2,7 @@ include $(top_srcdir)/build/modmake.rule 4 | MODNAME=mod_python 5 | 6 | PYMOD=freeswitch 7 | -PYTHON_SITE_DIR=@PYTHON_SITE_DIR@ 8 | +PYTHON_SITE_DIR=/usr/lib/python@PYTHON_VER@/site-packages 9 | 10 | SWIGCFILE=../../../switch_swig.c 11 | SWIGIFILE=../../../switch_swig.i 12 | @@ -20,7 +20,7 @@ swigclean: clean 13 | rm -f mod_python_wrap.* freeswitch.py 14 | 15 | mod_python_wrap.cpp: mod_python_extra.c hack.diff 16 | - swig2.0 -python -c++ -I../../../../src/include -oh mod_python_wrap.h -o mod_python_wrap.cpp mod_python.i 17 | + ${STAGING_DIR_HOSTPKG}/bin/swig -python -c++ -I../../../../src/include -oh mod_python_wrap.h -o mod_python_wrap.cpp mod_python.i 18 | echo "#include \"mod_python_extra.c\"" >> mod_python_wrap.cpp 19 | patch -s -p0 -i hack.diff 20 | 21 | -------------------------------------------------------------------------------- /net/freeswitch/patches/uClibc/src-mod-languages-mod_python-freeswitch_python_cpp.patch: -------------------------------------------------------------------------------- 1 | --- a/src/mod/languages/mod_python/freeswitch_python.cpp 2 | +++ b/src/mod/languages/mod_python/freeswitch_python.cpp 3 | @@ -319,7 +319,12 @@ switch_status_t Session::run_dtmf_callba 4 | } 5 | 6 | if ((pyresult = PyEval_CallObject(cb_function, arglist))) { 7 | +#if PY_MAJOR_VERSION < 3 8 | str = (char *) PyString_AsString(pyresult); 9 | +#else 10 | + //str = (char *) pyresult->encode('UTF-8'); 11 | + str = (char *) PyUnicode_AsUnicode(pyresult); 12 | +#endif 13 | } else { 14 | PyErr_Print(); 15 | } 16 | -------------------------------------------------------------------------------- /net/iotivity/files/etc/iotivity/ReadMe.txt: -------------------------------------------------------------------------------- 1 | The file oic_svr_db.cbor in generated from the oic_svr_db.json with the 2 | resource/csdk/security/tool/json2cbor.c tool. 3 | -------------------------------------------------------------------------------- /net/iotivity/files/etc/iotivity/oic_svr_db.cbor: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/openwrt/packages-abandoned/6b44abff226586f2d1f4920281c0d4a857f1bdc5/net/iotivity/files/etc/iotivity/oic_svr_db.cbor -------------------------------------------------------------------------------- /net/iotivity/patches/002-do-not-chck-for-boost.patch: -------------------------------------------------------------------------------- 1 | From 51e26e002aa043435f94ac0f071066090d5c2de8 Mon Sep 17 00:00:00 2001 2 | From: Hauke Mehrtens 3 | Date: Mon, 22 Jun 2015 20:23:36 +0200 4 | Subject: [PATCH 5/5] do not chck for boost 5 | 6 | Boost is not needed for every package just for some. 7 | 8 | Signed-off-by: Hauke Mehrtens 9 | --- 10 | service/third_party_libs.scons | 8 -------- 11 | 1 file changed, 8 deletions(-) 12 | 13 | --- a/service/third_party_libs.scons 14 | +++ b/service/third_party_libs.scons 15 | @@ -49,14 +49,6 @@ if target_os in ['linux']: 16 | 17 | conf = Configure(lib_env) 18 | 19 | - if target_os not in ['tizen'] and not conf.CheckLib('boost_thread', language='C++'): 20 | - print 'Did not find boost_thread, exiting!' 21 | - Exit(1) 22 | - 23 | - if target_os not in ['tizen'] and not conf.CheckLib('boost_system', language='C++'): 24 | - print 'Did not find boost_system, exiting!' 25 | - Exit(1) 26 | - 27 | lib_env = conf.Finish() 28 | 29 | ###################################################################### 30 | -------------------------------------------------------------------------------- /net/iotivity/patches/040-linux-Use-system-sqlite3.patch: -------------------------------------------------------------------------------- 1 | From 08b403572985a70fe5d652378e1cfa2b72ac6a3d Mon Sep 17 00:00:00 2001 2 | From: Philippe Coval 3 | Date: Fri, 9 Dec 2016 02:12:04 +0100 4 | Subject: [PATCH] linux: Use system sqlite3 5 | 6 | Problem was discovered on yocto 7 | 8 | Change-Id: I5274bed9e4b7ddcdc1b17a265a1886cd78cb631f 9 | Signed-off-by: Philippe Coval 10 | Reviewed-on: https://gerrit.iotivity.org/gerrit/15305 11 | Tested-by: jenkins-iotivity 12 | Reviewed-by: Ziran Sun 13 | --- 14 | resource/csdk/SConscript | 2 +- 15 | 1 file changed, 1 insertion(+), 1 deletion(-) 16 | 17 | --- a/resource/csdk/SConscript 18 | +++ b/resource/csdk/SConscript 19 | @@ -191,7 +191,7 @@ if with_tcp == True: 20 | 21 | if 'SERVER' in rd_mode: 22 | liboctbstack_src.append(OCTBSTACK_SRC + 'oicresourcedirectory.c') 23 | - if target_os not in ['tizen']: 24 | + if target_os not in ['linux', 'tizen']: 25 | liboctbstack_src.append('#extlibs/sqlite3/sqlite3.c') 26 | 27 | if target_os in ['linux']: 28 | -------------------------------------------------------------------------------- /net/kamailio-3.x/files/kamailio.default: -------------------------------------------------------------------------------- 1 | # 2 | # Kamailio startup options 3 | # 4 | 5 | # Set to yes to enable kamailio, once configured properly. 6 | #RUN_KAMAILIO=yes 7 | 8 | # Amount of shared and private memory to allocate 9 | # for the running Kamailio server (in Mb) 10 | #SHM_MEMORY=64 11 | #PKG_MEMORY=4 12 | 13 | # Config file 14 | #CFGFILE=/etc/kamailio/kamailio.cfg 15 | -------------------------------------------------------------------------------- /net/kamailio-3.x/files/kamailio.init: -------------------------------------------------------------------------------- 1 | #!/bin/sh /etc/rc.common 2 | # Copyright (C) 2014 OpenWrt.org 3 | 4 | START=99 5 | 6 | BINFILE=/usr/sbin/kamailio 7 | PIDFILE=/var/run/kamailio.pid 8 | DEFAULTS=/etc/default/kamailio 9 | CFGFILE=/etc/kamailio/kamailio.cfg 10 | SHM_MEMORY=8 11 | PKG_MEMORY=2 12 | RUN_KAMAILIO=no 13 | 14 | start() { 15 | # Load startup options if available 16 | if [ -f $DEFAULTS ]; then 17 | . $DEFAULTS 18 | fi 19 | 20 | if [ "$RUN_KAMAILIO" != "yes" ]; then 21 | echo "[WARNING] Kamailio not yet configured. Edit /etc/default/kamailio first." 22 | else 23 | start-stop-daemon -S -x $BINFILE -b -- -P $PIDFILE -f $CFGFILE -m $SHM_MEMORY -M $PKG_MEMORY 24 | echo "[INFO] Kamailio has succesfully started." 25 | fi 26 | } 27 | 28 | stop() { 29 | start-stop-daemon -K -x $BINFILE -p $PIDFILE -q 30 | rm -rf $PID_FILE 31 | } 32 | 33 | restart(){ 34 | echo "[INFO] Restarting kamailio. Waiting 5 seconds before start." 35 | stop 36 | sleep 5 37 | start 38 | } 39 | -------------------------------------------------------------------------------- /net/kamailio-3.x/patches/100-cross_compile.patch: -------------------------------------------------------------------------------- 1 | --- a/modules_s/ldap/Makefile 2 | +++ b/modules_s/ldap/Makefile 3 | @@ -14,7 +14,7 @@ 4 | # LD_SCOPE_CHILDREN defined 5 | #DEFS += -DHAVE_SCOPE_CHILDREN 6 | 7 | -LIBS=-L$(LOCALBASE)/lib -L /usr/lib -lldap 8 | +LIBS=-L$(LOCALBASE)/lib -lldap 9 | 10 | DEFS+=-DSER_MOD_INTERFACE 11 | 12 | -------------------------------------------------------------------------------- /net/kamailio-3.x/patches/110-include-sys-time-h-in-ld_session-h.patch: -------------------------------------------------------------------------------- 1 | Index: kamailio3-3.3.7/modules_k/ldap/ld_session.h 2 | =================================================================== 3 | --- kamailio3-3.3.7.orig/modules_k/ldap/ld_session.h 4 | +++ kamailio3-3.3.7/modules_k/ldap/ld_session.h 5 | @@ -33,6 +33,7 @@ 6 | #ifndef LD_SESSION_H 7 | #define LD_SESSION_H 8 | 9 | +#include 10 | #include 11 | 12 | #include "iniparser.h" 13 | -------------------------------------------------------------------------------- /net/kamailio-4.x/files/kamailio.default: -------------------------------------------------------------------------------- 1 | # 2 | # Kamailio startup options 3 | # 4 | 5 | # Set to yes to enable kamailio, once configured properly. 6 | #RUN_KAMAILIO=yes 7 | 8 | # Amount of shared and private memory to allocate 9 | # for the running Kamailio server (in Mb) 10 | #SHM_MEMORY=64 11 | #PKG_MEMORY=4 12 | 13 | # Config file 14 | #CFGFILE=/etc/kamailio/kamailio.cfg 15 | -------------------------------------------------------------------------------- /net/kamailio-4.x/files/kamailio.init: -------------------------------------------------------------------------------- 1 | #!/bin/sh /etc/rc.common 2 | # Copyright (C) 2014 OpenWrt.org 3 | 4 | START=99 5 | 6 | BINFILE=/usr/sbin/kamailio 7 | PIDFILE=/var/run/kamailio.pid 8 | DEFAULTS=/etc/default/kamailio 9 | CFGFILE=/etc/kamailio/kamailio.cfg 10 | SHM_MEMORY=8 11 | PKG_MEMORY=2 12 | RUN_KAMAILIO=no 13 | 14 | start() { 15 | # Load startup options if available 16 | if [ -f $DEFAULTS ]; then 17 | . $DEFAULTS 18 | fi 19 | 20 | if [ "$RUN_KAMAILIO" != "yes" ]; then 21 | echo "[WARNING] Kamailio not yet configured. Edit /etc/default/kamailio first." 22 | else 23 | start-stop-daemon -S -x $BINFILE -b -- -P $PIDFILE -f $CFGFILE -m $SHM_MEMORY -M $PKG_MEMORY 24 | echo "[INFO] Kamailio has succesfully started." 25 | fi 26 | } 27 | 28 | stop() { 29 | start-stop-daemon -K -x $BINFILE -p $PIDFILE -q 30 | rm -rf $PID_FILE 31 | } 32 | 33 | restart(){ 34 | echo "[INFO] Restarting kamailio. Waiting 5 seconds before start." 35 | stop 36 | sleep 5 37 | start 38 | } 39 | -------------------------------------------------------------------------------- /net/kamailio-4.x/patches/120-libevent-libs.patch: -------------------------------------------------------------------------------- 1 | --- a/modules/cnxcc/Makefile 2 | +++ b/modules/cnxcc/Makefile 3 | @@ -45,7 +45,7 @@ else 4 | endif 5 | 6 | DEFS+=$(HIREDISDEFS) $(LEVENTDEFS) 7 | -LIBS=$(HIREDISLIBS) $(LEVENTLIBS) 8 | +LIBS=$(HIREDISLIBS) $(LEVENTLIBS) $(EXTRA_LIBS) 9 | 10 | DEFS+=-DOPENSER_MOD_INTERFACE 11 | SERLIBPATH=../../lib 12 | --- a/modules/janssonrpc-c/netstring.h 13 | +++ b/modules/janssonrpc-c/netstring.h 14 | @@ -24,6 +24,7 @@ 15 | #define __NETSTRING_STREAM_H 16 | 17 | #include 18 | +#include 19 | #include 20 | 21 | typedef struct { 22 | -------------------------------------------------------------------------------- /net/linuxigd/files/upnpd.init: -------------------------------------------------------------------------------- 1 | #!/bin/sh /etc/rc.common 2 | # Copyright (C) 2006-2012 OpenWrt.org 3 | # Copyright (C) 2006 loswillios 4 | 5 | START=65 6 | 7 | start() { 8 | . /lib/functions/network.sh 9 | 10 | network_get_device wan_if 'wan' || return 1 11 | network_get_device lan_if 'lan' || return 1 12 | 13 | route add -net 239.0.0.0 netmask 255.0.0.0 $lan_if 14 | service_start /usr/sbin/upnpd $wan_if $lan_if 15 | } 16 | 17 | stop() { 18 | . /lib/functions/network.sh 19 | 20 | service_stop /usr/sbin/upnpd 21 | 22 | network_get_device lan_if 'lan' && \ 23 | route del -net 239.0.0.0 netmask 255.0.0.0 $lan_if 24 | } 25 | -------------------------------------------------------------------------------- /net/linuxigd/patches/002-netfilter_nat_headers.patch: -------------------------------------------------------------------------------- 1 | diff -urN linuxigd-1.0/iptc.c linuxigd-1.0.new/iptc.c 2 | --- linuxigd-1.0/iptc.c 2006-09-11 17:55:48.000000000 +0200 3 | +++ linuxigd-1.0.new/iptc.c 2007-07-13 14:50:23.000000000 +0200 4 | @@ -6,7 +6,12 @@ 5 | #include 6 | #include 7 | #include 8 | +#include 9 | +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,22) 10 | +#include 11 | +#else 12 | #include 13 | +#endif 14 | #include /* inet_addr */ 15 | #include "globals.h" 16 | #include "util.h" 17 | -------------------------------------------------------------------------------- /net/linuxigd/patches/003-Makefile-fix.patch: -------------------------------------------------------------------------------- 1 | Index: linuxigd-1.0/Makefile 2 | =================================================================== 3 | --- linuxigd-1.0.orig/Makefile 2008-02-27 10:45:26.000000000 +0100 4 | +++ linuxigd-1.0/Makefile 2008-02-27 10:45:54.000000000 +0100 5 | @@ -27,7 +27,7 @@ 6 | @echo "make $@ finished on `date`" 7 | 8 | %.o: %.c 9 | - $(CC) $(CFLAGS) $(INCLUDES) -c $< 10 | + $(CC) $(CFLAGS) $(INCLUDES) -D_GNU_SOURCE -c $< 11 | 12 | clean: 13 | rm -f *.o upnpd 14 | -------------------------------------------------------------------------------- /net/linuxigd/patches/005-includes.patch: -------------------------------------------------------------------------------- 1 | --- a/gatedevice.c 2 | +++ b/gatedevice.c 3 | @@ -1,5 +1,6 @@ 4 | #include 5 | #include 6 | +#include 7 | #include 8 | #include 9 | #include 10 | --- a/main.c 11 | +++ b/main.c 12 | @@ -10,6 +10,7 @@ 13 | #include 14 | #include 15 | #include 16 | +#include 17 | #include "globals.h" 18 | #include "config.h" 19 | #include "gatedevice.h" 20 | --- a/pmlist.c 21 | +++ b/pmlist.c 22 | @@ -2,6 +2,8 @@ 23 | #include 24 | #include 25 | #include 26 | +#include 27 | +#include 28 | #include "globals.h" 29 | #include "config.h" 30 | #include "pmlist.h" 31 | -------------------------------------------------------------------------------- /net/mstpd/Config.in: -------------------------------------------------------------------------------- 1 | menu "Configuration" 2 | depends on PACKAGE_mstpd 3 | 4 | config MSTPD_RTNL_RCV_BUFSIZE 5 | int "Netlink receive buffer size" 6 | default 262144 7 | 8 | config MSTPD_RTNL_SND_BUFSIZE 9 | int "Netlink send buffer size" 10 | default 262144 11 | 12 | endmenu 13 | -------------------------------------------------------------------------------- /net/mstpd/files/sbin/bridge-stp: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Dummy file ; don't do anything ; 4 | # Returning success here, tells the kernel to allow 5 | # a userspace module to handle STP states 6 | # 7 | # Meanwhile, procd will start mstpd, and all will be well 8 | 9 | exit 0 10 | -------------------------------------------------------------------------------- /net/mstpd/patches/010-bsd.patch: -------------------------------------------------------------------------------- 1 | --- a/hmac_md5.c 2 | +++ b/hmac_md5.c 3 | @@ -356,10 +356,10 @@ caddr_t digest; /* caller di 4 | */ 5 | 6 | /* start out by storing key in pads */ 7 | - bzero(k_ipad, sizeof k_ipad); 8 | - bzero(k_opad, sizeof k_opad); 9 | - bcopy(key, k_ipad, key_len); 10 | - bcopy( key, k_opad, key_len); 11 | + memset(k_ipad, 0, sizeof k_ipad); 12 | + memset(k_opad, 0, sizeof k_opad); 13 | + memcpy(k_ipad, key, key_len); 14 | + memcpy(k_opad, key, key_len); 15 | 16 | /* XOR key with ipad and opad values */ 17 | for(i = 0; i < 64; ++i) 18 | -------------------------------------------------------------------------------- /net/multiwan/files/etc/init.d/multiwan: -------------------------------------------------------------------------------- 1 | #!/bin/sh /etc/rc.common 2 | START=99 3 | EXTRA_COMMANDS="single" 4 | 5 | start () { 6 | /usr/bin/multiwan agent & 7 | } 8 | 9 | stop () { 10 | sh /usr/bin/multiwan stop 11 | } 12 | 13 | restart () { 14 | /usr/bin/multiwan restart & 15 | } 16 | 17 | single () { 18 | /usr/bin/multiwan single & 19 | } 20 | 21 | -------------------------------------------------------------------------------- /net/obfsproxy/patches/001-exclude-tests.patch: -------------------------------------------------------------------------------- 1 | diff --git a/setup.py b/setup.py 2 | index 2353a29..9d2a9a9 100644 3 | --- a/setup.py 4 | +++ b/setup.py 5 | @@ -21,7 +21,7 @@ setup( 6 | version=versioneer.get_version(), 7 | cmdclass=versioneer.get_cmdclass(), 8 | 9 | - packages = find_packages(), 10 | + packages = find_packages(exclude=['*.test', '*.test.*']), 11 | entry_points = { 12 | 'console_scripts': [ 13 | 'obfsproxy = obfsproxy.pyobfsproxy:run' 14 | -------------------------------------------------------------------------------- /net/obfsproxy/patches/002-fix-python-path.patch: -------------------------------------------------------------------------------- 1 | diff --git a/setup.py b/setup.py 2 | index 2353a29..8d3d56d 100644 3 | --- a/setup.py 4 | +++ b/setup.py 5 | @@ -27,6 +27,11 @@ setup( 6 | 'obfsproxy = obfsproxy.pyobfsproxy:run' 7 | ] 8 | }, 9 | + options = { 10 | + 'build_scripts': { 11 | + 'executable': '/usr/bin/python2' 12 | + }, 13 | + }, 14 | 15 | install_requires = [ 16 | 'setuptools', 17 | -------------------------------------------------------------------------------- /net/obfsproxy/patches/003-remove-argparse-dependency-test.patch: -------------------------------------------------------------------------------- 1 | diff --git a/setup.py b/setup.py 2 | index 2353a29..e04c5f5 100644 3 | --- a/setup.py 4 | +++ b/setup.py 5 | @@ -32,7 +32,6 @@ setup( 6 | 'setuptools', 7 | 'PyCrypto', 8 | 'Twisted', 9 | - 'argparse', 10 | 'pyptlib >= 0.0.6', 11 | 'pyyaml' 12 | ], 13 | -------------------------------------------------------------------------------- /net/ooniprobe/test.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ooniprobe version | grep "$2" 4 | -------------------------------------------------------------------------------- /net/restund/files/restund.default: -------------------------------------------------------------------------------- 1 | ### restund init configuration ### 2 | 3 | # Uncomment once you verified your configuration, otherwise the init script will 4 | # not start restund. 5 | #ENABLE_RESTUND="yes" 6 | 7 | # The following is added to the command line when starting restund: 8 | OPTIONS="" 9 | -------------------------------------------------------------------------------- /net/restund/files/restund.init: -------------------------------------------------------------------------------- 1 | #!/bin/sh /etc/rc.common 2 | # Copyright (C) 2017 OpenWrt.org 3 | 4 | START=60 5 | 6 | USE_PROCD=1 7 | 8 | #PROCD_DEBUG=1 9 | 10 | DAEMON=restund 11 | DEFAULT=/etc/default/$DAEMON 12 | LOGGER="/usr/bin/logger -p user.err -s -t $DAEMON" 13 | OPTIONS= 14 | PROG=/usr/sbin/$DAEMON 15 | 16 | [ -f $DEFAULT ] && . $DEFAULT 17 | 18 | start_service() { 19 | local dir= 20 | 21 | if [ "$ENABLE_RESTUND" != yes ]; then 22 | $LOGGER User configuration incomplete - not starting $DAEMON 23 | $LOGGER Check ENABLE_RESTUND in $DEFAULT 24 | exit 1 25 | fi 26 | 27 | procd_open_instance 28 | procd_set_param command $PROG 29 | procd_append_param command \ 30 | -n \ 31 | $OPTIONS 32 | procd_set_param pidfile /var/run/${DAEMON}.pid 33 | # forward stderr to logd 34 | procd_set_param stderr 1 35 | # forward stdout to logd 36 | procd_set_param stdout 1 37 | procd_set_param user $DAEMON 38 | procd_close_instance 39 | } 40 | -------------------------------------------------------------------------------- /net/restund/patches/100-reproducible-builds.patch: -------------------------------------------------------------------------------- 1 | --- a/modules/status/status.c 2 | +++ b/modules/status/status.c 3 | @@ -30,9 +30,6 @@ static void server_info(struct mbuf *mb) 4 | mbuf_write_str(mb, "\n"); 5 | mbuf_write_str(mb, 6 | " \n"); 7 | - mbuf_write_str(mb, 8 | - " \n"); 10 | mbuf_printf(mb, " \n", 11 | fmt_human_time, &uptime); 12 | mbuf_write_str(mb, "
Version:" VERSION "
Built:" __DATE__ " " __TIME__ 9 | - "
Uptime:%H
\n"); 13 | -------------------------------------------------------------------------------- /net/seafile-ccnet/patches/010-Makefile.patch: -------------------------------------------------------------------------------- 1 | --- a/lib/Makefile.am 2 | +++ b/lib/Makefile.am 3 | @@ -1,3 +1,4 @@ 4 | +include $(TOPDIR)/rules.mk 5 | 6 | AM_CPPFLAGS = @GLIB2_CFLAGS@ -I$(top_srcdir)/include \ 7 | -I$(top_srcdir)/include/ccnet \ 8 | @@ -85,7 +86,7 @@ rpc_table.stamp: ${top_srcdir}/lib/rpc_t 9 | @rm -f rpc_table.tmp 10 | @touch rpc_table.tmp 11 | @echo "[libsearpc]: generating rpc header files" 12 | - @PYTHON@ `which searpc-codegen.py` ${top_srcdir}/lib/rpc_table.py 13 | + @PYTHON@ "$(STAGING_DIR)/usr/bin/searpc-codegen.py" ${top_srcdir}/lib/rpc_table.py 14 | @echo "[libsearpc]: done" 15 | @mv -f rpc_table.tmp $@ 16 | 17 | -------------------------------------------------------------------------------- /net/seafile-ccnet/patches/011-no-python-compile.patch: -------------------------------------------------------------------------------- 1 | --- a/python/ccnet/Makefile.am 2 | +++ b/python/ccnet/Makefile.am 3 | @@ -1,2 +1,2 @@ 4 | ccnetdir=${pyexecdir}/ccnet 5 | -ccnet_PYTHON = __init__.py rpc.py 6 | +ccnet_DATA = __init__.py rpc.py 7 | -------------------------------------------------------------------------------- /net/seafile-seahub/Django-1.11.txt: -------------------------------------------------------------------------------- 1 | Django==1.11.29 --hash=sha256:4200aefb6678019a0acf0005cd14cfce3a5e6b9b90d06145fcdd2e474ad4329c 2 | pytz==2021.3 --hash=sha256:acad2d8b20a1af07d4e4c9d2e9285c5ed9104354062f275f3fcd88dcef4f1326 3 | -------------------------------------------------------------------------------- /net/seafile-seahub/patches/020-Makefile-fixes.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile 2 | +++ b/Makefile 3 | @@ -1,3 +1,6 @@ 4 | +PYTHON ?= python 5 | +DJANGO_ADMIN_PY ?= django-admin.py 6 | + 7 | PROJECT=seahub 8 | 9 | develop: setup-git 10 | @@ -9,22 +12,22 @@ dist: locale statici18n collectstatic 11 | 12 | locale: 13 | @echo "--> Compile locales" 14 | - django-admin.py compilemessages 15 | + $(DJANGO_ADMIN_PY) compilemessages 16 | @echo "" 17 | 18 | statici18n: 19 | @echo "--> Generate JS locale files in static/scripts/i18n" 20 | - python manage.py compilejsi18n 21 | + $(PYTHON) manage.py compilejsi18n 22 | 23 | collectstatic: 24 | @echo "--> Collect django static files to media/assets" 25 | rm -rf media/assets 2> /dev/null 26 | - python manage.py collectstatic --noinput -i admin -i termsandconditions 27 | + $(PYTHON) manage.py collectstatic --noinput -i admin -i termsandconditions 28 | 29 | compressstatic: 30 | @echo "--> Compress static files(css) to media/CACHE" 31 | rm -rf media/CACHE 2> /dev/null 32 | - python manage.py compress 33 | + $(PYTHON) manage.py compress 34 | 35 | clean: 36 | @echo '--> Cleaning media/static cache & dist' 37 | -------------------------------------------------------------------------------- /net/seafile-seahub/patches/040-manage-shebang.patch: -------------------------------------------------------------------------------- 1 | --- a/manage.py 2 | +++ b/manage.py 3 | @@ -1,4 +1,4 @@ 4 | -#!/usr/bin/env python 5 | +#!/usr/bin/python3 6 | import os 7 | import sys 8 | 9 | -------------------------------------------------------------------------------- /net/seafile-server/files/create-seafile-admin.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | TOPDIR=/usr/share/seafile 4 | INSTALLPATH=$TOPDIR/seafile-server 5 | 6 | seafile start || exit 1 7 | 8 | seahub python-env python3 "$INSTALLPATH/check_init_admin.py" 9 | 10 | seafile stop 11 | -------------------------------------------------------------------------------- /net/seafile-server/files/seafile-server.config: -------------------------------------------------------------------------------- 1 | config seafile-server 2 | # 3 | # Directory that holds: 4 | # 5 | # * Seafile data directory (seafile-data) 6 | # * Seahub data directory (seahub-data) 7 | # * Seahub database (seahub.db), if using SQLite 8 | # 9 | # Default: /usr/share/seafile 10 | # 11 | option data_dir /usr/share/seafile 12 | -------------------------------------------------------------------------------- /net/seafile-server/files/seafile-server.upgrade: -------------------------------------------------------------------------------- 1 | /etc/seafile/ 2 | -------------------------------------------------------------------------------- /net/seafile-server/patches/010-configure-libevent_openssl.patch: -------------------------------------------------------------------------------- 1 | --- a/configure.ac 2 | +++ b/configure.ac 3 | @@ -219,7 +219,7 @@ PKG_CHECK_MODULES(JANSSON, [jansson >= $ 4 | AC_SUBST(JANSSON_CFLAGS) 5 | AC_SUBST(JANSSON_LIBS) 6 | 7 | -PKG_CHECK_MODULES(LIBEVENT, [libevent >= $LIBEVENT_REQUIRED]) 8 | +PKG_CHECK_MODULES(LIBEVENT, [libevent_openssl >= $LIBEVENT_REQUIRED]) 9 | AC_SUBST(LIBEVENT_CFLAGS) 10 | AC_SUBST(LIBEVENT_LIBS) 11 | 12 | -------------------------------------------------------------------------------- /net/seafile-server/patches/011-configure-liconv.patch: -------------------------------------------------------------------------------- 1 | --- a/configure.ac 2 | +++ b/configure.ac 3 | @@ -167,6 +167,7 @@ else 4 | LIB_MAC= 5 | MSVC_CFLAGS= 6 | LIB_CRYPT32= 7 | + LIB_ICONV=-liconv 8 | fi 9 | 10 | AC_SUBST(LIB_WS32) 11 | -------------------------------------------------------------------------------- /net/seafile-server/patches/012-automake-no-python-compile.patch: -------------------------------------------------------------------------------- 1 | --- a/python/seafile/Makefile.am 2 | +++ b/python/seafile/Makefile.am 3 | @@ -1,3 +1,3 @@ 4 | seafiledir=${pyexecdir}/seafile 5 | 6 | -seafile_PYTHON = __init__.py rpcclient.py 7 | +seafile_DATA = __init__.py rpcclient.py 8 | --- a/python/seaserv/Makefile.am 9 | +++ b/python/seaserv/Makefile.am 10 | @@ -1,3 +1,3 @@ 11 | seaservdir=${pyexecdir}/seaserv 12 | 13 | -seaserv_PYTHON = __init__.py service.py api.py 14 | +seaserv_DATA = __init__.py service.py api.py 15 | -------------------------------------------------------------------------------- /net/seafile-server/patches/030-controller-pid-dir-permissions.patch: -------------------------------------------------------------------------------- 1 | --- a/controller/seafile-controller.c 2 | +++ b/controller/seafile-controller.c 3 | @@ -516,7 +516,7 @@ init_pidfile_path (SeafileController *ct 4 | pid_dir = g_build_filename (topdir, "pids", NULL); 5 | } 6 | if (!g_file_test(pid_dir, G_FILE_TEST_EXISTS)) { 7 | - if (g_mkdir(pid_dir, 0777) < 0) { 8 | + if (g_mkdir(pid_dir, 0755) < 0) { 9 | seaf_warning("failed to create pid dir %s: %s", pid_dir, strerror(errno)); 10 | controller_exit(1); 11 | } 12 | -------------------------------------------------------------------------------- /net/seafile-server/patches/032-seafile-no-stat.patch: -------------------------------------------------------------------------------- 1 | --- a/scripts/seafile.sh 2 | +++ b/scripts/seafile.sh 3 | @@ -42,10 +42,9 @@ fi 4 | function validate_running_user () { 5 | real_data_dir=`readlink -f ${default_seafile_data_dir}` 6 | running_user=`id -un` 7 | - data_dir_owner=`stat -c %U ${real_data_dir}` 8 | 9 | - if [[ "${running_user}" != "${data_dir_owner}" ]]; then 10 | - echo "Error: the user running the script (\"${running_user}\") is not the owner of \"${real_data_dir}\" folder, you should use the user \"${data_dir_owner}\" to run the script." 11 | + if [[ -z "$(find "${real_data_dir}" -user "${running_user}" -maxdepth 0)" ]]; then 12 | + echo "Error: the user running the script (\"${running_user}\") is not the owner of \"${real_data_dir}\" folder, you should use the owner of \"${real_data_dir}\" to run the script." 13 | exit -1; 14 | fi 15 | } 16 | -------------------------------------------------------------------------------- /net/seafile-server/patches/034-seaf-fuse-no-fuse_opt_h.patch: -------------------------------------------------------------------------------- 1 | --- a/fuse/seaf-fuse.c 2 | +++ b/fuse/seaf-fuse.c 3 | @@ -5,7 +5,6 @@ 4 | 5 | #define FUSE_USE_VERSION 26 6 | #include 7 | -#include 8 | 9 | #include 10 | #include 11 | -------------------------------------------------------------------------------- /net/seafile-server/patches/040-setup-skip-dir-check.patch: -------------------------------------------------------------------------------- 1 | --- a/scripts/setup-seafile-mysql.py 2 | +++ b/scripts/setup-seafile-mysql.py 3 | @@ -316,9 +316,6 @@ class EnvManager(object): 4 | os.path.join(self.install_path, 'runtime'), 5 | ] 6 | 7 | - for path in paths: 8 | - error_if_not_exists(path) 9 | - 10 | if os.path.exists(ccnet_config.ccnet_dir): 11 | Utils.error('Ccnet config dir \"%s\" already exists.' % ccnet_config.ccnet_dir) 12 | 13 | --- a/scripts/setup-seafile.sh 14 | +++ b/scripts/setup-seafile.sh 15 | @@ -415,7 +415,6 @@ if [[ $# -ge 1 && "$1" == "auto" ]]; the 16 | need_pause=0 17 | fi 18 | 19 | -check_sanity; 20 | if [[ "${need_pause}" == "1" ]]; then 21 | welcome; 22 | fi 23 | -------------------------------------------------------------------------------- /net/seafile-server/patches/041-setup-add-custom-seahub-settings.patch: -------------------------------------------------------------------------------- 1 | --- a/scripts/setup-seafile-mysql.py 2 | +++ b/scripts/setup-seafile-mysql.py 3 | @@ -1101,6 +1101,10 @@ class SeahubConfigurator(AbstractConfigu 4 | } 5 | } 6 | 7 | +# Custom settings for OpenWrt 8 | +USE_I18N = False 9 | +USER_PASSWORD_MIN_LENGTH = 8 10 | +USER_STRONG_PASSWORD_REQUIRED = True 11 | ''' 12 | text = template % dict(name=db_config.seahub_db_name, 13 | username=db_config.seafile_mysql_user, 14 | --- a/scripts/setup-seafile.sh 15 | +++ b/scripts/setup-seafile.sh 16 | @@ -525,6 +525,11 @@ if [[ ! -f ${dest_settings_py} ]]; then 17 | cat > ${dest_settings_py} <&5 18 | - (eval $ac_compile) 2>conftest.er1 19 | + (eval $ac_link) 2>conftest.er1 20 | ac_status=$? 21 | grep -v '^ *+' conftest.er1 >conftest.err 22 | rm -f conftest.er1 23 | -------------------------------------------------------------------------------- /net/smap/patches/01-add-tecom-supported-header.patch: -------------------------------------------------------------------------------- 1 | diff -Naur smap.broadcast/test_supported.c smap/test_supported.c 2 | --- smap.broadcast/test_supported.c 2009-06-14 21:41:49.000000000 -0400 3 | +++ smap/test_supported.c 2009-06-14 21:51:17.000000000 -0400 4 | @@ -49,6 +49,8 @@ 5 | {"Supported: timer, 100rel, replaces, callerid", 13}, 6 | /* Cisco 79x0 */ 7 | {"Supported: replaces,join,norefersub", 14}, 8 | + /* Tecom IP2007 */ 9 | + {"Supported: 100rel,replaces", 15 }, 10 | {"", 0} 11 | }; 12 | 13 | -------------------------------------------------------------------------------- /net/snort/Config.in: -------------------------------------------------------------------------------- 1 | menu "Configuration" 2 | depends on PACKAGE_snort 3 | 4 | config SNORT_LZMA 5 | bool "Enable LZMA support" 6 | default n 7 | help 8 | This option enables LZMA decompression. 9 | Disabled by default. 10 | 11 | endmenu 12 | -------------------------------------------------------------------------------- /net/snort/files/snort.config: -------------------------------------------------------------------------------- 1 | config snort 'snort' 2 | option config_file '/etc/snort/snort.conf' 3 | option interface 'lo' 4 | -------------------------------------------------------------------------------- /net/snort/files/snort.init: -------------------------------------------------------------------------------- 1 | #!/bin/sh /etc/rc.common 2 | # Copyright (C) 2015 OpenWrt.org 3 | 4 | START=90 5 | STOP=10 6 | 7 | USE_PROCD=1 8 | PROG=/usr/bin/snort 9 | 10 | validate_snort_section() { 11 | uci_load_validate snort snort "$1" "$2" \ 12 | 'config_file:string' \ 13 | 'interface:string' 14 | } 15 | 16 | start_snort_instance() { 17 | [ "$2" = 0 ] || { 18 | echo "validation failed" 19 | return 1 20 | } 21 | 22 | procd_open_instance 23 | procd_set_param command $PROG "-q" "--daq-dir" "/usr/lib/daq/" "-i" "$interface" "-c" "$config_file" "-s" "-N" 24 | procd_set_param file $config_file 25 | procd_set_param respawn 26 | procd_close_instance 27 | } 28 | 29 | start_service() 30 | { 31 | validate_snort_section snort start_snort_instance 32 | } 33 | 34 | stop_service() 35 | { 36 | service_stop ${PROG} 37 | } 38 | 39 | service_triggers() 40 | { 41 | procd_add_reload_trigger "snort" 42 | procd_add_validation validate_snort_section 43 | } 44 | -------------------------------------------------------------------------------- /net/snort/patches/002-fix_include.patch: -------------------------------------------------------------------------------- 1 | --- a/configure.in 2 | +++ b/configure.in 3 | @@ -67,6 +67,11 @@ case "$host" in 4 | AC_DEFINE([SUNOS],[1],[Define if SunOS]) 5 | sunos4="yes" 6 | ;; 7 | + *-openwrt*) 8 | + linux="yes" 9 | + AC_DEFINE([LINUX],[1],[Define if Linux]) 10 | + AC_SUBST(extra_incl) 11 | + ;; 12 | *-linux*) 13 | linux="yes" 14 | AC_DEFINE([LINUX],[1],[Define if Linux]) 15 | -------------------------------------------------------------------------------- /net/snort/patches/003-include-tirpc.patch: -------------------------------------------------------------------------------- 1 | --- a/src/dynamic-preprocessors/appid/service_plugins/service_rpc.c 2 | +++ b/src/dynamic-preprocessors/appid/service_plugins/service_rpc.c 3 | @@ -32,6 +32,7 @@ 4 | #include "flow.h" 5 | #include "service_api.h" 6 | 7 | +#include 8 | #if defined(FREEBSD) || defined(OPENBSD) 9 | #include "rpc/rpc.h" 10 | #endif 11 | -------------------------------------------------------------------------------- /net/trojan-go/test.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | trojan-go -version | grep "$PKG_VERSION" 4 | -------------------------------------------------------------------------------- /net/wifidog-ng/files/wifidog-ng.config: -------------------------------------------------------------------------------- 1 | config gateway 2 | option enabled 1 3 | option interface 'lan' 4 | option port 2060 5 | option dhcp_host_white 1 6 | option ssl_port 8443 7 | option checkinterval 30 8 | option client_timeout 5 9 | option temppass_time 30 10 | 11 | config server 12 | option host 'authserver.com' 13 | option port 80 14 | option ssl 0 15 | option path '/wifidog/' 16 | option login_path 'login' 17 | option portal_path 'portal' 18 | option msg_path 'gw_message.php' 19 | option ping_path 'ping' 20 | option auth_path 'auth' -------------------------------------------------------------------------------- /net/wifidog-ng/files/wifidog-ng.hotplug: -------------------------------------------------------------------------------- 1 | [ "$ACTION" = "add" -o "$ACTION" = "update" ] || exit 0 2 | ubus list wifidog-ng > /dev/null 2>&1 || exit 0 3 | ubus call wifidog-ng roam "{\"mac\":\"$MACADDR\", \"ip\":\"$IPADDR\"}" 4 | -------------------------------------------------------------------------------- /net/wifidog-ng/files/wifidog-ng/version.lua: -------------------------------------------------------------------------------- 1 | --[[ 2 | Copyright (C) 2018 Jianhui Zhao 3 | 4 | This program is free software; you can redistribute it and/or 5 | modify it under the terms of the GNU Lesser General Public 6 | License as published by the Free Software Foundation; either 7 | version 2.1 of the License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 | Lesser General Public License for more details. 13 | 14 | You should have received a copy of the GNU Lesser General Public 15 | License along with this library; if not, write to the Free Software 16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 17 | USA 18 | --]] 19 | 20 | local M = { 21 | MAJOR = 2, 22 | MINOR = 0, 23 | PATCH = 0 24 | } 25 | 26 | function M.string() 27 | return string.format("%d.%d.%d", M.MAJOR, M.MINOR, M.PATCH) 28 | end 29 | 30 | return M 31 | -------------------------------------------------------------------------------- /net/wifidog-ng/src/Makefile: -------------------------------------------------------------------------------- 1 | ifeq ($(findstring openwrt, $(CC)),) 2 | ifneq ($(KERNELRELEASE),) 3 | wifidog-ng-objs := main.o config.o 4 | obj-m := wifidog-ng.o 5 | else 6 | KDIR = /lib/modules/$(shell uname -r)/build 7 | 8 | all: 9 | make -C $(KDIR) M=$(PWD) modules 10 | 11 | clean: 12 | rm -rf *.o *.ko *.mod.c Module.* modules.* .*.cmd .tmp* 13 | 14 | endif 15 | else 16 | wifidog-ng-objs := main.o config.o 17 | obj-m := wifidog-ng.o 18 | endif 19 | -------------------------------------------------------------------------------- /net/wifidog-ng/src/config.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2017 jianhui zhao 3 | * 4 | * This program is free software; you can redistribute it and/or modify 5 | * it under the terms of the GNU General Public License version 2 as 6 | * published by the Free Software Foundation. 7 | */ 8 | 9 | #ifndef __CONFIG_H_ 10 | #define __CONFIG_H_ 11 | 12 | #include 13 | 14 | #define PROC_DIR_NAME "wifidog-ng" 15 | 16 | struct config { 17 | int enabled; 18 | char interface[32]; 19 | int interface_ifindex; 20 | __be32 interface_ipaddr; 21 | __be32 interface_mask; 22 | __be32 interface_broadcast; 23 | int port; 24 | int ssl_port; 25 | }; 26 | 27 | int init_config(void); 28 | void deinit_config(void); 29 | struct config *get_config(void); 30 | 31 | #endif 32 | -------------------------------------------------------------------------------- /sound/shairplay/files/shairplay.config: -------------------------------------------------------------------------------- 1 | config shairplay main 2 | option disabled '1' 3 | option respawn '1' 4 | option apname 'AirPlay' 5 | option port '5000' 6 | option password '' 7 | option hwaddr '' 8 | option ao_driver 'oss' 9 | option ao_devicename '' 10 | option ao_deviceid '' 11 | -------------------------------------------------------------------------------- /sound/shairplay/patches/001-key_file_dir.patch: -------------------------------------------------------------------------------- 1 | --- a/src/shairplay.c 2 | +++ b/src/shairplay.c 3 | @@ -350,7 +350,7 @@ main(int argc, char *argv[]) 4 | raop_cbs.audio_destroy = audio_destroy; 5 | raop_cbs.audio_set_volume = audio_set_volume; 6 | 7 | - raop = raop_init_from_keyfile(10, &raop_cbs, "airport.key", NULL); 8 | + raop = raop_init_from_keyfile(10, &raop_cbs, "/usr/share/shairplay/airport.key", NULL); 9 | if (raop == NULL) { 10 | fprintf(stderr, "Could not initialize the RAOP service\n"); 11 | fprintf(stderr, "Please make sure the airport.key file is in the current directory.\n"); 12 | -------------------------------------------------------------------------------- /sound/shairplay/patches/003-fix_big-endian.patch: -------------------------------------------------------------------------------- 1 | --- a/src/lib/alac/alac.c 2 | +++ b/src/lib/alac/alac.c 3 | @@ -29,7 +29,7 @@ 4 | * 5 | */ 6 | 7 | -static const int host_bigendian = 0; 8 | +#define host_bigendian (htonl(42) == 42) 9 | 10 | #include 11 | #include 12 | -------------------------------------------------------------------------------- /sound/shairplay/patches/010-configure-only-check-for-dns_sd.h-in-case-libdl-was-.patch: -------------------------------------------------------------------------------- 1 | From 031c3d802e51bbc233b1044f812402a66bfcf237 Mon Sep 17 00:00:00 2001 2 | From: Memphiz 3 | Date: Fri, 21 Dec 2018 20:39:11 +0100 4 | Subject: [PATCH] [configure] - only check for dns_sd.h in case libdl was not 5 | found 6 | 7 | --- 8 | configure.ac | 2 +- 9 | 1 file changed, 1 insertion(+), 1 deletion(-) 10 | 11 | --- a/configure.ac 12 | +++ b/configure.ac 13 | @@ -19,7 +19,7 @@ LT_LIB_DLLOAD 14 | 15 | # Checks for header files. 16 | AC_HEADER_STDC 17 | -if test yes = "$libltdl_cv_func_dlopen" || test yes = "$libltdl_cv_lib_dl_dlopen" 18 | +if test no = "$libltdl_cv_func_dlopen" && test no = "$libltdl_cv_lib_dl_dlopen" 19 | then 20 | AC_CHECK_HEADERS([dns_sd.h], [], 21 | [AC_MSG_ERROR([Could not find dns_sd.h header, please install libavahi-compat-libdnssd-dev or equivalent.])]) 22 | -------------------------------------------------------------------------------- /sound/shairport/files/shairport.config: -------------------------------------------------------------------------------- 1 | config shairport main 2 | option disabled '1' 3 | option respawn '1' 4 | option bname 'AirPort' 5 | option password '' 6 | option port '5002' 7 | option buffer '' 8 | option log_file '' 9 | option err_file '' 10 | option meta_dir '' 11 | option cmd_start '' 12 | option cmd_stop '' 13 | option cmd_wait '0' 14 | option audio_output 'alsa' 15 | option mdns 'avahi' 16 | 17 | # options for alsa output 18 | option output_dev '' 19 | option mixer_dev '' 20 | option mixer_type '' 21 | option mixer_control '' 22 | option mixer_index '' 23 | 24 | # options for ao output 25 | option ao_driver '' 26 | option ao_name '' 27 | option ao_id '' 28 | option ao_options '' 29 | 30 | # options for pipe output 31 | option output_fifo '' 32 | 33 | # options for pulse output 34 | option pulse_server '' 35 | option pulse_sink '' 36 | option pulse_appname '' 37 | -------------------------------------------------------------------------------- /sound/shairport/patches/001-disable_pulseaudio.patch: -------------------------------------------------------------------------------- 1 | --- a/configure 2 | +++ b/configure 3 | @@ -59,7 +59,7 @@ do_pkg_config() 4 | 5 | do_pkg_config OpenSSL openssl 6 | -do_pkg_config libao ao CONFIG_AO 7 | -do_pkg_config PulseAudio libpulse-simple CONFIG_PULSE 8 | +#do_pkg_config libao ao CONFIG_AO 9 | +#do_pkg_config PulseAudio libpulse-simple CONFIG_PULSE 10 | do_pkg_config ALSA alsa CONFIG_ALSA 11 | do_pkg_config Avahi\ client avahi-client CONFIG_AVAHI 12 | 13 | -------------------------------------------------------------------------------- /utils/infozip/patches/010-remove-build-date.patch: -------------------------------------------------------------------------------- 1 | From: Santiago Vila 2 | Subject: Remove (optional) build date to make the build reproducible 3 | Bug-Debian: http://bugs.debian.org/779042 4 | 5 | --- a/unix/unix.c 6 | +++ b/unix/unix.c 7 | @@ -1020,7 +1020,7 @@ 8 | 9 | 10 | /* Define the compile date string */ 11 | -#ifdef __DATE__ 12 | +#if 0 13 | # define COMPILE_DATE " on " __DATE__ 14 | #else 15 | # define COMPILE_DATE "" 16 | -------------------------------------------------------------------------------- /utils/infozip/patches/020-format.patch: -------------------------------------------------------------------------------- 1 | --- a/zip.c 2 | +++ b/zip.c 3 | @@ -1028,8 +1028,7 @@ local void help_extended() 4 | 5 | for (i = 0; i < sizeof(text)/sizeof(char *); i++) 6 | { 7 | - printf(text[i]); 8 | - putchar('\n'); 9 | + puts(text[i]); 10 | } 11 | #ifdef DOS 12 | check_for_windows("Zip"); 13 | @@ -1225,8 +1224,7 @@ local void version_info() 14 | CR_MAJORVER, CR_MINORVER, CR_BETA_VER, CR_VERSION_DATE); 15 | for (i = 0; i < sizeof(cryptnote)/sizeof(char *); i++) 16 | { 17 | - printf(cryptnote[i]); 18 | - putchar('\n'); 19 | + puts(cryptnote[i]); 20 | } 21 | ++i; /* crypt support means there IS at least one compilation option */ 22 | #endif /* CRYPT */ 23 | -------------------------------------------------------------------------------- /utils/restorefactory/files/hotplug_restorefactory: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | system_config() { 4 | config_get button "$1" button "reset" 5 | config_get action "$1" action "pressed" 6 | config_get timeout "$1" timeout "5" 7 | } 8 | 9 | config_load system 10 | config_foreach system_config restorefactory 11 | 12 | [ "$BUTTON" = "$button" ] && { 13 | 14 | [ -f /tmp/run/restorefactory.pid ] && read PID < /tmp/run/restorefactory.pid && kill $PID && rm /tmp/run/restorefactory.pid && logger -p user.info -t "restorefactory" "restore to factory defaults aborted" 15 | 16 | [ "$ACTION" = "$action" ] && { 17 | 18 | if [ "$timeout" -gt 0 ] 19 | then 20 | sleep "$timeout" && firstboot && reboot & 21 | echo $! > /tmp/run/restorefactory.pid 22 | logger -p user.info -t "restorefactory" "restoring to factory defaults in $timeout seconds" 23 | elif [ "$timeout" -eq 0 ] 24 | then 25 | firstboot && reboot & 26 | else 27 | logger -p user.info -t "restorefactory" "invalid timeout value ($timeout)" 28 | fi 29 | } 30 | } 31 | 32 | -------------------------------------------------------------------------------- /utils/restorefactory/files/uci_defaults_restorefactory: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | uci -q show system.@restorefactory[0] || { 4 | uci add system restorefactory 5 | uci set system.@restorefactory[0].button=reset 6 | uci set system.@restorefactory[0].action=pressed 7 | uci set system.@restorefactory[0].timeout=5 8 | uci commit 9 | } 10 | 11 | -------------------------------------------------------------------------------- /utils/shinit/files/etc/profile.d/shinit.sh: -------------------------------------------------------------------------------- 1 | export ENV=/etc/shinit 2 | -------------------------------------------------------------------------------- /utils/shinit/files/etc/shinit: -------------------------------------------------------------------------------- 1 | [ -x /bin/more ] || alias more=less 2 | [ -x /usr/bin/vim ] && alias vi=vim || alias vim=vi 3 | 4 | alias ll='ls -alF --color=auto' 5 | 6 | # If you use mksh and want to source /etc/mkshrc for all interactive shells, 7 | # uncomment the following line and comment out the same line in /etc/profile. 8 | #[ -z "$KSH_VERSION" -o \! -s /etc/mkshrc ] || . /etc/mkshrc 9 | 10 | [ -x /usr/bin/arp -o -x /sbin/arp ] || arp() { cat /proc/net/arp; } 11 | [ -x /usr/bin/ldd ] || ldd() { LD_TRACE_LOADED_OBJECTS=1 $*; } 12 | 13 | service() { 14 | [ -f "/etc/init.d/$1" ] || { 15 | echo "service "'"'"$1"'"'" not found, the following services are available:" 16 | ls "/etc/init.d" 17 | return 1 18 | } 19 | /etc/init.d/$@ 20 | } 21 | 22 | [ -n "$KSH_VERSION" -o \! -s "$HOME/.shinit" ] || . "$HOME/.shinit" 23 | [ -z "$KSH_VERSION" -o \! -s "$HOME/.mkshrc" ] || . "$HOME/.mkshrc" 24 | -------------------------------------------------------------------------------- /utils/yunbridge/files/etc/config/yunbridge: -------------------------------------------------------------------------------- 1 | config bridge config 2 | option socket_timeout 5 3 | option secure_rest_api false 4 | 5 | # remove this line to activae the yunbridge 6 | option disabled 1 7 | -------------------------------------------------------------------------------- /utils/yunbridge/files/etc/init.d/yunbridge: -------------------------------------------------------------------------------- 1 | #!/bin/sh /etc/rc.common 2 | # Copyright (C) 2013 OpenWrt.org 3 | 4 | # start after and stop before networking 5 | START=20 6 | STOP=89 7 | 8 | USE_PROCD=1 9 | 10 | service_triggers() 11 | { 12 | procd_add_reload_trigger "yunbridge" 13 | } 14 | 15 | start_service() 16 | { 17 | [ "$(uci -q get yunbridge.config.disabled)" = "1" ] && return 0 18 | procd_open_instance 19 | procd_set_param command "/sbin/yunbridge" 20 | procd_set_param respawn 21 | procd_close_instance 22 | } 23 | -------------------------------------------------------------------------------- /utils/yunbridge/files/sbin/yunbridge: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | stty -F /dev/ttyS0 2500000 clocal cread cs8 -cstopb -parenb 3 | exec < /dev/ttyS0 4 | exec > /dev/ttyS0 5 | exec 2> /dev/ttyS0 6 | askfirst bin/ash --login 7 | -------------------------------------------------------------------------------- /utils/yunbridge/patches/000-scripts.patch: -------------------------------------------------------------------------------- 1 | --- a/bridge/packet.py 2 | +++ b/bridge/packet.py 3 | @@ -93,12 +93,12 @@ 4 | 5 | def run(self, data): 6 | if data[0] != 'X': 7 | - call(['/usr/bin/blink-start', '100']) 8 | + #call(['/usr/bin/blink-start', '100']) 9 | return chr(1) 10 | if data[1:4] != '100': 11 | - call(['/usr/bin/blink-start', '100']) 12 | + #call(['/usr/bin/blink-start', '100']) 13 | return chr(2) 14 | - call(['/usr/bin/blink-stop']) 15 | + #call(['/usr/bin/blink-stop']) 16 | return chr(0) + '160' # send the actual bridge version 17 | 18 | class PacketReader: 19 | --------------------------------------------------------------------------------