├── .github └── PULL_REQUEST_TEMPLATE.md ├── 25volt ├── Makefile └── src │ ├── usb_ups_apc_smart.c │ └── usb_ups_powercom_wow.c ├── 3proxy ├── Makefile ├── files │ └── S23proxy └── patches │ ├── 010-Makefile-vars.patch │ ├── 020-config-file-paths.patch │ └── 030-add-user-script-paths.patch ├── 7-zip ├── Makefile └── patches │ ├── 0002-Use-getcwd-3-POSIX-extension-to-avoid-PATH_MAX-macro.patch │ ├── 0003-Disable-local-echo-display-when-in-input-passwords-C.patch │ ├── 0004-Use-system-locale-to-select-codepage-for-legacy-zip-.patch │ ├── 100-no-softfloat-arm-optimization.patch │ ├── 110-Remove_Werror_flag.patch │ └── 110-x86_without_SSE.patch ├── LICENSE ├── README.md ├── accel-ppp ├── Makefile ├── files │ └── S60accel-ppp └── patches │ ├── 020-config-paths.patch │ ├── 030-linkage.patch │ ├── 040-ppp-no-modprobe.patch │ └── 060-paths.patch ├── afpfs-ng ├── Makefile └── patches │ ├── 010-shell-path.patch │ └── 020-no_docs.patch ├── aha └── Makefile ├── airprint ├── Makefile └── files │ ├── airprint-generate.py │ ├── airprint.convs │ └── airprint.types ├── airsane ├── Makefile ├── files │ └── S43airsaned └── patches │ └── 020-paths.patch ├── alaya ├── Makefile ├── files │ └── S80alaya └── patches │ ├── 030-conf-paths.patch │ └── 040-hardcoded-paths.patch ├── angband ├── Makefile └── patches │ ├── 010-saves-path.patch │ └── 020-use_LDFLAGS_for_binary_only.patch ├── archivemount ├── Makefile └── patches │ └── 010-fuse-headers.patch ├── arpon ├── Makefile └── patches │ ├── 010-exlclude_host_paths.patch │ └── 020-paths.patch ├── asciinema └── Makefile ├── aspell ├── Makefile └── files │ └── aspell.conf ├── asterisk-chan-quectel ├── Makefile └── patches │ ├── 010-cross.patch │ └── 020-fix-paths.patch ├── astra ├── Makefile └── patches │ ├── 010-nomarchc.patch │ ├── 020-nold.patch │ ├── 030-nosse_cross.patch │ └── 040-no_aio.patch ├── autofs ├── Config.in ├── Makefile └── patches │ └── 010-fix-paths.patch ├── automatic ├── Makefile ├── files │ └── S91automatic └── patches │ ├── 010-config-dir.patch │ ├── 020-src-dir.patch │ ├── 030-CFLAGS.patch │ └── 040-no_tests.patch ├── axel └── Makefile ├── bacula ├── Makefile ├── files │ ├── S80bacula-dir │ ├── S80bacula-fd │ └── S80bacula-sd └── patches │ ├── 500-startup.patch │ └── 501-make_catalog.patch ├── badvpn └── Makefile ├── bfgminer └── Makefile ├── bindfs └── Makefile ├── bip ├── Makefile └── files │ └── S99bip ├── bochs ├── Makefile └── patches │ ├── 010-fix_curses.patch │ ├── 020-fetchdecode_opmap_0f3a_braces.patch │ └── 030-fetchdecode_opmap_0f38_braces.patch ├── brlaser └── Makefile ├── cadaver └── Makefile ├── castget ├── Makefile └── patches │ ├── 010-paths.patch │ └── 020-config.patch ├── cavezofphear └── Makefile ├── cgdb ├── Makefile └── patches │ └── 010-Fix-handling-of-local-m4-macros.patch ├── cgit ├── Makefile └── patches │ ├── 100-configure_for_crosscompiling.patch │ ├── 500-fix_default_paths.patch │ └── 600-fix-paths.patch ├── chromaprint ├── Makefile └── patches │ └── 001-fix-ffmpeg-5x.patch ├── cmake └── Makefile ├── cpio └── Makefile ├── crawl ├── Makefile └── patches │ ├── 010-LDFLAGS.patch │ ├── 020-tilegen-host-compile.patch │ ├── 050-define-FILE-OFFSET-BITS.patch │ ├── 070-macro-dir.patch │ └── 090-version_num.patch ├── cron ├── Makefile ├── files │ ├── S10cron │ ├── crontab │ └── run-parts └── patches │ ├── 100-Makefile.patch │ ├── 200-crond.patch │ ├── 300-pathnames.h.patch │ └── 400-add_syslog_option.patch ├── cryfs ├── Makefile └── patches │ ├── 050-low-power-cpu.patch │ ├── 100-disable-asm.patch │ └── 150-missing-hdr.patch ├── ctags ├── Makefile └── patches │ └── 010-fix.patch ├── cuetools └── Makefile ├── cups-filters ├── Makefile ├── files │ └── S82cups-browsed └── patches │ ├── 0002-qpdf-needs-at-least-c-17.patch │ ├── 0003-fix-CVE-2023-24805.patch │ ├── 0004-CVE-2024-47076.patch │ ├── 0005-CVE-2024-47176.patch │ ├── 0006-qpdf-12.patch │ └── 500-fix-paths.patch ├── cups-pdf ├── Makefile └── patches │ └── 900-entware-dir.patch ├── cvs ├── Makefile └── patches │ └── 500-getline.patch ├── daemonize ├── Makefile └── patches │ └── 010-default-path.patch ├── daemontools-encore ├── Makefile ├── files │ └── S03daemontools-encore └── patches │ ├── 010-disable_runtime_tests.patch │ └── 020-svscanboot.patch ├── deluge ├── Makefile ├── files │ ├── S80deluged │ ├── S81deluge-web │ └── deluge-web-reset_password └── patches │ └── 020-fix_geoip_path.patch ├── dfc ├── Makefile └── patches │ └── 010-prevent_unwanted_color_pollution.patch ├── dislocker ├── Makefile └── patches │ ├── 010-disable-usr-path.patch │ ├── 020-ssl-lib-detection.patch │ └── 030-support-mbedtls-3x.patch ├── duktape ├── Makefile └── patches │ └── 020-shared-library.patch ├── encfs ├── Makefile └── patches │ ├── 010-exclude_SYSTEM_directive.patch │ └── 500-output-file-is-a-directory.patch ├── entr └── Makefile ├── entware-opt ├── Makefile └── files │ ├── .inputrc │ ├── .profile │ ├── group.1 │ ├── passwd.1 │ ├── profile │ ├── rc.func │ ├── rc.unslung │ └── shells.1 ├── entware-release └── Makefile ├── entware-upgrade └── Makefile ├── espeak-ng ├── Makefile └── patches │ ├── 010-klatt-garbage.patch │ ├── 020-libsonic-bigendian.patch │ ├── 030-bufsize.patch │ ├── 040-fix-cancel.patch │ ├── 050-privacy.patch │ ├── 060-x.patch │ ├── 070-CI.patch │ ├── 080-nocard.patch │ ├── 090-clang-target.patch │ ├── 100-fuzz-link.patch │ ├── 110-th_dict.patch │ ├── 120-compile-reproducibility.patch │ ├── 130-espeak-stdin.patch │ ├── 140-piper.patch │ └── 200-host_utility_for_phoneme_compilation.patch ├── exfat-fuse └── Makefile ├── exiv2 ├── Makefile └── patches │ └── 020-remove_redunant_compile_flags.patch ├── expect ├── Makefile └── patches │ ├── 010-enable-cross-compilation.patch │ ├── 020-allow-tcl-build-directory.patch │ └── 030-no_host_tclsh.patch ├── ext4magic ├── Makefile └── patches │ ├── 010-fix-paths.patch │ ├── 020-fix-new-e2fs.patch │ ├── 030-fix-missing-hdrs.patch │ └── 040-fix-stringop-overflow.patch ├── extundelete ├── Makefile └── patches │ ├── 010-fix_segmentation_fault.patch │ ├── 020-fix_ftbfs.patch │ └── 030-fix-configure.ac-to-work-with-recent-automake-autoconf.patch ├── fake-hwclock ├── Makefile ├── files │ └── S01fake-hwclock └── patches │ └── 010-data-path.patch ├── fatrace └── Makefile ├── ffmpegthumbnailer └── Makefile ├── fossil ├── Makefile └── patches │ ├── 010-cross_compile.patch │ └── 020-source_includes.patch ├── freediameter └── Makefile ├── fuse-convmvfs └── Makefile ├── fzy ├── Makefile └── patches │ └── 010-cross-compile_flags.patch ├── ghostscript ├── Makefile └── patches │ └── 020-paths.patch ├── gnuchess ├── Makefile └── patches │ └── 001-ini.patch ├── go ├── Makefile └── patches │ ├── 010-entware.patch │ ├── 020-group-passwd.patch │ └── 030-linuxdynld.patch ├── goaccess ├── Makefile └── patches │ ├── 010-bin2c.patch │ ├── 020-no_translation.patch │ └── 030-tmp_path.patch ├── grive2 ├── Makefile └── patches │ ├── 010-libdl.patch │ ├── 020-boost.patch │ └── 030_stdint.patch ├── groff ├── Makefile └── patches │ └── 010-no-generate.patch ├── gutenprint ├── Makefile └── patches │ └── 020-extract-strings.patch ├── hlspxd ├── Makefile ├── files │ └── S92hlspxd ├── patches │ ├── 100-fix_comments_typos_MSVC_build.patch │ ├── 200-samsung-orsay-support.patch │ ├── 201-apache-httpd-compatibility.patch │ └── 202-relative-redirection-support.patch └── src │ ├── hlspxd.cpp │ ├── platform.cpp │ ├── platform.h │ ├── utils.cpp │ ├── utils.h │ ├── videoviewer.cpp │ └── videoviewer.h ├── hstr └── Makefile ├── httrack ├── Makefile └── patches │ └── 010-server_usage_example.patch ├── incron ├── Makefile ├── files │ └── S12incron └── patches │ ├── 010_prevent_zombies.patch │ ├── 030-incron-conf-paths.patch │ └── 040-default-paths.patch ├── inetutils ├── Makefile └── patches │ └── 010-PATH_PROCNET_DEV.patch ├── ioping └── Makefile ├── iotop ├── Makefile └── patches │ └── 010-pgpgin_pgpgout_def.patch ├── iprange └── Makefile ├── istgt ├── Makefile ├── files │ └── S13istgt └── patches │ ├── 010-disable-ssp.patch │ └── 020-disable-host-strip.patch ├── isync └── Makefile ├── jailkit ├── Makefile └── patches │ ├── 010-respect_CFLAGS.patch │ └── 020-shells_and_man.patch ├── jbigkit ├── Makefile └── patches │ ├── 010-dynamic-lib.patch │ ├── 020-LDFLAGS-for-tools.patch │ └── 020-gcc42.patch ├── jdupes └── Makefile ├── jhead ├── Makefile └── patches │ └── 010-flags.patch ├── jo └── Makefile ├── lcms └── Makefile ├── libcryptopp ├── Makefile ├── files │ └── cryptest.sh └── patches │ ├── 010-disable_asm.patch │ ├── 100-Fix_potential_zeroizer_removal.patch │ ├── 110-integer.patch │ ├── 120-CVE-2016-9939.patch │ ├── 130-Additional_ASN.1_validations.patch │ ├── 140-zinflate-564.patch │ └── 200-fix-paths.patch ├── libjodycode └── Makefile ├── liblpeg ├── Makefile └── patches │ └── 010-add-cmake.patch ├── libmediainfo └── Makefile ├── libmpack-lua ├── Makefile └── patches │ └── 010-host-lua.patch ├── libmtp ├── Makefile └── patches │ └── 010-cross-compile.patch ├── libnfs └── Makefile ├── libpipeline └── Makefile ├── libzen └── Makefile ├── limitcpu └── Makefile ├── loadwatch ├── Makefile └── patches │ ├── 010-Makefile.in.patch │ ├── 020-loadwatch.c.patch │ ├── 030-lw-ctl.c.patch │ └── 040-configure.in.diff ├── locales └── Makefile ├── loggedfs ├── Makefile └── patches │ └── 500-entware.patch ├── ltrace ├── Makefile └── patches │ └── 010-fix.patch ├── man-db ├── Makefile ├── files │ └── man_db.conf └── patches │ ├── 010-html_pager.patch │ └── 020-fix-paths.patch ├── man-pages └── Makefile ├── mathomatic └── Makefile ├── mediainfo └── Makefile ├── megacmd └── Makefile ├── mergerfs ├── Makefile └── patches │ └── 010-libfuse_cross-compile.patch ├── microdc2 ├── Makefile ├── files │ └── microdc2.conf └── patches │ ├── 010-paths.patch │ ├── 020-no-po.patch │ └── 030-no_docs.patch ├── minissdpd ├── Makefile ├── files │ ├── S11minissdpd │ └── minissdpd.conf └── patches │ └── 010-paths.patch ├── mkvtoolnix ├── Makefile └── patches │ ├── 010-no_manpages.patch │ ├── 020-fix-ruby.patch │ └── 030-fmt_internal.patch ├── mlocate ├── Makefile └── patches │ └── 010-mlocate-0.26-include-order-fix.patch ├── movgrab ├── Makefile └── patches │ └── 010-fix.patch ├── mp3gain └── Makefile ├── mp707 ├── Makefile └── patches │ └── 010-RODOS_support.patch ├── mpdscribble ├── Makefile └── patches │ ├── 010-fix-libgcrypt.patch │ └── 020-missing-hdr.patch ├── mqtt-exec └── Makefile ├── msd ├── Makefile ├── files │ └── S29msd └── patches │ ├── 010-tmpfile.patch │ ├── 020-conf.patch │ └── 030-CMakeLists.patch ├── multitail ├── Makefile └── patches │ ├── 010-config-path.patch │ ├── 020-GLIBC-def.patch │ └── 030-ncurses.patch ├── ncdc ├── Makefile └── patches │ ├── 010-no-docs.patch │ └── 020-paths.patch ├── ndisc6 └── Makefile ├── neovim ├── Makefile └── patches │ ├── 010-fix-cross.patch │ └── 020-downgrade-deps.patch ├── nethack ├── Makefile └── patches │ ├── 010-Makefile.dat.patch │ ├── 020-Makefile.utl.patch │ ├── 030-Makefile.src.patch │ ├── 040-Makefile.top.patch │ ├── 050-nethack.sh.patch │ ├── 060-tparm-doubled-def.patch │ ├── 070-config.h.patch │ └── 080-target-defs.patch ├── nethogs ├── Makefile └── patches │ └── 010-no-tests.patch ├── nfusr ├── Makefile └── patches │ ├── 010-entware.patch │ ├── 020-makedev_warning.patch │ └── 030-mount.nfusr_ash_compat.patch ├── ngrok-c ├── Makefile ├── patches │ └── 010-fix_pointer_comparison.patch └── src │ └── Makefile ├── nmon └── Makefile ├── node-pnpm └── Makefile ├── nonroot ├── Makefile └── patches │ └── 010-cross-compile.patch ├── nss-mdns └── Makefile ├── ntopng ├── Makefile ├── files │ └── S72ntopng └── patches │ ├── 010-cross.patch │ ├── 015-fix-ndpi.patch │ ├── 020-fix-conf.patch │ ├── 030-fix-paths.patch │ ├── 040-fix-misc.patch │ ├── 050-fix-version.patch │ ├── 060-fix-lua.patch │ └── 070-fix-TZ.patch ├── nyancat └── Makefile ├── oscam ├── Makefile ├── files │ └── S59oscam └── patches │ ├── 001-opt_path.patch │ ├── 010-cross-compile.patch │ └── 020-log-dir.patch ├── p0f ├── Makefile └── patches │ ├── 010-change-DB-default-path.patch │ └── 020-compiler-and-linker-flags.patch ├── p7zip ├── Makefile └── patches │ └── 010-Enhanced-encryption-strength.patch ├── par2cmdline └── Makefile ├── patchelf └── Makefile ├── pcal └── Makefile ├── perl-dbd-pg └── Makefile ├── perl-image-exiftool └── Makefile ├── phodav └── Makefile ├── php8-pecl-apcu └── Makefile ├── php8-pecl-event └── Makefile ├── php8-pecl-gmagick ├── Makefile └── patches │ └── 010-GraphicsMagick-config_path.patch ├── php8-pecl-ssh2 └── Makefile ├── php8-pecl-trader └── Makefile ├── pimd ├── Makefile └── files │ └── S69pimd ├── pinentry └── Makefile ├── pingu ├── Makefile ├── files │ └── S11pingu └── patches │ └── 010-paths.patch ├── pixelserv-tls ├── Makefile ├── files │ └── S80pixelserv-tls └── patches │ ├── 010-fix-paths.patch │ └── 020-fix-openssl-3x.patch ├── poppler ├── Makefile └── patches │ └── 010-fix-pkgconfig.patch ├── portspoof └── Makefile ├── ps3netsrv ├── Makefile ├── files │ └── S76ps3netsrv └── patches │ └── 010-cross-compile.patch ├── ptokax ├── Makefile ├── files │ └── S95ptokax └── patches │ ├── 010-ntohl-ntohs-replacement.patch │ ├── 020-makefile.patch │ ├── 030-skein.patch │ └── 040-tinixml.patch ├── pureftpd ├── Makefile ├── files │ └── S65pureftpd └── patches │ └── 010-mysql_runtime_test.patch ├── pwnat ├── Makefile └── patches │ ├── 010-cross-compile.patch │ └── 020-fix.patch ├── python-characteristic └── Makefile ├── python-cups ├── Makefile └── patches │ └── 010-fix-paths.patch ├── python-regex └── Makefile ├── python-rencode ├── Makefile └── patches │ └── 600-fix-cython.patch ├── python-setproctitle └── Makefile ├── python-ujson └── Makefile ├── python3-uvloop └── Makefile ├── qbittorrent ├── Makefile ├── files │ └── S89qbittorrent └── patches │ └── 010-fix-libstdc++fs.patch ├── qpdf ├── Makefile └── patches │ └── 020-fix-pkgconfig.patch ├── qt5 ├── Makefile ├── patches │ ├── 010-fix-for-old-kernels.patch │ ├── 020-atomic.patch │ ├── 050-iconv.patch │ ├── 060-glib2.patch │ └── 070-certs-paths.patch └── src │ └── qtbase │ └── mkspecs │ └── devices │ └── linux-entware-g++ │ ├── arch.conf │ ├── qmake.conf │ └── qplatformdefs.h ├── radare2 └── Makefile ├── rar2fs └── Makefile ├── rcon ├── Makefile └── patches │ └── 010-remove_libbsd_dep.patch ├── rdfind └── Makefile ├── rtmpdump ├── Makefile └── patches │ └── 010-use_gnutls.patch ├── rtorrent-easy-install ├── Makefile └── files │ └── S85rtorrent ├── rutorrent ├── Makefile └── patches │ ├── 010-paths.patch │ └── 020-access-swap.patch ├── s3fs-fuse ├── Makefile └── patches │ └── 010-fix-missing-hdr.patch ├── scream-receiver └── Makefile ├── sd-idle ├── Makefile ├── files │ └── S16sdidle └── src │ ├── Makefile │ └── sd-idle-2.6.c ├── serf ├── Makefile └── patches │ └── 500-disable.auto-rpath.patch ├── sg3_utils └── Makefile ├── shadowsocks-libev ├── Makefile ├── files │ └── S22shadowsocks └── patches │ ├── 100-Upgrade-PCRE-to-PCRE2.patch │ └── 200-shadowsocks-mbedtls3.patch ├── shake ├── Makefile └── patches │ └── 010-no_docs.patch ├── shc ├── Makefile └── patches │ └── 500-gcc.patch ├── shellinabox ├── Makefile ├── files │ └── S88shellinaboxd └── patches │ ├── 010-add-opt-login.patch │ └── 020-shellinabox.patch ├── shntool ├── Makefile └── patches │ ├── 010-large-size.patch │ ├── 020-large-times.patch │ ├── 030-24bit-fix.patch │ └── 030-no-cdquality-check.patch ├── simple-mtpfs └── Makefile ├── simple-obfs ├── Makefile └── patches │ └── 010-fix-error-stringop.patch ├── sitecopy ├── Makefile └── patches │ ├── 001-remote-dynamic-rc.patch │ ├── 003-wrong-memory-397155.patch │ ├── 006-sftpdriver.c-fix-for-new-openssh.patch │ ├── 010-bts410703-preserve-storage-files-sigint.patch │ ├── 032_neon-0.31.patch │ └── 100-neon_0.31.patch ├── splix ├── Makefile └── patches │ └── 010-cross-compile.patch ├── sshguard ├── Makefile └── patches │ └── 010-no_docs.patch ├── superstartrek ├── Makefile └── patches │ ├── 010-paths.patch │ └── 020-cross-compile.patch ├── suricata └── Makefile ├── task-spooler ├── Makefile └── patches │ └── 010-paths.patch ├── telegram-cli ├── Makefile └── patches │ ├── 010-cross-compile.patch │ ├── 020-tl-parser.patch │ ├── 030-generate.patch │ ├── 040-lua.patch │ ├── 050-openssl_1.1_compat.patch │ ├── 060-no_cast_func_type.patch │ └── 070-fix-error-cast-function-type.patch ├── testdisk └── Makefile ├── tidy-html5 ├── Makefile └── files │ └── tidy.conf ├── totd ├── Makefile ├── files │ └── S57totd └── patches │ └── 010-config.patch ├── trafficserver ├── Makefile └── patches │ ├── 010-fix-paths.patch │ ├── 020-no-check-openssl.patch │ ├── 030-fix-cross.patch │ ├── 040-fix-for-old-kernels.patch │ ├── 050-no-openssl-engine.patch │ ├── 060-no-log-trace.patch │ └── 100-unpin-build-env.patch ├── transcode └── Makefile ├── transmission-cfp ├── Makefile ├── files │ ├── S88transmission-cfp │ └── settings.json └── patches │ ├── 010-int64_switch.patch │ ├── 020-fallocate64.patch │ └── 030-po.patch ├── tree-sitter ├── Makefile └── patches │ └── 010-fix-cross.patch ├── trojan ├── Makefile └── files │ └── S22trojan ├── tsmuxer └── Makefile ├── tty-solitaire └── Makefile ├── tunsafe ├── Makefile ├── files │ └── S30tunsafe └── patches │ ├── 010-compile-error-fix.patch │ ├── 020-arm-neon-detection.patch │ ├── 030-handle-different-paths-of-ip.patch │ ├── 040-disable-thread-rename.patch │ ├── 050-fix-x86-sse-detection.patch │ └── 060-add-mipseb-architecture.patch ├── unibilium ├── Makefile └── patches │ └── 010-fix-cross.patch ├── unionfs-fuse ├── Makefile └── patches │ └── 010-force_64bit_off_t.patch ├── urbackup-server ├── Makefile ├── files │ └── S60urbackup-server └── patches │ ├── 010-no_usr_include.patch │ ├── 020-do-not-adduser.patch │ ├── 030-disable_asm.patch │ └── 040-md5-bytes.patch ├── usbrelay ├── Makefile └── patches │ └── 010-lib_suffix.patch ├── utf8proc ├── Makefile └── patches │ └── 010-fix-cross.patch ├── vblade ├── Makefile └── patches │ └── 010-compile-vars.patch ├── vitetris ├── Makefile └── patches │ ├── 020-disable-stripping.patch │ └── 030-ar-crosscompile.patch ├── vorbis-tools ├── Makefile └── patches │ └── 010-no_intl.patch ├── vsftpd-ext ├── Makefile ├── files │ └── S49vsftpd └── patches │ ├── 010-disable-PAM.patch │ ├── 020-config-path.patch │ ├── 030-cross-compile.patch │ ├── 040-disable-new-CLONE-flags.patch │ └── 050-disable-capabilities.patch ├── wcd ├── Makefile └── patches │ └── 010-ncurses_flags.patch ├── wdfs ├── Makefile └── patches │ ├── 010-fuse-opt-header.patch │ ├── 020-500-error-user-agent.patch │ └── 500-use_opt_for_tmp_files.patch ├── wg-quick ├── Makefile └── patches │ └── 100-entware.patch ├── wireshark └── Makefile ├── xawtv ├── Makefile └── patches │ ├── 010-compiler-flags.patch │ ├── 020-no-fbtv.patch │ └── 030-sys_siglist.patch ├── xmlstarlet ├── Makefile └── patches │ ├── 010-no-docs.patch │ └── 020-fix-missing-hdr.patch ├── xpdf └── Makefile ├── xupnpd2 ├── Makefile ├── files │ └── S94xupnpd2 └── patches │ ├── 010-rules.patch │ ├── 030-cfg.patch │ ├── 040-xupnpd.lua_path.patch │ ├── 050-xupnpd.cfg_path.patch │ └── 060-xupnpd.uid_path.patch ├── yamdi ├── Makefile └── patches │ └── 010-linker-flags.patch ├── ympd ├── Makefile └── files │ └── S90ympd ├── zbar ├── Makefile └── patches │ └── 010-disable-NLS.patch ├── ziproxy ├── Makefile ├── files │ └── S25ziproxy └── patches │ ├── 001-xinetd.d-conf.patch │ └── 003-ziproxy.conf-paths-and-user.patch └── zork ├── Makefile ├── files └── uudecode.c └── patches ├── 010-cross-compile.patch └── 020-saves-path.patch /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | This feed contains unique packages, added by Entware team. 2 | 3 | Please double check that your PR is for appropriate feed: 4 | - [rtndev](https://github.com/Entware-for-kernel-3x/rtndev-3x) for packages which was never existed in OpenWrt before. 5 | - [go](https://github.com/Entware-for-kernel-3x/entware-go-3x) for new packages in Golang. 6 | - [oldports](https://github.com/Entware-for-kernel-3x/entware-oldpackages-ports-3x) for packages which is abandoned form OpenWrt for some reason. 7 | - [packages](https://github.com/Entware-for-kernel-3x/entware-packages-3x), [routing](https://github.com/Entware-for-kernel-3x/entware-routing-3x), [telephony](https://github.com/Entware-for-kernel-3x/entware-telephony-3x) for packages, maintained by OpenWrt team. 8 | 9 | Please double check that your commits: 10 | - all start with ": " 11 | 12 | Thanks for your contribution 13 | Please remove this text (before ---) and fill the following template 14 | ------------------------------- 15 | 16 | Compile tested: (put here arch, model, version) 17 | Run tested: (put here arch, model, version, tests done) 18 | -------------------------------------------------------------------------------- /3proxy/files/S23proxy: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=3proxy 5 | ARGS="/opt/etc/3proxy/3proxy.cfg" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /3proxy/patches/010-Makefile-vars.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile.Linux 2 | +++ b/Makefile.Linux 3 | @@ -8,13 +8,13 @@ 4 | # library support. Add -DSAFESQL for poorely written ODBC library / drivers. 5 | 6 | BUILDDIR = ../bin/ 7 | -CC = gcc 8 | +CC ?= gcc 9 | 10 | -CFLAGS = -g -fPIC -O2 -fno-strict-aliasing -c -pthread -DWITHSPLICE -D_GNU_SOURCE -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL -DWITH_NETFILTER 11 | +CFLAGS += -g -fPIC -fno-strict-aliasing -c -pthread -DWITHSPLICE -D_GNU_SOURCE -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL -DWITH_NETFILTER 12 | COUT = -o 13 | LN = $(CC) 14 | DCFLAGS = 15 | -LDFLAGS = -fPIC -O2 -fno-strict-aliasing -pthread 16 | +LDFLAGS += -fPIC -fno-strict-aliasing -pthread 17 | DLFLAGS = -shared 18 | DLSUFFICS = .ld.so 19 | # -lpthreads may be reuqired on some platforms instead of -pthreads 20 | -------------------------------------------------------------------------------- /3proxy/patches/020-config-file-paths.patch: -------------------------------------------------------------------------------- 1 | --- a/scripts/3proxy.cfg 2 | +++ b/scripts/3proxy.cfg 3 | @@ -2,17 +2,17 @@ nscache 65536 4 | nserver 8.8.8.8 5 | nserver 8.8.4.4 6 | 7 | -config /conf/3proxy.cfg 8 | -monitor /conf/3proxy.cfg 9 | +config /opt/etc/3proxy/3proxy.cfg 10 | +monitor /opt/etc/3proxy/3proxy.cfg 11 | 12 | -log /logs/3proxy-%y%m%d.log D 13 | +log /opt/var/log/3proxy-%y%m%d.log D 14 | rotate 60 15 | -counter /count/3proxy.3cf 16 | +counter /opt/var/3proxy.3cf 17 | 18 | -users $/conf/passwd 19 | +users $/opt/etc/3proxy/passwd 20 | 21 | -include /conf/counters 22 | -include /conf/bandlimiters 23 | +include /opt/etc/3proxy/counters 24 | +include /opt/etc/3proxy/bandlimiters 25 | 26 | auth strong 27 | deny * * 127.0.0.1 28 | -------------------------------------------------------------------------------- /3proxy/patches/030-add-user-script-paths.patch: -------------------------------------------------------------------------------- 1 | --- a/scripts/add3proxyuser.sh 2 | +++ b/scripts/add3proxyuser.sh 3 | @@ -1,12 +1,12 @@ 4 | #!/bin/sh 5 | if [ $4 ]; then 6 | - echo bandlimin $4 $1 >> /etc/3proxy/conf/bandlimiters 7 | + echo bandlimin $4 $1 >> /opt/etc/3proxy/bandlimiters 8 | fi 9 | if [ $3 ]; then 10 | - echo countin \"`wc -l /etc/3proxy/conf/counters|awk '{print $1}'`/$1\" D $3 $1 >> /etc/3proxy/conf/counters 11 | + echo countin \"`wc -l /opt/etc/3proxy/counters|awk '{print $1}'`/$1\" D $3 $1 >> /opt/etc/3proxy/counters 12 | fi 13 | if [ $2 ]; then 14 | - echo $1:`/bin/mycrypt $$ $2` >> /etc/3proxy/conf/passwd 15 | + echo $1:`/opt/bin/mycrypt $$ $2` >> /opt/etc/3proxy/passwd 16 | else 17 | echo usage: $0 username password [day_limit] [bandwidth] 18 | echo " "day_limit - traffic limit in MB per day 19 | -------------------------------------------------------------------------------- /7-zip/patches/100-no-softfloat-arm-optimization.patch: -------------------------------------------------------------------------------- 1 | --- a/C/CpuArch.h 2 | +++ b/C/CpuArch.h 3 | @@ -82,7 +82,7 @@ MY_CPU_64BIT means that processor can wo 4 | || defined(__ARMEB__) \ 5 | || defined(__THUMBEL__) \ 6 | || defined(__THUMBEB__) 7 | - #define MY_CPU_ARM 8 | + #define MY_CPU_ARM1 9 | 10 | #if defined(__thumb__) || defined(__THUMBEL__) || defined(_M_ARMT) 11 | #define MY_CPU_ARMT 12 | @@ -217,7 +217,7 @@ MY_CPU_64BIT means that processor can wo 13 | #endif 14 | 15 | 16 | -#if defined(MY_CPU_X86) || defined(MY_CPU_AMD64) 17 | +#if defined(MY_CPU_X861) || defined(MY_CPU_AMD64) 18 | #define MY_CPU_X86_OR_AMD64 19 | #endif 20 | 21 | -------------------------------------------------------------------------------- /7-zip/patches/110-x86_without_SSE.patch: -------------------------------------------------------------------------------- 1 | --- a/CPP/7zip/UI/Console/MainAr.cpp 2 | +++ b/CPP/7zip/UI/Console/MainAr.cpp 3 | @@ -72,10 +72,10 @@ static inline bool CheckIsa() 4 | #elif defined(__AVX__) 5 | if (!CPU_IsSupported_AVX()) 6 | return false; 7 | - #elif defined(__SSE2__) && !defined(MY_CPU_AMD64) || defined(_M_IX86_FP) && (_M_IX86_FP >= 2) 8 | + #elif !defined(MY_CPU_X86) && (defined(__SSE2__) && !defined(MY_CPU_AMD64) || defined(_M_IX86_FP) && (_M_IX86_FP >= 2)) 9 | if (!CPU_IsSupported_SSE2()) 10 | return false; 11 | - #elif defined(__SSE__) && !defined(MY_CPU_AMD64) || defined(_M_IX86_FP) && (_M_IX86_FP >= 1) 12 | + #elif !defined(MY_CPU_X86) && (defined(__SSE__) && !defined(MY_CPU_AMD64) || defined(_M_IX86_FP) && (_M_IX86_FP >= 1)) 13 | if (!CPU_IsSupported_SSE() || 14 | !CPU_IsSupported_CMOV()) 15 | return false; 16 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # rtndev 2 | Custom Entware packages 3 | 4 | This feed is based on 5 | https://github.com/Entware/rtndev 6 | and 7 | https://github.com/zyxmon/rtndev-arm 8 | and 9 | https://github.com/zyxmon/qdev-arm 10 | 11 | The package uclibc-opt is renamed -> entware-opt 12 | -------------------------------------------------------------------------------- /accel-ppp/files/S60accel-ppp: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=accel-pppd 5 | ARGS="-d -c /opt/etc/accel-ppp.conf" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /accel-ppp/patches/030-linkage.patch: -------------------------------------------------------------------------------- 1 | --- a/CMakeLists.txt 2 | +++ b/CMakeLists.txt 3 | @@ -6,7 +6,7 @@ endif () 4 | 5 | project(accel-ppp C) 6 | 7 | -SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -fno-strict-aliasing -D_GNU_SOURCE -fPIC -rdynamic -Wno-unused-result") 8 | +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -fno-strict-aliasing -D_GNU_SOURCE -rdynamic -Wno-unused-result") 9 | 10 | IF (NOT DEFINED LIB_SUFFIX) 11 | EXECUTE_PROCESS( 12 | -------------------------------------------------------------------------------- /accel-ppp/patches/060-paths.patch: -------------------------------------------------------------------------------- 1 | --- a/accel-pppd/extra/chap-secrets.c 2 | +++ b/accel-pppd/extra/chap-secrets.c 3 | @@ -20,7 +20,7 @@ 4 | 5 | #include "memdebug.h" 6 | 7 | -static char *def_chap_secrets = "/etc/ppp/chap-secrets"; 8 | +static char *def_chap_secrets = "/opt/etc/ppp/chap-secrets"; 9 | static char *conf_chap_secrets; 10 | static int conf_encrypted; 11 | static in_addr_t conf_gw_ip_address = 0; 12 | -------------------------------------------------------------------------------- /afpfs-ng/patches/010-shell-path.patch: -------------------------------------------------------------------------------- 1 | --- a/fuse/afpfs 2 | +++ b/fuse/afpfs 3 | @@ -1,3 +1,3 @@ 4 | -#!/bin/bash 5 | +#!/bin/sh 6 | 7 | mount_afp $3 $4 $1 $2 8 | -------------------------------------------------------------------------------- /afpfs-ng/patches/020-no_docs.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile.am 2 | +++ b/Makefile.am 3 | @@ -1,5 +1,5 @@ 4 | if HAVE_LIBFUSE 5 | -SUBDIRS = lib fuse cmdline include docs 6 | +SUBDIRS = lib fuse cmdline 7 | else 8 | -SUBDIRS = lib cmdline include docs 9 | +SUBDIRS = lib cmdline 10 | endif 11 | -------------------------------------------------------------------------------- /aha/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2020-2021 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | include $(TOPDIR)/rules.mk 9 | 10 | PKG_NAME:=aha 11 | PKG_VERSION:=0.5.1 12 | PKG_REV:=41c2320eb31ef1c95fcd45a0feb0303f606fc711 13 | PKG_RELEASE:=1 14 | 15 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 16 | PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) 17 | PKG_SOURCE_URL:=https://github.com/theZiz/aha.git 18 | PKG_SOURCE_PROTO:=git 19 | PKG_SOURCE_VERSION:=$(PKG_REV) 20 | PKG_MIRROR_HASH:=5a1b944d756e245df0131b9e49aabe12bb62cb45f28b2ebfebae63009305e5e6 21 | 22 | include $(INCLUDE_DIR)/package.mk 23 | 24 | define Package/aha 25 | SECTION:=utils 26 | CATEGORY:=Utilities 27 | TITLE:=Ansi HTML Adapter 28 | URL:=$(PKG_SOURCE_URL) 29 | MAINTAINER:=Entware team, https://entware.net 30 | endef 31 | 32 | define Package/aha/description 33 | Converts ANSI escape sequences of a unix terminal to HTML code. 34 | endef 35 | 36 | define Package/aha/install 37 | $(INSTALL_DIR) $(1)/opt/bin 38 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/aha $(1)/opt/bin 39 | endef 40 | 41 | $(eval $(call BuildPackage,aha)) 42 | -------------------------------------------------------------------------------- /airprint/files/airprint.convs: -------------------------------------------------------------------------------- 1 | # 2 | # "$Id: $" 3 | # 4 | # AirPrint 5 | # Updated list with minimal set 25 Sept 6 | image/urf application/pdf 100 pdftoraster 7 | # 8 | # End of "$Id: $". 9 | # 10 | -------------------------------------------------------------------------------- /airprint/files/airprint.types: -------------------------------------------------------------------------------- 1 | # 2 | # "$Id: $" 3 | # 4 | # AirPrint type 5 | image/urf urf string(0,UNIRAST<00>) 6 | # 7 | # End of "$Id: $". 8 | # -------------------------------------------------------------------------------- /airsane/files/S43airsaned: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | . /opt/etc/config/airsaned.conf 4 | 5 | ENABLED=yes 6 | PROCS=airsaned 7 | ARGS="--interface=${INTERFACE} --base-port=${BASE_PORT} --access-log=${ACCESS_LOG} --hotplug=${HOTPLUG} --mdns-announce=${MDNS_ANNOUNCE} --local-scanners-only=${LOCAL_SCANNERS_ONLY} --options-file=${OPTIONS_FILE} --ignore-list=${IGNORE_LIST}" 8 | PREARGS="" 9 | DESC=$PROCS 10 | PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 11 | 12 | . /opt/etc/init.d/rc.func 13 | -------------------------------------------------------------------------------- /airsane/patches/020-paths.patch: -------------------------------------------------------------------------------- 1 | --- a/systemd/airsaned.default 2 | +++ b/systemd/airsaned.default 3 | @@ -13,7 +13,7 @@ DISCLOSE_VERSION=true 4 | LOCAL_SCANNERS_ONLY=false 5 | RANDOM_PATHS=false 6 | COMPATIBLE_PATH=true 7 | -OPTIONS_FILE=/etc/airsane/options.conf 8 | -ACCESS_FILE=/etc/airsane/access.conf 9 | -IGNORE_LIST=/etc/airsane/ignore.conf 10 | +OPTIONS_FILE=/opt/etc/airsane/options.conf 11 | +ACCESS_FILE=/opt/etc/airsane/access.conf 12 | +IGNORE_LIST=/opt/etc/airsane/ignore.conf 13 | 14 | -------------------------------------------------------------------------------- /alaya/files/S80alaya: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=alaya 5 | ARGS="" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /angband/patches/010-saves-path.patch: -------------------------------------------------------------------------------- 1 | --- a/src/config.h 2 | +++ b/src/config.h 3 | @@ -66,7 +66,7 @@ 4 | * for storing pref files and character dumps. 5 | */ 6 | #if defined(UNIX) && !defined(MACH_O_CARBON) && !defined(PRIVATE_USER_PATH) && !defined(DJGPP) 7 | -# define PRIVATE_USER_PATH "~/.angband" 8 | +# define PRIVATE_USER_PATH "/opt/var" 9 | #endif 10 | 11 | 12 | -------------------------------------------------------------------------------- /angband/patches/020-use_LDFLAGS_for_binary_only.patch: -------------------------------------------------------------------------------- 1 | --- a/src/Makefile 2 | +++ b/src/Makefile 3 | @@ -31,7 +31,7 @@ win/$(PROGNAME).res: win/$(PROGNAME).rc 4 | $(RC) $< -O coff -o $@ 5 | 6 | $(PROGNAME).o: $(OBJECTS) 7 | - $(LD) $(LDFLAGS) -nostdlib -r -o $@ $(OBJECTS) 8 | + $(LD) -nostdlib -r -o $@ $(OBJECTS) 9 | @printf "%10s %-20s\n" LINK $@ 10 | 11 | tests: $(PROGNAME).o 12 | -------------------------------------------------------------------------------- /archivemount/patches/010-fuse-headers.patch: -------------------------------------------------------------------------------- 1 | --- a/archivemount.c 2 | +++ b/archivemount.c 3 | @@ -30,7 +30,7 @@ 4 | 5 | #include 6 | #include 7 | -#include 8 | +#include 9 | #include 10 | #include 11 | #include 12 | -------------------------------------------------------------------------------- /arpon/patches/010-exlclude_host_paths.patch: -------------------------------------------------------------------------------- 1 | --- a/CMakeLists.txt 2 | +++ b/CMakeLists.txt 3 | @@ -46,25 +46,6 @@ project(ArpON C) 4 | set(AUTHOR "Andrea Di Pasquale " INTERNAL "Author") 5 | set(VERSION "3.0-ng") 6 | 7 | -set(CMAKE_INCLUDE_PATH 8 | - /usr/include; 9 | - /usr/local/include; 10 | - /usr/local/include/libnet11; 11 | - /usr/local/include/libnet-1.1; 12 | - ${CMAKE_INCLUDE_PATH}) 13 | - 14 | -set(CMAKE_LIBRARY_PATH 15 | - /lib; 16 | - /usr/lib; 17 | - /usr/lib32; 18 | - /usr/lib64; 19 | - /usr/local/lib; 20 | - /usr/local/lib32; 21 | - /usr/local/lib64; 22 | - /usr/local/lib/libnet11; 23 | - /usr/local/lib/libnet-1.1; 24 | - ${CMAKE_LIBRARY_PATH}) 25 | - 26 | include_directories( 27 | ${PROJECT_BINARY_DIR} 28 | ${PROJECT_SOURCE_DIR}/src 29 | @@ -93,7 +74,7 @@ else(cmake_build_type_tolower STREQUAL " 30 | message(STATUS "Build type: Release") 31 | 32 | set(CMAKE_BUILD_TYPE "Release") 33 | - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Werror -Wextra -O3 -DNDEBUG") 34 | + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -DNDEBUG") 35 | endif(cmake_build_type_tolower STREQUAL "debug") 36 | 37 | find_package(Headers) 38 | -------------------------------------------------------------------------------- /arpon/patches/020-paths.patch: -------------------------------------------------------------------------------- 1 | --- a/src/CMakeLists.txt 2 | +++ b/src/CMakeLists.txt 3 | @@ -40,8 +40,8 @@ else(${CMAKE_INSTALL_PREFIX} STREQUAL "/ 4 | set(ARPON_SBIN ${CMAKE_INSTALL_PREFIX}/sbin/arpon) 5 | set(ARPON_DOC ${CMAKE_INSTALL_PREFIX}/share/doc/arpon/index.html) 6 | set(ARPON_ETC ${CMAKE_INSTALL_PREFIX}/etc/arpon.conf) 7 | - set(ARPON_LOG ${CMAKE_INSTALL_PREFIX}/log/arpon.log) 8 | - set(ARPON_PID ${CMAKE_INSTALL_PREFIX}/run/arpon.pid) 9 | + set(ARPON_LOG ${CMAKE_INSTALL_PREFIX}/var/log/arpon.log) 10 | + set(ARPON_PID ${CMAKE_INSTALL_PREFIX}/var/run/arpon.pid) 11 | set(install_prefix ${CMAKE_INSTALL_PREFIX}/sbin) 12 | endif(${CMAKE_INSTALL_PREFIX} STREQUAL "/") 13 | 14 | -------------------------------------------------------------------------------- /asciinema/Makefile: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: AGPL-3.0-or-later 2 | # 3 | # Copyright (C) 2011-2024 Entware 4 | 5 | include $(TOPDIR)/rules.mk 6 | 7 | PKG_NAME:=asciinema 8 | PKG_VERSION:=2.4.0 9 | PKG_RELEASE:=2 10 | 11 | PYPI_NAME:=asciinema 12 | PKG_HASH:=828e04c36ba622a7b8f8f912c8f0c1329538b6c7ed1c0d1b131bbbfe3a221707 13 | 14 | PKG_BUILD_DEPENDS:=python-wheel/host 15 | 16 | include $(TOPDIR)/feeds/packages/lang/python/pypi.mk 17 | include $(INCLUDE_DIR)/package.mk 18 | include $(TOPDIR)/feeds/packages/lang/python/python3-package.mk 19 | 20 | define Package/asciinema 21 | SECTION:=utils 22 | CATEGORY:=Utilities 23 | SUBMENU:=Terminal 24 | DEPENDS:=+ncurses-bin +python3-codecs +python3-multiprocessing +python3-urllib +python3-uuid 25 | TITLE:=A terminal sessions recorder 26 | URL:=https://asciinema.org 27 | MAINTAINER:=Entware team, https://entware.net 28 | endef 29 | 30 | define Package/asciinema/description 31 | asciinema lets you record your terminal sessions and share it with other geeks. 32 | endef 33 | 34 | define Package/asciinema/conffiles 35 | /opt/etc/asciinema/config 36 | endef 37 | 38 | $(eval $(call Py3Package,asciinema)) 39 | $(eval $(call BuildPackage,asciinema)) 40 | -------------------------------------------------------------------------------- /asterisk-chan-quectel/patches/010-cross.patch: -------------------------------------------------------------------------------- 1 | --- a/configure.ac 2 | +++ b/configure.ac 3 | @@ -21,7 +21,7 @@ AC_ARG_WITH( 4 | [asterisk], 5 | AS_HELP_STRING([--with-asterisk=path], [set asterisk headers location]), 6 | [ if test "x$with_asterisk" = "xyes" -o "x$with_asterisk" = "xno" ; then AC_MSG_ERROR([Invalid --with-asterisk=path value]); fi ], 7 | - [ with_asterisk="../include /usr/include /usr/local/include /opt/local/include" ] 8 | + [ with_asterisk="${STAGING_DIR}/opt/include" ] 9 | ) 10 | dnl Set iconv headers patch 11 | AC_ARG_WITH( 12 | @@ -225,7 +225,7 @@ if test "x$enable_debug" = "xyes" ; then 13 | CFLAGS="$CFLAGS -O0 -g" 14 | AC_DEFINE([__DEBUG__], [1], [Build with debugging]) 15 | else 16 | - CFLAGS="$CFLAGS -O6" 17 | + CFLAGS="$CFLAGS" 18 | fi 19 | 20 | dnl Asterisk header files use lots of old style declarations, ignore those. 21 | -------------------------------------------------------------------------------- /astra/patches/010-nomarchc.patch: -------------------------------------------------------------------------------- 1 | --- a/configure.sh 2 | +++ b/configure.sh 3 | @@ -199,12 +199,7 @@ elif [ $ISx86 -eq 0 ]; then 4 | fi 5 | fi 6 | 7 | -$APP_C $CFLAGS -march=$ARG_ARCH -E -x c /dev/null >/dev/null 2>&1 8 | -if [ $? -eq 0 ] ; then 9 | - CFLAGS="$CFLAGS -march=$ARG_ARCH" 10 | -else 11 | - echo "Error: gcc does not support -march=$ARG_ARCH" >&2 12 | -fi 13 | +$APP_C $CFLAGS -E -x c /dev/null >/dev/null 2>&1 14 | 15 | case "$MACHINE" in 16 | *"android"*) 17 | -------------------------------------------------------------------------------- /astra/patches/020-nold.patch: -------------------------------------------------------------------------------- 1 | --- a/configure.sh 2 | +++ b/configure.sh 3 | @@ -726,7 +726,7 @@ BPATH = $ARG_BPATH 4 | 5 | \$(APP): $APP_OBJS \$(CORE_OBJS) \$(MODS_OBJS) 6 | @echo "BUILD: \$@" 7 | - @\$(LD) \$^ -o \$@ \$(LDFLAGS) 8 | + @\$(CC) \$^ -o \$@ \$(LDFLAGS) 9 | @\$(STRIP) \$@ 10 | 11 | install: \$(APP) 12 | -------------------------------------------------------------------------------- /astra/patches/030-nosse_cross.patch: -------------------------------------------------------------------------------- 1 | --- a/configure.sh 2 | +++ b/configure.sh 3 | @@ -138,7 +138,6 @@ MACHINE=`$APP_C -dumpmachine` 4 | ARCH=`echo $MACHINE | sed "s|-.*\$||"` 5 | 6 | echo $ARCH | grep -q "i[3-6]86\|x86_64" 7 | -ISx86=$? 8 | 9 | cpucheck_c() 10 | { 11 | @@ -184,7 +183,7 @@ if [ $ARG_CC -eq 0 ]; then 12 | CFLAGS="$CFLAGS $CPUFLAGS" 13 | fi 14 | fi 15 | -elif [ $ISx86 -eq 0 ]; then 16 | +elif false ; then 17 | $APP_C $CFLAGS -msse -E -x c /dev/null >/dev/null 2>&1 18 | if [ $? -eq 0 ] ; then 19 | CFLAGS="$CFLAGS -msse" 20 | -------------------------------------------------------------------------------- /astra/patches/040-no_aio.patch: -------------------------------------------------------------------------------- 1 | --- a/modules/file/module.mk 2 | +++ b/modules/file/module.mk 3 | @@ -18,43 +18,3 @@ check_posix_memalign() 4 | if check_posix_memalign ; then 5 | CFLAGS="-DHAVE_POSIX_MEMALIGN=1" 6 | fi 7 | - 8 | -libaio_test_c() 9 | -{ 10 | - cat < 12 | -int main(void) { return 0; } 13 | -EOF 14 | -} 15 | - 16 | -check_libaio() 17 | -{ 18 | - libaio_test_c | $APP_C -Werror $CFLAGS $APP_CFLAGS -o /dev/null -x c - >/dev/null 2>&1 19 | -} 20 | - 21 | -aio_test_c() 22 | -{ 23 | - cat < 28 | -int main(void) { return 0; } 29 | -EOF 30 | -} 31 | - 32 | -check_aio() 33 | -{ 34 | - aio_test_c | $APP_C -Werror $CFLAGS $APP_CFLAGS -o /dev/null -x c - >/dev/null 2>&1 35 | -} 36 | - 37 | -if check_aio ; then 38 | - CFLAGS="$CFLAGS -DHAVE_AIO=1" 39 | - if [ "$OS" = "linux" ] ; then 40 | - LDFLAGS="-lrt" 41 | - if check_libaio ; then 42 | - CFLAGS="$CFLAGS -DHAVE_LIBAIO=1" 43 | - LDFLAGS="$LDFLAGS -laio" 44 | - fi 45 | - fi 46 | -fi 47 | -------------------------------------------------------------------------------- /autofs/Config.in: -------------------------------------------------------------------------------- 1 | # autofs avanced configuration 2 | 3 | menu "Configuration" 4 | depends on PACKAGE_autofs 5 | 6 | config AUTOFS_OPENLDAP 7 | bool "enable OpenLDAP map support" 8 | default n 9 | 10 | config AUTOFS_SASL 11 | bool "enable SASL support for LDAP maps" 12 | depends on AUTOFS_OPENLDAP 13 | default n 14 | 15 | config AUTOFS_TIRPC 16 | bool "enable libtirpc support" 17 | default n 18 | 19 | endmenu 20 | -------------------------------------------------------------------------------- /autofs/patches/010-fix-paths.patch: -------------------------------------------------------------------------------- 1 | --- a/fedfs/fedfs-nls.h 2 | +++ b/fedfs/fedfs-nls.h 3 | @@ -8,7 +8,7 @@ 4 | int main(int argc, char *argv[]); 5 | 6 | #ifndef LOCALEDIR 7 | -#define LOCALEDIR "/usr/share/locale" 8 | +#define LOCALEDIR "/opt/share/locale" 9 | #endif 10 | 11 | #ifdef HAVE_LOCALE_H 12 | --- a/fedfs/mount.fedfs.c 13 | +++ b/fedfs/mount.fedfs.c 14 | @@ -58,7 +58,7 @@ 15 | /** 16 | * Pathname to mount.nfs 17 | */ 18 | -#define MOUNT_NFS_EXECUTABLE "/sbin/mount.nfs" 19 | +#define MOUNT_NFS_EXECUTABLE "/opt/sbin/mount.nfs" 20 | 21 | /** 22 | * Mount status values, lifted from util-linux 23 | --- a/include/automount.h 24 | +++ b/include/automount.h 25 | @@ -90,7 +90,7 @@ char *autofs_strerror_r(int errnum, char 26 | #define HOST_ENT_BUF_SIZE 2048 27 | 28 | #define CHECK_RATIO 4 /* exp_runfreq = exp_timeout/CHECK_RATIO */ 29 | -#define AUTOFS_LOCK "/var/lock/autofs" /* To serialize access to mount */ 30 | +#define AUTOFS_LOCK "/opt/var/lock/autofs" /* To serialize access to mount */ 31 | #define MOUNTED_LOCK _PATH_MOUNTED "~" /* mounts' lock file */ 32 | #define MTAB_NOTUPDATED 0x1000 /* mtab succeded but not updated */ 33 | #define NOT_MOUNTED 0x0100 /* path notmounted */ 34 | -------------------------------------------------------------------------------- /automatic/files/S91automatic: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | LOGFILE=/opt/var/log/automatic.log 4 | touch $LOGFILE 5 | 6 | ENABLED=yes 7 | PROCS=automatic 8 | ARGS="-l $LOGFILE -a" 9 | PREARGS="" 10 | DESC=$PROCS 11 | PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 12 | 13 | . /opt/etc/init.d/rc.func 14 | -------------------------------------------------------------------------------- /automatic/patches/010-config-dir.patch: -------------------------------------------------------------------------------- 1 | --- a/src/automatic.c 2 | +++ b/src/automatic.c 3 | @@ -17,7 +17,7 @@ 4 | * 02111-1307, USA. 5 | */ 6 | 7 | -#define AM_DEFAULT_CONFIGFILE "/etc/automatic.conf" 8 | +#define AM_DEFAULT_CONFIGFILE "/opt/etc/automatic.conf" 9 | #define AM_DEFAULT_STATEFILE ".automatic.state" 10 | #define AM_DEFAULT_VERBOSE P_MSG 11 | #define AM_DEFAULT_NOFORK false 12 | -------------------------------------------------------------------------------- /automatic/patches/030-CFLAGS.patch: -------------------------------------------------------------------------------- 1 | --- a/configure.ac 2 | +++ b/configure.ac 3 | @@ -14,20 +14,12 @@ AC_PROG_CC 4 | AC_PROG_CXX 5 | 6 | PKG_PROG_PKG_CONFIG() 7 | -if test m4_substr(version_number,3,1) != "x"; then 8 | - supported_build=yes 9 | - if test "x$GCC" = "xyes" ; then 10 | - CFLAGS="-Wdeclaration-after-statement -O3 -funroll-loops" 11 | - CXXFLAGS="-O3 -funroll-loops" 12 | - fi 13 | - CPPFLAGS="$CPPFLAGS -DNDEBUG" 14 | -else 15 | - supported_build=no 16 | - if test "x$GCC" = "xyes" ; then 17 | - CFLAGS="-g -Wall -W -Wdeclaration-after-statement -O0 -funroll-loops" 18 | - CXXFLAGS="-g -Wall -W -O0 -funroll-loops" 19 | - fi 20 | +supported_build=yes 21 | +if test "x$GCC" = "xyes" ; then 22 | + CFLAGS="-Wdeclaration-after-statement" 23 | + CXXFLAGS="" 24 | fi 25 | +CPPFLAGS="$CPPFLAGS -DNDEBUG" 26 | AM_CONDITIONAL(DBG_BUILD, test "x$supported_build" = "xno") 27 | 28 | AC_PROG_INSTALL 29 | -------------------------------------------------------------------------------- /automatic/patches/040-no_tests.patch: -------------------------------------------------------------------------------- 1 | --- a/src/Makefile.am 2 | +++ b/src/Makefile.am 3 | @@ -1,4 +1,3 @@ 4 | -SUBDIRS = . tests 5 | AM_CPPFLAGS = -I$(top_srcdir)/include/ 6 | 7 | AM_CFLAGS = $(LIBXML_CFLAGS) $(LIBCURL_CFLAGS) $(PCRE_CFLAGS) 8 | -------------------------------------------------------------------------------- /bacula/files/S80bacula-dir: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | prefix="/opt" 4 | PATH=${prefix}/bin:${prefix}/sbin:/sbin:/bin:/usr/sbin:/usr/bin 5 | SCRIPT="/opt/etc/bacula/scripts/bacula-ctl-dir" 6 | 7 | $SCRIPT "$@" 8 | -------------------------------------------------------------------------------- /bacula/files/S80bacula-fd: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | prefix="/opt" 4 | PATH=${prefix}/bin:${prefix}/sbin:/sbin:/bin:/usr/sbin:/usr/bin 5 | SCRIPT="/opt/etc/bacula/scripts/bacula-ctl-fd" 6 | 7 | $SCRIPT "$@" 8 | -------------------------------------------------------------------------------- /bacula/files/S80bacula-sd: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | prefix="/opt" 4 | PATH=${prefix}/bin:${prefix}/sbin:/sbin:/bin:/usr/sbin:/usr/bin 5 | SCRIPT="/opt/etc/bacula/scripts/bacula-ctl-sd" 6 | 7 | $SCRIPT "$@" 8 | -------------------------------------------------------------------------------- /bindfs/Makefile: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-2.0-only 2 | # 3 | # Copyright (C) 2011-2025 Entware 4 | 5 | include $(TOPDIR)/rules.mk 6 | 7 | PKG_NAME:=bindfs 8 | PKG_VERSION:=1.18.0 9 | PKG_RELEASE:=1 10 | 11 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 12 | PKG_SOURCE_URL:=https://bindfs.org/downloads 13 | PKG_HASH:=46fcf95b871109265e93cd42e5ae282c722716488ad9f0da1e1f98535be37f7a 14 | 15 | PKG_INSTALL:=1 16 | 17 | include $(INCLUDE_DIR)/package.mk 18 | 19 | define Package/bindfs 20 | SECTION:=utils 21 | CATEGORY:=Utilities 22 | SUBMENU:=Filesystem 23 | DEPENDS:=+fuse3-utils +librt 24 | TITLE:=bindfs filesystem 25 | URL:=http://bindfs.org 26 | MAINTAINER:=Entware team, https://entware.net 27 | endef 28 | 29 | define Package/bindfs/description 30 | bindfs - mount a directory to another location and alter permission bits. 31 | endef 32 | 33 | TARGET_CFLAGS += -I$(STAGING_DIR)/opt/include/fuse 34 | 35 | define Package/bindfs/install 36 | $(INSTALL_DIR) $(1)/opt/bin 37 | $(INSTALL_BIN) $(PKG_INSTALL_DIR)/opt/bin/* $(1)/opt/bin 38 | endef 39 | 40 | $(eval $(call BuildPackage,bindfs)) 41 | -------------------------------------------------------------------------------- /bip/files/S99bip: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=bip 5 | ARGS="-f /opt/etc/bip.conf" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /bochs/patches/010-fix_curses.patch: -------------------------------------------------------------------------------- 1 | --- a/bochs/configure 2 | +++ b/bochs/configure 3 | @@ -26798,7 +26798,7 @@ esac 4 | 5 | 6 | 7 | -if test "$use_curses" = yes; then 8 | +if test "$use_curses" = yes -a "$cross_configure" = 0; then 9 | if test "x$PKG_CONFIG" != x; then 10 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mvaddch in -lcurses" >&5 11 | printf %s "checking for mvaddch in -lcurses... " >&6; } 12 | -------------------------------------------------------------------------------- /castget/patches/010-paths.patch: -------------------------------------------------------------------------------- 1 | --- a/src/castget.c 2 | +++ b/src/castget.c 3 | @@ -149,7 +149,7 @@ int main(int argc, char **argv) 4 | LIBXML_TEST_VERSION; 5 | 6 | /* Build the channel directory path and ensure that it exists. */ 7 | - channeldir = g_build_filename(g_get_home_dir(), ".castget", NULL); 8 | + channeldir = g_build_filename("/opt/var", ".castget", NULL); 9 | 10 | if (!g_file_test(channeldir, G_FILE_TEST_IS_DIR)) { 11 | if (g_mkdir(channeldir, 0755) < 0) { 12 | @@ -161,7 +161,7 @@ int main(int argc, char **argv) 13 | /* Try opening configuration file. */ 14 | if (!rcfile) 15 | /* Supply default path name. */ 16 | - rcfile = g_build_filename(g_get_home_dir(), ".castgetrc", NULL); 17 | + rcfile = g_build_filename("/opt/etc", "castgetrc", NULL); 18 | 19 | kf = _configuration_file_open(rcfile); 20 | 21 | -------------------------------------------------------------------------------- /castget/patches/020-config.patch: -------------------------------------------------------------------------------- 1 | --- a/castgetrc.example 2 | +++ b/castgetrc.example 3 | @@ -11,7 +11,7 @@ 4 | # enclosures. 5 | [*] 6 | id3contenttype=Podcast 7 | -spool=/home/tom/podcasts 8 | +spool=/opt/tmp/podcasts 9 | 10 | # 11 | # Per-channel settings. 12 | @@ -23,8 +23,8 @@ spool=/home/tom/podcasts 13 | # enclosures to /home/tom/podcasts.m3u. 14 | [dsc] 15 | url=http://radio.weblogs.com/0001014/categories/dailySourceCode/rss.xml 16 | -spool=/home/tom/podcasts/dsc 17 | -playlist=/home/tom/podcasts.m3u 18 | +spool=/opt/podcasts/dsc 19 | +playlist=/opt/tmp/podcasts/podcasts.m3u 20 | 21 | # This will define a channel with the identifier "yeast", set the RSS 22 | # feed URL for the channel, and set several ID3 tags. 23 | -------------------------------------------------------------------------------- /cgdb/patches/010-Fix-handling-of-local-m4-macros.patch: -------------------------------------------------------------------------------- 1 | From: Sebastian Ramacher 2 | Date: Sun, 19 Sep 2021 11:34:49 +0200 3 | Subject: Fix handling of local m4 macros 4 | 5 | --- 6 | configure.ac | 2 +- 7 | 1 file changed, 1 insertion(+), 1 deletion(-) 8 | 9 | diff --git a/configure.ac b/configure.ac 10 | index fc14fd1..d9482ca 100644 11 | --- a/configure.ac 12 | +++ b/configure.ac 13 | @@ -1,7 +1,7 @@ 14 | dnl Process this file with autoconf to produce a configure script. 15 | AC_PREREQ(2.5) 16 | AC_INIT(cgdb, [m4_esyscmd_s([cat VERSION])]) 17 | -AC_CONFIG_AUX_DIR(config) 18 | +AC_CONFIG_MACRO_DIRS([config]) 19 | AC_CONFIG_HEADERS(config.h) 20 | AM_INIT_AUTOMAKE 21 | 22 | -------------------------------------------------------------------------------- /cgit/patches/500-fix_default_paths.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile 2 | +++ b/Makefile 3 | @@ -2,11 +2,11 @@ all:: 4 | 5 | CGIT_VERSION = v1.2.3 6 | CGIT_SCRIPT_NAME = cgit.cgi 7 | -CGIT_SCRIPT_PATH = /var/www/htdocs/cgit 8 | +CGIT_SCRIPT_PATH = /opt/var/www/htdocs/cgit 9 | CGIT_DATA_PATH = $(CGIT_SCRIPT_PATH) 10 | -CGIT_CONFIG = /etc/cgitrc 11 | -CACHE_ROOT = /var/cache/cgit 12 | -prefix = /usr/local 13 | +CGIT_CONFIG = /opt/etc/cgitrc 14 | +CACHE_ROOT = /opt/var/cache/cgit 15 | +prefix = /opt 16 | libdir = $(prefix)/lib 17 | filterdir = $(libdir)/cgit/filters 18 | docdir = $(prefix)/share/doc/cgit 19 | -------------------------------------------------------------------------------- /crawl/patches/010-LDFLAGS.patch: -------------------------------------------------------------------------------- 1 | --- a/crawl-ref/source/Makefile 2 | +++ b/crawl-ref/source/Makefile 3 | @@ -156,10 +156,6 @@ CFWARN_L += -Wextra \ 4 | 5 | DEFINES := $(EXTERNAL_DEFINES) 6 | 7 | -ifndef ANDROID 8 | -LDFLAGS := 9 | -endif 10 | - 11 | # 12 | # The GCC and GXX variables are set later. 13 | # 14 | -------------------------------------------------------------------------------- /crawl/patches/020-tilegen-host-compile.patch: -------------------------------------------------------------------------------- 1 | --- a/crawl-ref/source/rltiles/Makefile 2 | +++ b/crawl-ref/source/rltiles/Makefile 3 | @@ -52,7 +52,7 @@ ifeq ($(uname_S),Darwin) 4 | LDFLAGS += -framework AppKit -framework AudioUnit -framework CoreAudio -framework ForceFeedback -framework Carbon -framework IOKit -framework OpenGL 5 | endif 6 | ifeq ($(uname_S),Linux) 7 | -LDFLAGS += -ldl -lpthread 8 | +LDFLAGS := -ldl -lpthread 9 | endif 10 | 11 | # Attempt to use a full compiler name, to make 12 | -------------------------------------------------------------------------------- /crawl/patches/050-define-FILE-OFFSET-BITS.patch: -------------------------------------------------------------------------------- 1 | --- a/crawl-ref/source/package.h 2 | +++ b/crawl-ref/source/package.h 3 | @@ -1,5 +1,5 @@ 4 | #pragma once 5 | - 6 | +#define _FILE_OFFSET_BITS 64 7 | #define USE_ZLIB 8 | 9 | #include 10 | -------------------------------------------------------------------------------- /crawl/patches/070-macro-dir.patch: -------------------------------------------------------------------------------- 1 | --- a/crawl-ref/source/initfile.cc 2 | +++ b/crawl-ref/source/initfile.cc 3 | @@ -1535,7 +1535,7 @@ void game_options::reset_paths() 4 | { 5 | macro_dir_option = ""; // maybe unnecessary? 6 | #ifdef UNIX 7 | - macro_dir = _user_home_subpath(".crawl"); 8 | + macro_dir = "/opt/var/crawl/macro"; 9 | #else 10 | macro_dir = "settings/"; 11 | #endif 12 | -------------------------------------------------------------------------------- /crawl/patches/090-version_num.patch: -------------------------------------------------------------------------------- 1 | --- a/crawl-ref/source/util/gen_ver.pl 2 | +++ b/crawl-ref/source/util/gen_ver.pl 3 | @@ -21,8 +21,7 @@ mkdir dirname($outfile); 4 | # 5 | # Source tarbells distributed as part of a release include this file already 6 | # generated with the release version. 7 | -$_ = `git describe $mergebase 2> $nullfile` 8 | - || (open(IN, "<", "$scriptpath/release_ver") ? 9 | +$_ = (open(IN, "<", "$scriptpath/release_ver") ? 10 | : die "Error: Can't get version information: `git describe` failed (no git, no repository, or shallow clone), and $scriptpath/release_ver doesn't exist.\n") 11 | or die "Error: couldn't get the version information\n"; 12 | 13 | -------------------------------------------------------------------------------- /cron/files/S10cron: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=cron 5 | # remove `-s` to disable logs in syslog 6 | ARGS="-s" 7 | PREARGS="" 8 | DESC=$PROCS 9 | PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 10 | 11 | . /opt/etc/init.d/rc.func 12 | -------------------------------------------------------------------------------- /cron/files/crontab: -------------------------------------------------------------------------------- 1 | SHELL=/bin/sh 2 | PATH=/sbin:/bin:/usr/sbin:/usr/bin:/opt/bin:/opt/sbin 3 | MAILTO="" 4 | HOME=/ 5 | # ---------- ---------- Default is Empty ---------- ---------- # 6 | */1 * * * * root /opt/bin/run-parts /opt/etc/cron.1min 7 | */5 * * * * root /opt/bin/run-parts /opt/etc/cron.5mins 8 | 01 * * * * root /opt/bin/run-parts /opt/etc/cron.hourly 9 | 02 4 * * * root /opt/bin/run-parts /opt/etc/cron.daily 10 | 22 4 * * 0 root /opt/bin/run-parts /opt/etc/cron.weekly 11 | 42 4 1 * * root /opt/bin/run-parts /opt/etc/cron.monthly 12 | 13 | -------------------------------------------------------------------------------- /cron/files/run-parts: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # runparts.sh by macsat@macsat.com 4 | # intended for use with cron 5 | # 6 | # based on rc.unslung by unslung guys :-) 7 | # 8 | if [ -z "$1" ]; then 9 | echo "Usage : $0 " 10 | exit 0 11 | fi 12 | 13 | RUNDIR=$1"/*" 14 | 15 | for i in $RUNDIR ; do 16 | 17 | # Ignore dangling symlinks (if any). 18 | [ ! -f "$i" ] && continue 19 | 20 | case "$i" in 21 | *.sh) 22 | # Source shell script for speed. 23 | ( 24 | trap - INT QUIT TSTP 25 | set start 26 | . $i 27 | ) 28 | ;; 29 | *) 30 | # No sh extension, so fork subprocess. 31 | $i start 32 | ;; 33 | esac 34 | done 35 | -------------------------------------------------------------------------------- /cryfs/patches/050-low-power-cpu.patch: -------------------------------------------------------------------------------- 1 | --- a/src/cpp-utils/crypto/kdf/Scrypt.h 2 | +++ b/src/cpp-utils/crypto/kdf/Scrypt.h 3 | @@ -22,7 +22,7 @@ namespace cpputils { 4 | class SCrypt final : public PasswordBasedKDF { 5 | public: 6 | static constexpr SCryptSettings ParanoidSettings = SCryptSettings {32, 1048576, 8, 16}; 7 | - static constexpr SCryptSettings DefaultSettings = SCryptSettings {32, 1048576, 4, 8}; 8 | + static constexpr SCryptSettings DefaultSettings = SCryptSettings {32, 262144, 2, 1}; 9 | static constexpr SCryptSettings TestSettings = SCryptSettings {32, 1024, 1, 1}; 10 | 11 | explicit SCrypt(const SCryptSettings& settingsForNewKeys); 12 | -------------------------------------------------------------------------------- /cryfs/patches/100-disable-asm.patch: -------------------------------------------------------------------------------- 1 | --- a/vendor/cryptopp/vendor_cryptopp/config.h 2 | +++ b/vendor/cryptopp/vendor_cryptopp/config.h 3 | @@ -62,6 +62,13 @@ 4 | // explictly use the ISAs. When disabling ASM, it is best to do it from 5 | // config.h to ensure the library and all programs share the setting. 6 | // #define CRYPTOPP_DISABLE_ASM 1 7 | + 8 | +// Configuration option doesn't saved to config.h after compilation, so we have to add 9 | +// following definition manually: 10 | +#ifndef CRYPTOPP_DISABLE_ASM 11 | +#define CRYPTOPP_DISABLE_ASM 12 | +#endif 13 | + 14 | 15 | // https://github.com/weidai11/cryptopp/issues/719 16 | #if defined(__native_client__) 17 | -------------------------------------------------------------------------------- /cryfs/patches/150-missing-hdr.patch: -------------------------------------------------------------------------------- 1 | --- a/src/cpp-utils/thread/LeftRight.h 2 | +++ b/src/cpp-utils/thread/LeftRight.h 3 | @@ -4,6 +4,7 @@ 4 | #include 5 | #include 6 | #include 7 | +#include 8 | 9 | namespace cpputils { 10 | 11 | --- a/src/fspp/fuse/Fuse.h 12 | +++ b/src/fspp/fuse/Fuse.h 13 | @@ -12,6 +12,7 @@ 14 | #include 15 | #include 16 | #include "stat_compatibility.h" 17 | +#include 18 | 19 | namespace fspp { 20 | class Device; 21 | -------------------------------------------------------------------------------- /ctags/patches/010-fix.patch: -------------------------------------------------------------------------------- 1 | --- a/configure.ac 2 | +++ b/configure.ac 3 | @@ -435,23 +435,23 @@ AC_CHECK_PROGS([PYTHON], 4 | AC_MSG_CHECKING(directory to use for temporary files) 5 | if test -n "$enable_tmpdir"; then 6 | tmpdir="$enable_tmpdir" 7 | -elif test -n "$TMPDIR"; then 8 | - tmpdir="$TMPDIR" 9 | -elif test -n "$TMP"; then 10 | - tmpdir="$TMP" 11 | -elif test -n "$TEMP"; then 12 | - tmpdir="$TEMP" 13 | -elif test -d "c:/"; then 14 | - tmpdir="c:/" 15 | -else 16 | - tmpdir="/tmp" 17 | +#elif test -n "$TMPDIR"; then 18 | +# tmpdir="$TMPDIR" 19 | +#elif test -n "$TMP"; then 20 | +# tmpdir="$TMP" 21 | +#elif test -n "$TEMP"; then 22 | +# tmpdir="$TEMP" 23 | +#elif test -d "c:/"; then 24 | +# tmpdir="c:/" 25 | +#else 26 | +# tmpdir="/tmp" 27 | fi 28 | -if test -d $tmpdir ; then 29 | +#if test -d $tmpdir ; then 30 | AC_MSG_RESULT($tmpdir) 31 | AC_DEFINE_UNQUOTED(TMPDIR, "$tmpdir") 32 | -else 33 | - AC_MSG_ERROR($tmpdir does not exist) 34 | -fi 35 | +#else 36 | +# AC_MSG_ERROR($tmpdir does not exist) 37 | +#fi 38 | 39 | # Test for case-insensitive filenames 40 | AC_MSG_CHECKING(for case-insensitive filenames) 41 | -------------------------------------------------------------------------------- /cups-filters/files/S82cups-browsed: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=cups-browsed 5 | ARGS="" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /cups-filters/patches/0002-qpdf-needs-at-least-c-17.patch: -------------------------------------------------------------------------------- 1 | From: Thorsten Alteholz 2 | Date: Fri, 10 Mar 2023 19:48:12 +0100 3 | Subject: qpdf needs at least c++17 4 | 5 | --- 6 | Makefile.am | 4 +++- 7 | 1 file changed, 3 insertions(+), 1 deletion(-) 8 | 9 | --- a/Makefile.am 10 | +++ b/Makefile.am 11 | @@ -528,7 +528,9 @@ pdftopdf_SOURCES = \ 12 | pdftopdf_CFLAGS = \ 13 | $(LIBQPDF_CFLAGS) \ 14 | $(CUPS_CFLAGS) 15 | -pdftopdf_CXXFLAGS = -std=c++0x $(pdftopdf_CFLAGS) # -std=c++11 16 | +# qpdf now needs at least c++17 17 | +#pdftopdf_CXXFLAGS = -std=c++0x $(pdftopdf_CFLAGS) # -std=c++11 18 | +pdftopdf_CXXFLAGS = $(pdftopdf_CFLAGS) 19 | pdftopdf_LDADD = \ 20 | $(LIBQPDF_LIBS) \ 21 | $(CUPS_LIBS) 22 | -------------------------------------------------------------------------------- /cups-filters/patches/0004-CVE-2024-47076.patch: -------------------------------------------------------------------------------- 1 | commit 95576ec3d20c109332d14672a807353cdc551018 2 | Author: Zdenek Dohnal 3 | Date: Thu Sep 26 23:09:29 2024 +0200 4 | 5 | cfGetPrinterAttributes5(): Validate response attributes before return 6 | 7 | The destination can be corrupted or forged, so validate the response 8 | to strenghten security measures. 9 | 10 | Fixes CVE-2024-47076 11 | 12 | --- a/cupsfilters/ipp.c 13 | +++ b/cupsfilters/ipp.c 14 | @@ -435,6 +435,14 @@ get_printer_attributes5(http_t *http_pri 15 | ippDelete(response2); 16 | } 17 | } 18 | + 19 | + // Check if the response is valid 20 | + if (!ippValidateAttributes(response)) 21 | + { 22 | + ippDelete(response); 23 | + response = NULL; 24 | + } 25 | + 26 | if (have_http == 0) httpClose(http_printer); 27 | if (uri) free(uri); 28 | return response; 29 | -------------------------------------------------------------------------------- /cups-filters/patches/0005-CVE-2024-47176.patch: -------------------------------------------------------------------------------- 1 | DEscription: Default BrowseRemoteProtocols should not include "cups" protocol. 2 | 3 | 4 | configure.ac | 4 ++-- 5 | 1 file changed, 2 insertions(+), 2 deletions(-) 6 | 7 | --- a/configure.ac 8 | +++ b/configure.ac 9 | @@ -428,9 +428,9 @@ AC_SUBST(GIO_UNIX_CFLAGS) 10 | AC_SUBST(GIO_UNIX_LIBS) 11 | 12 | AC_ARG_WITH([browseremoteprotocols], 13 | - [AS_HELP_STRING([--with-browseremoteprotocols=value], [Set which protocols to listen for in cups-browsed (default: dnssd cups)])], 14 | + [AS_HELP_STRING([--with-browseremoteprotocols=value], [Set which protocols to listen for in cups-browsed (default: dnssd)])], 15 | [with_browseremoteprotocols="$withval"], 16 | - [with_browseremoteprotocols="dnssd cups"] 17 | + [with_browseremoteprotocols="dnssd"] 18 | ) 19 | BROWSEREMOTEPROTOCOLS="$with_browseremoteprotocols" 20 | AC_SUBST(BROWSEREMOTEPROTOCOLS) 21 | -------------------------------------------------------------------------------- /cvs/patches/500-getline.patch: -------------------------------------------------------------------------------- 1 | --- a/lib/getline.h 2 | +++ b/lib/getline.h 3 | @@ -12,7 +12,7 @@ 4 | #define GETLINE_NO_LIMIT -1 5 | 6 | int 7 | - getline __PROTO ((char **_lineptr, size_t *_n, FILE *_stream)); 8 | + get_line __PROTO ((char **_lineptr, size_t *_n, FILE *_stream)); 9 | int 10 | getline_safe __PROTO ((char **_lineptr, size_t *_n, FILE *_stream, 11 | int limit)); 12 | --- a/lib/getline.c 13 | +++ b/lib/getline.c 14 | @@ -155,7 +155,7 @@ getstr (lineptr, n, stream, terminator, 15 | } 16 | 17 | int 18 | -getline (lineptr, n, stream) 19 | +get_line (lineptr, n, stream) 20 | char **lineptr; 21 | size_t *n; 22 | FILE *stream; 23 | -------------------------------------------------------------------------------- /daemonize/Makefile: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-2.0-only 2 | # 3 | # Copyright (C) 2011-2025 Entware 4 | 5 | include $(TOPDIR)/rules.mk 6 | 7 | PKG_NAME:=daemonize 8 | PKG_VERSION:=1.7.8 9 | PKG_REV:=18869a797dab12bf1c917ba3b4782fef484c407c 10 | PKG_RELEASE:=2 11 | 12 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 13 | PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) 14 | PKG_SOURCE_URL:=https://github.com/bmc/daemonize.git 15 | PKG_SOURCE_PROTO:=git 16 | PKG_SOURCE_VERSION:=$(PKG_REV) 17 | PKG_MIRROR_HASH:=caabb35256661efcacb27e4cf3a0c9d70eb11054382590ea804eb44e36fe061d 18 | 19 | include $(INCLUDE_DIR)/package.mk 20 | 21 | define Package/daemonize 22 | SECTION:=utils 23 | CATEGORY:=Utilities 24 | TITLE:=runs a command as a daemon 25 | URL:=http://software.clapper.org/daemonize/ 26 | MAINTAINER:=Entware team, https://entware.net 27 | endef 28 | 29 | define Package/daemonize/description 30 | daemonize is a command-line utility that runs a command as a Unix daemon. 31 | endef 32 | 33 | define Package/daemonize/install 34 | $(INSTALL_DIR) $(1)/opt/bin 35 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/daemonize $(1)/opt/bin 36 | endef 37 | 38 | $(eval $(call BuildPackage,daemonize)) 39 | -------------------------------------------------------------------------------- /daemonize/patches/010-default-path.patch: -------------------------------------------------------------------------------- 1 | --- a/daemonize.c 2 | +++ b/daemonize.c 3 | @@ -522,7 +522,7 @@ int main(int argc, char **argv) 4 | setenv("IFS"," \t\n",1); 5 | 6 | if (getenv("PATH") == NULL) 7 | - setenv("PATH","/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin", 1); 8 | + setenv("PATH","/opt/sbin:/opt/bin:/sbin:/bin:/usr/sbin:/usr/bin", 1); 9 | 10 | execvp(cmd[0], cmd); 11 | 12 | -------------------------------------------------------------------------------- /daemontools-encore/files/S03daemontools-encore: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=svscanboot 5 | ARGS="" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /daemontools-encore/patches/010-disable_runtime_tests.patch: -------------------------------------------------------------------------------- 1 | --- a/hasshsgr.h.do 2 | +++ b/hasshsgr.h.do 3 | @@ -1,4 +1,3 @@ 4 | dependon chkshsgr choose compile hasshsgr.h1 hasshsgr.h2 load \ 5 | tryshsgr.c warn-shsgr 6 | -formake './chkshsgr || ( cat warn-shsgr; exit 1 )' 7 | formake './choose clr tryshsgr hasshsgr.h1 hasshsgr.h2 > hasshsgr.h' 8 | --- a/rts.do 9 | +++ b/rts.do 10 | @@ -1,3 +1,3 @@ 11 | dependon programs rts.sh rts.exp 12 | -formake 'env - /bin/sh rts.sh 2>&1 | cat -v > rts' 13 | +formake 'cat rts.exp > rts' 14 | formake 'diff -u rts.exp rts' 15 | -------------------------------------------------------------------------------- /daemontools-encore/patches/020-svscanboot.patch: -------------------------------------------------------------------------------- 1 | --- a/svscanboot.sh 2 | +++ b/svscanboot.sh 3 | @@ -1,11 +1,11 @@ 4 | 5 | -PATH=/command:/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin 6 | +PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 7 | 8 | exec /dev/null 10 | exec 2>/dev/null 11 | 12 | -/command/svc -dx /service/* /service/*/log 13 | +/opt/bin/svc -dx /opt/var/service/* /opt/var/service/*/log 14 | 15 | -env - PATH=$PATH svscan /service 2>&1 | \ 16 | +env - PATH=$PATH svscan /opt/var/service 2>&1 | \ 17 | env - PATH=$PATH readproctitle service errors: ................................................................................................................................................................................................................................................................................................................................................................................................................ 18 | -------------------------------------------------------------------------------- /deluge/files/S80deluged: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | prefix="/opt" 4 | PATH=${prefix}/bin:${prefix}/sbin:/sbin:/bin:/usr/sbin:/usr/bin 5 | 6 | daemon_status () 7 | { 8 | [ -n "`pidof deluged`" ] 9 | } 10 | 11 | 12 | start() { 13 | echo "starting deluged" 14 | deluged -l /opt/etc/deluge/deluged.log -L error 15 | } 16 | 17 | stop() { 18 | echo "stopping deluged" 19 | killall deluged 20 | } 21 | 22 | case "$1" in 23 | start) 24 | if daemon_status 25 | then 26 | echo "deluged already running" 27 | else 28 | start 29 | fi 30 | ;; 31 | stop) 32 | if daemon_status 33 | then 34 | stop 35 | else 36 | echo "deluged is not running" 37 | fi 38 | ;; 39 | restart) 40 | if daemon_status 41 | then 42 | stop 43 | fi 44 | sleep 4 45 | if ! daemon_status 46 | then 47 | start 48 | fi 49 | ;; 50 | status) 51 | if daemon_status 52 | then 53 | echo "deluged is running" 54 | else 55 | echo "deluged is not running" 56 | fi 57 | ;; 58 | *) 59 | echo "Usage: $0 (start|stop|restart|status)" 60 | exit 1 61 | ;; 62 | esac 63 | 64 | exit 0 65 | -------------------------------------------------------------------------------- /deluge/files/S81deluge-web: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | prefix="/opt" 4 | PATH=${prefix}/bin:${prefix}/sbin:/sbin:/bin:/usr/sbin:/usr/bin 5 | 6 | daemon_status () 7 | { 8 | [ -n "`pidof deluge-web`" ] 9 | } 10 | 11 | 12 | start() { 13 | echo "starting deluge-web" 14 | deluge-web -l /opt/etc/deluge/deluge-web.log -L error -p 888 15 | } 16 | 17 | stop() { 18 | echo "stopping deluge-web" 19 | killall deluge-web 20 | } 21 | 22 | case "$1" in 23 | start) 24 | if daemon_status 25 | then 26 | echo "deluge-web already running" 27 | else 28 | start 29 | fi 30 | ;; 31 | stop) 32 | if daemon_status 33 | then 34 | stop 35 | else 36 | echo "deluge-web is not running" 37 | fi 38 | ;; 39 | restart) 40 | if daemon_status 41 | then 42 | stop 43 | fi 44 | sleep 4 45 | if ! daemon_status 46 | then 47 | start 48 | fi 49 | ;; 50 | status) 51 | if daemon_status 52 | then 53 | echo "deluge-web is running" 54 | else 55 | echo "deluge-web is not running" 56 | fi 57 | ;; 58 | *) 59 | echo "Usage: $0 (start|stop|restart|status)" 60 | exit 1 61 | ;; 62 | esac 63 | 64 | exit 0 65 | -------------------------------------------------------------------------------- /deluge/patches/020-fix_geoip_path.patch: -------------------------------------------------------------------------------- 1 | --- a/deluge/core/preferencesmanager.py 2 | +++ b/deluge/core/preferencesmanager.py 3 | @@ -117,7 +117,7 @@ DEFAULT_PREFS = { 4 | }, 5 | 'peer_tos': '0x00', 6 | 'rate_limit_ip_overhead': True, 7 | - 'geoip_db_location': '/usr/share/GeoIP/GeoIP.dat', 8 | + 'geoip_db_location': '/opt/share/GeoIP/GeoIP.dat', 9 | 'cache_size': 512, 10 | 'cache_expiry': 60, 11 | 'auto_manage_prefer_seeds': False, 12 | -------------------------------------------------------------------------------- /dfc/patches/010-prevent_unwanted_color_pollution.patch: -------------------------------------------------------------------------------- 1 | From 99ec484ec28675b9928a3740450272e35c20227d Mon Sep 17 00:00:00 2001 2 | From: Xavier G 3 | Date: Fri, 1 May 2020 13:26:59 +0000 4 | Subject: [PATCH] text header: prevent unwanted color pollution of the next 5 | line. 6 | 7 | --- 8 | src/export/text.c | 5 +++-- 9 | 1 file changed, 3 insertions(+), 2 deletions(-) 10 | 11 | --- a/src/export/text.c 12 | +++ b/src/export/text.c 13 | @@ -132,9 +132,10 @@ text_disp_header(void) 14 | 15 | if (oflag) 16 | (void)printf("%-*s", max.mntopts, _("MOUNT OPTIONS")); 17 | - (void)printf("\n"); 18 | - 19 | + /* reset color before newline to prevent unwanted pollution of the next line */ 20 | reset_color(); 21 | + 22 | + (void)printf("\n"); 23 | } 24 | 25 | /* 26 | -------------------------------------------------------------------------------- /dislocker/patches/010-disable-usr-path.patch: -------------------------------------------------------------------------------- 1 | --- a/CMakeLists.txt 2 | +++ b/CMakeLists.txt 3 | @@ -22,7 +22,7 @@ project (dislocker C) 4 | 5 | set (AUTHOR "Romain Coltel") 6 | 7 | -find_program (GIT_EXE NAMES git PATHS /usr/bin /usr/local/bin) 8 | +#find_program (GIT_EXE NAMES git PATHS /usr/bin /usr/local/bin) 9 | 10 | if(GIT_EXE) 11 | execute_process ( 12 | -------------------------------------------------------------------------------- /dislocker/patches/020-ssl-lib-detection.patch: -------------------------------------------------------------------------------- 1 | --- a/cmake/FindPolarSSL.cmake 2 | +++ b/cmake/FindPolarSSL.cmake 3 | @@ -13,7 +13,7 @@ 4 | 5 | include(FindPackageHandleStandardArgs) 6 | 7 | -find_path(POLARSSL_INCLUDE_DIRS NAMES mbedtls/ssl.h HINTS /usr/local/include) 8 | +find_path(POLARSSL_INCLUDE_DIRS NAMES mbedtls/ssl.h HINTS) 9 | set(POLARSSL_REAL_NAME MBEDTLS) 10 | if( "${POLARSSL_INCLUDE_DIRS}" STREQUAL "POLARSSL_INCLUDE_DIRS-NOTFOUND") 11 | find_path(POLARSSL_INCLUDE_DIRS NAMES polarssl/ssl.h) 12 | -------------------------------------------------------------------------------- /dislocker/patches/030-support-mbedtls-3x.patch: -------------------------------------------------------------------------------- 1 | --- a/cmake/FindPolarSSL.cmake 2 | +++ b/cmake/FindPolarSSL.cmake 3 | @@ -66,8 +66,8 @@ if( NOT CMAKE_CROSSCOMPILING ) 4 | ) 5 | else() 6 | execute_process( 7 | - COMMAND grep -w "MBEDTLS_VERSION_STRING" ${POLARSSL_INCLUDE_DIRS}/${POLARSSL_INC_FOLDER}/version.h 8 | - COMMAND sed -e "s@\s\+@ @g" 9 | + COMMAND grep -w "MBEDTLS_VERSION_STRING" ${POLARSSL_INCLUDE_DIRS}/${POLARSSL_INC_FOLDER}/build_info.h 10 | + COMMAND sed -e "s@\\s\\+@ @g" 11 | COMMAND cut -d\ -f3 12 | COMMAND sed -e "s@\"@@g" 13 | OUTPUT_VARIABLE POLARSSL_VERSION_STRING 14 | --- a/include/dislocker/ssl_bindings.h.in 15 | +++ b/include/dislocker/ssl_bindings.h.in 16 | @@ -26,8 +26,13 @@ 17 | /* 18 | * Here stand the bindings for polarssl SHA256/SHA2/SHA-2 function for dislocker 19 | */ 20 | -#include "@POLARSSL_INC_FOLDER@/config.h" 21 | #include "@POLARSSL_INC_FOLDER@/version.h" 22 | +#if MBEDTLS_VERSION_MAJOR >= 3 23 | +#include "@POLARSSL_INC_FOLDER@/mbedtls_config.h" 24 | +#include "@POLARSSL_INC_FOLDER@/compat-2.x.h" 25 | +#else 26 | +#include "@POLARSSL_INC_FOLDER@/config.h" 27 | +#endif 28 | #include "@POLARSSL_INC_FOLDER@/aes.h" 29 | 30 | // Function's name changed 31 | -------------------------------------------------------------------------------- /encfs/patches/500-output-file-is-a-directory.patch: -------------------------------------------------------------------------------- 1 | --- a/CMakeLists.txt 2 | +++ b/CMakeLists.txt 3 | @@ -320,7 +320,7 @@ set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL 4 | 5 | add_executable (encfs-bin encfs/main.cpp) 6 | target_link_libraries (encfs-bin encfs) 7 | -set_target_properties (encfs-bin PROPERTIES OUTPUT_NAME "encfs") 8 | +set_target_properties (encfs-bin PROPERTIES OUTPUT_NAME "encfs.bin") 9 | install (TARGETS encfs-bin DESTINATION bin) 10 | 11 | if(LINT AND CLANG_TIDY_EXE) 12 | -------------------------------------------------------------------------------- /entware-opt/files/.inputrc: -------------------------------------------------------------------------------- 1 | set meta-flag on 2 | set convert-meta off 3 | set output-meta on 4 | -------------------------------------------------------------------------------- /entware-opt/files/.profile: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | . /opt/etc/profile 4 | -------------------------------------------------------------------------------- /entware-opt/files/group.1: -------------------------------------------------------------------------------- 1 | root:x:0:root 2 | nobody:x:99: 3 | -------------------------------------------------------------------------------- /entware-opt/files/passwd.1: -------------------------------------------------------------------------------- 1 | root:$1$chUKvN9o$BmKP1BtdSaTDSxNByBJo8.:0:0:Root:/opt/root:/opt/bin/sh 2 | nobody:x:99:99::/opt/home:/opt/bin/false 3 | -------------------------------------------------------------------------------- /entware-opt/files/profile: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Please note it's not a system-wide settings, it's only for a current 4 | # terminal session. Point your f\w (if necessery) to execute /opt/etc/profile 5 | # at console logon. 6 | 7 | is_substring(){ 8 | case "$2" in 9 | *$1*) return 0;; 10 | *) return 1;; 11 | esac 12 | } 13 | 14 | # Set CHECK_OPT_PATH to 1 to check /opt/bin and /opt/sbin in PATH 15 | CHECK_OPT_PATH=0 16 | if [ $CHECK_OPT_PATH = 1 ]; then 17 | is_substring "/opt/bin" $PATH 18 | [ $? == 1 ] && export PATH=/opt/bin:$PATH 19 | is_substring "/opt/sbin" $PATH 20 | [ $? == 1 ] && export PATH=/opt/sbin:$PATH 21 | else 22 | export PATH=/opt/bin:/opt/sbin:$PATH 23 | fi 24 | export TERMINFO=/opt/share/terminfo 25 | export TERM=xterm 26 | export TMP=/opt/tmp 27 | export TEMP=/opt/tmp 28 | unset LD_PRELOAD 29 | unset LD_LIBRARY_PATH 30 | alias mc="mc -c" 31 | 32 | # You may define localization 33 | #export LANG='ru_RU.UTF-8' 34 | #export LC_ALL='ru_RU.UTF-8' 35 | export LANG='en_US.UTF-8' 36 | export LC_ALL='en_US.UTF-8' 37 | -------------------------------------------------------------------------------- /entware-opt/files/rc.unslung: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | PATH=/opt/sbin:/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 4 | 5 | # Start/stop all init scripts in /opt/etc/init.d including symlinks 6 | # starting them in numerical order and 7 | # stopping them in reverse numerical order 8 | 9 | #logger "Started $0${*:+ $*}." 10 | unset LD_LIBRARY_PATH 11 | unset LD_PRELOAD 12 | 13 | ACTION=$1 14 | CALLER=$2 15 | 16 | if [ $# -lt 1 ]; then 17 | printf "Usage: $0 {start|stop|restart|reconfigure|check|kill}\n" >&2 18 | exit 1 19 | fi 20 | 21 | [ $ACTION = stop -o $ACTION = restart -o $ACTION = kill ] && ORDER="-r" 22 | 23 | for i in $(/opt/bin/find /opt/etc/init.d/ -perm '-u+x' -name 'S*' | sort $ORDER ) ; 24 | do 25 | case "$i" in 26 | S* | *.sh ) 27 | # Source shell script for speed. 28 | trap "" INT QUIT TSTP EXIT 29 | #set $1 30 | #echo "trying $i" >> /tmp/rc.log 31 | . $i $ACTION $CALLER 32 | ;; 33 | *) 34 | # No sh extension, so fork subprocess. 35 | $i $ACTION $CALLER 36 | ;; 37 | esac 38 | done 39 | -------------------------------------------------------------------------------- /entware-opt/files/shells.1: -------------------------------------------------------------------------------- 1 | /bin/sh 2 | /bin/ash 3 | /opt/bin/sh 4 | /opt/bin/ash 5 | -------------------------------------------------------------------------------- /espeak-ng/patches/060-x.patch: -------------------------------------------------------------------------------- 1 | Avoid complaining about our own files being executable :) 2 | 3 | --- 4 | tests/non-executable-files-with-executable-bit.test | 1 + 5 | 1 file changed, 1 insertion(+) 6 | 7 | --- a/tests/non-executable-files-with-executable-bit.test 8 | +++ b/tests/non-executable-files-with-executable-bit.test 9 | @@ -4,6 +4,7 @@ echo -n "testing files for executable bi 10 | 11 | cd $(dirname $0)/.. 12 | find * -executable -type f | \ 13 | + grep -vE "^debian/" | # Ignore Debian files \ 14 | grep -vE "compile|config\.(guess|status|sub)|configure|depcomp|install-sh|libtool|missing" | # Ignore autotools output \ 15 | grep -vE "build" | # Ignore cmake output \ 16 | grep -vE ".*\.test|tests/common|src(/\.libs)?/(e?speak-ng|.*\.so\..*)|src/\.libs/lt-espeak-ng|android" | # Ignore built programs and libraries \ 17 | -------------------------------------------------------------------------------- /espeak-ng/patches/070-CI.patch: -------------------------------------------------------------------------------- 1 | CI on salsa seems to be detecting an exec bit ?? 2 | 3 | --- 4 | tests/non-executable-files-with-executable-bit.test | 1 + 5 | 1 file changed, 1 insertion(+) 6 | 7 | --- a/tests/non-executable-files-with-executable-bit.test 8 | +++ b/tests/non-executable-files-with-executable-bit.test 9 | @@ -4,6 +4,7 @@ echo -n "testing files for executable bi 10 | 11 | cd $(dirname $0)/.. 12 | find * -executable -type f | \ 13 | + grep -vE "^src/include/espeak-ng/speak_lib.h$" | # False positive in CI 14 | grep -vE "^debian/" | # Ignore Debian files \ 15 | grep -vE "compile|config\.(guess|status|sub)|configure|depcomp|install-sh|libtool|missing" | # Ignore autotools output \ 16 | grep -vE "build" | # Ignore cmake output \ 17 | -------------------------------------------------------------------------------- /espeak-ng/patches/080-nocard.patch: -------------------------------------------------------------------------------- 1 | --- 2 | tests/api.c | 2 +- 3 | 1 file changed, 1 insertion(+), 1 deletion(-) 4 | 5 | --- a/tests/api.c 6 | +++ b/tests/api.c 7 | @@ -639,7 +639,7 @@ main(int argc, char **argv) 8 | else if ((dir = strrchr(progdir, '/')) != NULL) *dir = 0; 9 | 10 | test_espeak_terminate_without_initialize(); 11 | - test_espeak_initialize(); 12 | + //test_espeak_initialize(); 13 | 14 | test_espeak_synth(); 15 | test_espeak_synth(); // Check that this does not crash when run a second time. 16 | -------------------------------------------------------------------------------- /espeak-ng/patches/090-clang-target.patch: -------------------------------------------------------------------------------- 1 | https://github.com/espeak-ng/espeak-ng/pull/2063 2 | 3 | --- 4 | configure.ac | 4 ++-- 5 | 1 file changed, 2 insertions(+), 2 deletions(-) 6 | 7 | --- a/configure.ac 8 | +++ b/configure.ac 9 | @@ -140,8 +140,8 @@ if test "$with_libfuzzer" = yes ; then 10 | AC_LANG_PUSH(C) 11 | TEMP_CFLAGS="$CFLAGS" 12 | TEMP_LIBS="$LIBS" 13 | - HOST_CPU="`$CC -print-multiarch | sed -e 's/-.*//'`" 14 | - LIBFUZZER_NO_MAIN="`$CC -print-runtime-dir`/libclang_rt.fuzzer_no_main-$HOST_CPU.a -lstdc++ -lm" 15 | + HOST_CPU="`$CC -print-target-triple | sed -e 's/-.*//'`" 16 | + LIBFUZZER_NO_MAIN="`$CC -print-file-name=libclang_rt.fuzzer_no_main-$HOST_CPU.a` -lstdc++ -lm" 17 | CFLAGS="$CFLAGS -fsanitize=fuzzer-no-link" 18 | LIBS="$LIBS $LIBFUZZER_NO_MAIN" 19 | AC_MSG_CHECKING([if $CC supports fuzzer with the -fsanitize=fuzzer flag]) 20 | -------------------------------------------------------------------------------- /espeak-ng/patches/110-th_dict.patch: -------------------------------------------------------------------------------- 1 | commit 315fec6690fc9f86c5e1a40c41d29025d4b7db55 2 | Author: Samuel Thibault 3 | Date: Sun Dec 15 13:34:29 2024 +0100 4 | 5 | Fix generating th_dict 6 | 7 | --- a/Makefile.am 8 | +++ b/Makefile.am 9 | @@ -904,8 +904,8 @@ espeak-ng-data/te_dict: dictsource/te_li 10 | ti: espeak-ng-data/ti_dict 11 | espeak-ng-data/ti_dict: dictsource/ti_list dictsource/ti_rules dictsource/ti_extra dictsource/ti_emoji 12 | 13 | -th: espeak-ng-data/th 14 | -espeak-ng-data/th: dictsource/th dictsource/th dictsource/te_extra 15 | +th: espeak-ng-data/th_dict 16 | +espeak-ng-data/th_dict: dictsource/th_list dictsource/th_rules dictsource/te_extra 17 | 18 | tk: espeak-ng-data/tk_dict 19 | espeak-ng-data/tk_dict: dictsource/tk_list dictsource/tk_listx dictsource/tk_rules dictsource/tk_extra 20 | -------------------------------------------------------------------------------- /espeak-ng/patches/130-espeak-stdin.patch: -------------------------------------------------------------------------------- 1 | commit 33b6daf420710eca2f6b2dcdc8eb3f6d72e1d313 2 | Author: Samuel Thibault 3 | Date: Sat Dec 21 00:07:12 2024 +0100 4 | 5 | Fix dropping last byte of stdin input 6 | 7 | This got broken with eaa0c9aa08350ce8a1343aed4c0a87c1cc329b0e ("Fix 8 | truncated fgetc return value in main(espeak-ng.c). [Coverity]") which 9 | rightfully stopped adding a bogus EOF at the end of the input, which 10 | this line was probably dropping just by luck. 11 | 12 | Fixes brailcom/speechd#978 13 | 14 | --- a/src/espeak-ng.c 15 | +++ b/src/espeak-ng.c 16 | @@ -762,8 +762,8 @@ int main(int argc, char **argv) 17 | } 18 | } 19 | if (ix > 0) { 20 | - p_text[ix-1] = 0; 21 | - espeak_Synth(p_text, ix+1, 0, POS_CHARACTER, 0, synth_flags, NULL, NULL); 22 | + p_text[ix] = 0; 23 | + espeak_Synth(p_text, ix, 0, POS_CHARACTER, 0, synth_flags, NULL, NULL); 24 | } 25 | } 26 | 27 | -------------------------------------------------------------------------------- /exiv2/patches/020-remove_redunant_compile_flags.patch: -------------------------------------------------------------------------------- 1 | --- a/cmake/compilerFlags.cmake 2 | +++ b/cmake/compilerFlags.cmake 3 | @@ -28,7 +28,7 @@ if ( MINGW OR UNIX OR MSYS ) # MINGW, Li 4 | endif() 5 | 6 | 7 | - if (COMPILER_IS_GCC OR COMPILER_IS_CLANG) 8 | + if (False) 9 | # This fails under Fedora - MinGW - Gcc 8.3 10 | if (NOT (MINGW OR CYGWIN OR CMAKE_HOST_SOLARIS)) 11 | if (NOT APPLE) # Don't know why this isn't working correctly on Apple with M1 processor 12 | -------------------------------------------------------------------------------- /expect/patches/020-allow-tcl-build-directory.patch: -------------------------------------------------------------------------------- 1 | From: Andrew Ruder 2 | Subject: [PATCH] Allow tcl build directory for linking 3 | 4 | Some small changes to use TCL_BUILD_LIB_SPEC instead of TCL_LIB_SPEC for 5 | linking against tcl directly out of its build directory. 6 | 7 | Signed-off-by: Andrew Ruder 8 | --- 9 | 10 | --- a/Makefile.in 11 | +++ b/Makefile.in 12 | @@ -393,7 +393,7 @@ expect: exp_main_exp.o $(PKG_LIB_FILE) 13 | @LDFLAGS_DEFAULT@ \ 14 | -o expect exp_main_exp.o \ 15 | @EXP_BUILD_LIB_SPEC@ \ 16 | - @TCL_LIB_SPEC@ \ 17 | + @TCL_BUILD_LIB_SPEC@ \ 18 | @TCL_DL_LIBS@ @PKG_LIBS@ @MATH_LIBS@ \ 19 | @TCL_CC_SEARCH_FLAGS@ \ 20 | @EXP_CC_SEARCH_FLAGS@ 21 | --- a/tclconfig/tcl.m4 22 | +++ b/tclconfig/tcl.m4 23 | @@ -412,6 +412,7 @@ AC_DEFUN([TEA_LOAD_TCLCONFIG], [ 24 | AC_SUBST(TCL_LIB_FILE) 25 | AC_SUBST(TCL_LIB_FLAG) 26 | AC_SUBST(TCL_LIB_SPEC) 27 | + AC_SUBST(TCL_BUILD_LIB_SPEC) 28 | 29 | AC_SUBST(TCL_STUB_LIB_FILE) 30 | AC_SUBST(TCL_STUB_LIB_FLAG) 31 | -------------------------------------------------------------------------------- /expect/patches/030-no_host_tclsh.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile.in 2 | +++ b/Makefile.in 3 | @@ -380,7 +380,7 @@ dist: dist-clean doc 4 | cp $(DIST_ROOT)/$(PKG_DIR).tar.gz $(top_builddir) 5 | 6 | $(SCRIPTS): 7 | - $(TCLSH) $(srcdir)/fixline1 $(SHORT_BINDIR) < $(srcdir)/example/$@ > $@ 8 | + cp $(srcdir)/example/$@ $(DESTDIR)$(bindir)/expect_$@ 9 | 10 | ## We cannot use TCL_LIBS below (after TCL_LIB_SPEC) because its 11 | ## expansion references the contents of LIBS, which contains linker 12 | -------------------------------------------------------------------------------- /ext4magic/patches/010-fix-paths.patch: -------------------------------------------------------------------------------- 1 | --- a/src/ext4magic.c 2 | +++ b/src/ext4magic.c 3 | @@ -741,10 +741,10 @@ if ((mode && magicscan) || disaster){ 4 | } 5 | magicfile = malloc(64); 6 | memset(magicfile,0,64); 7 | - strncpy (magicfile,"/usr/share/misc/ext4magic",25); 8 | + strncpy (magicfile,"/opt/share/misc/ext4magic",25); 9 | retval = stat (magicfile, &filestat); 10 | if (retval){ 11 | - strncpy (magicfile,"/usr/local/share/misc/ext4magic",31); 12 | + strncpy (magicfile,"/opt/usr/share/misc/ext4magic",29); 13 | retval = stat (magicfile, &filestat); 14 | } 15 | if ((! retval) && (S_ISREG(filestat.st_mode) && (! access(magicfile,R_OK)))) { 16 | -------------------------------------------------------------------------------- /ext4magic/patches/020-fix-new-e2fs.patch: -------------------------------------------------------------------------------- 1 | --- a/src/inode.c 2 | +++ b/src/inode.c 3 | @@ -404,14 +404,14 @@ void dump_inode(FILE *out, const char *p 4 | fprintf(out, 5 | "%sFile ACL: %d Directory ACL: %d Translator: %d\n", 6 | prefix, 7 | - inode->i_file_acl, LINUX_S_ISDIR(inode->i_mode) ? inode->i_dir_acl : 0, 8 | + inode->i_file_acl, LINUX_S_ISDIR(inode->i_mode) ? inode->i_file_acl : 0, 9 | inode->osd1.hurd1.h_i_translator); 10 | else 11 | fprintf(out, "%sFile ACL: %llu Directory ACL: %d\n", 12 | prefix, 13 | inode->i_file_acl | ((long long) 14 | (inode->osd2.linux2.l_i_file_acl_high) << 32), 15 | - LINUX_S_ISDIR(inode->i_mode) ? inode->i_dir_acl : 0); 16 | + LINUX_S_ISDIR(inode->i_mode) ? inode->i_file_acl : 0); 17 | if (os == EXT2_OS_LINUX) 18 | fprintf(out, "%sLinks: %d Blockcount: %llu\n", 19 | prefix, inode->i_links_count, 20 | -------------------------------------------------------------------------------- /ext4magic/patches/030-fix-missing-hdrs.patch: -------------------------------------------------------------------------------- 1 | --- a/src/recover.c 2 | +++ b/src/recover.c 3 | @@ -20,7 +20,8 @@ 4 | #include 5 | #include 6 | #include 7 | -#include 8 | +#include 9 | +#include 10 | #include 11 | #include 12 | #include 13 | -------------------------------------------------------------------------------- /ext4magic/patches/040-fix-stringop-overflow.patch: -------------------------------------------------------------------------------- 1 | --- a/src/file_type.c 2 | +++ b/src/file_type.c 3 | @@ -7698,7 +7698,7 @@ void get_file_property(struct found_data 4 | 5 | case 0x0104 : //octet-stream 6 | // this->func = file_octet-stream; 7 | - strncat(this->name,".unknown",8); 8 | + strcat(this->name,".unknown"); 9 | break; 10 | 11 | case 0x0105 : //ogg 12 | @@ -8297,7 +8297,7 @@ void get_file_property(struct found_data 13 | 14 | case 0x0313 : //x-unknown 15 | // this->func = file_x-unknown ; 16 | - strncat(this->name,".unknown",8); 17 | + strcat(this->name,".unknown"); 18 | break; 19 | 20 | case 0x0314 : //x-xcursor 21 | @@ -8653,7 +8653,7 @@ void get_file_property(struct found_data 22 | 23 | case 0x0711 : //x-unknown 24 | // this->func = file_x-unknown ; 25 | - strncat(this->name,".unknown",8); 26 | + strcat(this->name,".unknown"); 27 | break; 28 | 29 | case 0x0712 : //x-ms-asf 30 | -------------------------------------------------------------------------------- /extundelete/patches/010-fix_segmentation_fault.patch: -------------------------------------------------------------------------------- 1 | From: Debian Security Tools 2 | Date: Tue, 4 Sep 2018 11:50:03 +0200 3 | Subject: fixes segmentation fault when trying to restore files 4 | 5 | Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=670815 6 | Origin: Debian bug #670815 7 | Tested-By: Antonio Terceiro 8 | Last-Update: 2012-12-13 9 | --- 10 | src/block.c | 1 + 11 | 1 file changed, 1 insertion(+) 12 | 13 | --- a/src/block.c 14 | +++ b/src/block.c 15 | @@ -77,6 +77,7 @@ struct ext2_extent_handle { 16 | ext2_filsys fs; 17 | ext2_ino_t ino; 18 | struct ext2_inode *inode; 19 | + struct ext2_inode inodebuf; 20 | int type; 21 | int level; 22 | int max_depth; 23 | -------------------------------------------------------------------------------- /extundelete/patches/020-fix_ftbfs.patch: -------------------------------------------------------------------------------- 1 | From: Hilko Bengen 2 | Date: Tue, 4 Sep 2018 11:50:03 +0200 3 | Subject: Fix FTBFS with current e2fsprogs 4 | 5 | --- 6 | src/insertionops.cc | 2 +- 7 | 1 file changed, 1 insertion(+), 1 deletion(-) 8 | 9 | --- a/src/insertionops.cc 10 | +++ b/src/insertionops.cc 11 | @@ -33,7 +33,7 @@ std::ostream& operator<<(std::ostream& o 12 | os << "File flags: " << inode.i_flags << std::endl; 13 | os << "File version (for NFS): " << inode.i_generation << std::endl; 14 | os << "File ACL: " << inode.i_file_acl << std::endl; 15 | - os << "Directory ACL: " << inode.i_dir_acl << std::endl; 16 | + os << "High 32 bits of Size: " << inode.i_size_high << std::endl; 17 | os << "Fragment address: " << inode.i_faddr << std::endl; 18 | os << "Direct blocks: "; 19 | for (int n = 0; n < EXT2_NDIR_BLOCKS; n++) 20 | -------------------------------------------------------------------------------- /extundelete/patches/030-fix-configure.ac-to-work-with-recent-automake-autoconf.patch: -------------------------------------------------------------------------------- 1 | From: =?utf-8?q?Rapha=C3=ABl_Hertzog?= 2 | Date: Tue, 4 Sep 2018 11:52:41 +0200 3 | Subject: Fix configure.ac to work with recent automake/autoconf 4 | 5 | --- 6 | configure.ac | 2 +- 7 | 1 file changed, 1 insertion(+), 1 deletion(-) 8 | 9 | --- a/configure.ac 10 | +++ b/configure.ac 11 | @@ -5,10 +5,10 @@ AC_PREREQ(2.59) 12 | m4_ifval(m4_esyscmd([printf %s $EU_VER]), 13 | [m4_define(EU_VERSION, m4_esyscmd([printf $EU_VER])) ], 14 | [m4_define(EU_VERSION, m4_esyscmd([git describe --tags| tr -d '\010-\012'])) ]) 15 | -AC_INIT(extundelete, EU_VERSION, extundelete.sourceforge.net) 16 | +AC_INIT([extundelete], [EU_VERSION] [extundelete.sourceforge.net]) 17 | echo "Configuring ${PACKAGE_STRING}" 18 | -AM_INIT_AUTOMAKE([-Wall -Werror foreign]) 19 | AC_CONFIG_SRCDIR([src/extundelete.cc]) 20 | +AM_INIT_AUTOMAKE 21 | AC_CONFIG_HEADERS([config.h]) 22 | 23 | # Checks for programs and options necessary during compilation. 24 | -------------------------------------------------------------------------------- /fake-hwclock/files/S01fake-hwclock: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | prefix="/opt" 4 | PATH=${prefix}/bin:${prefix}/sbin:/sbin:/bin:/usr/sbin:/usr/bin 5 | 6 | start() { 7 | echo "Loading system clock from file..." 8 | fake-hwclock load 9 | } 10 | 11 | stop() { 12 | echo "Saving system clock to file..." 13 | fake-hwclock save 14 | } 15 | 16 | case "$1" in 17 | start) 18 | start 19 | ;; 20 | stop) 21 | stop 22 | ;; 23 | *) 24 | echo "Usage: $0 (start|stop)" 25 | exit 1 26 | ;; 27 | esac 28 | 29 | exit 0 30 | -------------------------------------------------------------------------------- /fake-hwclock/patches/010-data-path.patch: -------------------------------------------------------------------------------- 1 | --- a/fake-hwclock 2 | +++ b/fake-hwclock 3 | @@ -11,7 +11,7 @@ 4 | # License: GPLv2, see COPYING 5 | 6 | if [ "$FILE"x = ""x ] ; then 7 | - FILE=/etc/fake-hwclock.data 8 | + FILE=/opt/etc/fake-hwclock.data 9 | fi 10 | 11 | # Midnight on the day of this release, used as a sanity check when 12 | -------------------------------------------------------------------------------- /fossil/patches/010-cross_compile.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile.classic 2 | +++ b/Makefile.classic 3 | @@ -27,7 +27,7 @@ OBJDIR = ./bld 4 | # See TCC below for the C compiler for building the finished binary. 5 | # 6 | BCC = gcc 7 | -BCCFLAGS = $(CFLAGS) 8 | +BCCFLAGS = 9 | 10 | #### The suffix to add to final executable file. When cross-compiling 11 | # to windows, make this ".exe". Otherwise leave it blank. 12 | @@ -42,7 +42,7 @@ E = 13 | # 14 | #TCC = gcc -O6 15 | #TCC = gcc -g -O0 -Wall -fprofile-arcs -ftest-coverage 16 | -TCC = gcc -g -Os -Wall 17 | +TCC = $(CC) 18 | 19 | # To add support for HTTPS 20 | TCC += -DFOSSIL_ENABLE_SSL 21 | @@ -84,7 +84,7 @@ TCLSH = tclsh 22 | 23 | CFLAGS += -fPIE 24 | CPPFLAGS += -I. -I$(SRCDIR_extsrc) -I$(SRCDIR) 25 | -LIB = -lm -lz -lssl 26 | +#LIB = -lm -lz -lssl 27 | INSTALLDIR = $(DESTDIR)$(prefix)/bin 28 | SQLITE3_ORIGINAL = 0 29 | USE_LINENOISE = 1 30 | -------------------------------------------------------------------------------- /fossil/patches/020-source_includes.patch: -------------------------------------------------------------------------------- 1 | --- a/src/main.mk 2 | +++ b/src/main.mk 3 | @@ -11,7 +11,7 @@ 4 | # 5 | 6 | XBCC = $(BCC) $(BCCFLAGS) 7 | -XTCC = $(TCC) $(CFLAGS_INCLUDE) -I$(OBJDIR) $(TCCFLAGS) 8 | +XTCC = $(TCC) -I. -I$(SRCDIR) -I$(SRCDIR_extsrc) -I$(OBJDIR) $(TCCFLAGS) 9 | 10 | TESTFLAGS := -quiet 11 | 12 | -------------------------------------------------------------------------------- /fzy/patches/010-cross-compile_flags.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile 2 | +++ b/Makefile 3 | @@ -1,6 +1,6 @@ 4 | VERSION=1.0 5 | 6 | -CPPFLAGS=-DVERSION=\"${VERSION}\" -D_GNU_SOURCE 7 | +CPPFLAGS+=-DVERSION=\"${VERSION}\" -D_GNU_SOURCE 8 | CFLAGS+=-Wall -Wextra -g -std=c99 -O3 -pedantic -Ideps 9 | PREFIX?=/usr/local 10 | MANDIR?=$(PREFIX)/share/man 11 | @@ -29,7 +29,7 @@ check: test/fzytest 12 | $(DEBUGGER) ./test/fzytest 13 | 14 | fzy: $(OBJECTS) 15 | - $(CC) $(CFLAGS) $(CCFLAGS) -o $@ $(OBJECTS) $(LIBS) 16 | + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJECTS) $(LIBS) 17 | 18 | %.o: %.c config.h 19 | $(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $< 20 | -------------------------------------------------------------------------------- /gnuchess/patches/001-ini.patch: -------------------------------------------------------------------------------- 1 | --- a/src/gnuchess.ini 2 | +++ b/src/gnuchess.ini 3 | @@ -6,16 +6,16 @@ LogFile = adapter.log 4 | Resign = true 5 | ResignMoves = 1 # 1 is safe for Fruit 6 | 7 | -Book = false 8 | +Book = true 9 | BookFile = smallbook.bin 10 | 11 | [Engine] 12 | 13 | # standard UCI options 14 | 15 | -Hash = 256 # in MB 16 | +Hash = 16 # in MB 17 | 18 | -NalimovCache = 16 # in MB 19 | +NalimovCache = 2 # in MB 20 | 21 | OwnBook = false # false for no book (e.g. Nunn-like matches) 22 | BookFile = smallbook.bin 23 | -------------------------------------------------------------------------------- /go/patches/020-group-passwd.patch: -------------------------------------------------------------------------------- 1 | --- a/src/os/user/lookup.go 2 | +++ b/src/os/user/lookup.go 3 | @@ -7,8 +7,8 @@ package user 4 | import "sync" 5 | 6 | const ( 7 | - userFile = "/etc/passwd" 8 | - groupFile = "/etc/group" 9 | + userFile = "/opt/etc/passwd" 10 | + groupFile = "/opt/etc/group" 11 | ) 12 | 13 | var colon = []byte{':'} 14 | -------------------------------------------------------------------------------- /goaccess/patches/010-bin2c.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile.am 2 | +++ b/Makefile.am 3 | @@ -12,9 +12,6 @@ dist_noinst_DATA = \ 4 | resources/js/d3.v7.min.js \ 5 | resources/js/hogan.min.js 6 | 7 | -noinst_PROGRAMS = bin2c 8 | -bin2c_SOURCES = src/bin2c.c 9 | - 10 | BUILT_SOURCES = \ 11 | src/tpls.h \ 12 | src/bootstrapcss.h \ 13 | @@ -43,6 +40,9 @@ CLEANFILES = \ 14 | resources/js/charts.js.tmp \ 15 | resources/js/app.js.tmp 16 | 17 | +bin2c$(EXEEXT): 18 | + true 19 | + 20 | # Tpls 21 | src/tpls.h: bin2c$(EXEEXT) $(srcdir)/resources/tpls.html 22 | if HAS_SEDTR 23 | -------------------------------------------------------------------------------- /goaccess/patches/020-no_translation.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile.am 2 | +++ b/Makefile.am 3 | @@ -225,7 +225,7 @@ AM_CFLAGS += -Wdeclaration-after-stateme 4 | 5 | dist_man_MANS = goaccess.1 6 | 7 | -SUBDIRS = po 8 | +SUBDIRS = 9 | 10 | ACLOCAL_AMFLAGS = -I m4 11 | 12 | -------------------------------------------------------------------------------- /grive2/patches/010-libdl.patch: -------------------------------------------------------------------------------- 1 | --- a/CMakeLists.txt 2 | +++ b/CMakeLists.txt 3 | @@ -1,6 +1,8 @@ 4 | cmake_minimum_required(VERSION 2.8) 5 | project(grive2) 6 | 7 | +SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ldl") 8 | + 9 | include(GNUInstallDirs) 10 | 11 | # Grive version. remember to update it for every new release! 12 | -------------------------------------------------------------------------------- /grive2/patches/020-boost.patch: -------------------------------------------------------------------------------- 1 | --- a/libgrive/CMakeLists.txt 2 | +++ b/libgrive/CMakeLists.txt 3 | @@ -6,6 +6,9 @@ find_package(LibGcrypt REQUIRED) 4 | find_package(CURL REQUIRED) 5 | find_package(Backtrace) 6 | find_package(Boost 1.40.0 COMPONENTS program_options filesystem unit_test_framework regex system REQUIRED) 7 | +if(Boost_FOUND) 8 | + include_directories(${Boost_INCLUDE_DIRS}) 9 | +endif() 10 | find_package(BFD) 11 | find_package(CppUnit) 12 | find_package(Iberty) 13 | -------------------------------------------------------------------------------- /grive2/patches/030_stdint.patch: -------------------------------------------------------------------------------- 1 | --- a/libgrive/src/drive2/Syncer2.cc 2 | +++ b/libgrive/src/drive2/Syncer2.cc 3 | @@ -17,6 +17,7 @@ 4 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 5 | */ 6 | 7 | +#include 8 | #include "base/Resource.hh" 9 | #include "CommonUri.hh" 10 | #include "Entry2.hh" 11 | --- a/libgrive/src/util/File.cc 12 | +++ b/libgrive/src/util/File.cc 13 | @@ -19,6 +19,7 @@ 14 | 15 | #include "File.hh" 16 | 17 | +#include 18 | #include 19 | 20 | // boost headers 21 | -------------------------------------------------------------------------------- /gutenprint/patches/020-extract-strings.patch: -------------------------------------------------------------------------------- 1 | --- a/src/xml/Makefile.am 2 | +++ b/src/xml/Makefile.am 3 | @@ -38,11 +38,6 @@ pkgxmldatadir = $(pkgdatadir)/@GUTENPRIN 4 | 5 | ## Rules 6 | 7 | -noinst_PROGRAMS = extract-strings 8 | - 9 | -extract_strings_SOURCES = extract-strings.c 10 | -extract_strings_LDADD = $(GUTENPRINT_LIBS) 11 | - 12 | xml-stamp: $(pkgxmldata_DATA) $(STAMPS) Makefile.am 13 | -rm -f $@ $@.tmp 14 | touch $@.tmp 15 | -------------------------------------------------------------------------------- /hlspxd/files/S92hlspxd: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=hlspxd 5 | ARGS="" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/opt/sbin:/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /hlspxd/patches/100-fix_comments_typos_MSVC_build.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Entware/rtndev/02552c2da6b16583dabff8411c06fd1f00a7d726/hlspxd/patches/100-fix_comments_typos_MSVC_build.patch -------------------------------------------------------------------------------- /hlspxd/patches/201-apache-httpd-compatibility.patch: -------------------------------------------------------------------------------- 1 | From cb3c943de9e01baa0da1b06dc88f798e90876ffa Mon Sep 17 00:00:00 2001 2 | From: Julius Schwartzenberg 3 | Date: Thu, 30 May 2019 19:42:23 +0200 4 | Subject: [PATCH] Use double byte \r\n newline in request to increase 5 | compatibility. 6 | 7 | Notably Apache HTTP 2.4 requires this. 8 | --- 9 | hlspxd/src/utils.cpp | 4 ++-- 10 | 1 file changed, 2 insertions(+), 2 deletions(-) 11 | 12 | --- a/utils.cpp 13 | +++ b/utils.cpp 14 | @@ -465,8 +465,8 @@ HttpResponse HttpClient::getResponse(Uri 15 | { 16 | connect2Host(reqUri); 17 | 18 | - _sockstream << "GET /" << reqUri.getPath() << " HTTP/1.1\nHost: " << reqUri.getHost() 19 | - << "\nUser-agent: hlspxd\nAccept: */*\nConnection: close\n\n"; 20 | + _sockstream << "GET /" << reqUri.getPath() << " HTTP/1.1\r\nHost: " << reqUri.getHost() 21 | + << "\r\nUser-agent: hlspxd\r\nAccept: */*\r\nConnection: close\r\n\r\n"; 22 | _sockstream.flush(); 23 | 24 | contResp = HttpResponse(_sockstream); 25 | -------------------------------------------------------------------------------- /hlspxd/src/platform.cpp: -------------------------------------------------------------------------------- 1 | #include "platform.h" 2 | #include "utils.h" 3 | #include 4 | 5 | static void handle_quitsigs(int signo) 6 | { 7 | (void)&signo; 8 | 9 | // LogWriter::WriteLog("*** Caught SIGNAL %d ***", signo); 10 | return; 11 | } 12 | 13 | int HideSignals() 14 | { 15 | #ifndef _WIN32 16 | struct sigaction qact; 17 | qact.sa_handler = handle_quitsigs; 18 | sigemptyset(&qact.sa_mask); 19 | qact.sa_flags = 0; 20 | 21 | if ((sigaction(SIGTERM, &qact,NULL) < 0) || 22 | (sigaction(SIGQUIT, &qact, NULL) < 0) || 23 | (sigaction(SIGINT, &qact, NULL) < 0)) 24 | { 25 | LogWriter::WriteLog("sigaction-quit"); 26 | return -1; 27 | } 28 | 29 | qact.sa_flags = SA_NOCLDWAIT | SA_RESTART; 30 | qact.sa_handler = SIG_IGN; 31 | sigaction(SIGCHLD, &qact, NULL); 32 | 33 | #endif 34 | return 0; 35 | } 36 | 37 | Exception::Exception(const char * const &format, ...) throw() 38 | { 39 | _message = NULL; 40 | int size = 0; 41 | va_list ap; 42 | 43 | va_start(ap, format); 44 | size = vsnprintf(_message, size, format, ap); 45 | va_end(ap); 46 | 47 | if (size < 0) return; 48 | size++; 49 | _message = new char[size]; 50 | 51 | va_start(ap, format); 52 | vsnprintf(_message, size, format, ap); 53 | va_end(ap); 54 | } 55 | -------------------------------------------------------------------------------- /hlspxd/src/utils.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Entware/rtndev/02552c2da6b16583dabff8411c06fd1f00a7d726/hlspxd/src/utils.cpp -------------------------------------------------------------------------------- /hlspxd/src/utils.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Entware/rtndev/02552c2da6b16583dabff8411c06fd1f00a7d726/hlspxd/src/utils.h -------------------------------------------------------------------------------- /hlspxd/src/videoviewer.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Entware/rtndev/02552c2da6b16583dabff8411c06fd1f00a7d726/hlspxd/src/videoviewer.cpp -------------------------------------------------------------------------------- /hlspxd/src/videoviewer.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Entware/rtndev/02552c2da6b16583dabff8411c06fd1f00a7d726/hlspxd/src/videoviewer.h -------------------------------------------------------------------------------- /httrack/patches/010-server_usage_example.patch: -------------------------------------------------------------------------------- 1 | --- a/src/htsweb.c 2 | +++ b/src/htsweb.c 3 | @@ -178,7 +178,7 @@ int main(int argc, char *argv[]) { 4 | fprintf(stderr, 5 | "usage: %s [--port ] [--ppid parent-pid] [key value [key value]..]\n", 6 | argv[0]); 7 | - fprintf(stderr, "example: %s /usr/share/httrack/\n", argv[0]); 8 | + fprintf(stderr, "example: %s /opt/share/httrack/\n", argv[0]); 9 | return 1; 10 | } 11 | 12 | -------------------------------------------------------------------------------- /incron/files/S12incron: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=incrond 5 | ARGS="" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /incron/patches/010_prevent_zombies.patch: -------------------------------------------------------------------------------- 1 | Description: Prevent zombies 2 | Author: Mikhail Teterin (UnitedMarsupials on github) 3 | Forwarded: no 4 | Last-Update: 2019-11-12 5 | Origin: https://github.com/ar-/incron/pull/42 -> https://github.com/ar-/incron/pull/42/commits/196975d26fd04176a1c877fa3c404efd8103c9c2 6 | Bug-Debian: https://bugs.debian.org/930526 7 | 8 | From 196975d26fd04176a1c877fa3c404efd8103c9c2 Mon Sep 17 00:00:00 2001 9 | From: Mikhail T 10 | Date: Mon, 30 Oct 2017 14:15:03 -0400 11 | Subject: [PATCH 2/2] Rework the zombie prevention 12 | 13 | --- 14 | icd-main.cpp | 1 + 15 | 1 file changed, 1 insertion(+) 16 | 17 | --- a/icd-main.cpp 18 | +++ b/icd-main.cpp 19 | @@ -104,6 +104,7 @@ void on_signal(int signo) 20 | g_fFinish = true; 21 | break; 22 | case SIGCHLD: 23 | + do {} while (waitpid((pid_t)-1, 0, WNOHANG) > 0); /* Prevent zombies */ 24 | // first empty pipe (to prevent internal buffer overflow) 25 | do {} while (read(g_cldPipe[0], g_cldPipeBuf, CHILD_PIPE_BUF_LEN) > 0); 26 | 27 | -------------------------------------------------------------------------------- /inetutils/patches/010-PATH_PROCNET_DEV.patch: -------------------------------------------------------------------------------- 1 | --- a/ifconfig/system/linux.c 2 | +++ b/ifconfig/system/linux.c 3 | @@ -51,6 +51,10 @@ 4 | #include "../ifconfig.h" 5 | 6 | 7 | +#ifndef PATH_PROCNET_DEV 8 | + #define PATH_PROCNET_DEV "/proc/net/dev" 9 | +#endif 10 | + 11 | /* ARPHRD stuff. */ 12 | 13 | static void 14 | -------------------------------------------------------------------------------- /iotop/patches/010-pgpgin_pgpgout_def.patch: -------------------------------------------------------------------------------- 1 | --- a/iotop/vmstat.py 2 | +++ b/iotop/vmstat.py 3 | @@ -26,11 +26,13 @@ class VmStat(object): 4 | def extract(line): 5 | return int(line.split()[1]) * 1024 6 | 7 | + pgpgin = '' 8 | for line in self.vmstat_file: 9 | if line.startswith('pgpgin '): 10 | pgpgin = extract(line) 11 | break 12 | 13 | + pgpgout = '' 14 | for line in self.vmstat_file: 15 | if line.startswith('pgpgout '): 16 | pgpgout = extract(line) 17 | -------------------------------------------------------------------------------- /iprange/Makefile: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-2.0-only 2 | # 3 | # Copyright (C) 2011-2025 Entware 4 | 5 | include $(TOPDIR)/rules.mk 6 | 7 | PKG_NAME:=iprange 8 | PKG_VERSION:=1.0.4 9 | PKG_RELEASE:=1 10 | 11 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 12 | PKG_SOURCE_URL:=https://github.com/firehol/iprange/releases/download/v$(PKG_VERSION) 13 | PKG_HASH:=296ff1813ff4b3448c686c03cf3af8826e328baaa19dc8e40778dccf27c71b16 14 | 15 | include $(INCLUDE_DIR)/package.mk 16 | 17 | define Package/iprange 18 | SECTION:=net 19 | CATEGORY:=Network 20 | TITLE:=manage IP ranges 21 | URL:=https://github.com/firehol/iprange 22 | MAINTAINER:=Entware team, https://entware.net 23 | endef 24 | 25 | define Package/iprange/description 26 | Manage IP ranges. 27 | endef 28 | 29 | define Package/iprange/install 30 | $(INSTALL_DIR) $(1)/opt/bin 31 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/iprange $(1)/opt/bin 32 | endef 33 | 34 | $(eval $(call BuildPackage,iprange)) 35 | -------------------------------------------------------------------------------- /istgt/files/S13istgt: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=istgt 5 | ARGS="" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /istgt/patches/010-disable-ssp.patch: -------------------------------------------------------------------------------- 1 | --- a/configure.in 2 | +++ b/configure.in 3 | @@ -155,15 +155,6 @@ AC_ARG_WITH([rcdir], 4 | esac]) 5 | AC_SUBST([rcdir]) 6 | 7 | -# test for -fstack-protector 8 | -saved_CFLAGS="$CFLAGS" 9 | -AC_MSG_CHECKING([whether the C compiler accepts -fstack-protector]) 10 | -CFLAGS="$CFLAGS -fstack-protector" 11 | -AC_TRY_COMPILE(,, 12 | - AC_MSG_RESULT(yes); saved_CFLAGS="$CFLAGS", 13 | - AC_MSG_RESULT(no)) 14 | -CFLAGS="$saved_CFLAGS" 15 | - 16 | # test for -Wall 17 | saved_CFLAGS="$CFLAGS" 18 | AC_MSG_CHECKING([whether the C compiler accepts -Wall]) 19 | -------------------------------------------------------------------------------- /istgt/patches/020-disable-host-strip.patch: -------------------------------------------------------------------------------- 1 | --- a/src/Makefile.in 2 | +++ b/src/Makefile.in 3 | @@ -89,8 +89,8 @@ istgtcontrol: $(ISTGTCONTROL) 4 | $(CC) $(LDFLAGS) -o $@ $(ISTGTCONTROL) $(LIBS) 5 | 6 | install: install-dirs 7 | - $(INSTALL) -s -m 0755 istgt $(DESTDIR)$(bindir) 8 | - $(INSTALL) -s -m 0755 istgtcontrol $(DESTDIR)$(bindir) 9 | + $(INSTALL) -m 0755 istgt $(DESTDIR)$(bindir) 10 | + $(INSTALL) -m 0755 istgtcontrol $(DESTDIR)$(bindir) 11 | 12 | install-dirs: 13 | $(MKDIR_P) $(DESTDIR)$(bindir) 14 | -------------------------------------------------------------------------------- /isync/Makefile: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-2.0-only 2 | # 3 | # Copyright (C) 2020-2025 Entware 4 | # 5 | 6 | include $(TOPDIR)/rules.mk 7 | 8 | PKG_NAME:=isync 9 | PKG_VERSION:=1.5.1 10 | PKG_RELEASE:=1 11 | 12 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 13 | PKG_SOURCE_URL:=@SF/$(PKG_NAME)/$(PKG_VERSION) 14 | PKG_HASH:=28cc90288036aa5b6f5307bfc7178a397799003b96f7fd6e4bd2478265bb22fa 15 | 16 | PKG_INSTALL:=1 17 | 18 | include $(INCLUDE_DIR)/package.mk 19 | 20 | define Package/isync 21 | SECTION:=mail 22 | CATEGORY:=Mail 23 | DEPENDS:=+openssl-util +libsasl2 +libdb47 24 | TITLE:=mailbox synchronizer 25 | URL:=http://isync.sourceforge.net/ 26 | MAINTAINER:=Entware team, https://entware.net 27 | endef 28 | 29 | define Package/isync/description 30 | isync is a command line application which synchronizes mailboxes; currently 31 | Maildir and IMAP4 mailboxes are supported. New messages, message deletions and 32 | flag changes can be propagated both ways. isync is suitable for use in 33 | IMAP-disconnected mode. 34 | endef 35 | 36 | define Package/isync/install 37 | $(INSTALL_DIR) $(1)/opt 38 | $(CP) $(PKG_INSTALL_DIR)/opt/bin $(1)/opt 39 | endef 40 | 41 | $(eval $(call BuildPackage,isync)) 42 | -------------------------------------------------------------------------------- /jbigkit/patches/020-LDFLAGS-for-tools.patch: -------------------------------------------------------------------------------- 1 | --- a/pbmtools/Makefile 2 | +++ b/pbmtools/Makefile 3 | @@ -15,16 +15,16 @@ all: pbmtojbg jbgtopbm pbmtojbg85 jbgtop 4 | txt: pbmtojbg.txt jbgtopbm.txt pbm.txt pgm.txt 5 | 6 | pbmtojbg: pbmtojbg.o ../libjbig/libjbig.a 7 | - $(CC) $(CFLAGS) -o pbmtojbg pbmtojbg.o -L../libjbig -ljbig 8 | + $(CC) $(CFLAGS) -o pbmtojbg pbmtojbg.o $(LDFLAGS) -L../libjbig -ljbig 9 | 10 | jbgtopbm: jbgtopbm.o ../libjbig/libjbig.a 11 | - $(CC) $(CFLAGS) -o jbgtopbm jbgtopbm.o -L../libjbig -ljbig 12 | + $(CC) $(CFLAGS) -o jbgtopbm jbgtopbm.o $(LDFLAGS) -L../libjbig -ljbig 13 | 14 | pbmtojbg85: pbmtojbg85.o ../libjbig/libjbig85.a 15 | - $(CC) $(CFLAGS) -o pbmtojbg85 pbmtojbg85.o -L../libjbig -ljbig85 16 | + $(CC) $(CFLAGS) -o pbmtojbg85 pbmtojbg85.o $(LDFLAGS) -L../libjbig -ljbig85 17 | 18 | jbgtopbm85: jbgtopbm85.o ../libjbig/libjbig85.a 19 | - $(CC) $(CFLAGS) -o jbgtopbm85 jbgtopbm85.o -L../libjbig -ljbig85 20 | + $(CC) $(CFLAGS) -o jbgtopbm85 jbgtopbm85.o $(LDFLAGS) -L../libjbig -ljbig85 21 | 22 | jbgtopbm.o: jbgtopbm.c ../libjbig/jbig.h 23 | pbmtojbg.o: pbmtojbg.c ../libjbig/jbig.h 24 | -------------------------------------------------------------------------------- /jbigkit/patches/020-gcc42.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile 2 | +++ b/Makefile 3 | @@ -4,7 +4,7 @@ 4 | CC = gcc 5 | 6 | # Options for the compiler: A high optimization level is suggested 7 | -CFLAGS = -O2 -W -Wno-unused-result 8 | +CFLAGS = -O2 -W 9 | # CFLAGS = -O -g -W -Wall -Wno-unused-result -ansi -pedantic # -DDEBUG 10 | 11 | export CC CFLAGS 12 | --- a/pbmtools/Makefile 13 | +++ b/pbmtools/Makefile 14 | @@ -4,7 +4,7 @@ 15 | CC = gcc 16 | 17 | # Options for the compiler 18 | -CFLAGS = -g -O -W -Wall -Wno-unused-result -ansi -pedantic # --coverage 19 | +CFLAGS = -g -O -W -Wall -ansi # --coverage 20 | CPPFLAGS = -I../libjbig 21 | 22 | .SUFFIXES: .1 .5 .txt $(SUFFIXES) 23 | -------------------------------------------------------------------------------- /jhead/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2021 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | include $(TOPDIR)/rules.mk 9 | 10 | PKG_NAME:=jhead 11 | PKG_VERSION:=3.08 12 | PKG_REV:=4d04ac965632e35a65709c7f92a857a749e71811 13 | PKG_RELEASE:=1 14 | 15 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 16 | PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) 17 | PKG_SOURCE_URL:=https://github.com/Matthias-Wandel/jhead.git 18 | PKG_SOURCE_PROTO:=git 19 | PKG_SOURCE_VERSION:=$(PKG_REV) 20 | PKG_MIRROR_HASH:=9ba31c7a729e7f35d438024399c3c801c5db27a2cf760e126e04571d09ae579d 21 | 22 | include $(INCLUDE_DIR)/package.mk 23 | 24 | define Package/jhead 25 | SECTION:=multimedia 26 | CATEGORY:=Multimedia 27 | TITLE:=Exif Jpeg header manipulation tool 28 | URL:=$(PKG_SOURCE_URL) 29 | MAINTAINER:=Entware team, https://entware.net 30 | endef 31 | 32 | define Package/jhead/description 33 | Exif Jpeg header manipulation tool. 34 | endef 35 | 36 | define Package/jhead/install 37 | $(INSTALL_DIR) $(1)/opt/bin 38 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/jhead $(1)/opt/bin 39 | endef 40 | 41 | $(eval $(call BuildPackage,jhead)) 42 | -------------------------------------------------------------------------------- /jhead/patches/010-flags.patch: -------------------------------------------------------------------------------- 1 | --- a/makefile 2 | +++ b/makefile 3 | @@ -8,12 +8,6 @@ MANDIR=$(PREFIX)/share/man/man1 4 | OBJ=obj 5 | SRC=. 6 | 7 | -DPKG_BUILDFLAGS := $(shell command -v dpkg-buildflags 2> /dev/null) 8 | -ifdef DPKG_BUILDFLAGS 9 | -CFLAGS:=$(shell dpkg-buildflags --get CFLAGS) 10 | -LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS) 11 | -endif 12 | - 13 | # To enable electric fence, set ELECTRIC_FENCE=1 14 | ifeq ($(ELECTRIC_FENCE),1) 15 | CFLAGS += -fsanitize=address 16 | -------------------------------------------------------------------------------- /jo/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2021 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | include $(TOPDIR)/rules.mk 9 | 10 | PKG_NAME:=jo 11 | PKG_VERSION:=1.9 12 | PKG_REV:=2cc476178198774ad6bea89be0b9e4ed2d4bf4c5 13 | PKG_RELEASE:=1 14 | 15 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 16 | PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) 17 | PKG_SOURCE_URL:=https://github.com/jpmens/jo.git 18 | PKG_SOURCE_PROTO:=git 19 | PKG_SOURCE_VERSION:=$(PKG_REV) 20 | PKG_MIRROR_HASH:=8f0e3b739332df6c5e8bbe07fcd4de44ea0a99bca63de2006417a5bd7b74b793 21 | 22 | PKG_FIXUP:=autoreconf 23 | 24 | include $(INCLUDE_DIR)/package.mk 25 | 26 | define Package/jo 27 | SECTION:=utils 28 | CATEGORY:=Utilities 29 | TITLE:=JSON output from a shell 30 | URL:=$(PKG_SOURCE_URL) 31 | MAINTAINER:=Entware team, https://entware.net 32 | endef 33 | 34 | define Package/jo/description 35 | jo is a small utility to create JSON objects. 36 | endef 37 | 38 | define Package/jo/install 39 | $(INSTALL_DIR) $(1)/opt/bin 40 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/jo $(1)/opt/bin 41 | endef 42 | 43 | $(eval $(call BuildPackage,jo)) 44 | -------------------------------------------------------------------------------- /libcryptopp/files/cryptest.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | cd /opt/tmp 4 | ln -s /opt/lib/libcryptopp.so libcryptopp.so 5 | cryptest.exe tv all 6 | if [ $? -ne 0 ]; then 7 | echo 'libcryptopp tests failed! Possibly broken by -02 flag.' 8 | exit 1 9 | fi 10 | cryptest.exe v 11 | 12 | # You may run benchmark by following command, where '1' is a time in seconds for each test 13 | # cryptest.exe b 1 > testresult.html -------------------------------------------------------------------------------- /libcryptopp/patches/010-disable_asm.patch: -------------------------------------------------------------------------------- 1 | --- a/config.h 2 | +++ b/config.h 3 | @@ -412,6 +412,18 @@ NAMESPACE_END 4 | #define CRYPTOPP_UNCAUGHT_EXCEPTION_AVAILABLE 5 | #endif 6 | 7 | +// Configuration option doesn't saved to config.h after compilation, so we have to add 8 | +// following definition manually: 9 | +#ifndef CRYPTOPP_DISABLE_ASM 10 | +#define CRYPTOPP_DISABLE_ASM 11 | +#endif 12 | +#ifndef CRYPTOPP_DISABLE_SSSE3 13 | +#define CRYPTOPP_DISABLE_SSSE3 14 | +#endif 15 | +#ifndef CRYPTOPP_DISABLE_AESNI 16 | +#define CRYPTOPP_DISABLE_AESNI 17 | +#endif 18 | + 19 | #ifdef CRYPTOPP_DISABLE_X86ASM // for backwards compatibility: this macro had both meanings 20 | #define CRYPTOPP_DISABLE_ASM 21 | #define CRYPTOPP_DISABLE_SSE2 22 | -------------------------------------------------------------------------------- /libcryptopp/patches/100-Fix_potential_zeroizer_removal.patch: -------------------------------------------------------------------------------- 1 | From 856c7c56ad2ebc9a534ec4136f6eca38a83950e2 Mon Sep 17 00:00:00 2001 2 | From: Jeffrey Walton 3 | Date: Mon, 31 Oct 2016 22:34:59 -0400 4 | Subject: [PATCH] Fix potential zeroizer removal (Issue 331) 5 | 6 | --- 7 | cast.cpp | 2 +- 8 | 1 file changed, 1 insertion(+), 1 deletion(-) 9 | 10 | --- a/cast.cpp 11 | +++ b/cast.cpp 12 | @@ -290,7 +290,7 @@ void CAST256::Base::UncheckedSetKey(cons 13 | } 14 | } 15 | 16 | - memset(kappa, 0, sizeof(kappa)); 17 | + SecureWipeBuffer(kappa, 8); 18 | } 19 | 20 | NAMESPACE_END 21 | -------------------------------------------------------------------------------- /libcryptopp/patches/200-fix-paths.patch: -------------------------------------------------------------------------------- 1 | --- a/config.h 2 | +++ b/config.h 3 | @@ -69,7 +69,7 @@ 4 | // Be mindful of the trailing slash since its simple concatenation. 5 | // g++ ... -DCRYPTOPP_DATA_DIR='"/tmp/cryptopp_test/share/"' 6 | #ifndef CRYPTOPP_DATA_DIR 7 | -# define CRYPTOPP_DATA_DIR "" 8 | +# define CRYPTOPP_DATA_DIR "/opt/share/cryptopp/" 9 | #endif 10 | 11 | // define this to retain (as much as possible) old deprecated function and class names 12 | -------------------------------------------------------------------------------- /liblpeg/Makefile: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-2.0-only 2 | # 3 | # Copyright (C) 2025 Entware 4 | 5 | # only build static library (neovim) 6 | 7 | include $(TOPDIR)/rules.mk 8 | 9 | PKG_NAME:=lpeg 10 | PKG_VERSION:=1.1.0 11 | PKG_RELEASE:=1 12 | 13 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 14 | PKG_SOURCE_URL:=https://www.inf.puc-rio.br/~roberto/lpeg 15 | PKG_HASH:=4b155d67d2246c1ffa7ad7bc466c1ea899bbc40fef0257cc9c03cecbaed4352a 16 | 17 | PKG_MAINTAINER:=Entware team, https://entware.net 18 | PKG_LICENSE:=MIT 19 | PKG_LICENSE_FILES:=lpeg.html 20 | 21 | CMAKE_INSTALL:=1 22 | 23 | include $(INCLUDE_DIR)/package.mk 24 | include $(INCLUDE_DIR)/cmake.mk 25 | 26 | define Package/liblpeg 27 | SECTION:=lang 28 | CATEGORY:=Languages 29 | SUBMENU:=Lua 30 | TITLE:=LPeg - Parsing Expression Grammars For Lua 31 | URL:=https://www.inf.puc-rio.br/~roberto/lpeg 32 | DEPENDS:=+lua 33 | BUILDONLY:=1 34 | endef 35 | 36 | define Package/liblpeg/description 37 | LPeg is a new pattern-matching library for Lua, based on Parsing 38 | Expression Grammars (PEGs). 39 | endef 40 | 41 | $(eval $(call BuildPackage,liblpeg)) 42 | -------------------------------------------------------------------------------- /liblpeg/patches/010-add-cmake.patch: -------------------------------------------------------------------------------- 1 | --- /dev/null 2 | +++ b/CMakeLists.txt 3 | @@ -0,0 +1,13 @@ 4 | +cmake_minimum_required(VERSION 3.13) 5 | +project (lpeg C) 6 | + 7 | +include(GNUInstallDirs) 8 | + 9 | +file(GLOB LPEG_SOURCES ${CMAKE_SOURCE_DIR}/*.c) 10 | +add_library(lpeg ${LPEG_SOURCES}) 11 | + 12 | +target_compile_options(lpeg PRIVATE -w -fPIC) 13 | + 14 | +install(TARGETS lpeg ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) 15 | + 16 | +# vim: set ft=cmake: 17 | -------------------------------------------------------------------------------- /libmpack-lua/patches/010-host-lua.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile 2 | +++ b/Makefile 3 | @@ -1,7 +1,7 @@ 4 | # makefile to setup environment for travis and development 5 | 6 | # distributors probably want to set this to 'yes' for both make and make install 7 | -USE_SYSTEM_LUA ?= no 8 | +USE_SYSTEM_LUA ?= yes 9 | USE_SYSTEM_MPACK ?= no 10 | ifneq ($(USE_SYSTEM_MPACK),no) 11 | # Can't use luarocks to build if linking against system libmpack because 12 | -------------------------------------------------------------------------------- /loadwatch/patches/010-Makefile.in.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile.in 2 | +++ b/Makefile.in 3 | @@ -6,23 +6,26 @@ bindir = @bindir@ 4 | INSTALL = @INSTALL@ 5 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ 6 | MKINSTALLDIRS= @srcdir@/mkinstalldirs 7 | +DESTDIR= 8 | 9 | CC=@CC@ 10 | LIBS=@LIBS@ 11 | +CPPFLAGS=@CPPFLAGS@ 12 | CFLAGS=@CFLAGS@ 13 | +LDFLAGS=@LDFLAGS@ 14 | 15 | all: loadwatch lw-ctl 16 | 17 | loadwatch: loadwatch.o 18 | - $(CC) -o $@ $^ $(LIBS) 19 | + $(CC) $(LDFLAGS) -o $@ $^ $(LIBS) 20 | 21 | lw-ctl: lw-ctl.o 22 | - $(CC) -o $@ $^ $(LIBS) 23 | + $(CC) $(LDFLAGS) -o $@ $^ $(LIBS) 24 | 25 | install: all 26 | - $(MKINSTALLDIRS) $(bindir) 27 | - $(INSTALL_PROGRAM) loadwatch $(bindir)/loadwatch 28 | - $(INSTALL_PROGRAM) lw-ctl $(bindir)/loadwatch 29 | + $(MKINSTALLDIRS) $(DESTDIR)$(bindir) 30 | + $(INSTALL_PROGRAM) loadwatch $(DESTDIR)$(bindir)/loadwatch 31 | + $(INSTALL_PROGRAM) lw-ctl $(DESTDIR)$(bindir)/lw-ctl 32 | 33 | clean: 34 | -rm -f *.o loadwatch lw-ctl 35 | -------------------------------------------------------------------------------- /loadwatch/patches/030-lw-ctl.c.patch: -------------------------------------------------------------------------------- 1 | --- a/lw-ctl.c 2 | +++ b/lw-ctl.c 3 | @@ -1,3 +1,4 @@ 4 | +#include 5 | #include 6 | #include 7 | #include 8 | @@ -68,4 +69,6 @@ main(int argc, char **argv) 9 | { 10 | send_cmd(argv[1], argv[2]); 11 | } 12 | + 13 | + return 0; 14 | } 15 | -------------------------------------------------------------------------------- /loadwatch/patches/040-configure.in.diff: -------------------------------------------------------------------------------- 1 | --- a/configure.in 2 | +++ b/configure.in 3 | @@ -8,7 +8,7 @@ AC_PROG_INSTALL 4 | 5 | dnl Checks for libraries. 6 | AC_CHECK_LIB(elf, elf_begin, [LIBS="$LIBS -lelf"]) 7 | -AC_CHECK_LIB(kstat, kstat_open, [AC_DEFINE(HAVE_KSTAT) LIBS="$LIBS -lkstat"]) 8 | +AC_CHECK_LIB(kstat, kstat_open, [AC_DEFINE([HAVE_KSTAT], [], [Define if kstat library exists.]) LIBS="$LIBS -lkstat"]) 9 | 10 | dnl Checks for header files. 11 | AC_HEADER_STDC 12 | -------------------------------------------------------------------------------- /loggedfs/patches/500-entware.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile 2 | +++ b/Makefile 3 | @@ -1,6 +1,6 @@ 4 | CC=g++ 5 | -CFLAGS=-Wall -ansi -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=26 -DELPP_SYSLOG -DELPP_NO_DEFAULT_LOG_FILE -DELPP_THREAD_SAFE -std=c++11 `xml2-config --cflags` 6 | -LDFLAGS=-Wall -ansi -lpcre -lfuse `xml2-config --libs` -lpthread 7 | +CFLAGS+=-Wall -ansi -D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=26 -DELPP_SYSLOG -DELPP_NO_DEFAULT_LOG_FILE -DELPP_THREAD_SAFE -std=c++11 -I$(STAGING_DIR)/opt/include/libxml2 8 | +LDFLAGS+=-Wall -ansi -lpcre -lfuse -lxml2 -lpthread -lstdc++ 9 | srcdir=src 10 | easyloggingdir=vendor/github.com/muflihun/easyloggingpp/src 11 | builddir=build 12 | -------------------------------------------------------------------------------- /ltrace/patches/010-fix.patch: -------------------------------------------------------------------------------- 1 | --- a/sysdeps/linux-gnu/proc.c 2 | +++ b/sysdeps/linux-gnu/proc.c 3 | @@ -242,9 +242,10 @@ process_tasks(pid_t pid, pid_t **ret_tas 4 | size_t alloc = 0; 5 | 6 | while (1) { 7 | - struct dirent entry; 8 | struct dirent *result; 9 | - if (readdir_r(d, &entry, &result) != 0) { 10 | + errno = 0; 11 | + result = readdir(d); 12 | + if (result == NULL && errno != 0) { 13 | fail: 14 | free(tasks); 15 | closedir(d); 16 | --- a/sysdeps/linux-gnu/arm/trace.c 17 | +++ b/sysdeps/linux-gnu/arm/trace.c 18 | @@ -155,6 +155,8 @@ arm_get_next_pcs(struct process *proc, 19 | const unsigned cond = BITS(this_instr, 28, 31); 20 | const unsigned opcode = BITS(this_instr, 24, 27); 21 | 22 | + uint32_t operand1, operand2, result = 0; 23 | + 24 | if (cond == COND_NV) 25 | switch (opcode) { 26 | arch_addr_t addr; 27 | @@ -170,7 +172,6 @@ arm_get_next_pcs(struct process *proc, 28 | } 29 | else 30 | switch (opcode) { 31 | - uint32_t operand1, operand2, result = 0; 32 | case 0x0: 33 | case 0x1: /* data processing */ 34 | case 0x2: 35 | -------------------------------------------------------------------------------- /man-db/patches/010-html_pager.patch: -------------------------------------------------------------------------------- 1 | --- a/src/man.c 2 | +++ b/src/man.c 3 | @@ -247,8 +247,8 @@ static struct timespec man_modtime; /* m 4 | static bool ditroff; 5 | static const char *gxditview; 6 | static bool htmlout; 7 | -static const char *html_pager; 8 | #endif /* TROFF_IS_GROFF */ 9 | +static const char *html_pager; 10 | 11 | const char *argp_program_version = "man " PACKAGE_VERSION; 12 | const char *argp_program_bug_address = PACKAGE_BUGREPORT; 13 | -------------------------------------------------------------------------------- /man-pages/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2017-2024 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | include $(TOPDIR)/rules.mk 9 | 10 | PKG_NAME:=man-pages 11 | PKG_VERSION:=6.9 12 | PKG_RELEASE:=1 13 | 14 | PKG_SOURCE_URL:=https://www.kernel.org/pub/linux/docs/man-pages 15 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 16 | PKG_HASH:=9508887dccbb7e77e42532a0bb7af18400769c78a5b9d13b2f982e579e0e2752 17 | 18 | include $(INCLUDE_DIR)/package.mk 19 | 20 | define Package/man-pages 21 | SECTION:=utils 22 | CATEGORY:=Utilities 23 | TITLE:=unix manual pages 24 | DEPENDS:=+man-db 25 | MAINTAINER:=Entware team, https://entware.net 26 | endef 27 | 28 | define Package/man-pages/description 29 | Linux kernel and C library user-space interface documentation. 30 | endef 31 | 32 | define Build/Compile 33 | endef 34 | 35 | define Package/man-pages/install 36 | $(INSTALL_DIR) $(1)/opt/share/man 37 | $(CP) $(PKG_BUILD_DIR)/man/man[1-8]* $(1)/opt/share/man 38 | endef 39 | 40 | define Package/man-pages/postinst 41 | #!/bin/sh 42 | echo 'Creating man database...' 43 | mandb -c 44 | endef 45 | 46 | $(eval $(call BuildPackage,man-pages)) 47 | -------------------------------------------------------------------------------- /mergerfs/patches/010-libfuse_cross-compile.patch: -------------------------------------------------------------------------------- 1 | --- a/libfuse/Makefile 2 | +++ b/libfuse/Makefile 3 | @@ -56,7 +56,8 @@ CFLAGS := \ 4 | -std=gnu99 \ 5 | -Wall \ 6 | -pipe \ 7 | - -MMD 8 | + -MMD \ 9 | + $(CXXFLAGS) 10 | FUSERMOUNT_DIR = $(BINDIR) 11 | FUSE_FLAGS = \ 12 | -Iinclude \ 13 | @@ -107,8 +108,8 @@ clean: 14 | distclean: clean 15 | 16 | strip: 17 | - strip --strip-all build/mount.mergerfs 18 | - strip --strip-all build/mergerfs-fusermount 19 | + $(STRIP) --strip-all build/mount.mergerfs 20 | + $(STRIP) --strip-all build/mergerfs-fusermount 21 | 22 | install-utils: mergerfs-fusermount mount.mergerfs strip 23 | install -D build/mergerfs-fusermount "$(INSTALLBINDIR)/mergerfs-fusermount" 24 | -------------------------------------------------------------------------------- /microdc2/files/microdc2.conf: -------------------------------------------------------------------------------- 1 | set active off 2 | set auto_reconnect on 3 | set description Entware Automatic Station 4 | set display connections download joinpart publicchat searchresults upload 5 | set downloaddir /tmp/harddisk/torrent/ 6 | set email crater@moon.com 7 | set filelist_refresh_interval 0 8 | set filesystem_charset UTF-8 9 | set hub_charset cp1251 10 | set listingdir /opt/share/microdc2/ 11 | set log connections download upload 12 | set log_charset UTF-8 13 | set logfile /opt/var/log/mircodc.log 14 | set nick asus_router 15 | set password P@ssw0rd 16 | set slots 5 17 | set speed LAN(T3) 18 | set tag microdc2 V:0.15.6 -------------------------------------------------------------------------------- /microdc2/patches/010-paths.patch: -------------------------------------------------------------------------------- 1 | --- a/src/main.c 2 | +++ b/src/main.c 3 | @@ -157,7 +157,7 @@ warn_socket_error(int res, bool write, c 4 | bool 5 | get_package_file(const char *name, char **outname) 6 | { 7 | - *outname = xasprintf("%s/.%s/%s", getenv_default("HOME", ""), PACKAGE, name); 8 | + *outname = xasprintf("%s/%s/%s", "/opt/share", PACKAGE, name); 9 | return true; 10 | } 11 | 12 | --- a/src/common/tempdir.c 13 | +++ b/src/common/tempdir.c 14 | @@ -53,7 +53,7 @@ tempdir(void) 15 | if (tmpdir != NULL && direxists(tmpdir)) 16 | return tmpdir; 17 | 18 | - tmpdir = "/tmp"; 19 | + tmpdir = "/opt/tmp"; 20 | if (direxists(tmpdir)) 21 | return tmpdir; 22 | 23 | -------------------------------------------------------------------------------- /microdc2/patches/020-no-po.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile.am 2 | +++ b/Makefile.am 3 | @@ -1,6 +1,6 @@ 4 | ACLOCAL_AMFLAGS = -I m4 5 | 6 | -SUBDIRS = po lib src 7 | +SUBDIRS = lib src 8 | 9 | EXTRA_DIST = \ 10 | doc/INTERNALS \ 11 | -------------------------------------------------------------------------------- /microdc2/patches/030-no_docs.patch: -------------------------------------------------------------------------------- 1 | --- a/src/Makefile.am 2 | +++ b/src/Makefile.am 3 | @@ -53,8 +53,3 @@ microdc2_LDADD = \ 4 | # ../lib/libgnu.a 5 | 6 | # $(LIBICONV) - not yet used 7 | - 8 | -man_MANS = microdc2.1 9 | - 10 | -EXTRA_DIST = \ 11 | - $(man_MANS) 12 | -------------------------------------------------------------------------------- /minissdpd/files/S11minissdpd: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | . /opt/etc/config/minissdpd.conf 4 | 5 | ENABLED=yes 6 | PROCS=minissdpd 7 | ARGS="-i $INTERFACE" 8 | PREARGS="" 9 | DESC=$PROCS 10 | PATH=/opt/sbin:/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 11 | 12 | . /opt/etc/init.d/rc.func 13 | -------------------------------------------------------------------------------- /minissdpd/files/minissdpd.conf: -------------------------------------------------------------------------------- 1 | INTERFACE=br0 2 | -------------------------------------------------------------------------------- /mkvtoolnix/patches/030-fmt_internal.patch: -------------------------------------------------------------------------------- 1 | --- a/build-config.in 2 | +++ b/build-config.in 3 | @@ -94,7 +94,7 @@ MATROSKA_LIBS = @MATROSKA_LIBS@ 4 | EGREP = @EGREP@ 5 | EXTRA_CFLAGS = @EXTRA_CFLAGS@ 6 | EXTRA_LDFLAGS = @EXTRA_LDFLAGS@ 7 | -FMT_INTERNAL = @FMT_INTERNAL@ 8 | +FMT_INTERNAL = yes 9 | GOOGLE_BENCHMARK = @GOOGLE_BENCHMARK@ 10 | GTEST_TYPE = @GTEST_TYPE@ 11 | LDFLAGS_RPATHS = @LDFLAGS_RPATHS@ 12 | -------------------------------------------------------------------------------- /movgrab/patches/010-fix.patch: -------------------------------------------------------------------------------- 1 | --- a/libUseful-2.8/Process.c 2 | +++ b/libUseful-2.8/Process.c 3 | @@ -1,6 +1,6 @@ 4 | #include "Process.h" 5 | #define _GNU_SOURCE 6 | -#include "errno.h" 7 | +#include 8 | #include "includes.h" 9 | #include "Time.h" 10 | #include 11 | @@ -60,8 +60,8 @@ for (i=0; environ[i] != NULL; i++) envir 12 | 13 | //These might point to argv[0], so make copies of these too 14 | #ifdef __GNU_LIBRARY__ 15 | -extern char *program_invocation_name; 16 | -extern char *program_invocation_short_name; 17 | +/* extern char *program_invocation_name; 18 | +extern char *program_invocation_short_name; */ 19 | 20 | program_invocation_name=strdup(program_invocation_name); 21 | program_invocation_short_name=strdup(program_invocation_short_name); 22 | -------------------------------------------------------------------------------- /mp3gain/Makefile: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-2.0-only 2 | # 3 | # Copyright (C) 2011-2024 Entware 4 | 5 | include $(TOPDIR)/rules.mk 6 | 7 | PKG_NAME:=mp3gain 8 | PKG_VERSION:=1.6.2 9 | PKG_RELEASE:=2 10 | 11 | PKG_SOURCE:=$(PKG_NAME)-$(subst .,_,$(PKG_VERSION))-src.zip 12 | PKG_SOURCE_URL:=@SF/$(PKG_NAME)/$(PKG_VERSION) 13 | PKG_HASH:=5cc04732ef32850d5878b28fbd8b85798d979a025990654aceeaa379bcc9596d 14 | 15 | PKG_UNPACK:=unzip $(DL_DIR)/$(PKG_SOURCE) -d $(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) 16 | 17 | include $(INCLUDE_DIR)/package.mk 18 | 19 | define Package/mp3gain 20 | SECTION:=sound 21 | CATEGORY:=Sound 22 | DEPENDS:=+libmpg123 23 | TITLE:=A free automatic mp3 volume normalizer 24 | URL:=http://mp3gain.sourceforge.net/ 25 | MAINTAINER:=Entware team, https://entware.net 26 | endef 27 | 28 | define Package/mp3gain/description 29 | MP3Gain analyzes and adjusts mp3 files so that they have the same volume. 30 | endef 31 | 32 | TARGET_CPPFLAGS += -D_FILE_OFFSET_BITS=64 33 | 34 | define Package/mp3gain/install 35 | $(INSTALL_DIR) $(1)/opt/bin 36 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/mp3gain $(1)/opt/bin 37 | endef 38 | 39 | $(eval $(call BuildPackage,mp3gain)) 40 | -------------------------------------------------------------------------------- /mpdscribble/patches/010-fix-libgcrypt.patch: -------------------------------------------------------------------------------- 1 | --- a/src/lib/gcrypt/meson.build 2 | +++ b/src/lib/gcrypt/meson.build 3 | @@ -1,17 +1,9 @@ 4 | -gcrypt_dep = dependency('libgcrypt') 5 | - 6 | gcrypt = static_library( 7 | 'gcrypt', 8 | 'MD5.cxx', 9 | include_directories: inc, 10 | - dependencies: [ 11 | - gcrypt_dep, 12 | - ], 13 | ) 14 | 15 | gcrypt_dep = declare_dependency( 16 | link_with: gcrypt, 17 | - dependencies: [ 18 | - gcrypt_dep, 19 | - ], 20 | ) 21 | -------------------------------------------------------------------------------- /mpdscribble/patches/020-missing-hdr.patch: -------------------------------------------------------------------------------- 1 | --- a/src/Log.cxx 2 | +++ b/src/Log.cxx 3 | @@ -24,6 +24,7 @@ 4 | #include "config.h" 5 | 6 | #include 7 | +#include 8 | 9 | #include 10 | #include 11 | -------------------------------------------------------------------------------- /msd/files/S29msd: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=msd 5 | ARGS="-d -c /opt/etc/msd.conf -p /opt/var/run/msd.pid" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /msd/patches/010-tmpfile.patch: -------------------------------------------------------------------------------- 1 | --- a/src/stream_src.c 2 | +++ b/src/stream_src.c 3 | @@ -1307,7 +1307,7 @@ str_src_r_buf_f_name_gen(str_src_p src) 4 | md5_get_digest_str((char*)&ts_now, sizeof(ts_now), (char*)hash); 5 | if (0 != (STR_SRC_S_F_ENABLE_RING_BUF_SHM_FILE & src->s.flags)) { 6 | snprintf(src->r_buf_f_name, sizeof(src->r_buf_f_name), 7 | - "/msd-%zu-%s.tmp", 8 | + "/opt/tmp/msd-%zu-%s.tmp", 9 | (size_t)getpid(), hash); 10 | } else { /* Normal file. */ 11 | snprintf(src->r_buf_f_name, sizeof(src->r_buf_f_name), 12 | -------------------------------------------------------------------------------- /msd/patches/020-conf.patch: -------------------------------------------------------------------------------- 1 | --- a/conf/msd.conf 2 | +++ b/conf/msd.conf 3 | @@ -26,7 +26,7 @@ available. 4 | 5 | 6 | 7 | - /root/msd/msd.log 8 | + /opt/var/log/msd.log 9 | 10 | 11 | 12 | --- a/conf/msd_minimal.conf 13 | +++ b/conf/msd_minimal.conf 14 | @@ -26,7 +26,7 @@ available. 15 | 16 | 17 | 18 | - /root/msd/msd.log 19 | + /opt/var/log/msd.log 20 | 21 | 22 | 23 | @@ -131,8 +131,8 @@ available. 24 | 25 | 26 | 27 | - /root/msd/msd_channels.conf 28 | - -/root/msd/msd_channels_lanport.conf 29 | + /opt/etc/msd/msd_channels.conf 30 | + /opt/etc/msd/msd_channels_lanport.conf 31 | 32 | Test1.ts 33 | default 34 | -------------------------------------------------------------------------------- /msd/patches/030-CMakeLists.patch: -------------------------------------------------------------------------------- 1 | --- a/CMakeLists.txt 2 | +++ b/CMakeLists.txt 3 | @@ -26,7 +26,7 @@ option(ENABLE_FULL_DEBUG "Build with all 4 | 5 | # Now CMAKE_INSTALL_PREFIX is a base prefix for everything. 6 | if (NOT CONFDIR) 7 | - set(CONFDIR "${CMAKE_INSTALL_PREFIX}/etc/msd") 8 | + set(CONFDIR "${CMAKE_INSTALL_SYSCONFDIR}/msd") 9 | endif() 10 | 11 | if (NOT RUNDIR) 12 | @@ -234,9 +234,9 @@ add_custom_target(dist ${CMAKE_CURRENT_S 13 | ##################### INSTALLATION ##################################### 14 | 15 | # Configs 16 | -install(CODE "FILE(MAKE_DIRECTORY ${CONFDIR})") 17 | +#install(CODE "FILE(MAKE_DIRECTORY ${CONFDIR})") 18 | 19 | -install_if_not_exists(conf/msd.conf ${CONFDIR} "msd.conf" ".sample") 20 | +install_if_not_exists(conf/msd.conf "${CONFDIR}/msd" "msd.conf" ".sample") 21 | 22 | if (CMAKE_SYSTEM_NAME MATCHES "^.*BSD$|DragonFly") 23 | install_script(os/freebsd/msd "${CMAKE_INSTALL_PREFIX}/etc/rc.d/") 24 | -------------------------------------------------------------------------------- /multitail/patches/010-config-path.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile 2 | +++ b/Makefile 3 | @@ -9,14 +9,14 @@ DEBUG:=#XXX -g -D_DEBUG ###-pg -Wpedanti 4 | 5 | UTF8_SUPPORT:=yes 6 | DESTDIR= 7 | -PREFIX=/usr/local 8 | +PREFIX=/opt 9 | BINDIR=$(PREFIX)/bin 10 | SHAREDIR=$(PREFIX)/share 11 | MANDIR=$(SHAREDIR)/man 12 | MAN1DIR=$(MANDIR)/man1 13 | DOCDIR=$(SHAREDIR)/doc/multitail-$(VERSION) 14 | 15 | -SYSCONFDIR=/etc 16 | +SYSCONFDIR=/opt/etc 17 | CONFIG_FILE=$(SYSCONFDIR)/multitail.conf 18 | CONFIG_DIR=$(SYSCONFDIR)/multitail 19 | 20 | -------------------------------------------------------------------------------- /multitail/patches/020-GLIBC-def.patch: -------------------------------------------------------------------------------- 1 | --- a/error.c 2 | +++ b/error.c 3 | @@ -8,7 +8,7 @@ 4 | #include 5 | #include 6 | #include 7 | -#if defined(__GLIBC__) 8 | +#if !defined(__UCLIBC__) 9 | #include 10 | #endif 11 | #include 12 | @@ -23,7 +23,7 @@ void error_exit_(BOOL show_errno, BOOL s 13 | { 14 | int e = errno; 15 | va_list ap; 16 | -#if defined(__GLIBC__) 17 | +#if !defined(__UCLIBC__) 18 | int index; 19 | void *trace[128]; 20 | int trace_size = backtrace(trace, 128); 21 | @@ -49,7 +49,7 @@ void error_exit_(BOOL show_errno, BOOL s 22 | 23 | if (show_st) 24 | { 25 | -#if defined(__GLIBC__) 26 | +#if !defined(__UCLIBC__) 27 | fprintf(stderr, "Execution path:\n"); 28 | for(index=0; index 8 | - #include 9 | + #include 10 | + #include 11 | #else 12 | #if defined(__APPLE__) 13 | #include 14 | -------------------------------------------------------------------------------- /ncdc/patches/010-no-docs.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile.am 2 | +++ b/Makefile.am 3 | @@ -3,38 +3,8 @@ noinst_PROGRAMS= 4 | AM_CFLAGS=${NCURSES_CFLAGS} $(GLIB_CFLAGS) $(GNUTLS_CFLAGS) $(SQLITE_CFLAGS) 5 | AM_CPPFLAGS=-I$(builddir)/src -I$(srcdir)/deps -I$(srcdir)/deps/ylib 6 | 7 | - 8 | - 9 | -if INSTALL_MANPAGE 10 | -man_MANS=doc/ncdc.1 11 | -endif 12 | - 13 | -EXTRA_DIST+=doc/ncdc.1 doc/ncdc.pod.in 14 | - 15 | -if USE_POD2MAN 16 | -noinst_PROGRAMS+=gendoc 17 | -gendoc_SOURCES=doc/gendoc.c 18 | - 19 | -CLEANFILES=doc/ncdc.1 doc/ncdc.pod 20 | - 21 | -doc/ncdc.pod: $(srcdir)/doc/ncdc.pod.in gendoc$(EXEEXT) 22 | - $(AM_V_GEN)./gendoc$(EXEEXT) <"$(srcdir)/doc/ncdc.pod.in" >doc/ncdc.pod 23 | - 24 | -doc/ncdc.1: doc/ncdc.pod 25 | - $(AM_V_GEN)pod2man --center "ncdc manual" --release "@PACKAGE@-@VERSION@" doc/ncdc.pod >doc/ncdc.1 26 | -endif 27 | - 28 | - 29 | -if HAVE_MH 30 | -mkhdr=makeheaders 31 | +mkhdr=./makeheaders 32 | mkhdr_dep= 33 | -else 34 | -mkhdr=./makeheaders$(EXEEXT) 35 | -mkhdr_dep=makeheaders$(EXEEXT) 36 | -noinst_PROGRAMS+=makeheaders 37 | -endif 38 | -makeheaders_SOURCES=deps/makeheaders.c 39 | - 40 | 41 | noinst_LIBRARIES=libdeps.a 42 | libdeps_a_SOURCES=deps/ylib/yuri.c deps/yxml.c 43 | -------------------------------------------------------------------------------- /ncdc/patches/020-paths.patch: -------------------------------------------------------------------------------- 1 | --- a/src/db.c 2 | +++ b/src/db.c 3 | @@ -1443,7 +1443,7 @@ static int db_dir_init(void) { 4 | if(!db_dir && (db_dir = g_getenv("NCDC_DIR"))) 5 | db_dir = g_strdup(db_dir); 6 | if(!db_dir) 7 | - db_dir = g_build_filename(g_get_home_dir(), ".ncdc", NULL); 8 | + db_dir = g_build_filename("/opt/var", "ncdc", NULL); 9 | 10 | // try to create it (ignoring errors if it already exists) 11 | g_mkdir(db_dir, 0700); 12 | -------------------------------------------------------------------------------- /neovim/patches/020-downgrade-deps.patch: -------------------------------------------------------------------------------- 1 | --- a/cmake.deps/deps.txt 2 | +++ b/cmake.deps/deps.txt 3 | @@ -10,8 +10,8 @@ LUA_SHA256 2640fc56a795f29d28ef15e13c34a 4 | UNIBILIUM_URL https://github.com/neovim/unibilium/archive/v2.1.2.tar.gz 5 | UNIBILIUM_SHA256 370ecb07fbbc20d91d1b350c55f1c806b06bf86797e164081ccc977fc9b3af7a 6 | 7 | -LUV_URL https://github.com/luvit/luv/archive/1.50.0-1.tar.gz 8 | -LUV_SHA256 bb4f0570571e40c1d2a7644f6f9c1309a6ccdb19bf4d397e8d7bfd0c6b88e613 9 | +LUV_URL https://github.com/luvit/luv/releases/download/1.48.0-2/luv-1.48.0-2.tar.gz 10 | +LUV_SHA256 2c3a1ddfebb4f6550293a40ee789f7122e97647eede51511f57203de48c03b7a 11 | 12 | LPEG_URL https://github.com/neovim/deps/raw/d495ee6f79e7962a53ad79670cb92488abe0b9b4/opt/lpeg-1.1.0.tar.gz 13 | LPEG_SHA256 4b155d67d2246c1ffa7ad7bc466c1ea899bbc40fef0257cc9c03cecbaed4352a 14 | -------------------------------------------------------------------------------- /nethack/patches/020-Makefile.utl.patch: -------------------------------------------------------------------------------- 1 | --- a/sys/unix/Makefile.utl 2 | +++ b/sys/unix/Makefile.utl 3 | @@ -239,11 +239,11 @@ mdgreph: mdgrep.pl 4 | perl mdgrep.pl 5 | 6 | ../include/onames.h: makedefs 7 | - ./makedefs -o 8 | + ./makedefs.host -o 9 | ../include/pm.h: makedefs 10 | - ./makedefs -p 11 | + ./makedefs.host -p 12 | ../include/vis_tab.h: makedefs 13 | - ./makedefs -z 14 | + ./makedefs.host -z 15 | # makedefs -z makes both vis_tab.h and vis_tab.c, but writes the .h first 16 | ../src/vis_tab.c: ../include/vis_tab.h 17 | 18 | -------------------------------------------------------------------------------- /nethack/patches/030-Makefile.src.patch: -------------------------------------------------------------------------------- 1 | --- a/sys/unix/Makefile.src 2 | +++ b/sys/unix/Makefile.src 3 | @@ -267,8 +267,8 @@ WINBEOBJ = 4 | #WINBEOBJ = winbe.o NHWindow.o NHMenuWindow.o NHMapWindow.o tile.o 5 | # 6 | # 7 | -#WINSRC = $(WINTTYSRC) 8 | -#WINOBJ = $(WINTTYOBJ) 9 | +WINSRC = $(WINTTYSRC) 10 | +WINOBJ = $(WINTTYOBJ) 11 | # 12 | # Curses - Karl Garrison, Tangles 13 | #WINSRC = $(WINCURSESSRC) 14 | @@ -669,8 +669,7 @@ tile.c: ../win/share/tilemap.c $(HACK_H) 15 | # hack.h depends on makedefs' output, so we know makedefs will be 16 | # up to date before being executed 17 | ../include/date.h: $(VERSOURCES) $(HACK_H) 18 | - -$(SHELL) ../sys/unix/gitinfo.sh $(GITINFO) #before 'makedefs -v' 19 | - ../util/makedefs -v 20 | + true 21 | 22 | 23 | lint: 24 | -------------------------------------------------------------------------------- /nethack/patches/050-nethack.sh.patch: -------------------------------------------------------------------------------- 1 | --- a/sys/unix/nethack.sh 2 | +++ b/sys/unix/nethack.sh 3 | @@ -3,7 +3,7 @@ 4 | # Copyright (c) 2015 by Kenneth Lorber, Kensington, Maryland 5 | # NetHack may be freely redistributed. See license for details. 6 | 7 | -HACKDIR=/usr/games/lib/nethackdir 8 | +HACKDIR=/opt/share/nethackdir 9 | export HACKDIR 10 | HACK=$HACKDIR/nethack 11 | 12 | -------------------------------------------------------------------------------- /nethack/patches/060-tparm-doubled-def.patch: -------------------------------------------------------------------------------- 1 | --- a/win/tty/termcap.c 2 | +++ b/win/tty/termcap.c 3 | @@ -838,10 +838,6 @@ cl_eos() /* free after Robert Viduya */ 4 | 5 | #include 6 | 7 | -#if !defined(LINUX) && !defined(__FreeBSD__) && !defined(NOTPARMDECL) 8 | -extern char *tparm(); 9 | -#endif 10 | - 11 | #ifndef COLOR_BLACK /* trust include file */ 12 | #ifndef _M_UNIX /* guess BGR */ 13 | #define COLOR_BLACK 0 14 | -------------------------------------------------------------------------------- /nethack/patches/070-config.h.patch: -------------------------------------------------------------------------------- 1 | --- a/include/config.h 2 | +++ b/include/config.h 3 | @@ -261,7 +261,7 @@ 4 | * 5 | */ 6 | 7 | -#if defined(UNIX) && !defined(ZLIB_COMP) && !defined(COMPRESS) 8 | +#if 0 9 | /* path and file name extension for compression program */ 10 | #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ 11 | #define COMPRESS_EXTENSION ".Z" /* compress's extension */ 12 | @@ -352,7 +352,7 @@ 13 | * otherwise it will be the current directory. 14 | */ 15 | #ifndef HACKDIR 16 | -#define HACKDIR "/usr/games/lib/nethackdir" 17 | +#define HACKDIR "/opt/share/nethackdir" 18 | #endif 19 | 20 | /* 21 | -------------------------------------------------------------------------------- /nethogs/patches/010-no-tests.patch: -------------------------------------------------------------------------------- 1 | --- a/src/MakeApp.mk 2 | +++ b/src/MakeApp.mk 3 | @@ -53,7 +53,7 @@ conninode.o: conninode.cpp nethogs.h con 4 | cui.o: cui.cpp cui.h nethogs.h 5 | $(CXX) $(CPPFLAGS) $(CXXFLAGS) -c cui.cpp -DVERSION=\"$(VERSION)\" 6 | 7 | -TESTS=conninode_test 8 | +TESTS= 9 | 10 | .PHONY: test 11 | test: $(TESTS) 12 | -------------------------------------------------------------------------------- /nfusr/patches/010-entware.patch: -------------------------------------------------------------------------------- 1 | --- a/nfusr.cpp 2 | +++ b/nfusr.cpp 3 | @@ -379,7 +379,7 @@ bool can_set_allow_others() { 4 | 5 | // Non-root user can only set allow_others if /etc/fuse.conf 6 | // contains user_allow_other. 7 | - std::ifstream fuse_conf("/etc/fuse.conf"); 8 | + std::ifstream fuse_conf("/opt/etc/fuse.conf"); 9 | if (fuse_conf) { 10 | std::string line; 11 | 12 | -------------------------------------------------------------------------------- /nfusr/patches/020-makedev_warning.patch: -------------------------------------------------------------------------------- 1 | --- a/NfsClient.cpp 2 | +++ b/NfsClient.cpp 3 | @@ -16,6 +16,7 @@ 4 | #include 5 | #include 6 | #include 7 | +#include 8 | 9 | double NfsClient::attrTimeout_ = 0.0; 10 | 11 | @@ -546,7 +547,7 @@ void NfsClient::readdir( 12 | auto buff = (FuseDirBuffer*)(uintptr_t)file->fh; 13 | 14 | if ((size_t)off < buff->getSize()) { 15 | - const size_t toSend = std::min(buff->getSize() - off, size); 16 | + const size_t toSend = std::min(static_cast(buff->getSize() - off), size); 17 | logger_->LOG_MSG(LOG_DEBUG, "%s(%lu)\n", __func__, fuse_get_unique(req)); 18 | fuse_reply_buf(req, buff->getBuffer() + off, toSend); 19 | } else { 20 | -------------------------------------------------------------------------------- /nfusr/patches/030-mount.nfusr_ash_compat.patch: -------------------------------------------------------------------------------- 1 | --- a/mount.nfusr.in 2 | +++ b/mount.nfusr.in 3 | @@ -1,4 +1,4 @@ 4 | -#!/bin/bash 5 | +#!/bin/sh 6 | 7 | NFUSR="@bindir@/nfusr" 8 | 9 | @@ -12,13 +12,16 @@ function usage() { 10 | # Parse the 'host' command line argument, return a set of NFS hosts in $HOSTS global. 11 | function get_hosts () { 12 | local HOST=$1 13 | - if [[ "$HOST" =~ ^nfs://.* ]]; then 14 | + case "$HOST" in 15 | + nfs://*) 16 | HOSTS=$(echo "$HOST" | sed 's/,/ /g') 17 | - else 18 | + ;; 19 | + *) 20 | echo "Invalid host specifier: $HOST." 21 | usage 22 | return 1 23 | - fi 24 | + ;; 25 | + esac 26 | 27 | return 0 28 | } 29 | -------------------------------------------------------------------------------- /ngrok-c/patches/010-fix_pointer_comparison.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Entware/rtndev/02552c2da6b16583dabff8411c06fd1f00a7d726/ngrok-c/patches/010-fix_pointer_comparison.patch -------------------------------------------------------------------------------- /ngrok-c/src/Makefile: -------------------------------------------------------------------------------- 1 | CFLAGS+=-fexceptions -DOPENSSL=1 -O2 2 | SRC=sendmsg.cpp openssldl.cpp cJSON.c main.cpp nonblocking.cpp opensslbio.cpp ngrok.cpp 3 | 4 | #ddns.cpp 5 | #global.cpp 6 | #https.cpp 7 | #ngrok-c.cbp 8 | #polarsslbio.cpp 9 | #win-ngrok-c.cbp 10 | 11 | all: 12 | $(CXX) -s $(SRC) $(CFLAGS) $(CXXFLAGS) -o ngrokc $(LDFLAGS) -lssl -lcrypto -ldl 13 | 14 | clean: 15 | rm -f $(LIBS) ngrokc 16 | -------------------------------------------------------------------------------- /nonroot/patches/010-cross-compile.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile 2 | +++ b/Makefile 3 | @@ -2,8 +2,6 @@ 4 | # Makefile for building nonroot 5 | # 6 | 7 | -CC = gcc 8 | -CFLAGS = -std=c99 -Wall -Wextra -pedantic -O2 -g 9 | INSTALL = install -D 10 | INSTALL_PROGRAM = $(INSTALL) 11 | INSTALL_DATA = $(INSTALL) -m 644 12 | @@ -22,7 +20,7 @@ MAKE = make 13 | all: nonroot 14 | 15 | nonroot: nonroot.c 16 | - $(CC) $(CFLAGS) -o nonroot nonroot.c 17 | + $(CC) $(CFLAGS) $(LDFLAGS) -o nonroot nonroot.c 18 | 19 | install: nonroot 20 | $(INSTALL_PROGRAM) nonroot $(DESTDIR)$(bindir)/nonroot 21 | -------------------------------------------------------------------------------- /ntopng/files/S72ntopng: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=ntopng 5 | ARGS="/opt/etc/ntopng/ntopng.conf" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /ntopng/patches/015-fix-ndpi.patch: -------------------------------------------------------------------------------- 1 | --- a/configure.ac.in 2 | +++ b/configure.ac.in 3 | @@ -317,11 +317,14 @@ if test -d /usr/local/include/ndpi ; the 4 | echo "WARNING: /usr/local/include/ndpi is present and might lead to compile errors" 5 | fi 6 | 7 | -NDPI_INC=`echo $NDPI_CFLAGS | sed -e "s/[ ]*$//"` 8 | -NDPI_LIB= 9 | -NDPI_LIB_DEP= 10 | - 11 | -AC_MSG_CHECKING(for nDPI source) 12 | +PKG_CHECK_MODULES([NDPI], [libndpi >= 2.0], [ 13 | + NDPI_INC=`echo $NDPI_CFLAGS | sed -e "s/[ ]*$//"` 14 | + # Use static libndpi library as building against the dynamic library fails 15 | + NDPI_LIB="-lndpi" 16 | + #NDPI_LIB="$NDPI_LIBS" 17 | + NDPI_LIB_DEP= 18 | + ], [ 19 | + AC_MSG_CHECKING(for nDPI source) 20 | if test -d "./nDPI" ; then : 21 | NDPI_HOME=./nDPI 22 | elif test -d "../nDPI" ; then : 23 | @@ -346,7 +349,7 @@ AC_MSG_CHECKING(for nDPI source) 24 | else 25 | AC_MSG_RESULT(not found) 26 | fi 27 | - 28 | + ]) 29 | 30 | if test ! -z "$NDPI_CUST_INC" ; then : 31 | NDPI_INC=$NDPI_CUST_INC 32 | -------------------------------------------------------------------------------- /ntopng/patches/020-fix-conf.patch: -------------------------------------------------------------------------------- 1 | --- a/packages/etc/ntopng/ntopng.conf 2 | +++ b/packages/etc/ntopng/ntopng.conf 3 | @@ -7,7 +7,7 @@ 4 | # Specifies the path where the PID (process ID) is saved. This option is ignored when 5 | # ntopng is controlled with systemd (e.g., service ntopng start). 6 | # 7 | --G=/var/run/ntopng.pid 8 | +-G=/opt/var/run/ntopng.pid 9 | # 10 | # -e|--daemon 11 | # This parameter causes ntop to become a daemon, i.e. a task which runs in the background 12 | @@ -61,7 +61,7 @@ 13 | # -d|--data-dir 14 | # Specifies the data directory (it must be writable by the user that is executing ntopng). 15 | # 16 | -#-d=/var/lib/ntopng 17 | +-d=/opt/var/lib/ntopng 18 | # 19 | # -q|--disable-autologout 20 | # Disable web interface logout for inactivity. 21 | -------------------------------------------------------------------------------- /ntopng/patches/060-fix-lua.patch: -------------------------------------------------------------------------------- 1 | --- a/scripts/lua/modules/os_utils.lua 2 | +++ b/scripts/lua/modules/os_utils.lua 3 | @@ -86,8 +86,8 @@ function os_utils.execWithOutput(c, ret_ 4 | f_name = os.tmpname() 5 | os.execute(c.." > "..f_name) 6 | f = io.open(f_name, 'r') 7 | - else 8 | - f = io.popen(c, 'r') 9 | +-- else 10 | +-- f = io.popen(c, 'r') 11 | end 12 | 13 | if f == nil then 14 | -------------------------------------------------------------------------------- /ntopng/patches/070-fix-TZ.patch: -------------------------------------------------------------------------------- 1 | --- a/src/Ntop.cpp 2 | +++ b/src/Ntop.cpp 3 | @@ -4149,7 +4149,7 @@ void Ntop::setZoneInfo() { 4 | 5 | /* Read timezone from /etc/localtime (if TZ is not set) */ 6 | if (tz == NULL) { 7 | - ssize_t rc = readlink("/etc/localtime", buf, sizeof(buf)); 8 | + ssize_t rc = readlink("/opt/etc/localtime", buf, sizeof(buf)); 9 | 10 | if (rc > 0) { 11 | buf[rc] = '\0'; 12 | -------------------------------------------------------------------------------- /oscam/files/S59oscam: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=oscam 5 | ARGS="-b" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /oscam/patches/010-cross-compile.patch: -------------------------------------------------------------------------------- 1 | --- a/CMakeLists.txt 2 | +++ b/CMakeLists.txt 3 | @@ -462,9 +462,9 @@ if( HAVE_LIBRT OR HAVE_LIBRT_STATIC) 4 | endif (LIBUSBDIR) 5 | endif( HAVE_LIBRT OR HAVE_LIBRT_STATIC) 6 | 7 | -check_include_file ("PCSC/wintypes.h" HAVE_PCSC) 8 | +check_include_file ("${OPTIONAL_INCLUDE_DIR}/PCSC/wintypes.h" HAVE_PCSC) 9 | if (HAVE_PCSC) 10 | - FIND_PATH (PCSC_PATH PCSC/wintypes.h) 11 | + FIND_PATH (PCSC_PATH ${OPTIONAL_INCLUDE_DIR}/PCSC/wintypes.h) 12 | if(OPTIONAL_INCLUDE_DIR AND EXISTS ${OPTIONAL_INCLUDE_DIR}/PCSC/wintypes.h) 13 | message(STATUS " PCSC headers found (${OPTIONAL_INCLUDE_DIR}/PCSC). Adding PCSC support ") 14 | add_definitions ("-DWITH_PCSC=1") 15 | @@ -858,7 +858,7 @@ if (OSCamOperatingSystem MATCHES "Mac OS 16 | endif (SWVER MATCHES "10.8") 17 | else (OSCamOperatingSystem MATCHES "Mac OS X") 18 | if (NOT CMAKE_BUILD_TYPE STREQUAL Debug) 19 | - set (CMAKE_EXE_LINKER_FLAGS "-s") 20 | + set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -s") 21 | else (NOT CMAKE_BUILD_TYPE STREQUAL Debug) 22 | message (STATUS " building with debug") 23 | set (CMAKE_EXE_LINKER_FLAGS "-ggdb") 24 | -------------------------------------------------------------------------------- /oscam/patches/020-log-dir.patch: -------------------------------------------------------------------------------- 1 | --- a/Distribution/doc/example/oscam.conf 2 | +++ b/Distribution/doc/example/oscam.conf 3 | @@ -8,9 +8,9 @@ WaitForCards = 1 4 | 5 | # logging 6 | 7 | -logfile = /var/log/oscam/oscam.log 8 | -usrfile = /var/log/oscam/oscamuser.log 9 | -cwlogdir = /var/log/oscam/cw 10 | +logfile = /opt/var/log/oscam/oscam.log 11 | +usrfile = /opt/var/log/oscam/oscamuser.log 12 | +cwlogdir = /opt/var/log/oscam/cw 13 | 14 | # monitor 15 | 16 | @@ -35,7 +35,7 @@ numusers = 1 17 | sampletime = 2 18 | samples = 5 19 | penalty = 1 20 | -aclogfile = /var/log/oscam/aclog.log 21 | +aclogfile = /opt/var/log/oscam/aclog.log 22 | denysamples = 9 23 | 24 | # protocols 25 | -------------------------------------------------------------------------------- /p0f/patches/010-change-DB-default-path.patch: -------------------------------------------------------------------------------- 1 | --- a/config.h 2 | +++ b/config.h 3 | @@ -20,7 +20,7 @@ 4 | /* Default location of p0f.fp: */ 5 | 6 | #ifndef FP_FILE 7 | -# define FP_FILE "p0f.fp" 8 | +# define FP_FILE "/opt/share/p0f.fp" 9 | #endif /* !FP_FILE */ 10 | 11 | /* Initial permissions on log files: */ 12 | -------------------------------------------------------------------------------- /p0f/patches/020-compiler-and-linker-flags.patch: -------------------------------------------------------------------------------- 1 | --- a/build.sh 2 | +++ b/build.sh 3 | @@ -13,12 +13,11 @@ VERSION="3.09b" 4 | 5 | test "$CC" = "" && CC="gcc" 6 | 7 | -BASIC_CFLAGS="-Wall -Wno-format -I/usr/local/include/ \ 8 | - -I/opt/local/include/ -DVERSION=\"$VERSION\" $CFLAGS" 9 | +BASIC_CFLAGS="-Wall -Wno-format -DVERSION=\"$VERSION\" $CFLAGS" 10 | 11 | -BASIC_LDFLAGS="-L/usr/local/lib/ -L/opt/local/lib $LDFLAGS" 12 | +BASIC_LDFLAGS="$LDFLAGS" 13 | 14 | -USE_CFLAGS="-fstack-protector-all -fPIE -D_FORTIFY_SOURCE=2 -g -ggdb \ 15 | +USE_CFLAGS="-fPIE -g -ggdb \ 16 | $BASIC_CFLAGS" 17 | 18 | USE_LDFLAGS="-Wl,-z,relro -pie $BASIC_LDFLAGS" 19 | -------------------------------------------------------------------------------- /pcal/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2021 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | # Abandoned in 2007 8 | 9 | include $(TOPDIR)/rules.mk 10 | 11 | PKG_NAME:=pcal 12 | PKG_VERSION:=4.11.0 13 | PKG_RELEASE:=1 14 | 15 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz 16 | PKG_SOURCE_URL:=@SF/$(PKG_NAME) 17 | PKG_HASH:=8406190e7912082719262b71b63ee31a98face49aa52297db96cc0c970f8d207 18 | 19 | include $(INCLUDE_DIR)/package.mk 20 | 21 | define Package/pcal 22 | SECTION:=utils 23 | CATEGORY:=Utilities 24 | TITLE:=calendar-generation program 25 | URL:=http://pcal.sourceforge.net 26 | MAINTAINER:=Entware team, https://entware.net 27 | endef 28 | 29 | define Package/pcal/description 30 | PCAL is a calendar-generation program which produce nice-looking PostScript output. 31 | endef 32 | 33 | define Package/pcal/install 34 | $(INSTALL_DIR) $(1)/opt/bin 35 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/exec/$(PKG_NAME) $(1)/opt/bin 36 | endef 37 | 38 | $(eval $(call BuildPackage,pcal)) 39 | -------------------------------------------------------------------------------- /php8-pecl-apcu/Makefile: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-2.0-only 2 | # 3 | # Copyright (C) 2023-2025 Entware 4 | 5 | include $(TOPDIR)/rules.mk 6 | 7 | PECL_NAME:=apcu 8 | PECL_LONGNAME:=APCu - APC User Cache 9 | 10 | PKG_VERSION:=5.1.24 11 | PKG_RELEASE:=1 12 | 13 | PKG_NAME:=php8-pecl-$(PECL_NAME) 14 | PKG_SOURCE:=$(PECL_NAME)-$(PKG_VERSION).tgz 15 | PKG_SOURCE_URL:=https://pecl.php.net/get/ 16 | PKG_HASH:=5c28a55b27082c69657e25b7ecf553e2cf6b74ec3fa77d6b76f4fb982e001e43 17 | 18 | PKG_BUILD_DIR:=$(BUILD_DIR)/pecl-php8/$(PECL_NAME)-$(PKG_VERSION) 19 | 20 | PKG_MAINTAINER:=Entware team, https://entware.net 21 | PKG_LICENSE:=PHP-3.01 22 | PKG_LICENSE_FILES:=LICENSE 23 | 24 | PKG_BUILD_PARALLEL:=1 25 | 26 | include $(INCLUDE_DIR)/package.mk 27 | include $(INCLUDE_DIR)/nls.mk 28 | include $(TOPDIR)/feeds/packages/lang/php8/pecl.mk 29 | 30 | CONFIGURE_ARGS += \ 31 | --enable-apcu 32 | 33 | $(eval $(call PHP8PECLPackage,$(PECL_NAME),$(PECL_LONGNAME),,20)) 34 | $(eval $(call BuildPackage,$(PKG_NAME))) 35 | -------------------------------------------------------------------------------- /php8-pecl-event/Makefile: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-2.0-only 2 | # 3 | # Copyright (C) 2022-2025 Entware 4 | 5 | include $(TOPDIR)/rules.mk 6 | 7 | PECL_NAME:=event 8 | PECL_LONGNAME:=Provides interface to libevent library 9 | 10 | PKG_VERSION:=3.1.4 11 | PKG_RELEASE:=1 12 | 13 | PKG_NAME:=php8-pecl-$(PECL_NAME) 14 | PKG_SOURCE:=$(PECL_NAME)-$(PKG_VERSION).tgz 15 | PKG_SOURCE_URL:=https://pecl.php.net/get 16 | PKG_HASH:=5c4caa73bc2dceee31092ff9192139df28e9a80f1147ade0dfe869db2e4ddfd3 17 | 18 | PKG_BUILD_DIR:=$(BUILD_DIR)/pecl-php8/$(PECL_NAME)-$(PKG_VERSION) 19 | 20 | PKG_MAINTAINER:=Entware team, https://entware.net 21 | PKG_LICENSE:=PHP-3.01 22 | PKG_LICENSE_FILES:=LICENSE 23 | 24 | PKG_BUILD_DEPENDS:=php8 25 | PKG_BUILD_PARALLEL:=1 26 | 27 | include $(INCLUDE_DIR)/package.mk 28 | include $(INCLUDE_DIR)/nls.mk 29 | include $(TOPDIR)/feeds/packages/lang/php8/pecl.mk 30 | 31 | CONFIGURE_ARGS += \ 32 | --with-event-libevent-dir=$(STAGING_DIR)/opt \ 33 | --with-event-pthreads 34 | 35 | $(eval $(call PHP8PECLPackage,$(PECL_NAME),$(PECL_LONGNAME),+libevent2-extra +libevent2-openssl +libevent2-pthreads +php8-mod-sockets,30)) 36 | $(eval $(call BuildPackage,$(PKG_NAME))) 37 | -------------------------------------------------------------------------------- /php8-pecl-gmagick/patches/010-GraphicsMagick-config_path.patch: -------------------------------------------------------------------------------- 1 | --- a/config.m4 2 | +++ b/config.m4 3 | @@ -5,11 +5,6 @@ if test $PHP_GMAGICK != "no"; then 4 | 5 | AC_MSG_CHECKING(GraphicsMagick configuration program) 6 | 7 | - for i in $PHP_GMAGICK /usr/local /usr; 8 | - do 9 | - test -r $i/bin/GraphicsMagick-config && WAND_BINARY=$i/bin/GraphicsMagick-config && break 10 | - done 11 | - 12 | if test -z "$WAND_BINARY"; then 13 | AC_MSG_ERROR(not found. Please provide a path to GraphicsMagick-config program.) 14 | fi 15 | -------------------------------------------------------------------------------- /php8-pecl-ssh2/Makefile: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-2.0-only 2 | # 3 | # Copyright (C) 2024 Entware 4 | 5 | include $(TOPDIR)/rules.mk 6 | 7 | PECL_NAME:=ssh2 8 | PECL_LONGNAME:=Bindings for the libssh2 library 9 | 10 | PKG_VERSION:=1.4.1 11 | PKG_RELEASE:=1 12 | 13 | PKG_NAME:=php8-pecl-$(PECL_NAME) 14 | PKG_SOURCE:=$(PECL_NAME)-$(PKG_VERSION).tgz 15 | PKG_SOURCE_URL:=https://pecl.php.net/get/ 16 | PKG_HASH:=7bca5b23f731db9d8ed0aea5db9bb15da8ff133b0fbba96102b82e95da4d8764 17 | 18 | PKG_BUILD_DIR:=$(BUILD_DIR)/pecl-php8/$(PECL_NAME)-$(PKG_VERSION) 19 | 20 | PKG_LICENSE:=PHP-3.01 21 | PKG_LICENSE_FILES:=LICENSE 22 | PKG_MAINTAINER:=Entware team, https://entware.net 23 | 24 | PKG_BUILD_PARALLEL:=1 25 | 26 | include $(INCLUDE_DIR)/package.mk 27 | include $(INCLUDE_DIR)/nls.mk 28 | include $(TOPDIR)/feeds/packages/lang/php8/pecl.mk 29 | 30 | CONFIGURE_ARGS += \ 31 | --with-ssh2=$(STAGING_DIR)/opt 32 | 33 | $(eval $(call PHP8PECLPackage,$(PECL_NAME),$(PECL_LONGNAME),+libssh2,20)) 34 | $(eval $(call BuildPackage,$(PKG_NAME))) 35 | -------------------------------------------------------------------------------- /php8-pecl-trader/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2021 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | include $(TOPDIR)/rules.mk 9 | 10 | PECL_NAME:=trader 11 | PECL_LONGNAME:=Technical Analysis for traders 12 | 13 | PKG_VERSION:=0.5.1 14 | PKG_RELEASE:=1 15 | PKG_HASH:=3e99cf1066bfb43f026451f343ee81004f231540e7cef5e2574d410b9910de32 16 | 17 | PKG_NAME:=php8-pecl-$(PECL_NAME) 18 | PKG_SOURCE:=$(PECL_NAME)-$(PKG_VERSION).tgz 19 | PKG_SOURCE_URL:=http://pecl.php.net/get/ 20 | 21 | PKG_BUILD_DIR:=$(BUILD_DIR)/pecl-php8/$(PECL_NAME)-$(PKG_VERSION) 22 | PKG_BUILD_PARALLEL:=1 23 | 24 | PKG_MAINTAINER:=Entware team, https://entware.net 25 | 26 | PKG_LICENSE:=PHP-3.01 27 | PKG_LICENSE_FILES:=LICENSE 28 | 29 | include $(INCLUDE_DIR)/package.mk 30 | include $(INCLUDE_DIR)/nls.mk 31 | include $(TOPDIR)/feeds/packages/lang/php8/pecl.mk 32 | 33 | $(eval $(call PHP8PECLPackage,$(PECL_NAME),$(PECL_LONGNAME))) 34 | $(eval $(call BuildPackage,$(PKG_NAME))) 35 | -------------------------------------------------------------------------------- /pimd/files/S69pimd: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=pimd 5 | ARGS="-N -c /opt/etc/pimd.conf" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/opt/sbin:/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /pingu/files/S11pingu: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=pingu 5 | ARGS="" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/opt/sbin:/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /pingu/patches/010-paths.patch: -------------------------------------------------------------------------------- 1 | --- a/src/Makefile 2 | +++ b/src/Makefile 3 | @@ -17,7 +17,7 @@ datarootdir ?= $(prefix)/share 4 | 5 | rundir ?= $(localstatedir)/run 6 | 7 | -pingustatedir = $(rundir)/pingu 8 | +pingustatedir = $(rundir) 9 | 10 | DESTDIR ?= 11 | 12 | @@ -36,7 +36,7 @@ CFLAGS += -I../ 13 | CFLAGS += -DPINGU_VERSION=\"$(PINGU_VERSION)\" 14 | CFLAGS += -Wall -Wstrict-prototypes -D_GNU_SOURCE -std=gnu99 15 | CFLAGS += -DDEFAULT_PIDFILE=\"$(pingustatedir)/pingu.pid\" 16 | -CFLAGS += -DDEFAULT_CONFIG=\"$(sysconfdir)/pingu/pingu.conf\" 17 | +CFLAGS += -DDEFAULT_CONFIG=\"$(sysconfdir)/pingu.conf\" 18 | CFLAGS += -DDEFAULT_ADM_client=\"$(pingustatedir)/pingu.ctl\" 19 | 20 | pingu_OBJS = \ 21 | --- a/src/pingu_adm.h 22 | +++ b/src/pingu_adm.h 23 | @@ -4,7 +4,7 @@ 24 | #include 25 | 26 | #ifndef DEFAULT_ADM_SOCKET 27 | -#define DEFAULT_ADM_SOCKET "/var/run/pingu/pingu.ctl" 28 | +#define DEFAULT_ADM_SOCKET "/opt/var/run/pingu.ctl" 29 | #endif 30 | 31 | int pingu_adm_init(struct ev_loop *loop, const char *socket_path); 32 | -------------------------------------------------------------------------------- /pixelserv-tls/files/S80pixelserv-tls: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=pixelserv-tls 5 | ARGS="" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /pixelserv-tls/patches/010-fix-paths.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile.am 2 | +++ b/Makefile.am 3 | @@ -1,6 +1,6 @@ 4 | bin_PROGRAMS = pixelserv-tls 5 | man1_MANS = pixelserv-tls.1 6 | -pixelserv_tls_CFLAGS = -DDROP_ROOT -DIF_MODE -DDEFAULT_PEM_PATH=\"/var/cache/pixelserv\" 7 | +pixelserv_tls_CFLAGS = -DDROP_ROOT -DIF_MODE -DDEFAULT_PEM_PATH=\"/opt/var/cache/pixelserv\" 8 | pixelserv_tls_CFLAGS += -O3 -Wall -ffunction-sections -fdata-sections -fno-strict-aliasing $(EXTRA_CFLAGS) 9 | pixelserv_tls_LDFLAGS = $(EXTRA_LDFLAGS) 10 | pixelserv_tls_SOURCES = pixelserv.c socket_handler.c certs.c util.c logger.c 11 | -------------------------------------------------------------------------------- /pixelserv-tls/patches/020-fix-openssl-3x.patch: -------------------------------------------------------------------------------- 1 | --- a/pixelserv.c 2 | +++ b/pixelserv.c 3 | @@ -820,10 +820,16 @@ skip_ssl_accept: 4 | break; 5 | /* fall through */ 6 | default: 7 | +#if OPENSSL_VERSION_NUMBER < 0x30000000L 8 | log_msg(LGG_WARNING, "handshake failed: client %s:%s server %s. Lib(%d) Func(%d) Reason(%d)", 9 | ip_buf, port_buf, t->servername, 10 | ERR_GET_LIB(ERR_peek_last_error()), ERR_GET_FUNC(ERR_peek_last_error()), 11 | ERR_GET_REASON(ERR_peek_last_error())); 12 | +#else 13 | + log_msg(LGG_WARNING, "handshake failed: client %s:%s server %s. Lib(%d) Reason(%d)", 14 | + ip_buf, port_buf, t->servername, 15 | + ERR_GET_LIB(ERR_peek_last_error()), ERR_GET_REASON(ERR_peek_last_error())); 16 | +#endif 17 | } 18 | break; 19 | case SSL_ERROR_SYSCALL: 20 | -------------------------------------------------------------------------------- /poppler/patches/010-fix-pkgconfig.patch: -------------------------------------------------------------------------------- 1 | --- a/poppler-cpp.pc.cmake 2 | +++ b/poppler-cpp.pc.cmake 3 | @@ -1,6 +1,6 @@ 4 | prefix=@CMAKE_INSTALL_PREFIX@ 5 | -libdir=@CMAKE_INSTALL_FULL_LIBDIR@ 6 | -includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@ 7 | +libdir=${prefix}/lib 8 | +includedir=${prefix}/include 9 | 10 | Name: poppler-cpp 11 | Description: cpp backend for Poppler PDF rendering library 12 | --- a/poppler.pc.cmake 13 | +++ b/poppler.pc.cmake 14 | @@ -1,6 +1,6 @@ 15 | prefix=@CMAKE_INSTALL_PREFIX@ 16 | -libdir=@CMAKE_INSTALL_FULL_LIBDIR@ 17 | -includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@ 18 | +libdir=${prefix}/lib 19 | +includedir=${prefix}/include 20 | 21 | Name: poppler 22 | Description: PDF rendering library 23 | -------------------------------------------------------------------------------- /ps3netsrv/files/S76ps3netsrv: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=ps3netsrv 5 | ARGS="/opt/share/ps3netsrv" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /ps3netsrv/patches/010-cross-compile.patch: -------------------------------------------------------------------------------- 1 | --- a/_Projects_/ps3netsrv/Makefile.linux 2 | +++ b/_Projects_/ps3netsrv/Makefile.linux 3 | @@ -1,5 +1,5 @@ 4 | OS = linux 5 | -BUILD_TYPE = release_static 6 | +BUILD_TYPE = release 7 | 8 | OUTPUT := ps3netsrv 9 | OBJS = src/main.o src/padlock.o src/aes.o src/compat.o src/mem.o src/File.o src/VIsoFile.o 10 | @@ -22,7 +22,7 @@ CPPFLAGS += -Doff64_t=off_t 11 | #CPPFLAGS +=-DNOSSL 12 | #OBJS = src/main.o src/compat.o src/mem.o src/File.o src/VIsoFile.o 13 | 14 | -LDFLAGS = -L. 15 | +LDFLAGS += -L. 16 | LIBS = -lstdc++ 17 | 18 | 19 | -------------------------------------------------------------------------------- /ptokax/files/S95ptokax: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=PtokaX 5 | ARGS="-d -c /opt/share/ptokax/" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /ptokax/patches/030-skein.patch: -------------------------------------------------------------------------------- 1 | --- a/skein/makefile 2 | +++ b/skein/makefile 3 | @@ -17,7 +17,7 @@ CXX = cc 4 | #******************************************************************************* 5 | # Release flags 6 | #******************************************************************************* 7 | -CXXFLAGS = -O -Wall 8 | +#CXXFLAGS = -O -Wall 9 | 10 | #******************************************************************************* 11 | # Include 12 | -------------------------------------------------------------------------------- /ptokax/patches/040-tinixml.patch: -------------------------------------------------------------------------------- 1 | --- a/tinyxml/makefile 2 | +++ b/tinyxml/makefile 3 | @@ -17,7 +17,7 @@ CXX = c++ 4 | #******************************************************************************* 5 | # Release flags 6 | #******************************************************************************* 7 | -CXXFLAGS = -O -Wall -DTIXML_USE_STL 8 | +CXXFLAGS += -Wall -DTIXML_USE_STL 9 | 10 | #******************************************************************************* 11 | # Archive to create 12 | -------------------------------------------------------------------------------- /pureftpd/files/S65pureftpd: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=pure-ftpd 5 | ARGS="/opt/etc/pure-ftpd.conf" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /pureftpd/patches/010-mysql_runtime_test.patch: -------------------------------------------------------------------------------- 1 | --- a/configure.ac 2 | +++ b/configure.ac 3 | @@ -1234,11 +1234,11 @@ AC_ARG_WITH(mysql, 4 | [ if test "x$withval" != "xno" ; then 5 | if test "x$withval" != "x" && test "x$withval" != "xyes" ; then 6 | LD_RUN_PATH="${withval}/lib${LD_RUN_PATH:+:}${LD_RUN_PATH}" 7 | - LDFLAGS="$LDFLAGS -L${withval}/lib -L${withval}/lib/mysql -L${withval}/mysql/lib" 8 | - CPPFLAGS="$CPPFLAGS -I${withval}/include -I${withval}/include/mysql -I${withval}/mysql/include" 9 | + LDFLAGS="$LDFLAGS -L${withval}/lib -L${withval}/lib/mysql" 10 | + CPPFLAGS="$CPPFLAGS -I${withval}/include -I${withval}/include/mysql" 11 | else 12 | - CFLAGS="$CFLAGS `mariadb_config --cflags 2> /dev/null || mysql_config --cflags`" 13 | - LDFLAGS="$LDFLAGS `mariadb_config --libs 2> /dev/null || mysql_config --libs`" 14 | + CFLAGS="$CFLAGS `mysql_config --cflags`" 15 | + LDFLAGS="$LDFLAGS `mysql_config --libs`" 16 | fi 17 | AC_CHECK_LIB(m, floor) 18 | AC_CHECK_LIB(z, gzclose) 19 | -------------------------------------------------------------------------------- /pwnat/patches/010-cross-compile.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile 2 | +++ b/Makefile 3 | @@ -23,8 +23,8 @@ OS=LINUX 4 | #OS=SOLARIS 5 | #OS=CYGWIN 6 | 7 | -CC=gcc 8 | -CFLAGS=-Wall -Wshadow -Wpointer-arith -Wwrite-strings -D ${OS} 9 | +CC?=gcc 10 | +CFLAGS+=-Wall -Wshadow -Wpointer-arith -Wwrite-strings -D ${OS} 11 | 12 | ifeq (${OS}, SOLARIS) 13 | LDFLAGS=-lnsl -lsocket -lresolv 14 | -------------------------------------------------------------------------------- /pwnat/patches/020-fix.patch: -------------------------------------------------------------------------------- 1 | --- a/src/socket.c 2 | +++ b/src/socket.c 3 | @@ -152,7 +152,7 @@ int sock_connect(socket_t *sock, int is_ 4 | sa.sin_addr.s_addr = htonl(INADDR_ANY); 5 | 6 | setsockopt(sock->fd, SOL_SOCKET, SO_REUSEADDR, &reuseaddr, sizeof(int)); 7 | - setsockopt(sock->fd, SOL_SOCKET, SO_REUSEPORT, &reuseport, sizeof(int)); 8 | + setsockopt(sock->fd, SOL_SOCKET, SO_REUSEADDR, &reuseport, sizeof(int)); 9 | 10 | if(sock->type == SOCK_DGRAM) 11 | if( bind(sock->fd, (const struct sockaddr *)&sa, sizeof(struct sockaddr_in))!= 0) 12 | -------------------------------------------------------------------------------- /python-cups/Makefile: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-2.0-only 2 | # 3 | # Copyright (C) 2011-2024 Entware 4 | # 5 | 6 | include $(TOPDIR)/rules.mk 7 | 8 | PKG_NAME:=python-cups 9 | PKG_VERSION:=2.0.4 10 | PKG_RELEASE:=1 11 | 12 | PYPI_NAME:=pycups 13 | PKG_HASH:=843e385c1dbf694996ca84ef02a7f30c28376035588f5fbeacd6bae005cf7c8d 14 | 15 | include $(TOPDIR)/feeds/packages/lang/python/pypi.mk 16 | include $(INCLUDE_DIR)/package.mk 17 | include $(TOPDIR)/feeds/packages/lang/python/python3-package.mk 18 | 19 | define Package/python3-cups 20 | SECTION:=lang 21 | CATEGORY:=Languages 22 | SUBMENU:=Python 23 | TITLE:=Python bindings for the CUPS API 24 | URL:=http://cyberelk.net/tim/software/pycups/ 25 | MAINTAINER:=Entware team, https://entware.net 26 | DEPENDS:=+python3 +cups 27 | endef 28 | 29 | define Package/python3-cups/description 30 | This is a Python bindings for the CUPS API, known as pycups. It was written 31 | for use with system-config-printer, but can be put to other uses as well. 32 | endef 33 | 34 | $(eval $(call Py3Package,python3-cups)) 35 | $(eval $(call BuildPackage,python3-cups)) 36 | -------------------------------------------------------------------------------- /python-cups/patches/010-fix-paths.patch: -------------------------------------------------------------------------------- 1 | --- a/cupsconnection.c 2 | +++ b/cupsconnection.c 3 | @@ -3879,7 +3879,8 @@ Connection_printTestPage (Connection *se 4 | break; 5 | } 6 | } else { 7 | - const char *const dirs[] = { "/usr/share/cups", 8 | + const char *const dirs[] = { "/opt/share/cups", 9 | + "/usr/share/cups", 10 | "/usr/local/share/cups", 11 | NULL }; 12 | int found = 0; 13 | -------------------------------------------------------------------------------- /python-regex/Makefile: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-2.0-only 2 | # 3 | # Copyright (C) 2011-2025 Entware 4 | 5 | include $(TOPDIR)/rules.mk 6 | 7 | PKG_NAME:=python-regex 8 | PKG_VERSION:=2024.11.6 9 | PKG_RELEASE:=1 10 | 11 | PYPI_NAME:=regex 12 | PKG_HASH:=7ab159b063c52a0333c884e4679f8d7a85112ee3078fe3d9004b2dd875585519 13 | 14 | include $(TOPDIR)/feeds/packages/lang/python/pypi.mk 15 | include $(INCLUDE_DIR)/package.mk 16 | include $(TOPDIR)/feeds/packages/lang/python/python3-package.mk 17 | 18 | define Package/python3-regex 19 | SECTION:=lang 20 | CATEGORY:=Languages 21 | SUBMENU:=Python 22 | TITLE:=python-regexp 23 | URL:=https://bitbucket.org/mrabarnett/mrab-regex 24 | MAINTAINER:=Entware team, https://entware.net 25 | DEPENDS:=+python3-light +python3-codecs +python3-urllib 26 | endef 27 | 28 | define Package/python3-regex/description 29 | This new regex implementation is intended eventually to replace Python’s 30 | current re module implementation. 31 | endef 32 | 33 | $(eval $(call Py3Package,python3-regex)) 34 | $(eval $(call BuildPackage,python3-regex)) 35 | -------------------------------------------------------------------------------- /python-rencode/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2021 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | include $(TOPDIR)/rules.mk 9 | 10 | PKG_NAME:=rencode 11 | PKG_VERSION:=1.0.6 12 | PKG_RELEASE:=3 13 | 14 | PYPI_NAME:=rencode 15 | PKG_HASH:=2586435c4ea7d45f74e26765ad33d75309de7cf47c4d762e8efabd39905c0718 16 | 17 | include $(TOPDIR)/feeds/packages/lang/python/pypi.mk 18 | include $(INCLUDE_DIR)/package.mk 19 | include $(TOPDIR)/feeds/packages/lang/python/python3-package.mk 20 | 21 | define Package/python3-rencode 22 | SECTION:=lang 23 | CATEGORY:=Languages 24 | SUBMENU:=Python 25 | DEPENDS:=+python3 26 | TITLE:=Web safe object pickling/unpickling 27 | URL:=https://github.com/aresch/rencode 28 | MAINTAINER:=Entware team, https://entware.net 29 | endef 30 | 31 | define Package/python3-rencode/description 32 | The rencode module is similar to bencode from the BitTorrent project. 33 | endef 34 | 35 | $(eval $(call Py3Package,python3-rencode)) 36 | $(eval $(call BuildPackage,python3-rencode)) 37 | -------------------------------------------------------------------------------- /python-rencode/patches/600-fix-cython.patch: -------------------------------------------------------------------------------- 1 | --- a/setup.py 2 | +++ b/setup.py 3 | @@ -34,7 +34,8 @@ try: 4 | from Cython.Build import cythonize 5 | except ImportError as ex: 6 | from setuptools.command.build_ext import build_ext 7 | - cythonize = False 8 | + 9 | +cythonize = False 10 | 11 | source_ext = ".pyx" if cythonize else ".c" 12 | 13 | -------------------------------------------------------------------------------- /python-setproctitle/Makefile: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-2.0-only 2 | # 3 | # Copyright (C) 2011-2025 Entware 4 | 5 | include $(TOPDIR)/rules.mk 6 | 7 | PKG_NAME:=setproctitle 8 | PKG_VERSION:=1.3.6 9 | PKG_RELEASE:=1 10 | 11 | PYPI_NAME:=setproctitle 12 | PKG_HASH:=c9f32b96c700bb384f33f7cf07954bb609d35dd82752cef57fb2ee0968409169 13 | 14 | include $(TOPDIR)/feeds/packages/lang/python/pypi.mk 15 | include $(INCLUDE_DIR)/package.mk 16 | include $(TOPDIR)/feeds/packages/lang/python/python3-package.mk 17 | 18 | define Package/python3-setproctitle 19 | SECTION:=lang 20 | CATEGORY:=Languages 21 | SUBMENU:=Python 22 | DEPENDS:=+python3 23 | TITLE:=A Python module to customize the process title 24 | URL:=https://github.com/dvarrazzo/py-setproctitle 25 | MAINTAINER:=Entware team, https://entware.net 26 | endef 27 | 28 | define Package/python3-setproctitle/description 29 | A Python module to customize the process title. 30 | endef 31 | 32 | $(eval $(call Py3Package,python3-setproctitle)) 33 | $(eval $(call BuildPackage,python3-setproctitle)) 34 | -------------------------------------------------------------------------------- /qbittorrent/files/S89qbittorrent: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=qbittorrent-nox 5 | ARGS="--webui-port=9080 --profile=/opt/etc --configuration=entware -d" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/opt/sbin:/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | export LC_ALL=en_US.UTF-8 10 | 11 | . /opt/etc/init.d/rc.func 12 | -------------------------------------------------------------------------------- /qbittorrent/patches/010-fix-libstdc++fs.patch: -------------------------------------------------------------------------------- 1 | --- a/src/app/CMakeLists.txt 2 | +++ b/src/app/CMakeLists.txt 3 | @@ -60,7 +60,7 @@ target_sources(qbt_app PRIVATE 4 | ) 5 | 6 | target_link_libraries(qbt_app PRIVATE 7 | - qbt_base 8 | + qbt_base stdc++fs 9 | ) 10 | 11 | set_target_properties(qbt_app PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}") 12 | -------------------------------------------------------------------------------- /qpdf/patches/020-fix-pkgconfig.patch: -------------------------------------------------------------------------------- 1 | --- a/libqpdf.pc.in 2 | +++ b/libqpdf.pc.in 3 | @@ -1,7 +1,7 @@ 4 | prefix=@CMAKE_INSTALL_PREFIX@ 5 | exec_prefix=${prefix} 6 | -libdir=@CMAKE_INSTALL_FULL_LIBDIR@ 7 | -includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@ 8 | +libdir=${exec_prefix}/lib 9 | +includedir=${prefix}/include 10 | 11 | Name: libqpdf 12 | Description: PDF transformation library 13 | -------------------------------------------------------------------------------- /qt5/patches/020-atomic.patch: -------------------------------------------------------------------------------- 1 | --- a/qtbase/src/corelib/configure.json 2 | +++ b/qtbase/src/corelib/configure.json 3 | @@ -309,7 +309,8 @@ 4 | "test(fptr);" 5 | ], 6 | "qmake": "CONFIG += c++11" 7 | - } 8 | + }, 9 | + "use": "libatomic" 10 | }, 11 | "clock-monotonic": { 12 | "label": "POSIX monotonic clock", 13 | -------------------------------------------------------------------------------- /qt5/patches/060-glib2.patch: -------------------------------------------------------------------------------- 1 | --- a/qtbase/src/corelib/configure.json 2 | +++ b/qtbase/src/corelib/configure.json 3 | @@ -41,7 +41,8 @@ 4 | "(void) g_main_context_default();", 5 | "(void) g_source_new(0, 0);", 6 | "g_source_add_poll(NULL, NULL);" 7 | - ] 8 | + ], 9 | + "qmake": "LIBS += -L@INTL_PREFIX@/lib -lintl -L@ICONV_PREFIX@/lib -liconv" 10 | }, 11 | "headers": "glib.h", 12 | "sources": [ 13 | -------------------------------------------------------------------------------- /qt5/patches/070-certs-paths.patch: -------------------------------------------------------------------------------- 1 | --- a/qtbase/src/network/ssl/qsslsocket.cpp 2 | +++ b/qtbase/src/network/ssl/qsslsocket.cpp 3 | @@ -2955,7 +2955,8 @@ bool QSslSocketPrivate::rootCertOnDemand 4 | */ 5 | QList QSslSocketPrivate::unixRootCertDirectories() 6 | { 7 | - return QList() << "/etc/ssl/certs/" // (K)ubuntu, OpenSUSE, Mandriva ... 8 | + return QList() << "/opt/etc/ssl/certs/" // Entware 9 | + << "/etc/ssl/certs/" // (K)ubuntu, OpenSUSE, Mandriva ... 10 | << "/usr/lib/ssl/certs/" // Gentoo, Mandrake 11 | << "/usr/share/ssl/" // Centos, Redhat, SuSE 12 | << "/usr/local/ssl/" // Normal OpenSSL Tarball 13 | -------------------------------------------------------------------------------- /qt5/src/qtbase/mkspecs/devices/linux-entware-g++/arch.conf: -------------------------------------------------------------------------------- 1 | !host_build { 2 | LIBS += -latomic 3 | } -------------------------------------------------------------------------------- /qt5/src/qtbase/mkspecs/devices/linux-entware-g++/qplatformdefs.h: -------------------------------------------------------------------------------- 1 | #include "../../linux-g++/qplatformdefs.h" 2 | -------------------------------------------------------------------------------- /rcon/patches/010-remove_libbsd_dep.patch: -------------------------------------------------------------------------------- 1 | --- a/CMakeLists.txt 2 | +++ b/CMakeLists.txt 3 | @@ -32,7 +32,8 @@ ADD_DEFINITIONS("-Wall -Werror") 4 | 5 | CHECK_FUNCTION_EXISTS(open_memstream HAVE_OPEN_MEMSTREAM) 6 | CHECK_FUNCTION_EXISTS(fmemopen HAVE_FMEMOPEN) 7 | -CHECK_FUNCTION_EXISTS(arc4random_uniform HAVE_ARC4RANDOM_UNIFORM) 8 | +SET(HAVE_ARC4RANDOM_UNIFORM 1) 9 | + 10 | CHECK_FUNCTION_EXISTS(pledge HAVE_PLEDGE) 11 | CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/sysconfig.h.in 12 | ${CMAKE_CURRENT_BINARY_DIR}/sysconfig.h) 13 | @@ -73,5 +74,3 @@ IF(INSTALL_BASH_COMPLETION) 14 | RENAME "rcon") 15 | ENDIF() 16 | 17 | -ENABLE_TESTING() 18 | -ADD_SUBDIRECTORY(tests) 19 | --- a/srcrcon.c 20 | +++ b/srcrcon.c 21 | @@ -95,7 +95,7 @@ static void src_rcon_message_update_size 22 | 23 | static void src_rcon_message_random_id(src_rcon_message_t *m) 24 | { 25 | - m->id = (int32_t)arc4random_uniform(INT32_MAX-1); 26 | + m->id = (int32_t)(random() % (INT32_MAX-1)); 27 | } 28 | 29 | static rcon_error_t 30 | --- a/main.c 31 | +++ b/main.c 32 | @@ -480,6 +480,7 @@ int main(int ac, char **av) 33 | } 34 | #endif 35 | 36 | + srandom(time(NULL)); 37 | response = g_byte_array_new(); 38 | r = src_rcon_new(); 39 | 40 | -------------------------------------------------------------------------------- /rtmpdump/patches/010-use_gnutls.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile 2 | +++ b/Makefile 3 | @@ -8,9 +8,9 @@ LD=$(CROSS_COMPILE)ld 4 | SYS=posix 5 | #SYS=mingw 6 | 7 | -CRYPTO=OPENSSL 8 | +#CRYPTO=OPENSSL 9 | #CRYPTO=POLARSSL 10 | -#CRYPTO=GNUTLS 11 | +CRYPTO=GNUTLS 12 | LIBZ=-lz 13 | LIB_GNUTLS=-lgnutls -lhogweed -lnettle -lgmp $(LIBZ) 14 | LIB_OPENSSL=-lssl -lcrypto $(LIBZ) 15 | --- a/librtmp/Makefile 16 | +++ b/librtmp/Makefile 17 | @@ -16,8 +16,8 @@ LD=$(CROSS_COMPILE)ld 18 | AR=$(CROSS_COMPILE)ar 19 | 20 | SYS=posix 21 | -CRYPTO=OPENSSL 22 | -#CRYPTO=GNUTLS 23 | +#CRYPTO=OPENSSL 24 | +CRYPTO=GNUTLS 25 | DEF_POLARSSL=-DUSE_POLARSSL 26 | DEF_OPENSSL=-DUSE_OPENSSL 27 | DEF_GNUTLS=-DUSE_GNUTLS 28 | -------------------------------------------------------------------------------- /rtorrent-easy-install/files/S85rtorrent: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=rtorrent 5 | ARGS="-D -n -o import=/opt/etc/rtorrent/rtorrent.conf" 6 | PREARGS="screen -dmS rtorrent" 7 | DESC=$PROCS 8 | PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | if [ -z "`pidof $PROCS`" ]; then 11 | rm -f /opt/var/rpc.socket 12 | fi 13 | . /opt/etc/init.d/rc.func 14 | -------------------------------------------------------------------------------- /rutorrent/patches/020-access-swap.patch: -------------------------------------------------------------------------------- 1 | --- a/conf/access-swap.sh 2 | +++ b/conf/access-swap.sh 3 | @@ -1,15 +1,15 @@ 4 | -#!/bin/bash 5 | +#!/bin/sh 6 | 7 | # This script will quickly and easily swap between two different configurations so that access to configuration 8 | # options can be easily turned on or off, this can help to protect against unauthorised setting changes. 9 | 10 | -STR=$(cat access.ini | head -n1| cut -c4) 11 | +STR=$(cat < access.ini | head -n1 | cut -c4) 12 | GOOD=$(cat access_yes) 13 | BAD=$(cat access_no) 14 | 15 | -echo $STR 16 | +echo "$STR" 17 | 18 | -if [ $STR = 0 ] 19 | +if [ "$STR" = 0 ] 20 | then 21 | echo -e "\x1B[31m Access Opened \x1B[0m" 22 | echo "$GOOD" > access.ini 23 | -------------------------------------------------------------------------------- /s3fs-fuse/patches/010-fix-missing-hdr.patch: -------------------------------------------------------------------------------- 1 | --- a/src/mpu_util.cpp 2 | +++ b/src/mpu_util.cpp 3 | @@ -22,6 +22,8 @@ 4 | #include 5 | #include 6 | 7 | +#include /* xmlReadMemory */ 8 | + 9 | #include "s3fs_logger.h" 10 | #include "mpu_util.h" 11 | #include "curl.h" 12 | --- a/src/s3fs.cpp 13 | +++ b/src/s3fs.cpp 14 | @@ -34,6 +34,7 @@ 15 | #include 16 | #include 17 | #include 18 | +#include /* xmlReadMemory|xmlInitParser|xmlCleanupParser */ 19 | 20 | #include "common.h" 21 | #include "s3fs.h" 22 | --- a/src/s3fs_xml.cpp 23 | +++ b/src/s3fs_xml.cpp 24 | @@ -24,6 +24,7 @@ 25 | #include 26 | #include 27 | 28 | +#include /* xmlReadMemory */ 29 | #include "common.h" 30 | #include "s3fs_logger.h" 31 | #include "s3fs_xml.h" 32 | --- a/src/string_util.cpp 33 | +++ b/src/string_util.cpp 34 | @@ -27,6 +27,8 @@ 35 | #include 36 | #include 37 | 38 | +#include /* xmlReadMemory */ 39 | + 40 | #include "s3fs_logger.h" 41 | #include "string_util.h" 42 | 43 | -------------------------------------------------------------------------------- /sd-idle/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2021 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | include $(TOPDIR)/rules.mk 9 | 10 | PKG_NAME:=sd-idle 11 | PKG_VERSION:=2.6 12 | PKG_RELEASE:=1 13 | 14 | include $(INCLUDE_DIR)/package.mk 15 | 16 | define Package/sd-idle 17 | SECTION:=utils 18 | CATEGORY:=Utilities 19 | SUBMENU:=Disc 20 | TITLE:=Disk idle spindown program 21 | URL:=http://tomatousb.org/forum/t-271603/sd-idle-2-6-disk-idle-spindown-program-for-2-6 22 | MAINTAINER:=Entware team, https://entware.net 23 | endef 24 | 25 | define Package/sd-idle/description 26 | sd-idle-2.6 is a disk idle spindown program for router firmware based on linux 2.6. 27 | endef 28 | 29 | define Package/sd-idle/install 30 | $(INSTALL_DIR) $(1)/opt/bin 31 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/sd-idle-2.6 $(1)/opt/bin/sd-idle 32 | $(INSTALL_DIR) $(1)/opt/etc/init.d 33 | $(INSTALL_BIN) ./files/S16sdidle $(1)/opt/etc/init.d 34 | endef 35 | 36 | $(eval $(call BuildPackage,sd-idle)) 37 | -------------------------------------------------------------------------------- /sd-idle/files/S16sdidle: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=sd-idle 5 | ARGS="-i 600" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /sd-idle/src/Makefile: -------------------------------------------------------------------------------- 1 | # build executable on typing make 2 | all: sd-idle-2.6 3 | 4 | %.o: %.c 5 | $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c -I. -Iinclude -o $@ $^ 6 | 7 | sd-idle-2.6: sd-idle-2.6.o 8 | $(CC) $(LDFLAGS) -o $@ $^ -L. 9 | 10 | clean: 11 | rm -f *.o sd-idle-2.6 12 | -------------------------------------------------------------------------------- /shadowsocks-libev/files/S22shadowsocks: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=ss-local 5 | ARGS="-c /opt/etc/shadowsocks.json" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | [ -z "$(which $PROCS)" ] && exit 0 11 | 12 | . /opt/etc/init.d/rc.func 13 | -------------------------------------------------------------------------------- /shc/patches/500-gcc.patch: -------------------------------------------------------------------------------- 1 | --- a/src/shc.c 2 | +++ b/src/shc.c 3 | @@ -93,7 +93,7 @@ static const char * help[] = { 4 | "", 5 | " Environment variables used:", 6 | " Name Default Usage", 7 | -" CC cc C compiler command", 8 | +" CC gcc C compiler command", 9 | " CFLAGS C compiler flags", 10 | " LDFLAGS Linker flags", 11 | "", 12 | @@ -375,7 +375,7 @@ static const char * RTC[] = { 13 | " char cmd[4096];", 14 | "", 15 | " cc = getenv(\"CC\");", 16 | -" if (!cc) cc = \"cc\";", 17 | +" if (!cc) cc = \"gcc\";", 18 | "", 19 | " sprintf(cmd, \"%s %s -o %s %s\", cc, \"-Wall -fpic -shared\", \"/tmp/shc_x.so\", \"/tmp/shc_x.c -ldl\");", 20 | " if (system(cmd)) {remove(\"/tmp/shc_x.c\"); return -1;}", 21 | @@ -1291,7 +1291,7 @@ int make(void) 22 | 23 | cc = getenv("CC"); 24 | if (!cc) 25 | - cc = "cc"; 26 | + cc = "gcc"; 27 | cflags = getenv("CFLAGS"); 28 | if (!cflags) 29 | cflags = ""; 30 | -------------------------------------------------------------------------------- /shellinabox/files/S88shellinaboxd: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=shellinaboxd 5 | ARGS="-t -u root --css /opt/lib/shellinabox/white-on-black.css -b" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /shellinabox/patches/010-add-opt-login.patch: -------------------------------------------------------------------------------- 1 | --- a/shellinabox/launcher.c 2 | +++ b/shellinabox/launcher.c 3 | @@ -1685,6 +1685,8 @@ static void childProcess(struct Service 4 | (void *)0, environment); 5 | execle("/usr/bin/login", "login", "-p", "-h", remoteHost, 6 | (void *)0, environment); 7 | + execle("/opt/bin/login", "login", "-p", "-h", remoteHost, 8 | + (void *)0, environment); 9 | } else { 10 | // Launch user provied service 11 | execService(width, height, service, peerName, realIP, environment, url); 12 | -------------------------------------------------------------------------------- /shntool/patches/010-large-size.patch: -------------------------------------------------------------------------------- 1 | Last-Update: 2014-11-15 2 | Forwarded: yes 3 | From: Adam Sampson 4 | Bug-Debian: http://bugs.debian.org/684600 5 | Description: fix large files processing. 6 | 7 | --- a/src/core_fileio.c 8 | +++ b/src/core_fileio.c 9 | @@ -110,10 +110,16 @@ bool read_value_long(FILE *file,unsigned 10 | buf[4] = 0; 11 | 12 | if (be_val) 13 | - *be_val = (buf[0] << 24) | (buf[1] << 16) | (buf[2] << 8) | buf[3]; 14 | + *be_val = (((unsigned long)buf[0]) << 24) 15 | + | (((unsigned long)buf[1]) << 16) 16 | + | (((unsigned long)buf[2]) << 8) 17 | + | ((unsigned long)buf[3]); 18 | 19 | if (le_val) 20 | - *le_val = (buf[3] << 24) | (buf[2] << 16) | (buf[1] << 8) | buf[0]; 21 | + *le_val = (((unsigned long)buf[3]) << 24) 22 | + | (((unsigned long)buf[2]) << 16) 23 | + | (((unsigned long)buf[1]) << 8) 24 | + | ((unsigned long)buf[0]); 25 | 26 | if (tag_val) 27 | tagcpy(tag_val,buf); 28 | -------------------------------------------------------------------------------- /shntool/patches/030-no-cdquality-check.patch: -------------------------------------------------------------------------------- 1 | Last-Update: 2014-11-15 2 | Forwarded: yes 3 | Author: Dmitry Smirnov 4 | Bug-Debian: http://bugs.debian.org/769585 5 | Description: disable CD-quality check, needed to process 24bit 96kHz files. 6 | 7 | --- a/src/core_mode.c 8 | +++ b/src/core_mode.c 9 | @@ -345,8 +345,8 @@ static wlong is_m_ss_ff(unsigned char *b 10 | *colon = 0; 11 | *dot = 0; 12 | 13 | - if (PROB_NOT_CD(info)) 14 | - st_error("m:ss.ff format can only be used with CD-quality files"); 15 | +// if (PROB_NOT_CD(info)) 16 | +// st_error("m:ss.ff format can only be used with CD-quality files"); 17 | 18 | min = atoi((const char *)buf); 19 | sec = atoi((const char *)(colon+1)); 20 | -------------------------------------------------------------------------------- /simple-obfs/patches/010-fix-error-stringop.patch: -------------------------------------------------------------------------------- 1 | --- a/src/netutils.c 2 | +++ b/src/netutils.c 3 | @@ -85,7 +85,8 @@ setinterface(int socket_fd, const char * 4 | { 5 | struct ifreq interface; 6 | memset(&interface, 0, sizeof(struct ifreq)); 7 | - strncpy(interface.ifr_name, interface_name, IFNAMSIZ); 8 | + strncpy(interface.ifr_name, interface_name, IFNAMSIZ - 1); 9 | + interface.ifr_name[IFNAMSIZ - 1] = '\0'; 10 | int res = setsockopt(socket_fd, SOL_SOCKET, SO_BINDTODEVICE, &interface, 11 | sizeof(struct ifreq)); 12 | return res; 13 | --- a/src/obfs_http.c 14 | +++ b/src/obfs_http.c 15 | @@ -244,7 +244,7 @@ check_http_header(buffer_t *buf) 16 | } 17 | 18 | result = OBFS_ERROR; 19 | - if (strncasecmp(hostname, obfs_http->host, result) == 0) { 20 | + if (strncasecmp(hostname, obfs_http->host, len) == 0) { 21 | result = OBFS_OK; 22 | } 23 | free(hostname); 24 | -------------------------------------------------------------------------------- /sitecopy/patches/003-wrong-memory-397155.patch: -------------------------------------------------------------------------------- 1 | From: Ludovic Rousseau 2 | Subject: A patch for fixing wrong memory intialization 3 | 4 | 5 | --- a/src/rcfile.c 6 | +++ b/src/rcfile.c 7 | @@ -260,7 +260,7 @@ int rcfile_read(struct site **sites) 8 | if (this_site != &default_site) 9 | last_site = this_site; 10 | /* Allocate new item */ 11 | - this_site = ne_malloc(sizeof(struct site)); 12 | + this_site = ne_calloc(sizeof(struct site)); 13 | /* Copy over the defaults */ 14 | memcpy(this_site, &default_site, sizeof(struct site)); 15 | /* Deep-copy the string lists */ 16 | -------------------------------------------------------------------------------- /sitecopy/patches/006-sftpdriver.c-fix-for-new-openssh.patch: -------------------------------------------------------------------------------- 1 | From: Agustin Martin Domingo 2 | Subject: Patch for sftp protocol doesn't work with >= 1:4.2p1-1 3 | 4 | --- a/src/sftpdriver.c 5 | +++ b/src/sftpdriver.c 6 | @@ -140,7 +140,6 @@ static int sftp_connect(sftp_session *se 7 | } 8 | close(c_in); 9 | close(c_out); 10 | - read_sftp(sess); /* wait for prompt */ 11 | return SITE_OK; 12 | } 13 | 14 | -------------------------------------------------------------------------------- /sitecopy/patches/032_neon-0.31.patch: -------------------------------------------------------------------------------- 1 | --- a/src/ftp.c 2 | +++ b/src/ftp.c 3 | @@ -634,7 +634,7 @@ static int dtp_open_active(ftp_session * 4 | char *a, *p; 5 | int ret; 6 | int listener; 7 | - ksize_t alen; 8 | + size_t alen; 9 | struct sockaddr_in addr; 10 | 11 | ret = ftp_open(sess); 12 | -------------------------------------------------------------------------------- /sitecopy/patches/100-neon_0.31.patch: -------------------------------------------------------------------------------- 1 | --- a/configure 2 | +++ b/configure 3 | @@ -8456,7 +8456,7 @@ fi 4 | echo "${ECHO_T}$ne_cv_lib_neon" >&6; } 5 | if test "$ne_cv_lib_neon" = "yes"; then 6 | ne_cv_lib_neonver=no 7 | - for v in 24 25 26 27 28; do 8 | + for v in 24 25 26 27 28 31 32; do 9 | case $ne_libver in 10 | 0.$v.*) ne_cv_lib_neonver=yes ;; 11 | esac 12 | -------------------------------------------------------------------------------- /splix/patches/010-cross-compile.patch: -------------------------------------------------------------------------------- 1 | --- a/rules.mk 2 | +++ b/rules.mk 3 | @@ -6,12 +6,12 @@ 4 | 5 | $(rastertoqpdl_TARGET): $(rastertoqpdl_OBJ) 6 | $(call printCmd, $(cmd_link)) 7 | - $(Q)g++ -o $@ $^ $(rastertoqpdl_CXXFLAGS) $(rastertoqpdl_LDFLAGS) \ 8 | + $(Q)$(LINKER) -o $@ $^ $(rastertoqpdl_CXXFLAGS) $(rastertoqpdl_LDFLAGS) \ 9 | $(rastertoqpdl_LIBS) 10 | 11 | $(pstoqpdl_TARGET): $(pstoqpdl_OBJ) 12 | $(call printCmd, $(cmd_link)) 13 | - $(Q)g++ -o $@ $^ $(pstoqpdl_CXXFLAGS) $(pstoqpdl_LDFLAGS) \ 14 | + $(Q)$(LINKER) -o $@ $^ $(pstoqpdl_CXXFLAGS) $(pstoqpdl_LDFLAGS) \ 15 | $(pstoqpdl_LIBS) 16 | 17 | .PHONY: install installcms 18 | -------------------------------------------------------------------------------- /sshguard/patches/010-no_docs.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile.am 2 | +++ b/Makefile.am 3 | @@ -1,7 +1,6 @@ 4 | SUBDIRS = src 5 | 6 | -EXTRA_DIST = doc examples CHANGELOG.rst CONTRIBUTING.rst INSTALL.rst README.rst 7 | -dist_man_MANS = doc/sshguard-setup.7 doc/sshguard.8 8 | +EXTRA_DIST = examples CHANGELOG.rst CONTRIBUTING.rst INSTALL.rst README.rst 9 | 10 | if BUILD_MAN 11 | SUFFIXES=.rst 12 | -------------------------------------------------------------------------------- /superstartrek/patches/010-paths.patch: -------------------------------------------------------------------------------- 1 | --- a/sst.c 2 | +++ b/sst.c 3 | @@ -151,11 +151,11 @@ static void helpme(void) { 4 | j = 0; 5 | while ((cmdbuf[j+13] = toupper(commands[i][j])) != 0) j++; 6 | } 7 | - fp = fopen("sst.doc", "r"); 8 | + fp = fopen("/opt/share/superstartrek/sst.doc", "r"); 9 | if (fp == NULL) { 10 | prout("Spock- \"Captain, that information is missing from the"); 11 | prout(" computer. You need to find SST.DOC and put it in the"); 12 | - prout(" current directory.\""); 13 | + prout(" correct directory.\""); 14 | return; 15 | } 16 | i = strlen(cmdbuf); 17 | -------------------------------------------------------------------------------- /superstartrek/patches/020-cross-compile.patch: -------------------------------------------------------------------------------- 1 | --- a/makefile 2 | +++ b/makefile 3 | @@ -9,7 +9,7 @@ OFILES= sst.o finish.o reports.o set 4 | HFILES= sst.h 5 | 6 | sst: $(OFILES) 7 | - gcc -o sst $(OFILES) -lm 8 | + $(CC) -o sst $(OFILES) $(LDFLAGS) -lm 9 | 10 | clean: 11 | rm $(OFILES) 12 | -------------------------------------------------------------------------------- /task-spooler/patches/010-paths.patch: -------------------------------------------------------------------------------- 1 | --- a/mail.c 2 | +++ b/mail.c 3 | @@ -34,7 +34,7 @@ static int run_sendmail(const char *dest 4 | close(2); 5 | close(p[1]); 6 | dup2(p[0], 0); 7 | - execl("/usr/sbin/sendmail", "sendmail", "-oi", dest, NULL); 8 | + execl("/opt/sbin/sendmail", "sendmail", "-oi", dest, NULL); 9 | error("run sendmail"); 10 | case -1: 11 | error("fork sendmail"); 12 | --- a/execute.c 13 | +++ b/execute.c 14 | @@ -156,7 +156,7 @@ static void run_child(int fd_send_filena 15 | char *outfname_full; 16 | 17 | if (tmpdir == NULL) 18 | - tmpdir = "/tmp"; 19 | + tmpdir = "/opt/tmp"; 20 | lname = strlen(tmpdir) + strlen(outfname) + 1 /* \0 */; 21 | 22 | outfname_full = (char *) malloc(lname); 23 | --- a/server_start.c 24 | +++ b/server_start.c 25 | @@ -49,7 +49,7 @@ void create_socket_path(char **path) { 26 | /* Create the path */ 27 | tmpdir = getenv("TMPDIR"); 28 | if (tmpdir == NULL) 29 | - tmpdir = "/tmp"; 30 | + tmpdir = "/opt/tmp"; 31 | 32 | sprintf(userid, "%u", (unsigned int) getuid()); 33 | 34 | -------------------------------------------------------------------------------- /telegram-cli/patches/010-cross-compile.patch: -------------------------------------------------------------------------------- 1 | --- a/configure.ac 2 | +++ b/configure.ac 3 | @@ -12,10 +12,6 @@ m4_include([m4-ax_gcc_builtin.m4]) 4 | # Checks for programs. 5 | AC_PROG_CC 6 | 7 | -# BSD locations for headers and libraries from packages, Linux locations for self-compiled stuff. 8 | -CPPFLAGS="$CPPFLAGS -I/usr/local/include" 9 | -LDFLAGS="$LDFLAGS -L/usr/local/lib" 10 | - 11 | # Checks for libraries. 12 | AC_SEARCH_LIBS([clock_gettime], [rt]) 13 | AC_SEARCH_LIBS([backtrace], [execinfo]) 14 | @@ -109,7 +105,7 @@ AC_ARG_ENABLE(liblua,[--enable-liblua/-- 15 | AC_MSG_CHECKING([for python]) 16 | AC_ARG_ENABLE(python,[--enable-python/--disable-python], 17 | [ 18 | - if test "x$enableval" = "xyes" ; then 19 | + if test "x$enableval" = "xno" ; then 20 | AC_MSG_RESULT([disabled]) 21 | else 22 | AC_MSG_RESULT([enabled]) 23 | -------------------------------------------------------------------------------- /telegram-cli/patches/020-tl-parser.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile.in 2 | +++ b/Makefile.in 3 | @@ -32,7 +32,6 @@ create_dirs_and_headers: ${DIR_LIST} ${A 4 | create_dirs: ${DIR_LIST} 5 | dump-tl: ${EXE}/dump-tl-file 6 | 7 | -include ${srcdir}/Makefile.tl-parser 8 | include ${srcdir}/Makefile.tgl 9 | 10 | ${DIR_LIST}: 11 | -------------------------------------------------------------------------------- /telegram-cli/patches/030-generate.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile.tgl 2 | +++ b/Makefile.tgl 3 | @@ -28,9 +28,6 @@ ${TGL_OBJECTS_AUTO}: ${OBJ}/auto/%.o: ${ 4 | ${LIB}/libtgl.a: ${TGL_OBJECTS} ${TGL_COMMON_OBJECTS} ${TGL_OBJECTS_AUTO} 5 | rm -f $@ && ar ruv $@ $^ 6 | 7 | -${EXE}/generate: ${GENERATE_OBJECTS} ${TGL_COMMON_OBJECTS} 8 | - ${CC} ${GENERATE_OBJECTS} ${TGL_COMMON_OBJECTS} ${LINK_FLAGS} -o $@ 9 | - 10 | ${AUTO}/scheme.tlo: ${AUTO}/scheme.tl ${EXE}/tl-parser 11 | ${EXE}/tl-parser -e $@ ${AUTO}/scheme.tl 12 | 13 | -------------------------------------------------------------------------------- /telegram-cli/patches/060-no_cast_func_type.patch: -------------------------------------------------------------------------------- 1 | --- a/tgl/Makefile.in 2 | +++ b/tgl/Makefile.in 3 | @@ -4,7 +4,7 @@ CFLAGS=@CFLAGS@ 4 | LDFLAGS=@LDFLAGS@ @OPENSSL_LDFLAGS@ 5 | CPPFLAGS=@CPPFLAGS@ @OPENSSL_INCLUDES@ 6 | DEFS=@DEFS@ 7 | -COMPILE_FLAGS=${CFLAGS} ${CPFLAGS} ${CPPFLAGS} ${DEFS} -Wall -Wextra -Werror -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC 8 | +COMPILE_FLAGS=${CFLAGS} ${CPFLAGS} ${CPPFLAGS} ${DEFS} -Wall -Wextra -Werror -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -Wno-cast-function-type -fPIC 9 | 10 | EXTRA_LIBS=@LIBS@ @EXTRA_LIBS@ @OPENSSL_LIBS@ 11 | LOCAL_LDFLAGS=-rdynamic -ggdb ${EXTRA_LIBS} 12 | -------------------------------------------------------------------------------- /totd/files/S57totd: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=totd 5 | ARGS="" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /totd/patches/010-config.patch: -------------------------------------------------------------------------------- 1 | --- a/totd.conf.sample 2 | +++ b/totd.conf.sample 3 | @@ -14,6 +14,5 @@ port 5005 4 | pidfile /var/run/totd5005.pid 5 | ; interfaces totd listens on (UDP only for now and not on Linux) 6 | ; If left out totd will only open wildcard sockets. 7 | -interfaces lo0 ep0 ex0 an0 8 | +;interfaces lo0 ep0 ex0 an0 9 | ; 6to4 reverse lookup 10 | -stf 11 | -------------------------------------------------------------------------------- /trafficserver/patches/020-no-check-openssl.patch: -------------------------------------------------------------------------------- 1 | --- a/build/crypto.m4 2 | +++ b/build/crypto.m4 3 | @@ -64,18 +64,6 @@ dnl Check OpenSSL Version 3 4 | dnl 5 | AC_DEFUN([TS_CHECK_OPENSSL3], [ 6 | AC_MSG_CHECKING([for OpenSSL version 3]) 7 | - AC_RUN_IFELSE([AC_LANG_SOURCE( 8 | - [ 9 | -#include 10 | -int main() { 11 | - if (OPENSSL_VERSION_NUMBER > 0x3000000fL) { 12 | - return 0; 13 | - } 14 | - return 1; 15 | -} 16 | - ])], 17 | - [AC_MSG_RESULT(yes) TS_ADDTO(CPPFLAGS, -DOPENSSL_API_COMPAT=10002 -DOPENSSL_IS_OPENSSL3) openssl_is_openssl3=1], [AC_MSG_RESULT(no)] 18 | - ) 19 | ]) 20 | 21 | dnl 22 | -------------------------------------------------------------------------------- /trafficserver/patches/040-fix-for-old-kernels.patch: -------------------------------------------------------------------------------- 1 | --- a/iocore/net/Connection.cc 2 | +++ b/iocore/net/Connection.cc 3 | @@ -37,6 +37,17 @@ 4 | #include 5 | #endif 6 | 7 | +#ifndef LINUX_VERSION_CODE 8 | +#include 9 | +#endif 10 | + 11 | +/* SO_REUSEPORT since Linux 3.9 */ 12 | +#if LINUX_VERSION_CODE < KERNEL_VERSION(3,9,0) 13 | +#define SO_REUSEPORT SO_REUSEADDR 14 | +/* or #define SO_REUSEPORT 0x0200 */ 15 | +/* Allow local address and port reuse. */ 16 | +#endif 17 | + 18 | // set in the OS 19 | // #define RECV_BUF_SIZE (1024*64) 20 | // #define SEND_BUF_SIZE (1024*64) 21 | -------------------------------------------------------------------------------- /trafficserver/patches/100-unpin-build-env.patch: -------------------------------------------------------------------------------- 1 | --- a/configure.ac 2 | +++ b/configure.ac 3 | @@ -137,9 +137,9 @@ AC_ARG_WITH([build-number], 4 | # 5 | # Build environment 6 | # 7 | -build_person="`id -nu | sed -e 's/\\\\/\\\\\\\\/g'`" 8 | -build_group="`id -ng | sed -e 's/\\\\/\\\\\\\\/g'`" 9 | -build_machine="`uname -n | sed -e 's/\\\\/\\\\\\\\/g'`" 10 | +build_person="entware" 11 | +build_group="entware-team" 12 | +build_machine="entware-generic" 13 | AC_SUBST([build_machine]) 14 | AC_SUBST([build_person]) 15 | AC_SUBST([build_group]) 16 | -------------------------------------------------------------------------------- /transmission-cfp/files/S88transmission-cfp: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=transmission-daemon 5 | ARGS="-g /opt/etc/transmission" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/opt/sbin:/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | TRANSMISSION_WEB_HOME="/opt/share/transmission/web" 11 | 12 | . /opt/etc/init.d/rc.func 13 | -------------------------------------------------------------------------------- /transmission-cfp/patches/010-int64_switch.patch: -------------------------------------------------------------------------------- 1 | --- a/daemon/remote.c 2 | +++ b/daemon/remote.c 3 | @@ -1659,6 +1659,7 @@ processResponse( const char * rpcurl, co 4 | else 5 | { 6 | int64_t tag = -1; 7 | + int itag; 8 | const char * str; 9 | 10 | if(tr_bencDictFindStr(&top, "result", &str)) 11 | @@ -1672,7 +1673,8 @@ processResponse( const char * rpcurl, co 12 | { 13 | tr_bencDictFindInt( &top, "tag", &tag ); 14 | 15 | - switch( tag ) 16 | + itag = tag; 17 | + switch( itag ) 18 | { 19 | case TAG_SESSION: 20 | printSession( &top ); break; 21 | -------------------------------------------------------------------------------- /transmission-cfp/patches/020-fallocate64.patch: -------------------------------------------------------------------------------- 1 | --- a/libtransmission/fdlimit.c 2 | +++ b/libtransmission/fdlimit.c 3 | @@ -25,7 +25,7 @@ 4 | #include 5 | #endif 6 | 7 | -#ifdef HAVE_FALLOCATE64 8 | +#if 0 9 | /* FIXME can't find the right #include voodoo to pick up the declaration.. */ 10 | extern int fallocate64( int fd, int mode, uint64_t offset, uint64_t len ); 11 | #endif 12 | -------------------------------------------------------------------------------- /tree-sitter/patches/010-fix-cross.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile 2 | +++ b/Makefile 3 | @@ -7,7 +7,7 @@ DESCRIPTION := An incremental parsing sy 4 | HOMEPAGE_URL := https://tree-sitter.github.io/tree-sitter/ 5 | 6 | # install directory layout 7 | -PREFIX ?= /usr/local 8 | +PREFIX ?= /opt 9 | INCLUDEDIR ?= $(PREFIX)/include 10 | LIBDIR ?= $(PREFIX)/lib 11 | PCLIBDIR ?= $(LIBDIR)/pkgconfig 12 | @@ -77,9 +77,6 @@ install: all 13 | install -m644 lib/include/tree_sitter/api.h '$(DESTDIR)$(INCLUDEDIR)'/tree_sitter/api.h 14 | install -m644 tree-sitter.pc '$(DESTDIR)$(PCLIBDIR)'/tree-sitter.pc 15 | install -m644 libtree-sitter.a '$(DESTDIR)$(LIBDIR)'/libtree-sitter.a 16 | - install -m755 libtree-sitter.$(SOEXT) '$(DESTDIR)$(LIBDIR)'/libtree-sitter.$(SOEXTVER) 17 | - ln -sf libtree-sitter.$(SOEXTVER) '$(DESTDIR)$(LIBDIR)'/libtree-sitter.$(SOEXTVER_MAJOR) 18 | - ln -sf libtree-sitter.$(SOEXTVER_MAJOR) '$(DESTDIR)$(LIBDIR)'/libtree-sitter.$(SOEXT) 19 | 20 | uninstall: 21 | $(RM) '$(DESTDIR)$(LIBDIR)'/libtree-sitter.a \ 22 | -------------------------------------------------------------------------------- /trojan/files/S22trojan: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=trojan 5 | ARGS="" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /tty-solitaire/Makefile: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-2.0-only 2 | # 3 | # Copyright (C) 2011-2025 Entware 4 | 5 | include $(TOPDIR)/rules.mk 6 | 7 | PKG_NAME:=tty-solitaire 8 | PKG_VERSION:=1.4.1 9 | PKG_REV:=2887f9d27442d3717404bd6ce87707b754dfb113 10 | PKG_RELEASE:=1 11 | 12 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 13 | PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) 14 | PKG_SOURCE_URL:=https://github.com/mpereira/tty-solitaire.git 15 | PKG_SOURCE_PROTO:=git 16 | PKG_SOURCE_VERSION:=$(PKG_REV) 17 | PKG_MIRROR_HASH:=dc58091a135c072d2cd735ee9a4a34141fc1c3e5581054428fac79b1065c1028 18 | 19 | include $(INCLUDE_DIR)/package.mk 20 | 21 | define Package/tty-solitaire 22 | SECTION:=games 23 | CATEGORY:=Games 24 | TITLE:=klondlike solitaire game 25 | DEPENDS:=libncursesw 26 | URL:=$(PKG_SOURCE_URL) 27 | MAINTAINER:=Entware team, https://entware.net 28 | endef 29 | 30 | define Package/tty-solitaire/description 31 | klondlike solitaire game. 32 | endef 33 | 34 | TARGET_CFLAGS += \ 35 | -I$(STAGING_DIR)/opt/include/ncursesw 36 | 37 | define Package/tty-solitaire/install 38 | $(INSTALL_DIR) $(1)/opt/bin 39 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/ttysolitaire $(1)/opt/bin 40 | endef 41 | 42 | $(eval $(call BuildPackage,tty-solitaire)) 43 | -------------------------------------------------------------------------------- /tunsafe/files/S30tunsafe: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=tunsafe 5 | ARGS="/opt/etc/tunsafe/main.conf" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | [ -z "$(which $PROCS)" ] && exit 0 11 | 12 | . /opt/etc/init.d/rc.func 13 | -------------------------------------------------------------------------------- /tunsafe/patches/010-compile-error-fix.patch: -------------------------------------------------------------------------------- 1 | --- a/tunsafe_bsd.cpp 2 | +++ b/tunsafe_bsd.cpp 3 | @@ -36,7 +36,7 @@ 4 | #include 5 | #include 6 | #elif defined(OS_LINUX) 7 | -#include 8 | +// #include 9 | #include 10 | #include 11 | #include 12 | -------------------------------------------------------------------------------- /tunsafe/patches/020-arm-neon-detection.patch: -------------------------------------------------------------------------------- 1 | --- a/tunsafe_cpu.h 2 | +++ b/tunsafe_cpu.h 3 | @@ -32,7 +32,11 @@ extern uint32 x86_pcap[3]; 4 | 5 | extern uint32 arm_pcap[1]; 6 | 7 | -#define ARM_PCAP_NEON (arm_pcap[0] & (1 << 0)) 8 | +#if defined(__ARM_NEON__) || defined(__ARM_NEON) 9 | + #define ARM_PCAP_NEON (arm_pcap[0] & (1 << 0)) 10 | +#else 11 | + #define ARM_PCAP_NEON 0 12 | +#endif 13 | 14 | #endif // defined(ARCH_CPU_ARM_FAMILY) 15 | 16 | -------------------------------------------------------------------------------- /tunsafe/patches/040-disable-thread-rename.patch: -------------------------------------------------------------------------------- 1 | --- a/tunsafe_bsd.cpp 2 | +++ b/tunsafe_bsd.cpp 3 | @@ -837,7 +837,7 @@ int main(int argc, char **argv) { 4 | InitOsxGetMilliseconds(); 5 | #endif 6 | 7 | - SetThreadName("tunsafe-m"); 8 | + // SetThreadName("tunsafe-m"); 9 | 10 | TunsafeBackendBsdImpl backend; 11 | if (cmd.interface_name) 12 | -------------------------------------------------------------------------------- /tunsafe/patches/050-fix-x86-sse-detection.patch: -------------------------------------------------------------------------------- 1 | crypto/blake2s/blake2s.cpp | 2 +- 2 | 1 file changed, 1 insertion(+), 1 deletion(-) 3 | 4 | --- a/crypto/blake2s/blake2s.cpp 5 | +++ b/crypto/blake2s/blake2s.cpp 6 | @@ -245,7 +245,7 @@ static void blake2s_compress(blake2s_sta 7 | #undef ROUND 8 | 9 | 10 | -#if defined(ARCH_CPU_X86_FAMILY) 11 | +#if defined(ARCH_CPU_X86_FAMILY) && (defined(__SSE2__) || defined(HAVE_SSSE3) || defined(HAVE_SSE41) || defined(HAVE_AVX) || defined(HAVE_XOP)) 12 | #include "blake2s-sse-impl.h" 13 | #endif 14 | 15 | -------------------------------------------------------------------------------- /tunsafe/patches/060-add-mipseb-architecture.patch: -------------------------------------------------------------------------------- 1 | --- a/build_config.h 2 | +++ b/build_config.h 3 | @@ -103,6 +103,11 @@ 4 | #define ARCH_CPU_MIPSEL 1 5 | #define ARCH_CPU_32_BITS 1 6 | #define ARCH_CPU_LITTLE_ENDIAN 1 7 | +#elif defined(__MIPSEB__) 8 | +#define ARCH_CPU_MIPS_FAMILY 1 9 | +#define ARCH_CPU_MIPSEB 1 10 | +#define ARCH_CPU_32_BITS 1 11 | +#define ARCH_CPU_LITTLE_ENDIAN 0 12 | #elif defined(EMSCRIPTEN) 13 | #define ARCH_CPU_JS 1 14 | #define ARCH_CPU_32_BITS 1 15 | --- a/tunsafe_cpu.cpp 16 | +++ b/tunsafe_cpu.cpp 17 | @@ -71,9 +71,7 @@ void PrintCpuFeatures() { 18 | RINFO("Using:%s", capbuf); 19 | } 20 | 21 | -#endif // defined(ARCH_CPU_X86_FAMILY) 22 | - 23 | -#if defined(ARCH_CPU_ARM_FAMILY) 24 | +#elif defined(ARCH_CPU_ARM_FAMILY) // defined(ARCH_CPU_X86_FAMILY) 25 | 26 | uint32 arm_pcap[1]; 27 | 28 | @@ -88,4 +86,12 @@ void PrintCpuFeatures() { 29 | 30 | RINFO("Using:%s", capbuf); 31 | } 32 | -#endif // defined(ARCH_CPU_ARM_FAMILY) 33 | +#else // defined(ARCH_CPU_ARM_FAMILY) 34 | + 35 | +void InitCpuFeatures() { } 36 | + 37 | +void PrintCpuFeatures() { 38 | + RINFO("Using: generic"); 39 | +} 40 | + 41 | +#endif // else 42 | -------------------------------------------------------------------------------- /unibilium/patches/010-fix-cross.patch: -------------------------------------------------------------------------------- 1 | --- a/unibilium.pc.in 2 | +++ b/unibilium.pc.in 3 | @@ -1,9 +1,10 @@ 4 | -libdir=@LIBDIR@ 5 | -includedir=@INCDIR@ 6 | -version=@VERSION@ 7 | +prefix=/opt 8 | +includedir=${prefix}/include 9 | +libdir=${prefix}/lib 10 | 11 | Name: unibilium 12 | Description: terminfo parser and utility functions 13 | Version: ${version} 14 | + 15 | Libs: -L${libdir} -lunibilium 16 | Cflags: -I${includedir} 17 | -------------------------------------------------------------------------------- /unionfs-fuse/patches/010-force_64bit_off_t.patch: -------------------------------------------------------------------------------- 1 | --- a/src/CMakeLists.txt 2 | +++ b/src/CMakeLists.txt 3 | @@ -12,6 +12,7 @@ SET(CMAKE_C_FLAGS_DEBUG "-O0 -g -DDEBUG 4 | add_executable(unionfs ${UNIONFS_SRCS} ${HASHTABLE_SRCS}) 5 | 6 | option(WITH_LIBFUSE3 "Enable libfuse3 support" ON) 7 | +add_definitions(-D_FILE_OFFSET_BITS=64) 8 | 9 | find_package(PkgConfig REQUIRED) 10 | 11 | -------------------------------------------------------------------------------- /urbackup-server/files/S60urbackup-server: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=urbackupsrv 5 | ARGS="run --daemon" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /urbackup-server/patches/010-no_usr_include.patch: -------------------------------------------------------------------------------- 1 | --- a/configure 2 | +++ b/configure 3 | @@ -6773,7 +6773,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu 4 | # 5 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if zlib is wanted" >&5 6 | $as_echo_n "checking if zlib is wanted... " >&6; } 7 | -zlib_places="/usr/local /usr /opt/local /sw" 8 | +zlib_places="/opt/local /sw" 9 | 10 | # Check whether --with-zlib was given. 11 | if test "${with_zlib+set}" = set; then : 12 | -------------------------------------------------------------------------------- /urbackup-server/patches/030-disable_asm.patch: -------------------------------------------------------------------------------- 1 | --- a/cryptoplugin/src/config.h 2 | +++ b/cryptoplugin/src/config.h 3 | @@ -60,6 +60,13 @@ 4 | // may use higher ISAs depending on compiler options, but the library will not 5 | // explictly use the ISAs. 6 | // #define CRYPTOPP_DISABLE_ASM 1 7 | + 8 | +// Configuration option doesn't saved to config.h after compilation, so we have to add 9 | +// following definition manually: 10 | +#ifndef CRYPTOPP_DISABLE_ASM 11 | +#define CRYPTOPP_DISABLE_ASM 12 | +#endif 13 | + 14 | 15 | // Define CRYPTOPP_NO_CXX11 to avoid C++11 related features shown at the 16 | // end of this file. Some compilers and standard C++ headers advertise C++11 17 | -------------------------------------------------------------------------------- /urbackup-server/patches/040-md5-bytes.patch: -------------------------------------------------------------------------------- 1 | --- a/md5.h 2 | +++ b/md5.h 3 | @@ -124,6 +124,13 @@ private: 4 | #define CRYPTOPP_INCLUDE_MD5 5 | #include CRYPTOPP_INCLUDE_MD5 6 | 7 | +#if (CRYPTOPP_VERSION >= 600) && (__cplusplus >= 201103L) 8 | + using byte = CryptoPP::byte; 9 | +#else 10 | + typedef unsigned char byte; 11 | +#endif 12 | + 13 | + 14 | class MD5 { 15 | 16 | public: 17 | @@ -155,4 +162,4 @@ private: 18 | 19 | #endif //DO_NOT_USE_CRYPTOPP_MD5 20 | 21 | -#endif //MD5_H 22 | \ No newline at end of file 23 | +#endif //MD5_H 24 | -------------------------------------------------------------------------------- /usbrelay/patches/010-lib_suffix.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile 2 | +++ b/Makefile 3 | @@ -11,8 +11,8 @@ all: usbrelay libusbrelay.so libusbrelay 4 | 5 | libusbrelay.so: libusbrelay.c libusbrelay.h 6 | $(CC) -shared -fPIC -Wl,-soname,$@.$(USBMAJOR) $(CPPFLAGS) $(CFLAGS) $< $(LDFLAGS) -o $@.$(USBLIBVER) $(LDLIBS) 7 | - $(LDCONFIG) -n . 8 | - ln -sr libusbrelay.so.$(USBLIBVER) libusbrelay.so 9 | + ln -sr libusbrelay.so.$(USBLIBVER) libusbrelay.so.$(USBMAJOR) 10 | + ln -sr libusbrelay.so.$(USBMAJOR) libusbrelay.so 11 | 12 | usbrelay: usbrelay.c libusbrelay.h libusbrelay.so 13 | $(CC) $(CPPFLAGS) $(CFLAGS) $< -l:libusbrelay.so.$(USBLIBVER) -L./ $(LDFLAGS) -o $@ $(LDLIBS) 14 | -------------------------------------------------------------------------------- /vblade/patches/010-compile-vars.patch: -------------------------------------------------------------------------------- 1 | --- a/makefile 2 | +++ b/makefile 3 | @@ -9,11 +9,11 @@ sharedir = ${prefix}/share 4 | mandir = ${sharedir}/man 5 | 6 | O=aoe.o bpf.o ${PLATFORM}.o ata.o dat.o 7 | -CFLAGS += -Wall -g -O2 -fno-common 8 | -CC = gcc 9 | +CFLAGS ?= -Wall -g -O2 -fno-common 10 | +CC ?= gcc 11 | 12 | vblade: $O 13 | - ${CC} -o vblade $O 14 | + ${CC} ${LDFLAGS} -o vblade $O 15 | 16 | aoe.o : aoe.c config.h dat.h fns.h makefile 17 | ${CC} ${CFLAGS} -c $< 18 | -------------------------------------------------------------------------------- /vitetris/patches/020-disable-stripping.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile 2 | +++ b/Makefile 3 | @@ -3,7 +3,7 @@ include config.mk 4 | PROGNAME = tetris$(EXE) 5 | 6 | # Uncomment to change the default. (Only used in Unix-like systems.) 7 | -#HISCORE_FILENAME = /var/games/vitetris-hiscores 8 | +HISCORE_FILENAME = /opt/var/vitetris-hiscores 9 | 10 | INSTALL = install 11 | 12 | @@ -17,8 +17,6 @@ $(PROGNAME): 13 | build: src/src-conf.mk 14 | cd src; $(MAKE) tetris 15 | mv -f src/tetris$(EXE) $(PROGNAME) 16 | - @echo stripping symbols to reduce program size: 17 | - -strip --strip-all $(PROGNAME) 18 | 19 | gameserver: src/netw/gameserver.c 20 | cd src/netw; $(MAKE) gameserver 21 | -------------------------------------------------------------------------------- /vorbis-tools/patches/010-no_intl.patch: -------------------------------------------------------------------------------- 1 | --- ./Makefile.am.orig 2025-05-18 14:54:12.976361538 +0000 2 | +++ ./Makefile.am 2025-05-18 14:55:11.705058539 +0000 3 | @@ -2,8 +2,8 @@ 4 | 5 | AUTOMAKE_OPTIONS = foreign dist-zip 6 | 7 | -SUBDIRS = po intl include share win32 @OPT_SUBDIRS@ tests 8 | -DIST_SUBDIRS = po intl include share win32 ogg123 oggenc oggdec ogginfo \ 9 | +SUBDIRS = include share win32 @OPT_SUBDIRS@ tests 10 | +DIST_SUBDIRS = include share win32 ogg123 oggenc oggdec ogginfo \ 11 | vcut vorbiscomment m4 tests 12 | 13 | EXTRA_DIST = config.rpath README AUTHORS COPYING CHANGES 14 | -------------------------------------------------------------------------------- /vsftpd-ext/files/S49vsftpd: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=vsftpd 5 | ARGS="" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /vsftpd-ext/patches/010-disable-PAM.patch: -------------------------------------------------------------------------------- 1 | --- a/builddefs.h 2 | +++ b/builddefs.h 3 | @@ -2,7 +2,7 @@ 4 | #define VSF_BUILDDEFS_H 5 | 6 | #undef VSF_BUILD_TCPWRAPPERS 7 | -#define VSF_BUILD_PAM 8 | +#undef VSF_BUILD_PAM 9 | #undef VSF_BUILD_SSL 10 | 11 | #endif /* VSF_BUILDDEFS_H */ 12 | -------------------------------------------------------------------------------- /vsftpd-ext/patches/030-cross-compile.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile 2 | +++ b/Makefile 3 | @@ -1,16 +1,16 @@ 4 | # Makefile for systems with GNU tools 5 | -CC = gcc 6 | +CC ?= gcc 7 | INSTALL = install 8 | IFLAGS = -idirafter dummyinc 9 | -#CFLAGS = -g 10 | -CFLAGS = -O2 -fPIE -fstack-protector --param=ssp-buffer-size=4 \ 11 | +CFLAGS ?= -g 12 | +CFLAGS += -fPIE \ 13 | -Wall -W -Wshadow -Werror -Wformat-security \ 14 | - -D_FORTIFY_SOURCE=2 \ 15 | + #-D_FORTIFY_SOURCE=2 \ 16 | #-pedantic -Wconversion 17 | 18 | -LIBS = `./vsf_findlibs.sh` 19 | -LINK = -Wl,-s 20 | -LDFLAGS = -fPIE -pie -Wl,-z,relro -Wl,-z,now 21 | +LIBS = -lcrypt 22 | +LINK = #-Wl,-s 23 | +LDFLAGS ?= -fPIE -pie -Wl,-z,relro -Wl,-z,now 24 | 25 | OBJS = main.o utility.o prelogin.o ftpcmdio.o postlogin.o privsock.o \ 26 | tunables.o ftpdataio.o secbuf.o ls.o \ 27 | -------------------------------------------------------------------------------- /vsftpd-ext/patches/040-disable-new-CLONE-flags.patch: -------------------------------------------------------------------------------- 1 | --- a/sysdeputil.c 2 | +++ b/sysdeputil.c 3 | @@ -1270,7 +1270,7 @@ vsf_sysutil_fork_isolate_all_failok() 4 | if (cloneflags_work) 5 | { 6 | int ret = syscall(__NR_clone, 7 | - CLONE_NEWPID | CLONE_NEWIPC | CLONE_NEWNET | SIGCHLD, 8 | + CLONE_NEWNET | SIGCHLD, 9 | NULL); 10 | if (ret != -1 || (errno != EINVAL && errno != EPERM)) 11 | { 12 | @@ -1293,7 +1293,7 @@ vsf_sysutil_fork_isolate_failok() 13 | static int cloneflags_work = 1; 14 | if (cloneflags_work) 15 | { 16 | - int ret = syscall(__NR_clone, CLONE_NEWPID | CLONE_NEWIPC | SIGCHLD, NULL); 17 | + int ret = syscall(__NR_clone, SIGCHLD, NULL); 18 | if (ret != -1 || (errno != EINVAL && errno != EPERM)) 19 | { 20 | if (ret == 0) 21 | -------------------------------------------------------------------------------- /vsftpd-ext/patches/050-disable-capabilities.patch: -------------------------------------------------------------------------------- 1 | --- a/sysdeputil.c 2 | +++ b/sysdeputil.c 3 | @@ -165,6 +165,9 @@ 4 | #endif 5 | /* END config */ 6 | 7 | +#undef VSF_SYSDEP_HAVE_CAPABILITIES 8 | +#undef VSF_SYSDEP_HAVE_LIBCAP 9 | + 10 | /* PAM support - we include our own dummy version if the system lacks this */ 11 | #include 12 | 13 | -------------------------------------------------------------------------------- /wcd/patches/010-ncurses_flags.patch: -------------------------------------------------------------------------------- 1 | --- a/src/Makefile 2 | +++ b/src/Makefile 3 | @@ -367,7 +367,7 @@ endif 4 | endif 5 | 6 | 7 | -INCPREFIX=/usr 8 | +INCPREFIX?=/usr 9 | ifeq ($(findstring MINGW,$(wcd_os)),MINGW) 10 | ifeq ($(shell gcc -dumpmachine),i686-w64-mingw32) 11 | INCPREFIX=/mingw32 12 | -------------------------------------------------------------------------------- /wdfs/patches/010-fuse-opt-header.patch: -------------------------------------------------------------------------------- 1 | --- a/src/wdfs-main.c 2 | +++ b/src/wdfs-main.c 3 | @@ -32,7 +32,7 @@ 4 | #include 5 | #include 6 | #include 7 | -#include 8 | +#include 9 | #include 10 | #include 11 | #include 12 | -------------------------------------------------------------------------------- /wdfs/patches/020-500-error-user-agent.patch: -------------------------------------------------------------------------------- 1 | From 3a6a8137be2fcc61e06c17cb6a6fdc1cf21829e7 Mon Sep 17 00:00:00 2001 2 | From: jmesmon 3 | Date: Wed, 2 Jun 2010 20:50:39 -0400 4 | Subject: [PATCH] fix a remote '500' error due to the lack of a useragent 5 | 6 | --- 7 | src/webdav.c | 4 ++++ 8 | 1 file changed, 4 insertions(+) 9 | 10 | --- a/src/webdav.c 11 | +++ b/src/webdav.c 12 | @@ -204,6 +204,8 @@ int setup_webdav_session( 13 | /* if no port was defined use the default port */ 14 | uri.port = uri.port ? uri.port : ne_uri_defaultport(uri.scheme); 15 | 16 | + ne_debug_init(stderr,0); 17 | + 18 | /* needed for ssl connections. it's not documented. nice to know... ;-) */ 19 | ne_sock_init(); 20 | 21 | @@ -242,6 +244,8 @@ int setup_webdav_session( 22 | return -1; 23 | } 24 | 25 | + ne_set_useragent(session,"wdfs"); 26 | + 27 | /* try to access the server */ 28 | ne_server_capabilities capabilities; 29 | int ret = ne_options(session, path, &capabilities); 30 | -------------------------------------------------------------------------------- /wdfs/patches/500-use_opt_for_tmp_files.patch: -------------------------------------------------------------------------------- 1 | --- a/src/wdfs-main.c 2 | +++ b/src/wdfs-main.c 3 | @@ -358,7 +358,7 @@ static char* get_remotepath(const char * 4 | /* returns a filehandle for read and write on success or -1 on error */ 5 | static int get_filehandle() 6 | { 7 | - char dummyfile[] = "/tmp/wdfs-tmp-XXXXXX"; 8 | + char dummyfile[] = "/opt/tmp/wdfs-tmp-XXXXXX"; 9 | /* mkstemp() replaces XXXXXX by unique random chars and 10 | * returns a filehandle for reading and writing */ 11 | int fh = mkstemp(dummyfile); 12 | -------------------------------------------------------------------------------- /wg-quick/patches/100-entware.patch: -------------------------------------------------------------------------------- 1 | --- a/src/wg-quick/linux.bash 2 | +++ b/src/wg-quick/linux.bash 3 | @@ -1,4 +1,4 @@ 4 | -#!/bin/bash 5 | +#!/opt/bin/bash 6 | # SPDX-License-Identifier: GPL-2.0 7 | # 8 | # Copyright (C) 2015-2020 Jason A. Donenfeld . All Rights Reserved. 9 | @@ -40,7 +40,7 @@ 10 | parse_options() { 11 | local interface_section=0 line key value stripped v 12 | CONFIG_FILE="$1" 13 | - [[ $CONFIG_FILE =~ ^[a-zA-Z0-9_=+.-]{1,15}$ ]] && CONFIG_FILE="/etc/wireguard/$CONFIG_FILE.conf" 14 | + [[ $CONFIG_FILE =~ ^[a-zA-Z0-9_=+.-]{1,15}$ ]] && CONFIG_FILE="/opt/etc/wireguard/$CONFIG_FILE.conf" 15 | [[ -e $CONFIG_FILE ]] || die "\`$CONFIG_FILE' does not exist" 16 | [[ $CONFIG_FILE =~ (^|/)([a-zA-Z0-9_=+.-]{1,15})\.conf$ ]] || die "The config file must be a valid interface name, followed by .conf" 17 | CONFIG_FILE="$(readlink -f "$CONFIG_FILE")" 18 | -------------------------------------------------------------------------------- /xawtv/patches/020-no-fbtv.patch: -------------------------------------------------------------------------------- 1 | --- a/console/Subdir.mk 2 | +++ b/console/Subdir.mk 3 | @@ -20,7 +20,6 @@ endif 4 | ifeq ($(FOUND_OS),linux) 5 | TARGETS-console += \ 6 | console/radio \ 7 | - console/fbtv \ 8 | console/v4l-info 9 | TARGETS-v4l-conf += \ 10 | console/v4l-conf 11 | -------------------------------------------------------------------------------- /xawtv/patches/030-sys_siglist.patch: -------------------------------------------------------------------------------- 1 | --- a/console/fbtools.c 2 | +++ b/console/fbtools.c 3 | @@ -520,6 +520,6 @@ fb_catch_exit_signals(void) 4 | 5 | /* cleanup */ 6 | fb_cleanup(); 7 | - fprintf(stderr,"Oops: %s\n",sys_siglist[termsig]); 8 | + fprintf(stderr,"Oops: %s\n", strsignal(termsig)); 9 | exit(42); 10 | } 11 | --- a/console/record.c 12 | +++ b/console/record.c 13 | @@ -429,7 +429,7 @@ ctrlc(int signal) 14 | { 15 | if (verbose) 16 | fprintf(stderr,"\n%s - exiting\n", 17 | - sys_siglist[signal]); 18 | + strsignal(signal)); 19 | stop = 1; 20 | } 21 | 22 | --- a/x11/rootv.c 23 | +++ b/x11/rootv.c 24 | @@ -133,7 +133,7 @@ catch_sig(int signal) 25 | termsig = signal; 26 | if (verbose) 27 | fprintf(stderr,"received signal %d [%s]\n", 28 | - termsig,sys_siglist[termsig]); 29 | + termsig, strsignal(termsig)); 30 | } 31 | 32 | static void usage(FILE *fp) 33 | @@ -422,7 +422,7 @@ main(int argc, char *argv[]) 34 | } 35 | if (verbose && termsig) 36 | fprintf(stderr,"exiting on signal %d [%s]\n", 37 | - termsig,sys_siglist[termsig]); 38 | + termsig, strsignal(termsig)); 39 | if (do_mute && have_mute) 40 | XvSetPortAttribute(dpy,port,XV_MUTE,1); 41 | XvStopVideo(dpy,port,win); 42 | -------------------------------------------------------------------------------- /xmlstarlet/patches/010-no-docs.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile.am 2 | +++ b/Makefile.am 3 | @@ -1,6 +1,6 @@ 4 | EXTRA_DIST = Copyright examples solaris tests 5 | WIN32_DIST = README TODO Copyright COPYING AUTHORS ChangeLog INSTALL NEWS xml.exe 6 | -WIN32_doc_DIST = $(generated_docs) doc/html.css 7 | +WIN32_doc_DIST = doc/html.css 8 | 9 | ACLOCAL_AMFLAGS = -I m4 10 | if GCC 11 | @@ -72,15 +72,6 @@ EXTRA_DIST += $(usage_texts) usage2c.awk 12 | $(generated_usage_sources) : usage2c.awk 13 | 14 | 15 | -# doc 16 | -include doc/doc.mk 17 | - 18 | -man_MANS = $(manpage) 19 | -dist_doc_DATA = $(userguide_gen) doc/html.css $(txtguide) 20 | -EXTRA_DIST += $(manpage_src) $(userguide_src) $(txtguide_src) 21 | -EXTRA_DIST += $(buildfiles_docs) $(manpage) 22 | - 23 | - 24 | CLEANFILES = version.h $(generated_usage_sources) 25 | MAINTAINERCLEANFILES = $(manpage) $(userguide_gen) $(txtguide) 26 | 27 | -------------------------------------------------------------------------------- /xmlstarlet/patches/020-fix-missing-hdr.patch: -------------------------------------------------------------------------------- 1 | --- a/src/xmlstar.h 2 | +++ b/src/xmlstar.h 3 | @@ -15,6 +15,7 @@ 4 | #include 5 | #include 6 | #include 7 | +#include /* xmlIndentTreeOutput */ 8 | 9 | typedef enum { /* EXIT_SUCCESS = 0, EXIT_FAILURE = 1, */ 10 | EXIT_BAD_ARGS = EXIT_FAILURE+1, EXIT_BAD_FILE, 11 | -------------------------------------------------------------------------------- /xpdf/Makefile: -------------------------------------------------------------------------------- 1 | # SPDX-License-Identifier: GPL-2.0-only 2 | # 3 | # Copyright (C) 2011-2024 Entware 4 | # 5 | 6 | include $(TOPDIR)/rules.mk 7 | 8 | PKG_NAME:=xpdf 9 | PKG_VERSION:=4.05 10 | PKG_RELEASE:=1 11 | 12 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 13 | PKG_SOURCE_URL:=https://dl.xpdfreader.com 14 | PKG_HASH:=92707ed5acb6584fbd73f34091fda91365654ded1f31ba72f0970022cf2a5cea 15 | 16 | PKG_BUILD_FLAGS:=no-mips16 17 | 18 | include $(INCLUDE_DIR)/package.mk 19 | include $(INCLUDE_DIR)/cmake.mk 20 | 21 | define Package/xpdf 22 | SECTION:=utils 23 | CATEGORY:=Utilities 24 | DEPENDS:=+libfreetype +libstdcpp +libpng 25 | TITLE:=PDF manipulations tool 26 | URL:=http://www.xpdfreader.com/ 27 | MAINTAINER:=Entware team, https://entware.net 28 | endef 29 | 30 | define Package/xpdf/description 31 | Xpdf project includes a PDF text extractor, PDF-to-PostScript converter, and 32 | various other utilities. 33 | endef 34 | 35 | CMAKE_OPTIONS += \ 36 | -DNO_FONTCONFIG=ON 37 | 38 | define Package/xpdf/install 39 | $(INSTALL_DIR) $(1)/opt/bin 40 | $(INSTALL_BIN) \ 41 | $(PKG_INSTALL_DIR)/opt/bin/pdf* $(1)/opt/bin 42 | endef 43 | 44 | $(eval $(call BuildPackage,xpdf)) 45 | -------------------------------------------------------------------------------- /xupnpd2/files/S94xupnpd2: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=xupnpd2 5 | ARGS="" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/opt/sbin:/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /xupnpd2/patches/030-cfg.patch: -------------------------------------------------------------------------------- 1 | --- a/xupnpd.cfg 2 | +++ b/xupnpd.cfg 3 | @@ -15,10 +15,10 @@ log_level=3 4 | #log_file=udp://127.0.0.1:514/local0 5 | 6 | # detach from terminal 7 | -daemon_mode=false 8 | +daemon_mode=true 9 | 10 | # media 11 | -media_root=media/ 12 | +media_root=/opt/share/xupnpd2/media/ 13 | 14 | # default multicast UDP/RTP interface 15 | multicast_interface=eth1 16 | @@ -42,7 +42,7 @@ http_snd_timeout=0 17 | http_keep_alive_timeout=15 18 | http_keep_alive_max=10000 19 | http_max_post_size=4096 20 | -http_www_root=www/ 21 | +http_www_root=/opt/share/xupnpd2/www/ 22 | http_templates=/index.html,/dev.xml 23 | 24 | # OpenSSL settings 25 | @@ -71,7 +71,7 @@ upnp_hdr_content_disp=true # Conten 26 | #io_charset=windows-1251 27 | 28 | # db 29 | -db_file=xupnpd.db 30 | +db_file=/opt/var/xupnpd2.db 31 | 32 | # reset all dlna extras to '*' 33 | disable_dlna_extras=false 34 | -------------------------------------------------------------------------------- /xupnpd2/patches/040-xupnpd.lua_path.patch: -------------------------------------------------------------------------------- 1 | --- a/plugin_lua.cpp 2 | +++ b/plugin_lua.cpp 3 | @@ -248,7 +248,7 @@ std::string luas::translate_url(const st 4 | { 5 | reglibs(st); 6 | 7 | - if(!luaL_loadfile(st,"xupnpd.lua") && !lua_pcall(st,0,0,0)) 8 | + if(!luaL_loadfile(st,"/opt/etc/xupnpd2/xupnpd.lua") && !lua_pcall(st,0,0,0)) 9 | { 10 | lua_getglobal(st,(url_translator+"_translate_url").c_str()); 11 | 12 | -------------------------------------------------------------------------------- /xupnpd2/patches/050-xupnpd.cfg_path.patch: -------------------------------------------------------------------------------- 1 | --- a/common.cpp 2 | +++ b/common.cpp 3 | @@ -823,7 +823,7 @@ bool xupnpd::all_init_1(int argc,char** 4 | return false; 5 | 6 | // parse config 7 | - if(!cfg::load(argc>1?argv[1]:"xupnpd.cfg")) 8 | + if(!cfg::load(argc>1?argv[1]:"/opt/etc/xupnpd2/xupnpd.cfg")) 9 | return false; 10 | 11 | utils::openlog(); 12 | -------------------------------------------------------------------------------- /xupnpd2/patches/060-xupnpd.uid_path.patch: -------------------------------------------------------------------------------- 1 | --- a/common.cpp 2 | +++ b/common.cpp 3 | @@ -228,7 +228,7 @@ void utils::rm_last_slash(std::string& s 4 | 5 | std::string utils::uuid_gen(void) 6 | { 7 | - static const char uuid_dat[]="xupnpd.uid"; 8 | + static const char uuid_dat[]="/opt/var/xupnpd2.uid"; 9 | 10 | FILE* fp=fopen(uuid_dat,"rb"); 11 | 12 | -------------------------------------------------------------------------------- /yamdi/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2021 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | # Abandoned in 2012 8 | 9 | include $(TOPDIR)/rules.mk 10 | 11 | PKG_NAME:=yamdi 12 | PKG_VERSION:=1.9 13 | PKG_RELEASE:=1 14 | 15 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 16 | PKG_SOURCE_URL:=@SF/$(PKG_NAME) 17 | PKG_HASH:=4a6630f27f6c22bcd95982bf3357747d19f40bd98297a569e9c77468b756f715 18 | 19 | include $(INCLUDE_DIR)/package.mk 20 | 21 | define Package/yamdi 22 | SECTION:=multimedia 23 | CATEGORY:=Multimedia 24 | TITLE:=FLV metadata injector 25 | URL:=http://yamdi.sourceforge.net/ 26 | MAINTAINER:=Entware team, https://entware.net 27 | endef 28 | 29 | define Package/yamdi/description 30 | yamdi stands for Yet Another MetaData Injector and is a metadata injector 31 | for FLV files. It adds the onMetaData event to your FLV files. 32 | endef 33 | 34 | define Package/yamdi/install 35 | $(INSTALL_DIR) $(1)/opt/bin 36 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/yamdi $(1)/opt/bin 37 | endef 38 | 39 | $(eval $(call BuildPackage,yamdi)) 40 | -------------------------------------------------------------------------------- /yamdi/patches/010-linker-flags.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile 2 | +++ b/Makefile 3 | @@ -4,7 +4,7 @@ CC=gcc 4 | CFLAGS=-O2 -Wall 5 | 6 | yamdi: yamdi.c Makefile 7 | - $(CC) $(CFLAGS) yamdi.c -o yamdi 8 | + $(CC) $(CFLAGS) yamdi.c $(LDFLAGS) -o yamdi 9 | 10 | clean: yamdi 11 | rm -f yamdi 12 | -------------------------------------------------------------------------------- /ympd/files/S90ympd: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=ympd 5 | ARGS="-w 8800 -h localhost -p 6600" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/opt/sbin:/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /zbar/patches/010-disable-NLS.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile.am 2 | +++ b/Makefile.am 3 | @@ -38,11 +38,6 @@ include $(srcdir)/include/Makefile.am.in 4 | 5 | SUBDIRS = zbar 6 | 7 | -if USE_NLS 8 | - SUBDIRS += po 9 | - dist_doc_DATA += ABOUT-NLS 10 | -endif 11 | - 12 | zbar/libzbar.la: 13 | $(MAKE) -C @builddir@/zbar libzbar.la 14 | 15 | --- a/configure.ac 16 | +++ b/configure.ac 17 | @@ -134,10 +134,6 @@ dnl libraries 18 | 19 | AC_SEARCH_LIBS([clock_gettime], [rt pthread]) 20 | AM_ICONV() 21 | -AM_GNU_GETTEXT([external]) 22 | -AM_GNU_GETTEXT_VERSION(0.20) 23 | -AM_GNU_GETTEXT_REQUIRE_VERSION(0.18) 24 | -AM_CONDITIONAL([USE_NLS], [test "x${USE_NLS}" = "xyes"]) 25 | 26 | dnl libraries linkage 27 | AC_ARG_ENABLE([static_qt], 28 | @@ -844,7 +840,6 @@ AC_CONFIG_FILES([ 29 | Makefile 30 | gtk/Makefile 31 | java/Makefile 32 | -po/Makefile.in 33 | zbar/Makefile 34 | zbar.pc 35 | zbar-gtk.pc 36 | -------------------------------------------------------------------------------- /ziproxy/files/S25ziproxy: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | case "$1" in 3 | start ) 4 | /opt/bin/ziproxy -d 5 | ;; 6 | stop ) 7 | /opt/bin/ziproxy -k 8 | ;; 9 | *) 10 | echo "Usage: $0 {start|stop}" 11 | exit 1 12 | ;; 13 | esac 14 | exit 0 15 | -------------------------------------------------------------------------------- /ziproxy/patches/001-xinetd.d-conf.patch: -------------------------------------------------------------------------------- 1 | --- a/etc/xinetd.d/ziproxy 2 | +++ b/etc/xinetd.d/ziproxy 3 | @@ -4,8 +4,8 @@ service ziproxy 4 | socket_type = stream 5 | wait = no 6 | user = root 7 | - server = /usr/bin/ziproxy 8 | - server_args = -i -c /etc/ziproxy/ziproxy.conf 9 | + server = /opt/bin/ziproxy 10 | + server_args = -i -c /opt/etc/ziproxy/ziproxy.conf 11 | log_on_success += USERID 12 | log_on_failure += USERID 13 | disable = yes 14 | -------------------------------------------------------------------------------- /zork/patches/020-saves-path.patch: -------------------------------------------------------------------------------- 1 | --- a/dverb2.c 2 | +++ b/dverb2.c 3 | @@ -22,7 +22,7 @@ void savegm_() 4 | /* !DISABLE GAME. */ 5 | /* Note: save file format is different for PDP vs. non-PDP versions */ 6 | 7 | - if ((e = fopen("dsave.dat", BINWRITE)) == NULL) 8 | + if ((e = fopen("/opt/var/dsave.dat", BINWRITE)) == NULL) 9 | goto L100; 10 | 11 | gttime_(&i); 12 | @@ -113,7 +113,7 @@ void rstrgm_() 13 | /* !DISABLE GAME. */ 14 | /* Note: save file format is different for PDP vs. non-PDP versions */ 15 | 16 | - if ((e = fopen("dsave.dat", BINREAD)) == NULL) 17 | + if ((e = fopen("/opt/var/dsave.dat", BINREAD)) == NULL) 18 | goto L100; 19 | 20 | #define do_uio(i, zbuf, cbytes) \ 21 | --------------------------------------------------------------------------------