├── packages ├── tvheadend │ ├── tv_grab_wl500g_info.offset │ ├── tv_grab_wl500g_info.cfg │ ├── S71tvheadend │ ├── 510-no-epoll_create1.patch │ ├── Makefile │ └── 500-no-inotify_init1.patch ├── xl2tpd │ ├── chap-secrets │ ├── ip-up.sh │ ├── ip-down.sh │ ├── S20xl2tpd │ ├── 150-entware-path.patch │ ├── 140-config_path.patch │ └── Makefile ├── opkg │ ├── opkg.conf │ ├── opkg.conf.arm │ ├── opkg.conf.i386 │ ├── 999-change-default-config-path.patch │ ├── 999-free-space-calc.patch │ └── Makefile ├── mpd │ ├── S89mpd │ └── Makefile ├── nginx │ ├── S80nginx │ ├── Makefile │ └── 110-remove-accep4-support.patch ├── squid │ ├── S22squid │ └── Makefile ├── apcupsd │ ├── S17apcupsd │ └── Makefile ├── fwknop │ ├── S05fwknopd │ └── Makefile ├── motion │ ├── S99motion │ ├── Makefile │ └── 002-honor_cppflags.patch ├── mysql │ ├── S70mysqld │ └── Makefile ├── netatalk │ ├── S27afpd │ ├── S26cnid_metad │ └── Makefile ├── nut │ ├── S15upsd │ ├── S15upsmon │ └── Makefile ├── openldap │ ├── S58slapd │ └── Makefile ├── portmap │ ├── S55portmap │ └── Makefile ├── freeradius2 │ ├── S55radiusd │ └── Makefile ├── rtpproxy │ ├── S18rtpproxy │ ├── Makefile │ └── fix-path.patch ├── strace │ ├── 500-types.patch │ ├── Makefile │ └── 510-l2_cid-absense.patch ├── asterisk-11.x │ ├── S31asterisk11 │ └── Makefile ├── avahi │ ├── S42avahi-daemon │ └── Makefile ├── dbus │ ├── S20dbus │ └── Makefile ├── udpxy │ ├── S29udpxy │ └── Makefile ├── asterisk-1.8.x │ ├── S31asterisk │ └── Makefile ├── dansguardian │ ├── S24dansguardian │ └── Makefile ├── dropbear │ ├── S51dropbear │ └── Makefile ├── fakeidentd │ ├── S85fakeidentd │ ├── Makefile │ └── fix-path.patch ├── smartmontools │ ├── S20smartmontools │ └── Makefile ├── bind │ ├── S09named │ └── Makefile ├── smstools3 │ ├── S53smstools3 │ └── Makefile ├── monit │ ├── S99monit │ └── Makefile ├── xinetd │ ├── S10xinetd │ ├── 500-opt_dir.patch │ └── Makefile ├── ndppd │ ├── S33ndppd │ ├── 500-config-path.patch │ ├── 600-ether.patch │ └── Makefile ├── polipo │ ├── S28polipo │ ├── Makefile │ └── 500-pid-file.patch ├── privoxy │ ├── S24privoxy │ └── Makefile ├── icecast │ ├── S78icecast │ ├── 030-enable-nobody-user.patch │ ├── Makefile │ └── 020-paths.patch ├── igmpproxy │ ├── S69igmpproxy │ └── Makefile ├── minidlna │ ├── S90minidlna │ ├── Makefile │ ├── 050-inotify_fix.patch │ ├── 100_album_art_samsung_f-series_fix.patch │ └── 060-conf_path.patch ├── ntpd │ ├── S77ntpdate │ ├── S77ntpd │ └── Makefile ├── umurmur │ ├── S73umurmurd │ └── Makefile ├── dovecot │ ├── S90dovecot │ └── Makefile ├── rsync │ ├── S50rsyncd │ ├── rsyncd │ └── Makefile ├── unbound │ ├── S61unbound │ └── Makefile ├── zabbix │ ├── S07zabbix_agentd │ ├── 500-old-libc.patch │ └── Makefile ├── lighttpd │ ├── S80lighttpd │ └── Makefile ├── iodine │ ├── S19iodined │ └── Makefile ├── pptpd │ ├── S20poptop │ └── Makefile ├── tinyproxy │ ├── S21tinyproxy │ └── Makefile ├── Template │ └── Makefile ├── aiccu │ ├── S50aiccu │ └── Makefile ├── lcd4linux │ ├── S91lcd4linux │ └── Makefile ├── transmission │ ├── S88transmission │ └── Makefile ├── davfs2 │ ├── 020-minimize_mem.patch │ ├── 010-no-SSP.patch │ ├── Makefile │ └── 090-rpmatch-fix.patch ├── luasec │ ├── 500-linker-options.patch │ └── Makefile ├── chan-sccp-b │ ├── 500-disable-ssp.patch │ └── Makefile ├── shadowsocks-libev │ ├── S22shadowsocks │ ├── Makefile │ ├── 510-external-libsodium.patch │ └── 500-external-libev.patch ├── strongswan │ ├── S90strongswan │ ├── Makefile │ └── 500-disable-insmod-flags.patch ├── dnscrypt-proxy │ ├── S09dnscrypt-proxy │ └── Makefile ├── gnupg │ ├── 100-home.patch │ └── Makefile ├── gnutls │ ├── 500-crywrap-argp-dep.patch │ └── Makefile ├── gdbm │ ├── 500-no-po-and-docs.patch │ ├── Makefile │ └── fix-path.patch ├── libev │ ├── 010-no-inotify_init1.patch │ ├── 020-no-epoll_create1.patch │ ├── Makefile │ └── fix-path.patch ├── miniupnpc │ ├── 555-install-prefix.patch │ └── Makefile ├── sslh │ ├── S14sslh │ ├── Makefile │ └── fix-path.patch ├── aria2 │ ├── S81aria2 │ ├── Makefile │ ├── aria2.conf │ └── fix-path.patch ├── mc │ ├── 020-global.patch │ └── Makefile ├── pcsc-lite │ ├── S48pcscd │ └── Makefile ├── xupnpd │ ├── S94xupnpd │ ├── 520-restart.patch │ ├── 500-home-dir.patch │ └── Makefile ├── vnstat │ ├── S32vnstat │ └── Makefile ├── toolchain │ ├── nsswitch_qnap.conf │ ├── nsswitch_syno.conf │ └── Makefile ├── apache │ ├── 500-disable-custom-rpath.patch │ └── Makefile ├── ipsec-tools │ ├── S49racoon │ └── Makefile ├── perl-www-curl │ └── fix-path.patch ├── python │ ├── 500-LONG_BIT-warning.patch │ └── Makefile ├── bash │ ├── 500-system-profile.patch │ ├── Makefile │ └── fix-path.patch ├── znc │ ├── Makefile │ └── S99znc ├── libnl │ ├── 110-offsetof.patch │ ├── Makefile │ └── 160-update_includes_for_iw.patch ├── lvm2 │ ├── Makefile │ └── S06lvm2 ├── glib2 │ ├── 200-gio.patch │ └── Makefile ├── openssh │ ├── Makefile │ └── S40sshd ├── postfix │ ├── Makefile │ └── S69postfix ├── ppp │ ├── Makefile │ └── 610-LDFLAGS.patch ├── prosody │ ├── Makefile │ └── S34prosody ├── sysstat │ ├── S99sysstat │ └── Makefile ├── mtr │ ├── Makefile │ └── fix-path.patch ├── openvpn │ ├── Makefile │ └── S20openvpn ├── samba36 │ └── Makefile ├── vpnc │ └── Makefile ├── postgresql │ └── Makefile ├── attr │ └── Makefile ├── libpam │ ├── Makefile │ └── 500-config-path.patch ├── minicom │ ├── Makefile │ └── fix-path.patch ├── tayga │ ├── 010-no-TUNSETGROUP.patch │ └── Makefile ├── iputils │ ├── Makefile │ └── 500-disable-SO_MARK.patch ├── libiconv-full │ └── Makefile ├── shadow │ └── Makefile ├── alsa-lib │ ├── Makefile │ └── 500-old-gcc-ld-bugfix.patch ├── iftop │ ├── Makefile │ ├── fix-path.patch │ └── 010-change-default-interface.patch ├── screen │ ├── 500-no-stropts.patch │ ├── Makefile │ └── fix-path.patch ├── shairport-sync │ ├── asound.conf │ ├── Makefile │ └── S50shairport-sync ├── hdparm │ ├── 010-add-LDFLAGS.patch │ ├── Makefile │ └── fix-path.patch ├── tinycdb │ └── fix-path.patch ├── patch │ └── fix-path.patch ├── cjdns │ ├── Makefile │ ├── 500-libuv.patch │ └── 510-execinfo.patch ├── gdb │ ├── Makefile │ ├── fix-path.patch │ └── 200-namespace.patch ├── python-yaml │ └── fix-path.patch ├── iperf │ └── fix-path.patch ├── ocf-crypro-headers │ └── fix-path.patch ├── busybox │ ├── Makefile │ └── 020-Config-defaults.patch ├── esniper │ ├── Makefile │ ├── fix-path.patch │ └── 500-find-ca-bundle.patch ├── ca-certificates │ └── Makefile ├── tcpdump │ └── fix-path.patch ├── pv │ └── fix-path.patch ├── ser2net │ ├── Makefile │ ├── fix-path.patch │ └── 001-linux-headers.patch ├── madplay │ └── fix-path.patch ├── nfs-kernel-server │ ├── Makefile │ └── 500-config-path.patch ├── spawn-fcgi │ └── fix-path.patch ├── ncdu │ └── fix-path.patch ├── kernel │ └── fix-path.patch ├── opus-tools │ └── fix-path.patch ├── sispmctl │ └── fix-path.patch ├── argp-standalone │ └── fix-path.patch ├── tmux │ └── fix-path.patch ├── php5 │ ├── 010-fix-path-102-debian_patches_use_embedded_timezonedb-patch.patch │ └── 050-php5-fpm-conf.patch ├── nacl │ └── fix-path.patch ├── usbreset │ └── fix-path.patch ├── libconfig │ └── fix-path.patch ├── libusb │ └── fix-path.patch ├── ccid │ └── fix-path.patch ├── usbutils │ └── fix-path.patch ├── libsndfile │ └── fix-path.patch ├── libsamplerate │ └── fix-path.patch ├── ices │ └── fix-path.patch ├── resolveip │ └── fix-path.patch ├── bc │ └── fix-path.patch ├── lftp │ └── fix-path.patch ├── libtool │ └── fix-path.patch ├── shairport │ └── fix-path.patch ├── joe │ └── fix-path.patch ├── squeezelite │ └── fix-path.patch ├── htop │ └── fix-path.patch ├── grep │ └── fix-path.patch ├── simplejson │ └── fix-path.patch ├── gmp │ └── fix-path.patch ├── lzo │ └── fix-path.patch ├── ncurses │ └── Makefile ├── python-setuptools │ └── fix-path.patch ├── libid3tag │ └── fix-path.patch ├── libmad │ └── fix-path.patch ├── libpcap │ └── fix-path.patch ├── libsoxr │ └── fix-path.patch ├── procps-ng │ └── fix-path.patch ├── libusb-compat │ └── fix-path.patch ├── ipset-dns │ └── fix-path.patch ├── zip │ └── fix-path.patch ├── libevent │ └── fix-path.patch ├── etherwake │ └── fix-path.patch ├── libsrtp │ └── fix-path.patch ├── librpc │ └── fix-path.patch ├── nano │ └── fix-path.patch ├── less │ └── fix-path.patch ├── libnl-tiny │ └── fix-path.patch ├── acl │ └── fix-path.patch ├── netcat │ └── fix-path.patch ├── Makefile.package └── uqmi │ └── fix-path.patch ├── README.md ├── .gitignore ├── config.mk ├── toolchain ├── 888-nsswitch.patch ├── 999-qnapware-locale-dirs-glibc220_arm.patch └── 999-qnapware-locale-dirs-glibc220_x86.patch ├── switch-arch ├── arch_defs_strings └── arch_defs_arm └── TODO /packages/tvheadend/tv_grab_wl500g_info.offset: -------------------------------------------------------------------------------- 1 | 0 2 | -------------------------------------------------------------------------------- /packages/tvheadend/tv_grab_wl500g_info.cfg: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | -------------------------------------------------------------------------------- /packages/xl2tpd/chap-secrets: -------------------------------------------------------------------------------- 1 | user1 * password1 * 2 | user2 * password2 * 3 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Description 2 | 3 | qnapware is a fork of entware for QNAP NASes. 4 | -------------------------------------------------------------------------------- /packages/opkg/opkg.conf: -------------------------------------------------------------------------------- 1 | src/gz packages http://qnapware.zyxmon.org/binaries-x86 2 | dest root /Apps 3 | dest ram /Apps/opt/tmp 4 | lists_dir ext /Apps/opt/var/opkg-lists 5 | option tmp_dir /Apps/opt/tmp 6 | -------------------------------------------------------------------------------- /packages/opkg/opkg.conf.arm: -------------------------------------------------------------------------------- 1 | src/gz packages http://qnapware.zyxmon.org/binaries-arm 2 | dest root /Apps 3 | dest ram /Apps/opt/tmp 4 | lists_dir ext /Apps/opt/var/opkg-lists 5 | option tmp_dir /Apps/opt/tmp 6 | -------------------------------------------------------------------------------- /packages/opkg/opkg.conf.i386: -------------------------------------------------------------------------------- 1 | src/gz packages http://qnapware.zyxmon.org/binaries-x86 2 | dest root /Apps 3 | dest ram /Apps/opt/tmp 4 | lists_dir ext /Apps/opt/var/opkg-lists 5 | option tmp_dir /Apps/opt/tmp 6 | -------------------------------------------------------------------------------- /packages/xl2tpd/ip-up.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | /usr/bin/logger "*** L2TP client connected [$*]" 3 | iptables -I INPUT 1 -i $1 -j ACCEPT 4 | iptables -I FORWARD 1 -i $1 -j ACCEPT 5 | iptables -t nat -A POSTROUTING -o $1 -j MASQUERADE 6 | -------------------------------------------------------------------------------- /packages/xl2tpd/ip-down.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | /usr/bin/logger "*** L2TP client disconnected [$*]" 3 | iptables -D INPUT -i $1 -j ACCEPT 4 | iptables -D FORWARD -i $1 -j ACCEPT 5 | iptables -t nat -D POSTROUTING -o $1 -j MASQUERADE 6 | -------------------------------------------------------------------------------- /packages/mpd/S89mpd: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=mpd 5 | ARGS="" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /Apps/opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /packages/nginx/S80nginx: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=nginx 5 | ARGS="" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /Apps/opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /packages/squid/S22squid: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=squid 5 | ARGS="" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /Apps/opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /packages/apcupsd/S17apcupsd: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=apcupsd 5 | ARGS="" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /Apps/opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /packages/fwknop/S05fwknopd: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=fwknopd 5 | ARGS="" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /Apps/opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /packages/motion/S99motion: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=motion 5 | ARGS="" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /Apps/opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /packages/mysql/S70mysqld: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=mysqld 5 | ARGS="" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /Apps/opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /packages/netatalk/S27afpd: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=afpd 5 | ARGS="-c 7" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /Apps/opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /packages/nut/S15upsd: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=upsd 5 | ARGS="-u admin" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /Apps/opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /packages/openldap/S58slapd: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=slapd 5 | ARGS="" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /Apps/opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /packages/portmap/S55portmap: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=portmap 5 | ARGS="" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /Apps/opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /packages/freeradius2/S55radiusd: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=radiusd 5 | ARGS="" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /Apps/opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /packages/rtpproxy/S18rtpproxy: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=rtpproxy 5 | ARGS="-F" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /Apps/opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /packages/strace/500-types.patch: -------------------------------------------------------------------------------- 1 | --- a/net.c 2 | +++ b/net.c 3 | @@ -46,6 +46,7 @@ 4 | #include 5 | #include 6 | #include 7 | +#include 8 | #if defined(__GLIBC__) 9 | # include 10 | #else 11 | -------------------------------------------------------------------------------- /packages/asterisk-11.x/S31asterisk11: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=asterisk 5 | ARGS="" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /Apps/opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /packages/avahi/S42avahi-daemon: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=avahi-daemon 5 | ARGS="-D" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /Apps/opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /packages/dbus/S20dbus: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=dbus-daemon 5 | ARGS="--system" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /Apps/opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /packages/netatalk/S26cnid_metad: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=cnid_metad 5 | ARGS="" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /Apps/opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /packages/udpxy/S29udpxy: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=udpxy 5 | ARGS="-T -S -p 4022" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /Apps/opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /packages/asterisk-1.8.x/S31asterisk: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=asterisk 5 | ARGS="-p" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /Apps/opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /packages/dansguardian/S24dansguardian: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=dansguardian 5 | ARGS="" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /Apps/opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /packages/dropbear/S51dropbear: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=dropbear 5 | ARGS="-p 22 -a" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /Apps/opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /packages/fakeidentd/S85fakeidentd: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=fakeidentd 5 | ARGS="-r" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /Apps/opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /packages/smartmontools/S20smartmontools: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=smartd 5 | ARGS="" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /Apps/opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /packages/bind/S09named: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=named 5 | ARGS="-c /opt/etc/bind/named.conf" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /Apps/opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /packages/smstools3/S53smstools3: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=smsd 5 | ARGS="" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/Apps/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /Apps/opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /packages/monit/S99monit: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=monit 5 | ARGS="-c /Apps/opt/etc/monitrc -d 120" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /Apps/opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /packages/xinetd/S10xinetd: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=xinetd 5 | ARGS="-f /Apps/opt/etc/xinetd.conf" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /Apps/opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /packages/ndppd/S33ndppd: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=ndppd 5 | ARGS="-p /Apps/opt/var/run/ndppd.pid -d" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /Apps/opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /packages/nut/S15upsmon: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=upsmon 5 | ARGS="-p" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/opt/sbin:/opt/bin:/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /Apps/opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /packages/polipo/S28polipo: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=polipo 5 | ARGS="-c /Apps/opt/etc/polipo/config" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /Apps/opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /packages/privoxy/S24privoxy: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=privoxy 5 | ARGS="/Apps/opt/etc/privoxy/config" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /Apps/opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /packages/icecast/S78icecast: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=icecast 5 | ARGS="-c /Apps/opt/etc/icecast.xml -b" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /Apps/opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /packages/igmpproxy/S69igmpproxy: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=igmpproxy 5 | ARGS="/Apps/opt/etc/igmpproxy.conf" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /Apps/opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /packages/minidlna/S90minidlna: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=minidlna 5 | ARGS="-f /Apps/opt/etc/minidlna.conf" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /Apps/opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /packages/ntpd/S77ntpdate: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=ntpdate 5 | ARGS="-s -b -u -t 2 0.openwrt.pool.ntp.org" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /Apps/opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /packages/umurmur/S73umurmurd: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=umurmurd 5 | ARGS="-r -c /Apps/opt/etc/umurmur.conf" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /Apps/opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /packages/dovecot/S90dovecot: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=dovecot 5 | ARGS="-c /Apps/opt/etc/dovecot/dovecot.conf" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /Apps/opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /packages/rsync/S50rsyncd: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=rsync 5 | ARGS="--daemon --config=/Apps/opt/etc/rsyncd.conf" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /Apps/opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /packages/unbound/S61unbound: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=unbound 5 | ARGS="-c /Apps/opt/etc/unbound/unbound.conf" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /Apps/opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /packages/zabbix/S07zabbix_agentd: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=zabbix_agentd 5 | ARGS="-c /Apps/opt/etc/$PROCS.conf" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /Apps/opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Flags for Make jobs 2 | .done 3 | /.git_mirrors_updated 4 | /packages/.packages_path.mk 5 | /packages/.packages_prepared 6 | /toolchain/.toolchain_prepared 7 | /buildroot/.buildroot_prepared 8 | /kernel-2.6.22.19/.kernel_prepared 9 | /switch-arch/.arch_defs_arm 10 | /switch-arch/.arch_defs_x86 -------------------------------------------------------------------------------- /packages/lighttpd/S80lighttpd: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=lighttpd 5 | ARGS="-f /Apps/opt/etc/lighttpd/lighttpd.conf" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /Apps/opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /packages/iodine/S19iodined: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=iodined 5 | #ARGS="-u user -P p@ssw0rd -l 0.0.0.0 -p 53" 6 | ARGS="" 7 | PREARGS="" 8 | DESC=$PROCS 9 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 10 | 11 | . /Apps/opt/etc/init.d/rc.func 12 | -------------------------------------------------------------------------------- /packages/pptpd/S20poptop: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=pptpd 5 | ARGS="-b br0 -c /Apps/opt/etc/pptpd.conf" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/Apps/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /Apps/opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /packages/tinyproxy/S21tinyproxy: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=tinyproxy 5 | ARGS="-c /Apps/opt/etc/tinyproxy/tinyproxy.config" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /Apps/opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /packages/Template/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | @touch $@ 12 | 13 | clean: 14 | @rm -f .done 15 | 16 | .PHONY: clean 17 | -------------------------------------------------------------------------------- /packages/aiccu/S50aiccu: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=aiccu 5 | ARGS="start /Apps/opt/etc/aiccu.conf" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/Apps/opt/bin:/Apps/opt/sbin:/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 | -------------------------------------------------------------------------------- /packages/lcd4linux/S91lcd4linux: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=lcd4linux 5 | ARGS="-f /Apps/opt/etc/lcd4linux.conf" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/Apps/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /Apps/opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /packages/rsync/rsyncd: -------------------------------------------------------------------------------- 1 | service rsync 2 | { 3 | disable = yes 4 | socket_type = stream 5 | wait = no 6 | user = root 7 | server = /opt/bin/rsync 8 | server_args = --daemon --config=/opt/etc/rsyncd.conf 9 | log_on_failure += USERID 10 | } 11 | -------------------------------------------------------------------------------- /packages/transmission/S88transmission: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=transmission-daemon 5 | ARGS="-g /Apps/opt/etc/transmission" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /Apps/opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /packages/davfs2/020-minimize_mem.patch: -------------------------------------------------------------------------------- 1 | --- a/etc/davfs2.conf 2 | +++ b/etc/davfs2.conf 3 | @@ -67,7 +67,7 @@ 4 | # file_refresh 1 # second 5 | # delay_upload 10 6 | # gui_optimize 0 7 | -# minimize_mem 0 8 | +minimize_mem 1 9 | 10 | # Debugging Options 11 | # ----------------- 12 | -------------------------------------------------------------------------------- /packages/luasec/500-linker-options.patch: -------------------------------------------------------------------------------- 1 | --- a/src/Makefile 2 | +++ b/src/Makefile 3 | @@ -50,7 +50,7 @@ 4 | @cd luasocket && $(MAKE) 5 | 6 | $(CMOD): $(EXTRA) $(OBJS) 7 | - $(LD) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) 8 | + $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) 9 | 10 | clean: 11 | cd luasocket && $(MAKE) clean 12 | -------------------------------------------------------------------------------- /packages/xinetd/500-opt_dir.patch: -------------------------------------------------------------------------------- 1 | --- a/xinetd/xconfig.h 2 | +++ b/xinetd/xconfig.h 3 | @@ -29,7 +29,7 @@ 4 | #endif 5 | 6 | 7 | -#define DEFAULT_CONFIG_FILE "/etc/xinetd.conf" 8 | +#define DEFAULT_CONFIG_FILE "/opt/etc/xinetd.conf" 9 | 10 | /* 11 | * This is the facility used by xinetd to log syslog messages 12 | -------------------------------------------------------------------------------- /packages/chan-sccp-b/500-disable-ssp.patch: -------------------------------------------------------------------------------- 1 | --- a/autoconf/extra.m4 2 | +++ b/autoconf/extra.m4 3 | @@ -501,7 +501,6 @@ 4 | AC_LANG_SAVE 5 | AC_LANG_C 6 | AX_APPEND_COMPILE_FLAGS([ dnl 7 | - -fstack-protector-all dnl 8 | -Wmissing-declarations dnl 9 | -Wnested-externs dnl 10 | -Wno-long-long dnl 11 | -------------------------------------------------------------------------------- /packages/shadowsocks-libev/S22shadowsocks: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=ss-local 5 | ARGS="-c /Apps/opt/etc/shadowsocks.json" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/Apps/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /Apps/opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /packages/strongswan/S90strongswan: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 4 | 5 | start() { 6 | ipsec start 7 | } 8 | 9 | stop() { 10 | ipsec stop 11 | } 12 | 13 | restart() { 14 | ipsec restart 15 | } 16 | 17 | reload() { 18 | ipsec update 19 | } 20 | -------------------------------------------------------------------------------- /packages/tvheadend/S71tvheadend: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=tvheadend 5 | ARGS="-C -f -u admin -g root -c /Apps/opt/etc/tvheadend" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/Apps/opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /packages/dnscrypt-proxy/S09dnscrypt-proxy: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=dnscrypt-proxy 5 | ARGS="--local-address=127.0.0.1:65053 --daemonize -R opendns" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /Apps/opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /packages/gnupg/100-home.patch: -------------------------------------------------------------------------------- 1 | --- a/util/fileutil.c 2 | +++ b/util/fileutil.c 3 | @@ -114,7 +114,7 @@ 4 | if((*name)[1]==DIRSEP_C || (*name)[1]=='\0') 5 | { 6 | /* This is the "~/foo" or "~" case. */ 7 | - char *tmp=getenv("HOME"); 8 | + char *tmp="/opt/etc"; 9 | if(tmp) 10 | home=xstrdup(tmp); 11 | 12 | -------------------------------------------------------------------------------- /packages/gnutls/500-crywrap-argp-dep.patch: -------------------------------------------------------------------------------- 1 | --- a/src/crywrap/Makefile.am 2 | +++ b/src/crywrap/Makefile.am 3 | @@ -29,4 +29,4 @@ 4 | 5 | crywrap_SOURCES = crywrap.c primes.h crywrap.h 6 | crywrap_LDADD = ../../lib/libgnutls.la $(LIBIDN_LIBS) #../../gl/libgnu.la 7 | -crywrap_LDADD += $(LIB_CLOCK_GETTIME) 8 | +crywrap_LDADD += $(LIB_CLOCK_GETTIME) -largp 9 | -------------------------------------------------------------------------------- /packages/opkg/999-change-default-config-path.patch: -------------------------------------------------------------------------------- 1 | --- a/src/opkg-cl.c 2 | +++ b/src/opkg-cl.c 3 | @@ -208,7 +208,7 @@ 4 | } 5 | 6 | if(!conf->conf_file && !conf->offline_root) 7 | - conf->conf_file = xstrdup("/etc/opkg.conf"); 8 | + conf->conf_file = xstrdup("/Apps/opt/etc/opkg.conf"); 9 | 10 | if (parse_err) 11 | return parse_err; 12 | -------------------------------------------------------------------------------- /packages/opkg/999-free-space-calc.patch: -------------------------------------------------------------------------------- 1 | --- a/libopkg/opkg_install.c 2 | +++ b/libopkg/opkg_install.c 3 | @@ -208,8 +208,7 @@ 4 | root_dir = pkg->dest->root_dir; 5 | } 6 | 7 | - if (!root_dir) 8 | - root_dir = conf->default_dest->root_dir; 9 | + root_dir = "/Apps/opt"; 10 | 11 | kbs_available = get_available_kbytes(root_dir); 12 | 13 | -------------------------------------------------------------------------------- /packages/xl2tpd/S20xl2tpd: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=xl2tpd 5 | ARGS="-p /Apps/opt/var/run/xl2tpd.pid" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | iptables -I INPUT -p tcp --dport 1701 -j ACCEPT 11 | 12 | . /Apps/opt/etc/init.d/rc.func 13 | -------------------------------------------------------------------------------- /packages/gdbm/500-no-po-and-docs.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile.am 2 | +++ b/Makefile.am 3 | @@ -22,7 +22,7 @@ 4 | if ENABLE_EXPORT 5 | MAYBE_EXPORT = export 6 | endif 7 | -SUBDIRS = po src doc $(MAYBE_COMPAT) $(MAYBE_EXPORT) tests 8 | +SUBDIRS = src $(MAYBE_COMPAT) $(MAYBE_EXPORT) tests 9 | 10 | AM_DISTCHECK_CONFIGURE_FLAGS = --enable-libgdbm-compat 11 | 12 | -------------------------------------------------------------------------------- /packages/libev/010-no-inotify_init1.patch: -------------------------------------------------------------------------------- 1 | --- a/ev.c 2 | +++ b/ev.c 3 | @@ -4158,11 +4158,6 @@ 4 | inline_size int 5 | infy_newfd (void) 6 | { 7 | -#if defined IN_CLOEXEC && defined IN_NONBLOCK 8 | - int fd = inotify_init1 (IN_CLOEXEC | IN_NONBLOCK); 9 | - if (fd >= 0) 10 | - return fd; 11 | -#endif 12 | return inotify_init (); 13 | } 14 | 15 | -------------------------------------------------------------------------------- /packages/miniupnpc/555-install-prefix.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile 2 | +++ b/Makefile 3 | @@ -81,7 +81,7 @@ 4 | endif 5 | 6 | # install directories 7 | -INSTALLPREFIX ?= $(PREFIX)/usr 8 | +INSTALLPREFIX ?= $(PREFIX)/Apps/opt 9 | INSTALLDIRINC = $(INSTALLPREFIX)/include/miniupnpc 10 | INSTALLDIRLIB = $(INSTALLPREFIX)/lib 11 | INSTALLDIRBIN = $(INSTALLPREFIX)/bin 12 | -------------------------------------------------------------------------------- /packages/sslh/S14sslh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=sslh 5 | ARGS="--ssh localhost:22 --ssl localhost:443 --openvpn localhost:1194 --tinc localhost:655 --xmpp localhost:5222 -t 2 -v 0" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /Apps/opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /packages/aria2/S81aria2: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | [ -e /opt/var/aria2/session.dat ] || touch /opt/var/aria2/session.dat 4 | 5 | ENABLED=yes 6 | PROCS=aria2c 7 | ARGS="--conf-path=/Apps/opt/etc/aria2.conf" 8 | PREARGS="" 9 | DESC=$PROCS 10 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 11 | 12 | . /Apps/opt/etc/init.d/rc.func 13 | -------------------------------------------------------------------------------- /packages/mc/020-global.patch: -------------------------------------------------------------------------------- 1 | --- a/lib/global.h 2 | +++ b/lib/global.h 3 | @@ -129,7 +129,7 @@ 4 | #define PATH_SEP '/' 5 | #define PATH_SEP_STR "/" 6 | #define PATH_ENV_SEP ':' 7 | -#define TMPDIR_DEFAULT "/tmp" 8 | +#define TMPDIR_DEFAULT "/Apps/opt/tmp" 9 | #define SCRIPT_SUFFIX "" 10 | #define get_default_editor() "vi" 11 | #define OS_SORT_CASE_SENSITIVE_DEFAULT 1 12 | -------------------------------------------------------------------------------- /packages/pcsc-lite/S48pcscd: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | mkdir -m 0700 -p /opt/var/racoon 4 | [ -f /opt/etc/ipsec.conf ] && /opt/sbin/setkey -f /opt/etc/ipsec.conf 5 | 6 | ENABLED=yes 7 | PROCS=pcscd 8 | ARGS="" 9 | PREARGS="" 10 | DESC=$PROCS 11 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 12 | 13 | . /Apps/opt/etc/init.d/rc.func 14 | -------------------------------------------------------------------------------- /packages/tvheadend/510-no-epoll_create1.patch: -------------------------------------------------------------------------------- 1 | --- a/src/tvhpoll.c 2 | +++ b/src/tvhpoll.c 3 | @@ -70,7 +70,7 @@ 4 | { 5 | int fd; 6 | #if ENABLE_EPOLL 7 | - if ((fd = epoll_create1(EPOLL_CLOEXEC)) < 0) { 8 | + if ((fd = epoll_create(n)) < 0) { 9 | tvhlog(LOG_ERR, "tvhpoll", "failed to create epoll [%s]", 10 | strerror(errno)); 11 | return NULL; 12 | -------------------------------------------------------------------------------- /packages/ndppd/500-config-path.patch: -------------------------------------------------------------------------------- 1 | --- a/src/ndppd.cc 2 | +++ b/src/ndppd.cc 3 | @@ -155,7 +155,7 @@ 4 | signal(SIGINT, exit_ndppd); 5 | signal(SIGTERM, exit_ndppd); 6 | 7 | - std::string config_path("/etc/ndppd.conf"); 8 | + std::string config_path("/Apps/opt/etc/ndppd.conf"); 9 | std::string pidfile; 10 | std::string verbosity; 11 | bool daemon = false; 12 | -------------------------------------------------------------------------------- /packages/xupnpd/S94xupnpd: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=xupnpd 5 | ARGS="" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | # check and remove stale pid 11 | if ! pidof $PROCS 1>/dev/null 2>&1; then 12 | rm -f /Apps/opt/var/run/$PROCS.pid 13 | fi 14 | 15 | . /Apps/opt/etc/init.d/rc.func 16 | -------------------------------------------------------------------------------- /packages/ntpd/S77ntpd: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | ENABLED=yes 4 | PROCS=ntpd 5 | ARGS="-c /Apps/opt/etc/ntp.conf -f /Apps/opt/var/spool/ntp/ntp.drift -s /Apps/opt/var/spool/ntp -k /Apps/opt/etc/ntp -l /Apps/opt/var/spool/ntp/ntp.log" 6 | PREARGS="" 7 | DESC=$PROCS 8 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 9 | 10 | . /Apps/opt/etc/init.d/rc.func 11 | -------------------------------------------------------------------------------- /packages/vnstat/S32vnstat: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Point right interfaces to monitor. Remove -i ppp0 to monitor all of them. 4 | [ -f "/opt/var/lib/vnstat/*" ] || vnstat -u -i ppp0 5 | 6 | ENABLED=yes 7 | PROCS=vnstatd 8 | ARGS="-d" 9 | PREARGS="" 10 | DESC=$PROCS 11 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 12 | 13 | . /Apps/opt/etc/init.d/rc.func 14 | -------------------------------------------------------------------------------- /packages/libev/020-no-epoll_create1.patch: -------------------------------------------------------------------------------- 1 | --- a/ev_epoll.c 2 | +++ b/ev_epoll.c 3 | @@ -238,11 +238,6 @@ 4 | int inline_size 5 | epoll_init (EV_P_ int flags) 6 | { 7 | -#ifdef EPOLL_CLOEXEC 8 | - backend_fd = epoll_create1 (EPOLL_CLOEXEC); 9 | - 10 | - if (backend_fd < 0 && (errno == EINVAL || errno == ENOSYS)) 11 | -#endif 12 | backend_fd = epoll_create (256); 13 | 14 | if (backend_fd < 0) 15 | -------------------------------------------------------------------------------- /packages/toolchain/nsswitch_qnap.conf: -------------------------------------------------------------------------------- 1 | passwd: compat 2 | shadow: compat 3 | group: compat 4 | 5 | hosts: files dns 6 | 7 | bootparams: files 8 | 9 | ethers: files 10 | netmasks: files 11 | networks: files 12 | protocols: files 13 | rpc: files 14 | services: files 15 | 16 | netgroup: files 17 | 18 | publickey: files 19 | 20 | automount: files 21 | aliases: files 22 | -------------------------------------------------------------------------------- /packages/toolchain/nsswitch_syno.conf: -------------------------------------------------------------------------------- 1 | passwd: files 2 | shadow: files 3 | group: files 4 | 5 | hosts: files dns 6 | 7 | bootparams: files 8 | 9 | ethers: files 10 | netmasks: files 11 | networks: files 12 | protocols: files 13 | rpc: files 14 | services: files 15 | 16 | netgroup: files 17 | 18 | publickey: nisplus 19 | 20 | automount: files 21 | aliases: files 22 | -------------------------------------------------------------------------------- /config.mk: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2014 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | export OPENWRT_REVISION=47008 9 | 10 | # Target architecture for repo (now only x86 is supported) 11 | #export TARGET=x86 12 | export TARGET=arm 13 | 14 | # Mirror for sources 15 | SRC_MIRROR=http://qnapware.zyxmon.org/sources 16 | -------------------------------------------------------------------------------- /packages/apache/500-disable-custom-rpath.patch: -------------------------------------------------------------------------------- 1 | --- a/support/envvars-std.in 2 | +++ b/support/envvars-std.in 3 | @@ -18,11 +18,5 @@ 4 | # 5 | # This file is generated from envvars-std.in 6 | # 7 | -if test "x$@SHLIBPATH_VAR@" != "x" ; then 8 | - @SHLIBPATH_VAR@="@exp_libdir@:$@SHLIBPATH_VAR@" 9 | -else 10 | - @SHLIBPATH_VAR@="@exp_libdir@" 11 | -fi 12 | -export @SHLIBPATH_VAR@ 13 | # 14 | @OS_SPECIFIC_VARS@ 15 | -------------------------------------------------------------------------------- /packages/ipsec-tools/S49racoon: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | mkdir -m 0700 -p /opt/var/racoon 4 | [ -f /Apps/opt/etc/ipsec.conf ] && /Apps/opt/sbin/setkey -f /Apps/opt/etc/ipsec.conf 5 | 6 | ENABLED=yes 7 | PROCS=racoon 8 | ARGS="-f /Apps/opt/etc/racoon.conf" 9 | PREARGS="" 10 | DESC=$PROCS 11 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 12 | 13 | . /Apps/opt/etc/init.d/rc.func 14 | -------------------------------------------------------------------------------- /packages/icecast/030-enable-nobody-user.patch: -------------------------------------------------------------------------------- 1 | --- a/conf/icecast.xml.in 2 | +++ b/conf/icecast.xml.in 3 | @@ -164,11 +164,9 @@ 4 | 5 | 6 | 0 7 | - 14 | 15 | 16 | -------------------------------------------------------------------------------- /packages/perl-www-curl/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-r43718/feeds/packages/lang/perl-www-curl/Makefile 2 | +++ ../../../openwrt_trunk/feeds/packages/lang/perl-www-curl/Makefile 3 | @@ -34,7 +34,7 @@ 4 | endef 5 | 6 | define Build/Configure 7 | - $(call perlmod/Configure,$(STAGING_DIR)/usr/include,) 8 | + $(call perlmod/Configure,$(STAGING_DIR)/opt/include,) 9 | endef 10 | 11 | define Build/Compile 12 | -------------------------------------------------------------------------------- /packages/python/500-LONG_BIT-warning.patch: -------------------------------------------------------------------------------- 1 | --- a/Include/pyport.h 2 | +++ b/Include/pyport.h 3 | @@ -883,7 +883,7 @@ 4 | * rather than waiting for integer multiplication to trigger bogus 5 | * overflows. 6 | */ 7 | -#error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)." 8 | +#warning "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)." 9 | #endif 10 | 11 | #ifdef __cplusplus 12 | -------------------------------------------------------------------------------- /packages/bash/500-system-profile.patch: -------------------------------------------------------------------------------- 1 | --- a/pathnames.h.in 2 | +++ b/pathnames.h.in 3 | @@ -25,7 +25,7 @@ 4 | #define DEFAULT_HOSTS_FILE "/etc/hosts" 5 | 6 | /* The default login shell startup file. */ 7 | -#define SYS_PROFILE "/etc/profile" 8 | +#define SYS_PROFILE "/opt/etc/profile" 9 | 10 | /* The default location of the bash debugger initialization/startup file. */ 11 | #define DEBUGGER_START_FILE "@DEBUGGER_START_FILE@" 12 | -------------------------------------------------------------------------------- /packages/mpd/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./S89mpd ../../../openwrt_trunk/feeds/packages/sound/mpd/files/ 13 | @touch $@ 14 | 15 | clean: 16 | @rm -f .done 17 | 18 | .PHONY: clean 19 | -------------------------------------------------------------------------------- /packages/sslh/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./S14sslh ../../../openwrt_trunk/feeds/packages/net/sslh/files/ 13 | @touch $@ 14 | 15 | clean: 16 | @rm -f .done 17 | 18 | .PHONY: clean 19 | -------------------------------------------------------------------------------- /packages/znc/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./S99znc ../../../openwrt_trunk/feeds/packages/net/znc/files 13 | @touch $@ 14 | 15 | clean: 16 | @rm -f .done 17 | 18 | .PHONY: clean 19 | -------------------------------------------------------------------------------- /packages/znc/S99znc: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # Give a r\w permissions for "nobody" user 4 | find /Apps/opt/share/znc/ -type f | xargs chmod 666 5 | find /Apps/opt/share/znc/ -type d | xargs chmod 777 6 | 7 | ENABLED=yes 8 | PROCS=znc 9 | ARGS="-d /Apps/opt/share/znc" 10 | PREARGS="" 11 | DESC=$PROCS 12 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 13 | 14 | . /Apps/opt/etc/init.d/rc.func 15 | -------------------------------------------------------------------------------- /packages/dbus/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./S20dbus ../../../openwrt_trunk/feeds/packages/utils/dbus/files/ 13 | @touch $@ 14 | 15 | clean: 16 | @rm -f .done 17 | 18 | .PHONY: clean 19 | -------------------------------------------------------------------------------- /packages/libnl/110-offsetof.patch: -------------------------------------------------------------------------------- 1 | --- a/include/netlink-local.h 2 | +++ b/include/netlink-local.h 3 | @@ -337,7 +337,9 @@ static inline int nl_cb_call(struct nl_c 4 | } 5 | 6 | #define ARRAY_SIZE(X) (sizeof(X) / sizeof((X)[0])) 7 | +#ifndef offsetof 8 | #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) 9 | +#endif 10 | 11 | #define __init __attribute__ ((constructor)) 12 | #define __exit __attribute__ ((destructor)) 13 | -------------------------------------------------------------------------------- /packages/lvm2/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./S06lvm2 ../../../openwrt_trunk/feeds/packages/utils/lvm2/files/ 13 | @touch $@ 14 | 15 | clean: 16 | @rm -f .done 17 | 18 | .PHONY: clean 19 | -------------------------------------------------------------------------------- /packages/monit/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./S99monit ../../../openwrt_trunk/feeds/packages/admin/monit/files/ 13 | @touch $@ 14 | 15 | clean: 16 | @rm -f .done 17 | 18 | .PHONY: clean 19 | -------------------------------------------------------------------------------- /packages/netatalk/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./S2* ../../../openwrt_trunk/feeds/packages/net/netatalk/files/ 13 | @touch $@ 14 | 15 | clean: 16 | @rm -f .done 17 | 18 | .PHONY: clean 19 | -------------------------------------------------------------------------------- /packages/ntpd/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./S77ntpd* ../../../openwrt_trunk/feeds/packages/net/ntpd/files/ 13 | @touch $@ 14 | 15 | clean: 16 | @rm -f .done 17 | 18 | .PHONY: clean 19 | -------------------------------------------------------------------------------- /packages/openldap/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./S58slapd ../../../openwrt_trunk/feeds/packages/libs/openldap/files/ 13 | @touch $@ 14 | 15 | clean: 16 | @rm -f .done 17 | 18 | .PHONY: clean -------------------------------------------------------------------------------- /packages/pptpd/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./S20poptop ../../../openwrt_trunk/feeds/packages/net/pptpd/files/ 13 | @touch $@ 14 | 15 | clean: 16 | @rm -f .done 17 | 18 | .PHONY: clean 19 | -------------------------------------------------------------------------------- /packages/squid/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./S22squid ../../../openwrt_trunk/feeds/packages/net/squid/files/ 13 | @touch $@ 14 | 15 | clean: 16 | @rm -f .done 17 | 18 | .PHONY: clean 19 | -------------------------------------------------------------------------------- /packages/strace/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./5*.patch ../../../openwrt_trunk/package/devel/strace/patches/ 13 | @touch $@ 14 | 15 | clean: 16 | @rm -f .done 17 | 18 | .PHONY: clean 19 | -------------------------------------------------------------------------------- /packages/udpxy/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./S29udpxy ../../../openwrt_trunk/feeds/packages/net/udpxy/files/ 13 | @touch $@ 14 | 15 | clean: 16 | @rm -f .done 17 | 18 | .PHONY: clean 19 | -------------------------------------------------------------------------------- /toolchain/888-nsswitch.patch: -------------------------------------------------------------------------------- 1 | --- a/resolv/netdb.h 2 | +++ b/resolv/netdb.h 3 | @@ -45,7 +45,7 @@ 4 | #define _PATH_HEQUIV "/etc/hosts.equiv" 5 | #define _PATH_HOSTS "/etc/hosts" 6 | #define _PATH_NETWORKS "/etc/networks" 7 | -#define _PATH_NSSWITCH_CONF "/etc/nsswitch.conf" 8 | +#define _PATH_NSSWITCH_CONF "/Apps/opt/etc/nsswitch.conf" 9 | #define _PATH_PROTOCOLS "/etc/protocols" 10 | #define _PATH_SERVICES "/etc/services" 11 | 12 | -------------------------------------------------------------------------------- /packages/apcupsd/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./S17apcupsd ../../../openwrt_trunk/feeds/packages/net/apcupsd/files/ 13 | @touch $@ 14 | 15 | clean: 16 | @rm -f .done 17 | 18 | .PHONY: clean 19 | -------------------------------------------------------------------------------- /packages/dovecot/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./S90dovecot ../../../openwrt_trunk/feeds/packages/mail/dovecot/files/ 13 | @touch $@ 14 | 15 | clean: 16 | @rm -f .done 17 | 18 | .PHONY: clean 19 | -------------------------------------------------------------------------------- /packages/glib2/200-gio.patch: -------------------------------------------------------------------------------- 1 | --- a/gio/giotypes.h 2 | +++ b/gio/giotypes.h 3 | @@ -61,8 +61,6 @@ typedef struct _GPermission GPermission; 4 | 5 | typedef struct _GMenuModel GMenuModel; 6 | typedef struct _GNotification GNotification; 7 | -typedef struct _GListModel GListModel; 8 | -typedef struct _GListStore GListStore; 9 | 10 | /** 11 | * GDrive: 12 | -------------------------------------------------------------------------------- /packages/iodine/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./S19iodined ../../../openwrt_trunk/feeds/packages/net/iodine/files/ 13 | @touch $@ 14 | 15 | clean: 16 | @rm -f .done 17 | 18 | .PHONY: clean 19 | -------------------------------------------------------------------------------- /packages/mysql/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./S70mysqld ../../../openwrt_trunk/feeds/packages/utils/mysql/files/ 13 | @touch $@ 14 | 15 | clean: 16 | @rm -f .done 17 | 18 | .PHONY: clean 19 | -------------------------------------------------------------------------------- /packages/openssh/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./S40sshd ../../../openwrt_trunk/feeds/packages/net/openssh/files/ 13 | @touch $@ 14 | 15 | clean: 16 | @rm -f .done 17 | 18 | .PHONY: clean 19 | -------------------------------------------------------------------------------- /packages/portmap/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./S55portmap ../../../openwrt_trunk/feeds/packages/net/portmap/files/ 13 | @touch $@ 14 | 15 | clean: 16 | @rm -f .done 17 | 18 | .PHONY: clean 19 | -------------------------------------------------------------------------------- /packages/postfix/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./S69postfix ../../../openwrt_trunk/feeds/packages/mail/postfix/files/ 13 | @touch $@ 14 | 15 | clean: 16 | @rm -f .done 17 | 18 | .PHONY: clean 19 | -------------------------------------------------------------------------------- /packages/ppp/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./6*.patch ../../../openwrt_trunk/package/network/services/ppp/patches/ 13 | @touch $@ 14 | 15 | clean: 16 | @rm -f .done 17 | 18 | .PHONY: clean 19 | -------------------------------------------------------------------------------- /packages/prosody/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./S34prosody ../../../openwrt_trunk/feeds/packages/net/prosody/files/ 13 | @touch $@ 14 | 15 | clean: 16 | @rm -f .done 17 | 18 | .PHONY: clean 19 | -------------------------------------------------------------------------------- /packages/sysstat/S99sysstat: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | prefix="/Apps/opt" 4 | PATH=${prefix}/bin:${prefix}/sbin:/sbin:/bin:/usr/sbin:/usr/bin 5 | 6 | case "$1" in 7 | start) 8 | echo "Writing LINUX RESTART event..." 9 | /Apps/opt/lib/sysstat/sadc -S DISK -F -L - 10 | ;; 11 | stop) 12 | ;; 13 | restart) 14 | ;; 15 | status) 16 | ;; 17 | *) 18 | echo "Usage: $0 (start|stop|restart|status)" 19 | exit 1 20 | ;; 21 | esac 22 | 23 | exit 0 -------------------------------------------------------------------------------- /packages/unbound/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./S61unbound ../../../openwrt_trunk/feeds/packages/net/unbound/files/ 13 | @touch $@ 14 | 15 | clean: 16 | @rm -f .done 17 | 18 | .PHONY: clean 19 | -------------------------------------------------------------------------------- /packages/avahi/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./S42avahi-daemon ../../../openwrt_trunk/feeds/packages/libs/avahi/files/ 13 | @touch $@ 14 | 15 | clean: 16 | @rm -f .done 17 | 18 | .PHONY: clean 19 | -------------------------------------------------------------------------------- /packages/glib2/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./200-gio.patch ../../../openwrt_trunk/feeds/packages/libs/glib2/patches/ 13 | @touch $@ 14 | 15 | clean: 16 | @rm -f .done 17 | 18 | .PHONY: clean 19 | -------------------------------------------------------------------------------- /packages/mtr/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | # cp -f ./600-libresolv.patch ../../../openwrt_trunk/feeds/packages/net/mtr/patches/ 13 | @touch $@ 14 | 15 | clean: 16 | @rm -f .done 17 | 18 | .PHONY: clean 19 | -------------------------------------------------------------------------------- /packages/openvpn/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./S20openvpn ../../../openwrt_trunk/package/network/services/openvpn/files/ 13 | @touch $@ 14 | 15 | clean: 16 | @rm -f .done 17 | 18 | .PHONY: clean 19 | -------------------------------------------------------------------------------- /packages/pcsc-lite/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./S48pcscd ../../../openwrt_trunk/feeds/packages/utils/pcsc-lite/files/ 13 | @touch $@ 14 | 15 | clean: 16 | @rm -f .done 17 | 18 | .PHONY: clean 19 | -------------------------------------------------------------------------------- /packages/samba36/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./S08samba ../../../openwrt_trunk/package/network/services/samba36/files/ 13 | @touch $@ 14 | 15 | clean: 16 | @rm -f .done 17 | 18 | .PHONY: clean 19 | -------------------------------------------------------------------------------- /packages/sysstat/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./S99sysstat ../../../openwrt_trunk/feeds/packages/utils/sysstat/files/ 13 | @touch $@ 14 | 15 | clean: 16 | @rm -f .done 17 | 18 | .PHONY: clean 19 | -------------------------------------------------------------------------------- /packages/tinyproxy/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./S21tinyproxy ../../../openwrt_trunk/feeds/packages/net/tinyproxy/files/ 13 | @touch $@ 14 | 15 | clean: 16 | @rm -f .done 17 | 18 | .PHONY: clean 19 | -------------------------------------------------------------------------------- /packages/vpnc/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./800-ware_path.patch ../../../openwrt_trunk/feeds/packages/net/vpnc/patches/ 13 | @touch $@ 14 | 15 | clean: 16 | @rm -f .done 17 | 18 | .PHONY: clean 19 | -------------------------------------------------------------------------------- /packages/fakeidentd/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./S85fakeidentd ../../../openwrt_trunk/feeds/packages/net/fakeidentd/files/ 13 | @touch $@ 14 | 15 | clean: 16 | @rm -f .done 17 | 18 | .PHONY: clean 19 | -------------------------------------------------------------------------------- /packages/freeradius2/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./S55radiusd ../../../openwrt_trunk/feeds/packages/net/freeradius2/files/ 13 | @touch $@ 14 | 15 | clean: 16 | @rm -f .done 17 | 18 | .PHONY: clean 19 | -------------------------------------------------------------------------------- /packages/ipsec-tools/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./S49racoon ../../../openwrt_trunk/feeds/packages/net/ipsec-tools/files/ 13 | @touch $@ 14 | 15 | clean: 16 | @rm -f .done 17 | 18 | .PHONY: clean 19 | -------------------------------------------------------------------------------- /packages/lcd4linux/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./S91lcd4linux ../../../openwrt_trunk/feeds/packages/utils/lcd4linux/files/ 13 | @touch $@ 14 | 15 | clean: 16 | @rm -f .done 17 | 18 | .PHONY: clean 19 | -------------------------------------------------------------------------------- /packages/postgresql/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./S98postgresql ../../../openwrt_trunk/feeds/packages/libs/postgresql/files/ 13 | @touch $@ 14 | 15 | clean: 16 | @rm -f .done 17 | 18 | .PHONY: clean 19 | -------------------------------------------------------------------------------- /packages/asterisk-1.8.x/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./S31asterisk ../../../openwrt_trunk/feeds/telephony/net/asterisk-1.8.x/files/ 13 | @touch $@ 14 | 15 | clean: 16 | @rm -f .done 17 | 18 | .PHONY: clean 19 | -------------------------------------------------------------------------------- /packages/asterisk-11.x/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./S31asterisk11 ../../../openwrt_trunk/feeds/telephony/net/asterisk-11.x/files/ 13 | @touch $@ 14 | 15 | clean: 16 | @rm -f .done 17 | 18 | .PHONY: clean 19 | -------------------------------------------------------------------------------- /packages/attr/Makefile: -------------------------------------------------------------------------------- 1 | # Makefile for OpenWrt Buildroot 2 | # 3 | # Copyright (C) 2011 Ryzhov Alexander 4 | # 5 | # This is free software, licensed under the GNU General Public License v2. 6 | # 7 | 8 | 9 | all: .done 10 | 11 | .done: 12 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 13 | cp -f ./103-gcc-4.2.patch ../../../openwrt_trunk/feeds/packages/utils/attr/patches/ 14 | @touch $@ 15 | 16 | clean: 17 | @rm -f .done 18 | 19 | .PHONY: clean 20 | -------------------------------------------------------------------------------- /packages/bash/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./500-system-profile.patch ../../../openwrt_trunk/feeds/packages/utils/bash/patches/ 13 | @touch $@ 14 | 15 | clean: 16 | @rm -f .done 17 | 18 | .PHONY: clean 19 | -------------------------------------------------------------------------------- /packages/dansguardian/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./S24dansguardian ../../../openwrt_trunk/feeds/packages/net/dansguardian/files/ 13 | @touch $@ 14 | 15 | clean: 16 | @rm -f .done 17 | 18 | .PHONY: clean 19 | -------------------------------------------------------------------------------- /packages/igmpproxy/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./S69igmpproxy ../../../openwrt_trunk/package/network/services/igmpproxy/files/ 13 | @touch $@ 14 | 15 | clean: 16 | @rm -f .done 17 | 18 | .PHONY: clean 19 | -------------------------------------------------------------------------------- /packages/libpam/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./500-config-path.patch ../../../openwrt_trunk/feeds/packages/libs/libpam/patches/ 13 | @touch $@ 14 | 15 | clean: 16 | @rm -f .done 17 | 18 | .PHONY: clean 19 | -------------------------------------------------------------------------------- /packages/luasec/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./500-linker-options.patch ../../../openwrt_trunk/feeds/packages/lang/luasec/patches/ 13 | @touch $@ 14 | 15 | clean: 16 | @rm -f .done 17 | 18 | .PHONY: clean 19 | -------------------------------------------------------------------------------- /packages/minicom/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./500-entware-path.patch ../../../openwrt_trunk/feeds/packages/utils/minicom/patches/ 13 | @touch $@ 14 | 15 | clean: 16 | @rm -f .done 17 | 18 | .PHONY: clean 19 | -------------------------------------------------------------------------------- /packages/tayga/010-no-TUNSETGROUP.patch: -------------------------------------------------------------------------------- 1 | --- a/tayga.c 2 | +++ b/tayga.c 3 | @@ -118,12 +118,6 @@ 4 | strerror(errno)); 5 | exit(1); 6 | } 7 | - if (ioctl(gcfg->tun_fd, TUNSETGROUP, 0) < 0) { 8 | - slog(LOG_CRIT, "Unable to set group on %s, " 9 | - "aborting: %s\n", gcfg->tundev, 10 | - strerror(errno)); 11 | - exit(1); 12 | - } 13 | slog(LOG_NOTICE, "Created persistent tun device %s\n", 14 | gcfg->tundev); 15 | return; 16 | -------------------------------------------------------------------------------- /packages/apache/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./500-disable-custom-rpath.patch ../../../openwrt_trunk/feeds/packages/net/apache/patches/ 13 | @touch $@ 14 | 15 | clean: 16 | @rm -f .done 17 | 18 | .PHONY: clean 19 | -------------------------------------------------------------------------------- /packages/iputils/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./500-disable-SO_MARK.patch ../../../openwrt_trunk/package/network/utils/iputils/patches/ 13 | @touch $@ 14 | 15 | clean: 16 | @rm -f .done 17 | 18 | .PHONY: clean 19 | -------------------------------------------------------------------------------- /packages/libiconv-full/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | rm -f ../../../openwrt_trunk/package/libs/libiconv-full/patches/100-strip_charsets.patch 13 | @touch $@ 14 | 15 | clean: 16 | @rm -f .done 17 | 18 | .PHONY: clean 19 | -------------------------------------------------------------------------------- /packages/miniupnpc/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | cp -f ./555-install-prefix.patch ../../../openwrt_trunk/feeds/packages/net/miniupnpc/patches/ 12 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 13 | @touch $@ 14 | 15 | clean: 16 | @rm -f .done 17 | 18 | .PHONY: clean 19 | -------------------------------------------------------------------------------- /packages/python/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./500-LONG_BIT-warning.patch ../../../openwrt_trunk/feeds/packages/lang/python/patches/ 13 | @touch $@ 14 | 15 | clean: 16 | @rm -f .done 17 | 18 | .PHONY: clean 19 | -------------------------------------------------------------------------------- /packages/shadow/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./050-login-defs-path.patch ../../../openwrt_trunk/feeds/packages/utils/shadow/patches/ 13 | @touch $@ 14 | 15 | clean: 16 | @rm -f .done 17 | 18 | .PHONY: clean 19 | -------------------------------------------------------------------------------- /packages/smartmontools/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./S20smartmontools ../../../openwrt_trunk/feeds/packages/utils/smartmontools/files/ 13 | @touch $@ 14 | 15 | clean: 16 | @rm -f .done 17 | 18 | .PHONY: clean 19 | -------------------------------------------------------------------------------- /packages/alsa-lib/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./500-old-gcc-ld-bugfix.patch ../../../openwrt_trunk/feeds/packages/libs/alsa-lib/patches/ 13 | @touch $@ 14 | 15 | clean: 16 | @rm -f .done 17 | 18 | .PHONY: clean 19 | -------------------------------------------------------------------------------- /packages/iftop/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./010-change-default-interface.patch ../../../openwrt_trunk/package/network/utils/iftop/patches/ 13 | @touch $@ 14 | 15 | clean: 16 | @rm -f .done 17 | 18 | .PHONY: clean 19 | -------------------------------------------------------------------------------- /packages/screen/500-no-stropts.patch: -------------------------------------------------------------------------------- 1 | --- a/configure 2 | +++ b/configure 3 | @@ -4194,7 +4194,7 @@ 4 | fi 5 | rm -f core conftest.err conftest.$ac_objext \ 6 | conftest$ac_exeext conftest.$ac_ext 7 | -for ac_header in stropts.h string.h strings.h 8 | +for ac_header in string.h strings.h 9 | do : 10 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12 | -------------------------------------------------------------------------------- /packages/shairport-sync/asound.conf: -------------------------------------------------------------------------------- 1 | # This is a simple configuration that will disable DMIX for ALSA, useful for configurations that uses USB speakers. 2 | # Most USB sound card / speakers doesn't have a mixer, so ALSA will default to DMIX which has a poor quality. 3 | # Disabling it will direct PCM to speaker without going through DMIX 4 | # Uncomment if you hear noises using ShairPort in WRT with USB speakers. 5 | 6 | pcm.!default{ 7 | type plug 8 | slave.pcm hw 9 | } 10 | -------------------------------------------------------------------------------- /packages/iftop/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../openwrt_trunk.orig/package/network/utils/iftop/Makefile 2 | +++ ../../../openwrt_trunk/package/network/utils/iftop/Makefile 3 | @@ -36,8 +36,8 @@ 4 | endef 5 | 6 | define Package/iftop/install 7 | - $(INSTALL_DIR) $(1)/usr/bin 8 | - $(INSTALL_BIN) $(PKG_BUILD_DIR)/iftop $(1)/usr/bin/ 9 | + $(INSTALL_DIR) $(1)/opt/bin 10 | + $(INSTALL_BIN) $(PKG_BUILD_DIR)/iftop $(1)/opt/bin/ 11 | endef 12 | 13 | $(eval $(call BuildPackage,iftop)) 14 | -------------------------------------------------------------------------------- /packages/hdparm/010-add-LDFLAGS.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile 2 | +++ b/Makefile 3 | @@ -15,7 +15,7 @@ 4 | 5 | CFLAGS := -O2 -W -Wall -Wbad-function-cast -Wcast-align -Wpointer-arith -Wcast-qual -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -fkeep-inline-functions -Wwrite-strings -Waggregate-return -Wnested-externs -Wtrigraphs $(CFLAGS) 6 | 7 | -LDFLAGS = -s 8 | +LDFLAGS ?= -s 9 | #LDFLAGS = -s -static 10 | INSTALL = install 11 | INSTALL_DATA = $(INSTALL) -m 644 12 | -------------------------------------------------------------------------------- /packages/zabbix/500-old-libc.patch: -------------------------------------------------------------------------------- 1 | --- a/src/libs/zbxcomms/comms.c 2 | +++ b/src/libs/zbxcomms/comms.c 3 | @@ -31,9 +31,7 @@ 4 | # define ZBX_SOCKLEN_T socklen_t 5 | #endif 6 | 7 | -#if !defined(SOCK_CLOEXEC) 8 | # define SOCK_CLOEXEC 0 /* SOCK_CLOEXEC is Linux-specific, available since 2.6.23 */ 9 | -#endif 10 | 11 | /****************************************************************************** 12 | * * 13 | -------------------------------------------------------------------------------- /packages/bind/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path-conf.patch 13 | cp -f ./S09named ../../../openwrt_trunk/feeds/packages/net/bind/files/ 14 | @touch $@ 15 | 16 | clean: 17 | @rm -f .done 18 | 19 | .PHONY: clean 20 | -------------------------------------------------------------------------------- /packages/iftop/010-change-default-interface.patch: -------------------------------------------------------------------------------- 1 | --- a/options.c 2 | +++ b/options.c 3 | @@ -110,9 +110,7 @@ 4 | char *s; 5 | /* Should go through the list of interfaces, and find the first one which 6 | * is up and is not lo or dummy*. */ 7 | - options.interface = get_first_interface(); 8 | - if (!options.interface) 9 | - options.interface = "eth0"; 10 | + options.interface = "br0"; 11 | 12 | options.filtercode = NULL; 13 | options.netfilter = 0; 14 | -------------------------------------------------------------------------------- /packages/tinycdb/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-r43718/feeds/packages/libs/tinycdb/Makefile 2014-12-15 16:50:13.300093577 +0300 2 | +++ ../../../openwrt_trunk/feeds/packages/libs/tinycdb/Makefile 2014-12-16 12:30:10.374809119 +0300 3 | @@ -31,7 +31,7 @@ 4 | endef 5 | 6 | define Build/InstallDev 7 | - cd $(PKG_BUILD_DIR); $(MAKE) DESTDIR=$(1) prefix=/usr install 8 | + cd $(PKG_BUILD_DIR); $(MAKE) DESTDIR=$(1) prefix=/opt install 9 | endef 10 | 11 | 12 | -------------------------------------------------------------------------------- /packages/libnl/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | mkdir -p ../../../openwrt_trunk/package/libs/libnl/patches 13 | cp -f ./1*.patch ../../../openwrt_trunk/package/libs/libnl/patches/ 14 | @touch $@ 15 | 16 | clean: 17 | @rm -f .done 18 | 19 | .PHONY: clean 20 | -------------------------------------------------------------------------------- /packages/patch/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-r43718/feeds/packages/devel/patch/Makefile 2 | +++ ../../../openwrt_trunk/feeds/packages/devel/patch/Makefile 3 | @@ -41,8 +41,8 @@ 4 | endef 5 | 6 | define Package/patch/install 7 | - $(INSTALL_DIR) $(1)/usr/bin 8 | - $(CP) $(PKG_INSTALL_DIR)/usr/bin/patch $(1)/usr/bin/ 9 | + $(INSTALL_DIR) $(1)/opt/bin 10 | + $(CP) $(PKG_INSTALL_DIR)/Apps/opt/bin/patch $(1)/opt/bin/ 11 | endef 12 | 13 | $(eval $(call BuildPackage,patch)) 14 | -------------------------------------------------------------------------------- /packages/prosody/S34prosody: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | prefix="/opt" 4 | PATH=${prefix}/bin:${prefix}/sbin:/sbin:/bin:/usr/sbin:/usr/bin 5 | 6 | case "$1" in 7 | start) 8 | prosodyctl start 9 | ;; 10 | stop) 11 | prosodyctl stop 12 | ;; 13 | restart) 14 | prosodyctl restart 15 | ;; 16 | status) 17 | prosodyctl status 18 | ;; 19 | reload) 20 | prosodyctl reload 21 | ;; 22 | *) 23 | echo "Usage: $0 (start|stop|restart|reload|status)" 24 | exit 1 25 | ;; 26 | esac 27 | 28 | exit 0 -------------------------------------------------------------------------------- /packages/cjdns/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | mkdir -p ../../../openwrt_trunk/feeds/routing/cjdns/patches 13 | cp -f ./5*.patch ../../../openwrt_trunk/feeds/routing/cjdns/patches/ 14 | @touch $@ 15 | 16 | clean: 17 | @rm -f .done 18 | 19 | .PHONY: clean 20 | -------------------------------------------------------------------------------- /packages/gdb/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | mkdir -p ../../../openwrt_trunk/package/devel/gdb//patches 13 | cp -f ./200-namespace.patch ../../../openwrt_trunk/package/devel/gdb/patches/ 14 | @touch $@ 15 | 16 | clean: 17 | @rm -f .done 18 | 19 | .PHONY: clean 20 | -------------------------------------------------------------------------------- /packages/nut/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./S15upsd ../../../openwrt_trunk/feeds/packages/net/nut/files/ 13 | cp -f ./S15upsmon ../../../openwrt_trunk/feeds/packages/net/nut/files/ 14 | @touch $@ 15 | 16 | clean: 17 | @rm -f .done 18 | 19 | .PHONY: clean 20 | -------------------------------------------------------------------------------- /packages/python-yaml/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-r45513/feeds/packages/lang/python-yaml/Makefile 2015-04-20 10:09:28.890135362 +0300 2 | +++ ../../../openwrt_trunk/feeds/packages/lang/python-yaml/Makefile 2015-04-21 08:51:47.388711109 +0300 3 | @@ -35,7 +35,7 @@ 4 | 5 | define Build/Compile 6 | $(call Build/Compile/PyMod,,\ 7 | - --with-libyaml install --prefix="$(PKG_INSTALL_DIR)/usr" \ 8 | + --with-libyaml install --prefix="$(PKG_INSTALL_DIR)/opt" \ 9 | ) 10 | endef 11 | 12 | -------------------------------------------------------------------------------- /packages/rsync/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp ./S50rsyncd ../../../openwrt_trunk/feeds/packages/net/rsync/files/ 13 | cp ./rsyncd ../../../openwrt_trunk/feeds/packages/net/rsync/files/ 14 | @touch $@ 15 | 16 | clean: 17 | @rm -f .done 18 | 19 | .PHONY: clean 20 | -------------------------------------------------------------------------------- /packages/fwknop/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | mkdir -p ../../../openwrt_trunk/feeds/packages/net/fwknop/files/ 13 | cp -f ./S05fwknopd ../../../openwrt_trunk/feeds/packages/net/fwknop/files/ 14 | @touch $@ 15 | 16 | clean: 17 | @rm -f .done 18 | 19 | .PHONY: clean 20 | -------------------------------------------------------------------------------- /packages/iperf/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../openwrt_trunk.orig/package/network/utils/iperf/Makefile 2 | +++ ../../../openwrt_trunk/package/network/utils/iperf/Makefile 3 | @@ -79,8 +79,8 @@ 4 | endif 5 | 6 | define Package/iperf/install 7 | - $(INSTALL_DIR) $(1)/usr/bin 8 | - $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/iperf $(1)/usr/bin/iperf 9 | + $(INSTALL_DIR) $(1)/opt/bin 10 | + $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/iperf $(1)/opt/bin/iperf 11 | endef 12 | Package/iperf-mt/install = $(Package/iperf/install) 13 | 14 | -------------------------------------------------------------------------------- /packages/libev/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | mkdir -p ../../../openwrt_trunk/feeds/packages/libs/libev/patches 13 | cp -f 0*.patch ../../../openwrt_trunk/feeds/packages/libs/libev/patches/ 14 | @touch $@ 15 | 16 | clean: 17 | @rm -f .done 18 | 19 | .PHONY: clean 20 | -------------------------------------------------------------------------------- /packages/mc/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | mkdir -p ../../../openwrt_trunk/feeds/packages/utils/mc/patches 13 | cp -f ./020-global.patch ../../../openwrt_trunk/feeds/packages/utils/mc/patches/ 14 | @touch $@ 15 | 16 | clean: 17 | @rm -f .done 18 | 19 | .PHONY: clean 20 | -------------------------------------------------------------------------------- /packages/ocf-crypro-headers/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../openwrt_trunk.orig/package/libs/ocf-crypto-headers/Makefile 2 | +++ ../../../openwrt_trunk/package/libs/ocf-crypto-headers/Makefile 3 | @@ -32,8 +32,8 @@ 4 | endef 5 | 6 | define Build/InstallDev 7 | - mkdir -p $(1)/usr/include/crypto 8 | - $(CP) ./src/cryptodev.h $(1)/usr/include/crypto 9 | + mkdir -p $(1)/opt/include/crypto 10 | + $(CP) ./src/cryptodev.h $(1)/opt/include/crypto 11 | endef 12 | 13 | $(eval $(call BuildPackage,ocf-crypto-headers)) 14 | -------------------------------------------------------------------------------- /packages/aiccu/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./S50aiccu ../../../openwrt_trunk/feeds/packages/ipv6/aiccu/files/ 13 | cp -f ./aiccu.conf ../../../openwrt_trunk/feeds/packages/ipv6/aiccu/files/ 14 | @touch $@ 15 | 16 | clean: 17 | @rm -f .done 18 | 19 | .PHONY: clean 20 | -------------------------------------------------------------------------------- /packages/umurmur/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | mkdir -p ../../../openwrt_trunk/feeds/packages/net/umurmur/files 13 | cp -f ./S73umurmurd ../../../openwrt_trunk/feeds/packages/net/umurmur/files/ 14 | @touch $@ 15 | 16 | clean: 17 | @rm -f .done 18 | 19 | .PHONY: clean 20 | -------------------------------------------------------------------------------- /packages/busybox/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/010-Makefile.patch 12 | patch -d $(TOP) -p3 -i $(CURDIR)/020-Config-defaults.patch 13 | cp -f ./999-entware-path.patch ../../../openwrt_trunk/package/utils/busybox/patches/ 14 | @touch $@ 15 | 16 | clean: 17 | @rm -f .done 18 | 19 | .PHONY: clean 20 | -------------------------------------------------------------------------------- /packages/gnupg/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | mkdir -p ../../../openwrt_trunk/feeds/packages/utils/gnupg/patches/ 13 | cp -f ./100-home.patch ../../../openwrt_trunk/feeds/packages/utils/gnupg/patches/ 14 | @touch $@ 15 | 16 | clean: 17 | @rm -f .done 18 | 19 | .PHONY: clean 20 | -------------------------------------------------------------------------------- /packages/rtpproxy/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | mkdir -p ../../../openwrt_trunk/feeds/telephony/net/rtpproxy/files 13 | cp -f ./S18rtpproxy ../../../openwrt_trunk/feeds/telephony/net/rtpproxy/files/ 14 | @touch $@ 15 | 16 | clean: 17 | @rm -f .done 18 | 19 | .PHONY: clean 20 | -------------------------------------------------------------------------------- /packages/davfs2/010-no-SSP.patch: -------------------------------------------------------------------------------- 1 | --- a/src/Makefile.am 2 | +++ b/src/Makefile.am 3 | @@ -32,8 +32,7 @@ 4 | kernel_interface.h mount_davfs.h webdav.h 5 | umount_davfs_SOURCES = umount_davfs.c defaults.h 6 | 7 | -AM_CFLAGS = -Wall -Werror=format-security \ 8 | - -fstack-protector --param=ssp-buffer-size=4 9 | +AM_CFLAGS = -Wall -Werror=format-security 10 | DEFS = -DPROGRAM_NAME=\"mount.davfs\" \ 11 | -DDAV_SYS_CONF_DIR=\"$(pkgsysconfdir)\" \ 12 | -DDAV_LOCALSTATE_DIR=\"$(dav_localstatedir)\" \ 13 | -------------------------------------------------------------------------------- /packages/gdbm/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | mkdir -p ../../../openwrt_trunk/feeds/packages/libs/gdbm/patches 13 | cp -f ./500-no-po-and-docs.patch ../../../openwrt_trunk/feeds/packages/libs/gdbm/patches/ 14 | @touch $@ 15 | 16 | clean: 17 | @rm -f .done 18 | 19 | .PHONY: clean 20 | -------------------------------------------------------------------------------- /packages/ndppd/600-ether.patch: -------------------------------------------------------------------------------- 1 | --- a/src/iface.cc.orig 2014-11-29 18:28:12.322998782 +0300 2 | +++ b/src/iface.cc 2014-11-29 18:28:19.444901692 +0300 3 | @@ -40,6 +40,15 @@ 4 | 5 | #include "ndppd.h" 6 | 7 | +// Some systems do not define all ETHERTYPE_* constants we need. 8 | +#ifndef ETHERTYPE_IPV6 9 | +#define ETHERTYPE_IPV6 0x86dd 10 | +#endif 11 | +#ifndef ETHERTYPE_VLAN 12 | +#define ETHERTYPE_VLAN 0x8100 13 | +#endif 14 | + 15 | + 16 | NDPPD_NS_BEGIN 17 | 18 | std::map > iface::_map; 19 | -------------------------------------------------------------------------------- /packages/tayga/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | mkdir -p ../../../openwrt_trunk/feeds/packages/ipv6/tayga/patches 13 | cp -f ./010-no-TUNSETGROUP.patch ../../../openwrt_trunk/feeds/packages/ipv6/tayga/patches/ 14 | @touch $@ 15 | 16 | clean: 17 | @rm -f .done 18 | 19 | .PHONY: clean 20 | -------------------------------------------------------------------------------- /packages/esniper/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | mkdir -p ../../../openwrt_trunk/feeds/packages/net/esniper/patches 13 | cp -f ./500-find-ca-bundle.patch ../../../openwrt_trunk/feeds/packages/net/esniper/patches/ 14 | @touch $@ 15 | 16 | clean: 17 | @rm -f .done 18 | 19 | .PHONY: clean 20 | -------------------------------------------------------------------------------- /packages/gnutls/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | mkdir -p ../../../openwrt_trunk/feeds/packages/libs/gnutls/patches/ 13 | cp -f ./500-crywrap-argp-dep.patch ../../../openwrt_trunk/feeds/packages/libs/gnutls/patches/ 14 | @touch $@ 15 | 16 | clean: 17 | @rm -f .done 18 | 19 | .PHONY: clean 20 | -------------------------------------------------------------------------------- /packages/hdparm/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | mkdir -p ../../../openwrt_trunk/feeds/packages/utils/hdparm/patches/ 13 | cp -f ./010-add-LDFLAGS.patch ../../../openwrt_trunk/feeds/packages/utils/hdparm/patches/ 14 | @touch $@ 15 | 16 | clean: 17 | @rm -f .done 18 | 19 | .PHONY: clean 20 | -------------------------------------------------------------------------------- /packages/privoxy/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./privoxy.oldconfig ../../../openwrt_trunk/feeds/packages/net/privoxy/files/ 13 | cp -f ./S24privoxy ../../../openwrt_trunk/feeds/packages/net/privoxy/files/ 14 | @touch $@ 15 | 16 | clean: 17 | @rm -f .done 18 | 19 | .PHONY: clean 20 | -------------------------------------------------------------------------------- /packages/xinetd/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./S10xinetd ../../../openwrt_trunk/feeds/packages/net/xinetd/files/ 13 | cp -f ./500-opt_dir.patch ../../../openwrt_trunk/feeds/packages/net/xinetd/patches/ 14 | @touch $@ 15 | 16 | clean: 17 | @rm -f .done 18 | 19 | .PHONY: clean 20 | -------------------------------------------------------------------------------- /packages/zabbix/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./5*.patch ../../../openwrt_trunk/feeds/packages/admin/zabbix/patches/ 13 | cp -f ./S07zabbix_agentd ../../../openwrt_trunk/feeds/packages/admin/zabbix/files/ 14 | @touch $@ 15 | 16 | clean: 17 | @rm -f .done 18 | 19 | .PHONY: clean 20 | -------------------------------------------------------------------------------- /packages/smstools3/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./5*.patch ../../../openwrt_trunk/feeds/packages/utils/smstools3/patches/ 13 | cp -f ./S53smstools3 ../../../openwrt_trunk/feeds/packages/utils/smstools3/files/ 14 | @touch $@ 15 | 16 | clean: 17 | @rm -f .done 18 | 19 | .PHONY: clean 20 | -------------------------------------------------------------------------------- /packages/chan-sccp-b/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | mkdir -p ../../../openwrt_trunk/feeds/telephony/net/chan-sccp-b/patches 13 | cp -f ./500-disable-ssp.patch ../../../openwrt_trunk/feeds/telephony/net/chan-sccp-b/patches/ 14 | @touch $@ 15 | 16 | clean: 17 | @rm -f .done 18 | 19 | .PHONY: clean 20 | -------------------------------------------------------------------------------- /packages/nginx/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./110-remove-accep4-support.patch ../../../openwrt_trunk/feeds/packages/net/nginx/patches/ 13 | cp -f ./S80nginx ../../../openwrt_trunk/feeds/packages/net/nginx/files/ 14 | @touch $@ 15 | 16 | clean: 17 | @rm -f .done 18 | 19 | .PHONY: clean 20 | -------------------------------------------------------------------------------- /packages/ca-certificates/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | mkdir -p ../../../openwrt_trunk/package/system/ca-certificates/patches 13 | cp -f ./500-certs-paths.patch ../../../openwrt_trunk/package/system/ca-certificates/patches/ 14 | @touch $@ 15 | 16 | clean: 17 | @rm -f .done 18 | 19 | .PHONY: clean 20 | -------------------------------------------------------------------------------- /packages/transmission/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./settings.json ../../../openwrt_trunk/feeds/packages/net/transmission/files/ 13 | cp -f ./S88transmission ../../../openwrt_trunk/feeds/packages/net/transmission/files/ 14 | @touch $@ 15 | 16 | clean: 17 | @rm -f .done 18 | 19 | .PHONY: clean 20 | -------------------------------------------------------------------------------- /packages/tcpdump/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-r35342/package/network/utils/tcpdump/Makefile 2 | +++ ../../../openwrt_trunk/package/network/utils/tcpdump/Makefile 3 | @@ -80,8 +80,8 @@ 4 | 5 | 6 | define Package/tcpdump/install 7 | - $(INSTALL_DIR) $(1)/usr/sbin 8 | - $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/tcpdump $(1)/usr/sbin/ 9 | + $(INSTALL_DIR) $(1)/opt/sbin 10 | + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/Apps/opt/sbin/tcpdump $(1)/opt/sbin/ 11 | endef 12 | 13 | Package/tcpdump-mini/install = $(Package/tcpdump/install) 14 | -------------------------------------------------------------------------------- /packages/dropbear/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./900-entware-options.patch ../../../openwrt_trunk/package/network/services/dropbear/patches/ 13 | cp -f ./S51dropbear ../../../openwrt_trunk/package/network/services/dropbear/files/ 14 | @touch $@ 15 | 16 | clean: 17 | @rm -f .done 18 | 19 | .PHONY: clean 20 | -------------------------------------------------------------------------------- /packages/pv/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-r44497/feeds/packages/utils/pv/Makefile 2015-02-24 12:08:56.849768248 +0300 2 | +++ ../../../openwrt_trunk/feeds/packages/utils/pv/Makefile 2015-03-04 11:58:46.078482084 +0300 3 | @@ -38,8 +38,8 @@ 4 | endef 5 | 6 | define Package/pv/install 7 | - $(INSTALL_DIR) $(1)/usr/bin 8 | - $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/pv $(1)/usr/bin/ 9 | + $(INSTALL_DIR) $(1)/opt/bin 10 | + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/Apps/opt/bin/pv $(1)/opt/bin/ 11 | endef 12 | 13 | $(eval $(call BuildPackage,pv)) 14 | -------------------------------------------------------------------------------- /packages/hdparm/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-r43593/feeds/packages/utils/hdparm/Makefile 2014-12-10 12:26:33.030951680 +0300 2 | +++ ../../../openwrt_trunk/feeds/packages/utils/hdparm/Makefile 2014-12-11 11:17:04.901453558 +0300 3 | @@ -35,8 +35,8 @@ 4 | endef 5 | 6 | define Package/hdparm/install 7 | - $(INSTALL_DIR) $(1)/sbin 8 | - $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/sbin 9 | + $(INSTALL_DIR) $(1)/opt/sbin 10 | + $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/opt/sbin 11 | endef 12 | 13 | $(eval $(call BuildPackage,hdparm)) 14 | -------------------------------------------------------------------------------- /packages/mtr/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-r46338/feeds/packages/net/mtr/Makefile 2015-07-14 10:55:19.798308173 +0300 2 | +++ ../../../openwrt_trunk/feeds/packages/net/mtr/Makefile 2015-07-14 10:55:49.938308675 +0300 3 | @@ -66,8 +66,8 @@ 4 | endef 5 | 6 | define Package/mtr/install 7 | - $(INSTALL_DIR) $(1)/usr/sbin 8 | - $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/mtr $(1)/usr/sbin/ 9 | + $(INSTALL_DIR) $(1)/opt/sbin 10 | + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/Apps/opt/sbin/mtr $(1)/opt/sbin/ 11 | endef 12 | 13 | $(eval $(call BuildPackage,mtr)) 14 | -------------------------------------------------------------------------------- /packages/ser2net/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | rm -f ../../../openwrt_trunk/feeds/packages/net/ser2net/patches/001-fix_TIOCSRS485_undeclared_error.patch 13 | cp -f ./001-linux-headers.patch ../../../openwrt_trunk/feeds/packages/net/ser2net/patches/ 14 | @touch $@ 15 | 16 | clean: 17 | @rm -f .done 18 | 19 | .PHONY: clean 20 | -------------------------------------------------------------------------------- /packages/madplay/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-r46940/feeds/packages/sound/madplay/Makefile 2015-09-15 12:24:40.786451662 +0300 2 | +++ ../../../openwrt_trunk/feeds/packages/sound/madplay/Makefile 2015-09-21 10:22:46.626958144 +0300 3 | @@ -56,8 +56,8 @@ 4 | endef 5 | 6 | define Package/madplay/install 7 | - $(INSTALL_DIR) $(1)/usr/bin 8 | - $(INSTALL_BIN) $(PKG_BUILD_DIR)/madplay $(1)/usr/bin/ 9 | + $(INSTALL_DIR) $(1)/opt/bin 10 | + $(INSTALL_BIN) $(PKG_BUILD_DIR)/madplay $(1)/opt/bin/ 11 | endef 12 | 13 | $(eval $(call BuildPackage,madplay)) 14 | -------------------------------------------------------------------------------- /packages/nfs-kernel-server/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./500-config-path.patch ../../../openwrt_trunk/feeds/packages/net/nfs-kernel-server/patches/ 13 | cp -f ./S57nfs-kernel-server ../../../openwrt_trunk/feeds/packages/net/nfs-kernel-server/files/ 14 | @touch $@ 15 | 16 | clean: 17 | @rm -f .done 18 | 19 | .PHONY: clean 20 | -------------------------------------------------------------------------------- /toolchain/999-qnapware-locale-dirs-glibc220_arm.patch: -------------------------------------------------------------------------------- 1 | --- a/locale/Makefile 2 | +++ b/locale/Makefile 3 | @@ -76,6 +76,12 @@ 4 | $(PERL) gen-translit.pl < $< > $@.tmp 5 | mv -f $@.tmp $@ 6 | 7 | +localedir = /Apps/opt/usr/lib/locale 8 | +i18ndir = /Apps/opt/usr/share/i18n 9 | +rtld-LDFLAGS = -Wl,--dynamic-linker=/Apps/opt/lib/ld-linux.so.3 10 | +LDFLAGS-locale = -Wl,-rpath,/Apps/opt/lib 11 | +LDFLAGS-localedef = -Wl,-rpath,/Apps/opt/lib 12 | + 13 | localepath = "$(localedir):$(i18ndir)" 14 | 15 | # -Iprograms doesn't really belong here, but this gets it at the head 16 | -------------------------------------------------------------------------------- /toolchain/999-qnapware-locale-dirs-glibc220_x86.patch: -------------------------------------------------------------------------------- 1 | --- a/locale/Makefile 2 | +++ b/locale/Makefile 3 | @@ -76,6 +76,12 @@ 4 | $(PERL) gen-translit.pl < $< > $@.tmp 5 | mv -f $@.tmp $@ 6 | 7 | +localedir = /Apps/opt/usr/lib/locale 8 | +i18ndir = /Apps/opt/usr/share/i18n 9 | +rtld-LDFLAGS = -Wl,--dynamic-linker=/Apps/opt/lib/ld-linux.so.2 10 | +LDFLAGS-locale = -Wl,-rpath,/Apps/opt/lib 11 | +LDFLAGS-localedef = -Wl,-rpath,/Apps/opt/lib 12 | + 13 | localepath = "$(localedir):$(i18ndir)" 14 | 15 | # -Iprograms doesn't really belong here, but this gets it at the head 16 | -------------------------------------------------------------------------------- /packages/aria2/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | mkdir -p ../../../openwrt_trunk/feeds/packages/net/aria2/files 13 | cp -f ./aria2.conf ../../../openwrt_trunk/feeds/packages/net/aria2/files/ 14 | cp -f ./S81aria2 ../../../openwrt_trunk/feeds/packages/net/aria2/files/ 15 | @touch $@ 16 | 17 | clean: 18 | @rm -f .done 19 | 20 | .PHONY: clean 21 | -------------------------------------------------------------------------------- /packages/xupnpd/520-restart.patch: -------------------------------------------------------------------------------- 1 | --- a/ui/xupnpd_ui.lua 2 | +++ b/ui/xupnpd_ui.lua 3 | @@ -531,7 +531,7 @@ 4 | end 5 | 6 | function ui_restart() 7 | - if core.restart(cfg.pid_file,"./xupnpd") then http.send('

Attempt to restart...

') else http.send('

Unable to restart.

') end 8 | + if core.restart(cfg.pid_file,"/Apps/opt/bin/xupnpd") then http.send('

Attempt to restart...

') else http.send('

Unable to restart.

') end 9 | 10 | http.send('
') 11 | 12 | -------------------------------------------------------------------------------- /packages/alsa-lib/500-old-gcc-ld-bugfix.patch: -------------------------------------------------------------------------------- 1 | --- a/m4/attributes.m4 2 | +++ b/m4/attributes.m4 3 | @@ -114,10 +114,6 @@ 4 | dnl First of all check for the --no-undefined variant of GNU ld. This allows 5 | dnl for a much more readable commandline, so that people can understand what 6 | dnl it does without going to look for what the heck -z defs does. 7 | - for possible_flags in "-Wl,--no-undefined" "-Wl,-z,defs"; do 8 | - CC_CHECK_LDFLAGS([$possible_flags], [LDFLAGS_NOUNDEFINED="$possible_flags"]) 9 | - break 10 | - done 11 | ;; 12 | esac 13 | 14 | -------------------------------------------------------------------------------- /packages/toolchain/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | mkdir -p ../../../openwrt_trunk/package/libs/toolchain/files/ 13 | cp -f nsswitch_qnap.conf ../../../openwrt_trunk/package/libs/toolchain/files/ 14 | cp -f nsswitch_syno.conf ../../../openwrt_trunk/package/libs/toolchain/files/ 15 | @touch $@ 16 | 17 | clean: 18 | @rm -f .done 19 | 20 | .PHONY: clean 21 | -------------------------------------------------------------------------------- /packages/spawn-fcgi/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-q45513/feeds/packages/net/spawn-fcgi/Makefile 2015-04-27 08:56:50.899094882 +0300 2 | +++ ../../../openwrt_trunk/feeds/packages/net/spawn-fcgi/Makefile 2015-04-27 08:57:39.250728996 +0300 3 | @@ -35,8 +35,8 @@ 4 | endef 5 | 6 | define Package/spawn-fcgi/install 7 | - $(INSTALL_DIR) $(1)/usr/bin 8 | - $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/spawn-fcgi $(1)/usr/bin/ 9 | + $(INSTALL_DIR) $(1)/opt/bin 10 | + $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/spawn-fcgi $(1)/opt/bin/ 11 | endef 12 | 13 | $(eval $(call BuildPackage,spawn-fcgi)) 14 | -------------------------------------------------------------------------------- /packages/ncdu/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-r46338/feeds/packages/utils/ncdu/Makefile 2015-07-14 10:55:19.834308174 +0300 2 | +++ ../../../openwrt_trunk/feeds/packages/utils/ncdu/Makefile 2015-07-14 10:55:49.970308675 +0300 3 | @@ -42,8 +42,8 @@ 4 | CONFIGURE_ARGS += --with-ncurses 5 | 6 | define Package/ncdu/install 7 | - $(INSTALL_DIR) $(1)/usr/bin 8 | - $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ncdu $(1)/usr/bin/ 9 | + $(INSTALL_DIR) $(1)/opt/bin 10 | + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/Apps/opt/bin/ncdu $(1)/opt/bin/ 11 | endef 12 | 13 | $(eval $(call BuildPackage,ncdu)) 14 | -------------------------------------------------------------------------------- /packages/polipo/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | 9 | all: .done 10 | 11 | .done: 12 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 13 | cp -f ./S28polipo ../../../openwrt_trunk/feeds/packages/net/polipo/files/ 14 | mkdir -p ../../../openwrt_trunk/feeds/packages/net/polipo/patches 15 | cp -f ./500-pid-file.patch ../../../openwrt_trunk/feeds/packages/net/polipo/patches/ 16 | @touch $@ 17 | 18 | clean: 19 | @rm -f .done 20 | 21 | .PHONY: clean 22 | -------------------------------------------------------------------------------- /packages/kernel/fix-path.patch: -------------------------------------------------------------------------------- 1 | diff -urx .svn ../../../downloads/openwrt_trunk-r47008/package/kernel/linux/modules/netsupport.mk ../../../openwrt_trunk/package/kernel/linux/modules/netsupport.mk 2 | --- ../../../downloads/openwrt_trunk-r47008/package/kernel/linux/modules/netsupport.mk 2015-09-21 12:01:28.615056709 +0300 3 | +++ ../../../openwrt_trunk/package/kernel/linux/modules/netsupport.mk 2015-09-21 14:19:01.191194065 +0300 4 | @@ -457,7 +457,6 @@ 5 | SUBMENU:=$(NETWORK_SUPPORT_MENU) 6 | TITLE:=IPv6 support 7 | DEPENDS:=@IPV6 8 | - HIDDEN:=1 9 | DEFAULT:=y 10 | KCONFIG:= \ 11 | CONFIG_IPV6=y \ 12 | -------------------------------------------------------------------------------- /packages/lighttpd/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./S80lighttpd ../../../openwrt_trunk/feeds/packages/net/lighttpd/files/ 13 | mkdir -p ../../../openwrt_trunk/feeds/packages/net/lighttpd/patches/ 14 | cp -f ./500-plugins-path.patch ../../../openwrt_trunk/feeds/packages/net/lighttpd/patches/ 15 | @touch $@ 16 | 17 | clean: 18 | @rm -f .done 19 | 20 | .PHONY: clean 21 | -------------------------------------------------------------------------------- /packages/vnstat/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./010-cfg-and-db-paths.patch ../../../openwrt_trunk/feeds/packages/net/vnstat/patches/ 13 | cp -f ./S32vnstat ../../../openwrt_trunk/feeds/packages/net/vnstat/files/ 14 | cp -f ./vnstat.conf ../../../openwrt_trunk/feeds/packages/net/vnstat/files/ 15 | @touch $@ 16 | 17 | clean: 18 | @rm -f .done 19 | 20 | .PHONY: clean 21 | -------------------------------------------------------------------------------- /packages/davfs2/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | rm -f ../../../openwrt_trunk/feeds/packages/net/davfs2/patches/010-main_code_fix.patch 13 | rm -f ../../../openwrt_trunk/feeds/packages/net/davfs2/patches/100-musl-compat.patch 14 | cp -f ./0*.patch ../../../openwrt_trunk/feeds/packages/net/davfs2/patches/ 15 | @touch $@ 16 | 17 | clean: 18 | @rm -f .done 19 | 20 | .PHONY: clean 21 | -------------------------------------------------------------------------------- /packages/opus-tools/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-r43718/feeds/packages/utils/opus-tools/Makefile 2014-12-15 16:50:13.332093577 +0300 2 | +++ ../../../openwrt_trunk/feeds/packages/utils/opus-tools/Makefile 2014-12-16 11:26:04.334879055 +0300 3 | @@ -40,8 +40,8 @@ 4 | --without-flac \ 5 | 6 | define Package/opus-tools/install 7 | - $(INSTALL_DIR) $(1)/usr/bin 8 | - $(CP) $(PKG_INSTALL_DIR)/usr/bin/opus{dec,enc,info} $(1)/usr/bin/ 9 | + $(INSTALL_DIR) $(1)/opt/bin 10 | + $(CP) $(PKG_INSTALL_DIR)/Apps/opt/bin/opus{dec,enc,info} $(1)/opt/bin/ 11 | endef 12 | 13 | $(eval $(call BuildPackage,opus-tools)) 14 | -------------------------------------------------------------------------------- /packages/sispmctl/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-r43593/feeds/packages/utils/sispmctl/Makefile 2014-12-10 12:26:33.030951680 +0300 2 | +++ ../../../openwrt_trunk/feeds/packages/utils/sispmctl/Makefile 2014-12-11 12:04:08.001400889 +0300 3 | @@ -49,8 +49,8 @@ 4 | --disable-dependency-tracking 5 | 6 | define Package/sispmctl/install 7 | - $(INSTALL_DIR) $(1)/usr/bin 8 | - $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/ 9 | + $(INSTALL_DIR) $(1)/opt/bin 10 | + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/Apps/opt/bin/$(PKG_NAME) $(1)/opt/bin/ 11 | endef 12 | 13 | $(eval $(call BuildPackage,sispmctl)) 14 | -------------------------------------------------------------------------------- /packages/minidlna/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./[0-9]*.patch ../../../openwrt_trunk/feeds/packages/multimedia/minidlna/patches/ 13 | cp -f ./S90minidlna ../../../openwrt_trunk/feeds/packages/multimedia/minidlna/files/ 14 | cp -f ./minidlna.conf ../../../openwrt_trunk/feeds/packages/multimedia/minidlna/files/ 15 | @touch $@ 16 | 17 | clean: 18 | @rm -f .done 19 | 20 | .PHONY: clean 21 | -------------------------------------------------------------------------------- /packages/screen/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./500-no-stropts.patch ../../../openwrt_trunk/feeds/packages/utils/screen/patches/ 13 | cp -f ./600-no-libelf.patch ../../../openwrt_trunk/feeds/packages/utils/screen/patches/ 14 | rm -f ../../../openwrt_trunk/feeds/packages/utils/screen/patches/200-musl-compat.patch 15 | @touch $@ 16 | 17 | clean: 18 | @rm -f .done 19 | 20 | .PHONY: clean 21 | -------------------------------------------------------------------------------- /packages/shadowsocks-libev/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | mkdir -p ../../../openwrt_trunk/feeds/packages/net/shadowsocks-libev/patches 13 | cp -f ./5*.patch ../../../openwrt_trunk/feeds/packages/net/shadowsocks-libev/patches/ 14 | cp -f ./S22shadowsocks ../../../openwrt_trunk/feeds/packages/net/shadowsocks-libev/files/ 15 | @touch $@ 16 | 17 | clean: 18 | @rm -f .done 19 | 20 | .PHONY: clean 21 | -------------------------------------------------------------------------------- /packages/argp-standalone/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-r43718/package/libs/argp-standalone/Makefile 2 | +++ ../../../openwrt_trunk/package/libs/argp-standalone/Makefile 3 | @@ -37,12 +37,12 @@ 4 | 5 | 6 | define Build/InstallDev 7 | - $(INSTALL_DIR) $(1)/usr/include 8 | + $(INSTALL_DIR) $(1)/opt/include 9 | $(CP) $(PKG_BUILD_DIR)/argp.h \ 10 | - $(1)/usr/include/ 11 | - $(INSTALL_DIR) $(1)/usr/lib 12 | + $(1)/opt/include/ 13 | + $(INSTALL_DIR) $(1)/opt/lib 14 | $(CP) $(PKG_BUILD_DIR)/libargp.a \ 15 | - $(1)/usr/lib/ 16 | + $(1)/opt/lib/ 17 | endef 18 | 19 | $(eval $(call BuildPackage,argp-standalone)) 20 | -------------------------------------------------------------------------------- /packages/dnscrypt-proxy/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./S09dnscrypt-proxy ../../../openwrt_trunk/feeds/packages/net/dnscrypt-proxy/files/ 13 | mkdir -p ../../../openwrt_trunk/feeds/packages/net/dnscrypt-proxy/patches 14 | cp -f ./010-cross-compile.patch ../../../openwrt_trunk/feeds/packages/net/dnscrypt-proxy/patches/ 15 | @touch $@ 16 | 17 | clean: 18 | @rm -f .done 19 | 20 | .PHONY: clean 21 | -------------------------------------------------------------------------------- /packages/cjdns/500-libuv.patch: -------------------------------------------------------------------------------- 1 | From: Lars Gierth 2 | Date: Sun, 10 Aug 2014 20:44:23 +0200 3 | 4 | Disable GYP parallelism 5 | 6 | Fixes mysterious build errors on a 2.6.32 VM. 7 | 8 | index 0f870d1..929cf6d 100644 9 | --- a/node_build/make.js 10 | +++ b/node_build/make.js 11 | @@ -281,7 +281,7 @@ Builder.configure({ 12 | var cwd = process.cwd(); 13 | process.chdir(dependencyDir + '/libuv/'); 14 | 15 | - var args = ['./gyp_uv.py']; 16 | + var args = ['./gyp_uv.py', '--no-parallel']; 17 | var env = process.env; 18 | env.CC = builder.config.gcc; 19 | -------------------------------------------------------------------------------- /packages/shairport-sync/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./asound.conf ../../../openwrt_trunk/feeds/packages/sound/shairport-sync/files/ 13 | cp -f ./S50shairport-sync ../../../openwrt_trunk/feeds/packages/sound/shairport-sync/files/ 14 | cp -f ./shairport-sync ../../../openwrt_trunk/feeds/packages/sound/shairport-sync/files/ 15 | @touch $@ 16 | 17 | clean: 18 | @rm -f .done 19 | 20 | .PHONY: clean 21 | -------------------------------------------------------------------------------- /packages/strongswan/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | rm -f ../../../openwrt_trunk/feeds/packages/net/strongswan/patches/101-musl-fixes.patch 13 | cp -f ./500-disable-insmod-flags.patch ../../../openwrt_trunk/feeds/packages/net/strongswan/patches/ 14 | cp -f ./S90strongswan ../../../openwrt_trunk/feeds/packages/net/strongswan/files/ 15 | @touch $@ 16 | 17 | clean: 18 | @rm -f .done 19 | 20 | .PHONY: clean 21 | -------------------------------------------------------------------------------- /packages/ndppd/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | mkdir -p ../../../openwrt_trunk/feeds/routing/ndppd/patches/ 13 | cp -f ./500-config-path.patch ../../../openwrt_trunk/feeds/routing/ndppd/patches/ 14 | cp -f ./600-ether.patch ../../../openwrt_trunk/feeds/routing/ndppd/patches/ 15 | cp -f ./S33ndppd ../../../openwrt_trunk/feeds/routing/ndppd/files/ 16 | @touch $@ 17 | 18 | clean: 19 | @rm -f .done 20 | 21 | .PHONY: clean 22 | -------------------------------------------------------------------------------- /packages/tmux/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-r46940/feeds/packages/utils/tmux/Makefile 2015-09-15 12:24:40.806451662 +0300 2 | +++ ../../../openwrt_trunk/feeds/packages/utils/tmux/Makefile 2015-09-15 12:28:26.954455426 +0300 3 | @@ -37,12 +37,12 @@ 4 | endef 5 | 6 | MAKE_FLAGS += \ 7 | - PREFIX="/usr" \ 8 | + PREFIX="/opt" \ 9 | PLATFORM="linux" 10 | 11 | define Package/tmux/install 12 | - $(INSTALL_DIR) $(1)/usr/bin 13 | - $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/tmux $(1)/usr/bin/ 14 | + $(INSTALL_DIR) $(1)/opt/bin 15 | + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/Apps/opt/bin/tmux $(1)/opt/bin/ 16 | endef 17 | 18 | $(eval $(call BuildPackage,tmux)) 19 | -------------------------------------------------------------------------------- /packages/xupnpd/500-home-dir.patch: -------------------------------------------------------------------------------- 1 | --- a/main.cpp 2 | +++ b/main.cpp 3 | @@ -16,23 +16,7 @@ 4 | 5 | int main(int argc,char** argv) 6 | { 7 | - const char* p=strrchr(argv[0],'/'); 8 | - 9 | - int rc; 10 | - 11 | - if(p) 12 | - { 13 | - char location[512]; 14 | - int n=p-argv[0]; 15 | - if(n>=sizeof(location)) 16 | - n=sizeof(location)-1; 17 | - strncpy(location,argv[0],n); 18 | - location[n]=0; 19 | - 20 | - rc=chdir(location); 21 | - 22 | - argv[0]=(char*)p+1; 23 | - } 24 | + int rc = chdir("/Apps/opt/share/xupnpd"); 25 | 26 | const char* root=getenv("XUPNPDROOTDIR"); 27 | if(root && *root) 28 | -------------------------------------------------------------------------------- /packages/minidlna/050-inotify_fix.patch: -------------------------------------------------------------------------------- 1 | Index: inotify.c 2 | =================================================================== 3 | RCS file: /cvsroot/minidlna/minidlna/inotify.c,v 4 | retrieving revision 1.49 5 | diff -u -b -w -r1.49 inotify.c 6 | --- a/inotify.c 31 Jan 2012 01:17:00 -0000 1.49 7 | +++ b/inotify.c 27 Mar 2012 10:11:06 -0000 8 | @@ -349,9 +350,11 @@ 9 | else if( ts < st.st_mtime ) 10 | { 11 | if( ts > 0 ) 12 | + { 13 | DPRINTF(E_DEBUG, L_INOTIFY, "%s is newer than the last db entry.\n", path); 14 | inotify_remove_file(path); 15 | } 16 | + } 17 | 18 | /* Find the parentID. If it's not found, create all necessary parents. */ 19 | len = strlen(path)+1; 20 | -------------------------------------------------------------------------------- /packages/php5/010-fix-path-102-debian_patches_use_embedded_timezonedb-patch.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-r46338/feeds/packages/lang/php5/patches/102-debian_patches_use_embedded_timezonedb.patch 2015-07-14 10:55:19.754308172 +0300 2 | +++ ../../../openwrt_trunk/feeds/packages/lang/php5/patches/102-debian_patches_use_embedded_timezonedb.patch 2015-07-14 10:55:50.286308681 +0300 3 | @@ -78,7 +78,7 @@ 4 | +#ifdef HAVE_SYSTEM_TZDATA_PREFIX 5 | +#define ZONEINFO_PREFIX HAVE_SYSTEM_TZDATA_PREFIX 6 | +#else 7 | -+#define ZONEINFO_PREFIX "/usr/share/zoneinfo" 8 | ++#define ZONEINFO_PREFIX "/Apps/opt/share/zoneinfo" 9 | +#endif 10 | + 11 | +/* System timezone database pointer. */ 12 | -------------------------------------------------------------------------------- /packages/xl2tpd/150-entware-path.patch: -------------------------------------------------------------------------------- 1 | --- a/l2tp.h 2 | +++ b/l2tp.h 3 | @@ -37,7 +37,7 @@ 4 | #include "common.h" 5 | #include "ipsecmast.h" 6 | 7 | -#define CONTROL_PIPE "/var/run/xl2tpd/l2tp-control" 8 | +#define CONTROL_PIPE "/opt/var/run/xl2tpd/l2tp-control" 9 | #define CONTROL_PIPE_MESSAGE_SIZE 1024 10 | 11 | /* Control pip request types */ 12 | @@ -59,7 +59,7 @@ 13 | #define SERVER_VERSION "xl2tpd-1.3.6" 14 | #define VENDOR_NAME "xelerance.com" 15 | #ifndef PPPD 16 | -#define PPPD "/usr/sbin/pppd" 17 | +#define PPPD "/opt/sbin/pppd" 18 | #endif 19 | #define CALL_PPP_OPTS "defaultroute" 20 | #define FIRMWARE_REV 0x0690 /* Revision of our firmware (software, in this case) */ 21 | -------------------------------------------------------------------------------- /packages/esniper/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-r46338/feeds/packages/net/esniper/Makefile 2015-07-17 15:58:16.335848885 +0300 2 | +++ ../../../openwrt_trunk/feeds/packages/net/esniper/Makefile 2015-07-17 21:22:57.572693333 +0300 3 | @@ -34,9 +34,9 @@ 4 | endef 5 | 6 | define Package/esniper/install 7 | - $(INSTALL_DIR) $(1)/usr/bin 8 | - $(INSTALL_BIN) $(PKG_BUILD_DIR)/esniper $(1)/usr/bin/ 9 | - $(INSTALL_BIN) $(PKG_BUILD_DIR)/frontends/snipe $(1)/usr/bin/ 10 | + $(INSTALL_DIR) $(1)/opt/bin 11 | + $(INSTALL_BIN) $(PKG_BUILD_DIR)/esniper $(1)/opt/bin/ 12 | + $(INSTALL_BIN) $(PKG_BUILD_DIR)/frontends/snipe $(1)/opt/bin/ 13 | endef 14 | 15 | $(eval $(call BuildPackage,esniper)) 16 | -------------------------------------------------------------------------------- /packages/motion/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | mkdir -p ../../../openwrt_trunk/feeds/packages/multimedia/motion/patches 13 | cp -f ./002-honor_cppflags.patch ../../../openwrt_trunk/feeds/packages/multimedia/motion/patches/ 14 | mkdir -p ../../../openwrt_trunk/feeds/packages/multimedia/motion/files 15 | cp -f ./S99motion ../../../openwrt_trunk/feeds/packages/multimedia/motion/files/ 16 | @touch $@ 17 | 18 | clean: 19 | @rm -f .done 20 | 21 | .PHONY: clean 22 | -------------------------------------------------------------------------------- /packages/nacl/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../openwrt_trunk.orig/feeds/packages/libs/nacl/Makefile 2 | +++ ../../../openwrt_trunk/feeds/packages/libs/nacl/Makefile 3 | @@ -40,10 +40,10 @@ 4 | endef 5 | 6 | define Build/InstallDev 7 | - $(INSTALL_DIR) $(1)/usr/include/nacl 8 | - $(CP) $(PKG_BUILD_DIR)/build/include/*.h $(1)/usr/include/nacl/ 9 | - $(INSTALL_DIR) $(1)/usr/lib 10 | - $(CP) $(PKG_BUILD_DIR)/build/lib/libnacl.a $(1)/usr/lib/ 11 | + $(INSTALL_DIR) $(1)/opt/include/nacl 12 | + $(CP) $(PKG_BUILD_DIR)/build/include/*.h $(1)/opt/include/nacl/ 13 | + $(INSTALL_DIR) $(1)/opt/lib 14 | + $(CP) $(PKG_BUILD_DIR)/build/lib/libnacl.a $(1)/opt/lib/ 15 | endef 16 | 17 | $(eval $(call BuildPackage,nacl)) 18 | -------------------------------------------------------------------------------- /packages/usbreset/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../openwrt_trunk.orig/package/utils/usbreset/Makefile 2 | +++ ../../../openwrt_trunk/package/utils/usbreset/Makefile 3 | @@ -32,13 +32,13 @@ 4 | endef 5 | 6 | define Build/Compile 7 | - $(TARGET_CC) $(TARGET_CFLAGS) -Wall \ 8 | + $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) -Wall \ 9 | -o $(PKG_BUILD_DIR)/usbreset $(PKG_BUILD_DIR)/usbreset.c 10 | endef 11 | 12 | define Package/usbreset/install 13 | - $(INSTALL_DIR) $(1)/usr/bin 14 | - $(INSTALL_BIN) $(PKG_BUILD_DIR)/usbreset $(1)/usr/bin/ 15 | + $(INSTALL_DIR) $(1)/opt/bin 16 | + $(INSTALL_BIN) $(PKG_BUILD_DIR)/usbreset $(1)/opt/bin/ 17 | endef 18 | 19 | $(eval $(call BuildPackage,usbreset)) 20 | -------------------------------------------------------------------------------- /packages/tvheadend/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./S71tvheadend ../../../openwrt_trunk/feeds/packages/multimedia/tvheadend/files/ 13 | cp -f ./tv_grab_* ../../../openwrt_trunk/feeds/packages/multimedia/tvheadend/files/ 14 | mkdir -p ../../../openwrt_trunk/feeds/packages/multimedia/tvheadend/patches 15 | cp -f ./5*.patch ../../../openwrt_trunk/feeds/packages/multimedia/tvheadend/patches/ 16 | @touch $@ 17 | 18 | clean: 19 | @rm -f .done 20 | 21 | .PHONY: clean 22 | -------------------------------------------------------------------------------- /packages/tvheadend/500-no-inotify_init1.patch: -------------------------------------------------------------------------------- 1 | --- a/src/dvr/dvr_inotify.c 2 | +++ b/src/dvr/dvr_inotify.c 3 | @@ -63,7 +63,7 @@ 4 | 5 | void dvr_inotify_init ( void ) 6 | { 7 | - _inot_fd = inotify_init1(IN_CLOEXEC); 8 | + _inot_fd = inotify_init(); 9 | if (_inot_fd < 0) { 10 | tvhlog(LOG_ERR, "dvr", "failed to initialise inotify (err=%s)", 11 | strerror(errno)); 12 | --- a/src/fsmonitor.c 13 | +++ b/src/fsmonitor.c 14 | @@ -105,7 +105,7 @@ 15 | fsmonitor_init ( void ) 16 | { 17 | /* Intialise inotify */ 18 | - fsmonitor_fd = inotify_init1(IN_CLOEXEC); 19 | + fsmonitor_fd = inotify_init(); 20 | tvhthread_create0(&fsmonitor_tid, NULL, fsmonitor_thread, NULL, "fsmonitor"); 21 | } 22 | 23 | -------------------------------------------------------------------------------- /packages/icecast/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./020-paths.patch ../../../openwrt_trunk/feeds/packages/multimedia/icecast/patches/ 13 | cp -f ./030-enable-nobody-user.patch ../../../openwrt_trunk/feeds/packages/multimedia/icecast/patches/ 14 | mkdir -p ../../../openwrt_trunk/feeds/packages/multimedia/icecast/files 15 | cp -f ./S78icecast ../../../openwrt_trunk/feeds/packages/multimedia/icecast/files/ 16 | @touch $@ 17 | 18 | clean: 19 | @rm -f .done 20 | 21 | .PHONY: clean 22 | -------------------------------------------------------------------------------- /packages/libconfig/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-r43718/package/libs/libconfig/Makefile 2014-11-07 23:35:24.890700705 +0300 2 | +++ ../../../openwrt_trunk/package/libs/libconfig/Makefile 2014-11-29 16:59:52.275442476 +0300 3 | @@ -47,12 +47,12 @@ 4 | --disable-cxx 5 | 6 | define Build/InstallDev 7 | - $(CP) $(PKG_INSTALL_DIR)/* $(1)/ 8 | + $(CP) $(PKG_INSTALL_DIR)/Apps/* $(1)/ 9 | endef 10 | 11 | define Package/libconfig/install 12 | - $(INSTALL_DIR) $(1)/usr/lib 13 | - $(CP) $(PKG_INSTALL_DIR)/usr/lib/libconfig.so* $(1)/usr/lib/ 14 | + $(INSTALL_DIR) $(1)/opt/lib 15 | + $(CP) $(PKG_INSTALL_DIR)/Apps/opt/lib/libconfig.so* $(1)/opt/lib/ 16 | endef 17 | 18 | $(eval $(call BuildPackage,libconfig)) 19 | -------------------------------------------------------------------------------- /packages/libusb/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-r43718/package/libs/libusb//Makefile 2014-11-07 23:35:24.738654897 +0300 2 | +++ ../../../openwrt_trunk/package/libs/libusb//Makefile 2014-11-26 14:47:31.122886558 +0300 3 | @@ -38,12 +38,12 @@ 4 | TARGET_CFLAGS += $(FPIC) 5 | 6 | define Build/InstallDev 7 | - $(CP) $(PKG_INSTALL_DIR)/* $(1)/ 8 | + $(CP) $(PKG_INSTALL_DIR)/Apps/* $(1)/ 9 | endef 10 | 11 | define Package/libusb-1.0/install 12 | - $(INSTALL_DIR) $(1)/usr/lib 13 | - $(CP) $(PKG_INSTALL_DIR)/usr/lib/libusb*.so* $(1)/usr/lib/ 14 | + $(INSTALL_DIR) $(1)/opt/lib 15 | + $(CP) $(PKG_INSTALL_DIR)/Apps/opt/lib/libusb*.so* $(1)/opt/lib/ 16 | endef 17 | 18 | $(eval $(call BuildPackage,libusb-1.0)) 19 | -------------------------------------------------------------------------------- /packages/iputils/500-disable-SO_MARK.patch: -------------------------------------------------------------------------------- 1 | https://bugs.gentoo.org/335347 2 | 3 | fix building with older linux headers that don't define SO_MARK 4 | 5 | --- a/ping_common.c 6 | +++ b/ping_common.c 7 | @@ -475,6 +475,7 @@ 8 | fprintf(stderr, "Warning: no SO_TIMESTAMP support, falling back to SIOCGSTAMP\n"); 9 | } 10 | #endif 11 | +#ifdef SO_MARK 12 | if (options & F_MARK) { 13 | if (setsockopt(icmp_sock, SOL_SOCKET, SO_MARK, 14 | &mark, sizeof(mark)) == -1) { 15 | @@ -484,6 +485,7 @@ 16 | fprintf(stderr, "Warning: Failed to set mark %d\n", mark); 17 | } 18 | } 19 | +#endif 20 | 21 | /* Set some SNDTIMEO to prevent blocking forever 22 | * on sends, when device is too slow or stalls. Just put limit 23 | -------------------------------------------------------------------------------- /packages/xupnpd/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | rm -f ../../../openwrt_trunk/feeds/packages/multimedia/xupnpd/patches/100-default_config.patch 13 | rm -f ../../../openwrt_trunk/feeds/packages/multimedia/xupnpd/patches/101-root_dir_param.patch 14 | cp -f ./S94xupnpd ../../../openwrt_trunk/feeds/packages/multimedia/xupnpd/files/ 15 | cp -f ./5*.patch ../../../openwrt_trunk/feeds/packages/multimedia/xupnpd/patches/ 16 | @touch $@ 17 | 18 | clean: 19 | @rm -f .done 20 | 21 | .PHONY: clean 22 | -------------------------------------------------------------------------------- /switch-arch/arch_defs_strings: -------------------------------------------------------------------------------- 1 | CONFIG_TARGET_qnaparm 2 | CONFIG_TARGET_qnapx86 3 | CONFIG_TARGET_qnaparm_Default 4 | CONFIG_TARGET_qnapx86_Default 5 | CONFIG_TARGET_BOARD 6 | CONFIG_TARGET_ARCH_PACKAGES 7 | CONFIG_DEFAULT_TARGET_OPTIMIZATION 8 | CONFIG_TARGET_OPTIMIZATION 9 | CONFIG_CPU_TYPE 10 | CONFIG_arm 11 | CONFIG_x86 12 | CONFIG_i386 13 | CONFIG_ARCH 14 | CONFIG_SOFT_FLOAT 15 | CONFIG_TARGET_NAME 16 | CONFIG_TOOLCHAIN_PREFIX 17 | CONFIG_TOOLCHAIN_ROOT 18 | CONFIG_LIBC_ROOT_DIR 19 | CONFIG_LIBGCC_ROOT_DIR 20 | CONFIG_LIBPTHREAD_ROOT_DIR 21 | CONFIG_LIBRT_ROOT_DIR 22 | CONFIG_LIBSTDCPP_ROOT_DIR 23 | CONFIG_LDD_ROOT_DIR 24 | CONFIG_LIBSSP_ROOT_DIR 25 | CONFIG_TOOLCHAIN_INC_PATH 26 | CONFIG_TOOLCHAIN_LIB_PATH 27 | CONFIG_TOOLCHAIN_USR_DIR 28 | -------------------------------------------------------------------------------- /packages/nginx/110-remove-accep4-support.patch: -------------------------------------------------------------------------------- 1 | --- a/auto/unix 2 | +++ b/auto/unix 3 | @@ -328,14 +328,14 @@ 4 | . auto/feature 5 | 6 | 7 | -ngx_feature="accept4()" 8 | -ngx_feature_name="NGX_HAVE_ACCEPT4" 9 | -ngx_feature_run=no 10 | -ngx_feature_incs="#include " 11 | -ngx_feature_path= 12 | -ngx_feature_libs= 13 | -ngx_feature_test="accept4(0, NULL, NULL, SOCK_NONBLOCK)" 14 | -. auto/feature 15 | +#ngx_feature="accept4()" 16 | +#ngx_feature_name="NGX_HAVE_ACCEPT4" 17 | +#ngx_feature_run=no 18 | +#ngx_feature_incs="#include " 19 | +#ngx_feature_path= 20 | +#ngx_feature_libs= 21 | +#ngx_feature_test="accept4(0, NULL, NULL, SOCK_NONBLOCK)" 22 | +#. auto/feature 23 | 24 | if [ $NGX_FILE_AIO = YES ]; then 25 | 26 | -------------------------------------------------------------------------------- /packages/ccid/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-r43718/feeds/packages/utils/ccid/Makefile 2014-11-07 23:35:24.540429288 +0300 2 | +++ ../../../openwrt_trunk/feeds/packages/utils/ccid/Makefile 2014-11-28 16:50:08.918453018 +0300 3 | @@ -42,11 +42,11 @@ 4 | 5 | CONFIGURE_ARGS += \ 6 | --enable-embedded \ 7 | - --enable-usbdropdir=/usr/lib/pcsc/drivers 8 | + --enable-usbdropdir=/Apps/opt/lib/pcsc/drivers 9 | 10 | define Package/ccid/install 11 | - $(INSTALL_DIR) $(1)/usr/lib/pcsc 12 | - $(CP) $(PKG_INSTALL_DIR)/usr/lib/pcsc/drivers $(1)/usr/lib/pcsc/ 13 | + $(INSTALL_DIR) $(1)/opt/lib/pcsc 14 | + $(CP) $(PKG_INSTALL_DIR)/Apps/opt/lib/pcsc/drivers $(1)/opt/lib/pcsc/ 15 | endef 16 | 17 | $(eval $(call BuildPackage,ccid)) 18 | -------------------------------------------------------------------------------- /packages/usbutils/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-r35474/package/utils/usbutils/Makefile 2 | +++ ../../../openwrt_trunk/package/utils/usbutils/Makefile 3 | @@ -48,10 +48,10 @@ 4 | endef 5 | 6 | define Package/usbutils/install 7 | - $(INSTALL_DIR) $(1)/usr/bin 8 | - $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/lsusb $(1)/usr/bin/ 9 | - $(INSTALL_DIR) $(1)/usr/share 10 | - $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/usb.ids.gz $(1)/usr/share/ 11 | + $(INSTALL_DIR) $(1)/opt/bin 12 | + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/Apps/opt/bin/lsusb $(1)/opt/bin/ 13 | + $(INSTALL_DIR) $(1)/opt/share 14 | + $(INSTALL_DATA) $(PKG_INSTALL_DIR)/Apps/opt/share/usb.ids.gz $(1)/opt/share/ 15 | endef 16 | 17 | $(eval $(call BuildPackage,usbutils)) 18 | -------------------------------------------------------------------------------- /packages/nfs-kernel-server/500-config-path.patch: -------------------------------------------------------------------------------- 1 | --- a/support/include/nfslib.h 2 | +++ b/support/include/nfslib.h 3 | @@ -23,16 +23,16 @@ 4 | #include "xlog.h" 5 | 6 | #ifndef _PATH_EXPORTS 7 | -#define _PATH_EXPORTS "/etc/exports" 8 | +#define _PATH_EXPORTS "/opt/etc/exports" 9 | #endif 10 | #ifndef _PATH_EXPORTS_D 11 | -#define _PATH_EXPORTS_D "/etc/exports.d" 12 | +#define _PATH_EXPORTS_D "/opt/etc/exports.d" 13 | #endif 14 | #ifndef _EXT_EXPORT 15 | #define _EXT_EXPORT ".exports" 16 | #endif 17 | #ifndef _PATH_IDMAPDCONF 18 | -#define _PATH_IDMAPDCONF "/etc/idmapd.conf" 19 | +#define _PATH_IDMAPDCONF "/opt/etc/idmapd.conf" 20 | #endif 21 | #ifndef _PATH_XTAB 22 | #define _PATH_XTAB NFS_STATEDIR "/xtab" 23 | -------------------------------------------------------------------------------- /packages/libsndfile/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-r43718/feeds/packages/libs/libsndfile/Makefile 2014-11-07 23:35:24.512552770 +0300 2 | +++ ../../../openwrt_trunk/feeds/packages/libs/libsndfile/Makefile 2014-11-28 21:55:05.153570242 +0300 3 | @@ -54,12 +54,12 @@ 4 | 5 | define Build/InstallDev 6 | $(INSTALL_DIR) $(1) 7 | - $(CP) $(PKG_INSTALL_DIR)/* $(1)/ 8 | + $(CP) $(PKG_INSTALL_DIR)/Apps/* $(1)/ 9 | endef 10 | 11 | define Package/libsndfile/install 12 | - $(INSTALL_DIR) $(1)/usr/lib 13 | - $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsndfile.so.* $(1)/usr/lib/ 14 | + $(INSTALL_DIR) $(1)/opt/lib 15 | + $(CP) $(PKG_INSTALL_DIR)/Apps/opt/lib/libsndfile.so.* $(1)/opt/lib/ 16 | endef 17 | 18 | $(eval $(call BuildPackage,libsndfile)) 19 | -------------------------------------------------------------------------------- /packages/libsamplerate/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-r43718/feeds/packages/libs/libsamplerate/Makefile 2014-11-07 23:35:24.520159187 +0300 2 | +++ ../../../openwrt_trunk/feeds/packages/libs/libsamplerate/Makefile 2014-11-28 22:56:26.849023448 +0300 3 | @@ -44,12 +44,12 @@ 4 | 5 | define Build/InstallDev 6 | $(INSTALL_DIR) $(1) 7 | - $(CP) $(PKG_INSTALL_DIR)/* $(1)/ 8 | + $(CP) $(PKG_INSTALL_DIR)/Apps/* $(1)/ 9 | endef 10 | 11 | define Package/libsamplerate/install 12 | - $(INSTALL_DIR) $(1)/usr/lib 13 | - $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsamplerate.so.* $(1)/usr/lib/ 14 | + $(INSTALL_DIR) $(1)/opt/lib 15 | + $(CP) $(PKG_INSTALL_DIR)/Apps/opt/lib/libsamplerate.so.* $(1)/opt/lib/ 16 | endef 17 | 18 | $(eval $(call BuildPackage,libsamplerate)) 19 | -------------------------------------------------------------------------------- /packages/icecast/020-paths.patch: -------------------------------------------------------------------------------- 1 | --- a/src/cfgfile.c 2 | +++ b/src/cfgfile.c 3 | @@ -57,10 +57,10 @@ 4 | #define CONFIG_YP_URL_TIMEOUT 10 5 | 6 | #ifndef _WIN32 7 | -#define CONFIG_DEFAULT_BASE_DIR "/usr/local/icecast" 8 | -#define CONFIG_DEFAULT_LOG_DIR "/usr/local/icecast/logs" 9 | -#define CONFIG_DEFAULT_WEBROOT_DIR "/usr/local/icecast/webroot" 10 | -#define CONFIG_DEFAULT_ADMINROOT_DIR "/usr/local/icecast/admin" 11 | +#define CONFIG_DEFAULT_BASE_DIR "/Apps/opt/share/icecast" 12 | +#define CONFIG_DEFAULT_LOG_DIR "/Apps/opt/var/log" 13 | +#define CONFIG_DEFAULT_WEBROOT_DIR "/Apps/opt/share/icecast/web" 14 | +#define CONFIG_DEFAULT_ADMINROOT_DIR "/Apps/opt/share/icecast/admin" 15 | #define MIMETYPESFILE "/etc/mime.types" 16 | #else 17 | #define CONFIG_DEFAULT_BASE_DIR ".\\" 18 | -------------------------------------------------------------------------------- /packages/opkg/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./999-change-default-config-path.patch ../../../openwrt_trunk/package/system/opkg/patches 13 | cp -f ./999-free-space-calc.patch ../../../openwrt_trunk/package/system/opkg/patches 14 | rm -f ../../../openwrt_trunk/package/system/opkg/patches/009-remove-upgrade-all.patch 15 | cp -f ./opkg.conf.i386 ../../../openwrt_trunk/package/system/opkg/files 16 | cp -f ./opkg.conf.arm ../../../openwrt_trunk/package/system/opkg/files 17 | @touch $@ 18 | 19 | clean: 20 | @rm -f .done 21 | 22 | .PHONY: clean 23 | -------------------------------------------------------------------------------- /packages/fakeidentd/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-r44497/feeds/packages/net/fakeidentd/Makefile 2015-02-21 21:16:27.905891455 +0300 2 | +++ ../../../openwrt_trunk/feeds/packages/net/fakeidentd/Makefile 2015-02-21 21:57:50.461841637 +0300 3 | @@ -39,10 +39,10 @@ 4 | endef 5 | 6 | define Package/fakeidentd/install 7 | - $(INSTALL_DIR) $(1)/usr/sbin 8 | - $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/sbin/ 9 | - $(INSTALL_DIR) $(1)/etc/init.d 10 | - $(INSTALL_BIN) ./files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME) 11 | + $(INSTALL_DIR) $(1)/opt/sbin 12 | + $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/opt/sbin/ 13 | + $(INSTALL_DIR) $(1)/opt/etc/init.d 14 | + $(INSTALL_BIN) ./files/S85fakeidentd $(1)/opt/etc/init.d/ 15 | endef 16 | 17 | $(eval $(call BuildPackage,fakeidentd)) 18 | -------------------------------------------------------------------------------- /packages/ices/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-q44497/feeds/packages/multimedia/ices/Makefile 2015-02-25 12:52:24.000426160 +0300 2 | +++ ../../../openwrt_trunk/feeds/packages/multimedia/ices/Makefile 2015-03-01 09:18:47.955684019 +0300 3 | @@ -40,12 +40,12 @@ 4 | endef 5 | 6 | CONFIGURE_ARGS+= \ 7 | - --with-ogg="$(STAGING_DIR)/usr/include" \ 8 | - --with-vorbis="$(STAGING_DIR)/usr/include" \ 9 | + --with-ogg="$(STAGING_DIR)/opt/include" \ 10 | + --with-vorbis="$(STAGING_DIR)/opt/include" \ 11 | 12 | define Package/ices/install 13 | - $(INSTALL_DIR) $(1)/usr/bin 14 | - $(CP) $(PKG_INSTALL_DIR)/usr/bin/ices $(1)/usr/bin/ 15 | + $(INSTALL_DIR) $(1)/opt/bin 16 | + $(CP) $(PKG_INSTALL_DIR)/Apps/opt/bin/ices $(1)/opt/bin/ 17 | endef 18 | 19 | $(eval $(call BuildPackage,ices)) 20 | -------------------------------------------------------------------------------- /packages/resolveip/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-r43593/package/network/utils/resolveip/Makefile 2014-12-10 12:26:33.774951667 +0300 2 | +++ ../../../openwrt_trunk/package/network/utils/resolveip/Makefile 2014-12-10 12:49:09.830926963 +0300 3 | @@ -34,13 +34,13 @@ 4 | endef 5 | 6 | define Build/Compile 7 | - $(TARGET_CC) $(TARGET_CFLAGS) -Wall \ 8 | + $(TARGET_CC) $(TARGET_CFLAGS) -Wall $(TARGET_LDFLAGS) \ 9 | -o $(PKG_BUILD_DIR)/resolveip $(PKG_BUILD_DIR)/resolveip.c 10 | endef 11 | 12 | define Package/resolveip/install 13 | - $(INSTALL_DIR) $(1)/usr/bin 14 | - $(INSTALL_BIN) $(PKG_BUILD_DIR)/resolveip $(1)/usr/bin/ 15 | + $(INSTALL_DIR) $(1)/opt/bin 16 | + $(INSTALL_BIN) $(PKG_BUILD_DIR)/resolveip $(1)/opt/bin/ 17 | endef 18 | 19 | $(eval $(call BuildPackage,resolveip)) 20 | -------------------------------------------------------------------------------- /packages/bc/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-r46338/feeds/packages/utils/bc/Makefile 2015-07-15 10:59:15.655750135 +0300 2 | +++ ../../../openwrt_trunk/feeds/packages/utils/bc/Makefile 2015-07-15 11:36:22.475801737 +0300 3 | @@ -52,13 +52,13 @@ 4 | CONFIGURE_ARGS += --with-readline 5 | 6 | define Package/bc/install 7 | - $(INSTALL_DIR) $(1)/usr/bin 8 | - $(INSTALL_BIN) $(PKG_BUILD_DIR)/bc/bc $(1)/usr/bin/ 9 | + $(INSTALL_DIR) $(1)/opt/bin 10 | + $(INSTALL_BIN) $(PKG_BUILD_DIR)/bc/bc $(1)/opt/bin/ 11 | endef 12 | 13 | define Package/dc/install 14 | - $(INSTALL_DIR) $(1)/usr/bin 15 | - $(INSTALL_BIN) $(PKG_BUILD_DIR)/dc/dc $(1)/usr/bin/ 16 | + $(INSTALL_DIR) $(1)/opt/bin 17 | + $(INSTALL_BIN) $(PKG_BUILD_DIR)/dc/dc $(1)/opt/bin/ 18 | endef 19 | 20 | $(eval $(call BuildPackage,bc)) 21 | -------------------------------------------------------------------------------- /packages/xl2tpd/140-config_path.patch: -------------------------------------------------------------------------------- 1 | --- a/file.h 2 | +++ b/file.h 3 | @@ -50,13 +50,13 @@ 4 | #define SENSE_DENY 0 5 | 6 | #ifndef DEFAULT_AUTH_FILE 7 | -#define DEFAULT_AUTH_FILE "/etc/xl2tpd/l2tp-secrets" 8 | +#define DEFAULT_AUTH_FILE "/Apps/opt/etc/xl2tpd/l2tp-secrets" 9 | #endif 10 | #ifndef DEFAULT_CONFIG_FILE 11 | -#define DEFAULT_CONFIG_FILE "/etc/xl2tpd/xl2tpd.conf" 12 | +#define DEFAULT_CONFIG_FILE "/Apps/opt/etc/xl2tpd/xl2tpd.conf" 13 | #endif 14 | -#define ALT_DEFAULT_AUTH_FILE "/etc/l2tpd/l2tp-secrets" 15 | -#define ALT_DEFAULT_CONFIG_FILE "/etc/l2tp/l2tpd.conf" 16 | +#define ALT_DEFAULT_AUTH_FILE "/Apps/opt/etc/l2tpd/l2tp-secrets" 17 | +#define ALT_DEFAULT_CONFIG_FILE "/Apps/opt/etc/l2tp/l2tpd.conf" 18 | #define DEFAULT_PID_FILE "/var/run/xl2tpd.pid" 19 | 20 | /* Definition of an LNS */ 21 | -------------------------------------------------------------------------------- /packages/lftp/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-r46338/feeds/packages/net/lftp/Makefile 2015-07-14 10:55:19.790308173 +0300 2 | +++ ../../../openwrt_trunk/feeds/packages/net/lftp/Makefile 2015-07-14 10:55:48.638308653 +0300 3 | @@ -60,7 +60,7 @@ 4 | --without-gnutls \ 5 | --without-libidn \ 6 | --without-libresolv \ 7 | - --with-openssl="$(STAGING_DIR)/usr" \ 8 | + --with-openssl="$(STAGING_DIR)/opt" \ 9 | --disable-static 10 | 11 | #CONFIGURE_VARS += \ 12 | @@ -71,8 +71,8 @@ 13 | # LD="$(TARGET_CXX)" 14 | 15 | define Package/lftp/install 16 | - $(INSTALL_DIR) $(1)/usr/bin 17 | - $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/lftp $(1)/usr/bin/ 18 | + $(INSTALL_DIR) $(1)/opt/bin 19 | + $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/lftp $(1)/opt/bin/ 20 | endef 21 | 22 | $(eval $(call BuildPackage,lftp)) 23 | -------------------------------------------------------------------------------- /packages/libtool/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../openwrt_trunk.orig/package/libs/libtool/Makefile 2 | +++ ../../../openwrt_trunk/package/libs/libtool/Makefile 3 | @@ -39,14 +39,14 @@ 4 | prefix="$(2)" \ 5 | exec_prefix="$(2)" \ 6 | install 7 | - $(INSTALL_DIR) $(1)/usr/lib $(1)/usr/include 8 | - mv $(2)/lib/* $(1)/usr/lib/ 9 | - mv $(2)/include/* $(1)/usr/include/ 10 | + $(INSTALL_DIR) $(1)/opt/lib $(1)/opt/include 11 | + mv $(2)/lib/* $(1)/opt/lib/ 12 | + mv $(2)/include/* $(1)/opt/include/ 13 | endef 14 | 15 | define Package/libltdl/install 16 | - $(INSTALL_DIR) $(1)/usr/lib 17 | - $(CP) $(PKG_BUILD_DIR)/libltdl/.libs/libltdl.so.* $(1)/usr/lib/ 18 | + $(INSTALL_DIR) $(1)/opt/lib 19 | + $(CP) $(PKG_BUILD_DIR)/libltdl/.libs/libltdl.so.* $(1)/opt/lib/ 20 | endef 21 | 22 | $(eval $(call BuildPackage,libltdl)) 23 | -------------------------------------------------------------------------------- /packages/lvm2/S06lvm2: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | prefix="/Apps/opt" 4 | PATH=${prefix}/bin:${prefix}/sbin:/sbin:/bin:/usr/sbin:/usr/bin 5 | 6 | start() { 7 | echo "starting lvm..." 8 | /Apps/opt/sbin/lvm vgscan --ignorelockingfailure --mknodes || : 9 | /Apps/opt/sbin/lvm vgchange -aly --ignorelockingfailure || echo "...failed" 10 | } 11 | 12 | stop() { 13 | echo "stopping lvm..." 14 | /Apps/opt/sbin/lvm vgchange -aln --ignorelockingfailure || echo "...failed" 15 | } 16 | status() { 17 | echo "PID of lvm is `pidof lvm`" 18 | } 19 | 20 | case "$1" in 21 | start) 22 | start 23 | ;; 24 | stop) 25 | stop 26 | ;; 27 | restart) 28 | stop 29 | sleep 5 30 | start 31 | ;; 32 | status) status 33 | ;; 34 | *) 35 | echo "Usage: $0 (start|stop|restart|status)" 36 | exit 1 37 | ;; 38 | esac 39 | 40 | exit 0 -------------------------------------------------------------------------------- /packages/minicom/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-r46338/feeds/packages/utils/minicom/Makefile 2015-07-14 10:55:19.830308174 +0300 2 | +++ ../../../openwrt_trunk/feeds/packages/utils/minicom/Makefile 2015-07-14 15:02:03.626554904 +0300 3 | @@ -34,13 +34,13 @@ 4 | endef 5 | 6 | define Package/minicom/conffiles 7 | -/etc/minirc.dfl 8 | +/opt/etc/minirc.dfl 9 | endef 10 | 11 | define Package/minicom/install 12 | - $(INSTALL_DIR) $(1)/usr/sbin 13 | - $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/$(PKG_NAME) $(1)/usr/sbin/ 14 | - $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/ascii-xfr $(1)/usr/sbin/ 15 | + $(INSTALL_DIR) $(1)/opt/sbin 16 | + $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/$(PKG_NAME) $(1)/opt/sbin/ 17 | + $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/ascii-xfr $(1)/opt/sbin/ 18 | endef 19 | 20 | $(eval $(call BuildPackage,minicom)) 21 | -------------------------------------------------------------------------------- /packages/shairport/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-q44497/feeds/packages/sound/shairport/Makefile 2015-03-01 22:34:30.733357309 +0300 2 | +++ ../../../openwrt_trunk/feeds/packages/sound/shairport/Makefile 2015-03-01 22:49:26.445663640 +0300 3 | @@ -49,12 +49,8 @@ 4 | LDFLAGS="$(TARGET_LDFLAGS) $(LIBS)" 5 | 6 | define Package/shairport/install 7 | - $(INSTALL_DIR) $(1)/usr/bin 8 | - $(INSTALL_BIN) $(PKG_BUILD_DIR)/shairport $(1)/usr/bin/ 9 | - $(INSTALL_DIR) $(1)/etc/init.d/ 10 | - $(INSTALL_BIN) files/shairport.init $(1)/etc/init.d/shairport 11 | - $(INSTALL_DIR) $(1)/etc/config 12 | - $(INSTALL_CONF) files/shairport.config $(1)/etc/config/shairport 13 | + $(INSTALL_DIR) $(1)/opt/bin 14 | + $(INSTALL_BIN) $(PKG_BUILD_DIR)/shairport $(1)/opt/bin/ 15 | endef 16 | 17 | $(eval $(call BuildPackage,shairport)) 18 | -------------------------------------------------------------------------------- /packages/joe/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-r47008/feeds/packages/utils/joe/Makefile 2015-09-21 12:01:28.415056706 +0300 2 | +++ ../../../openwrt_trunk/feeds/packages/utils/joe/Makefile 2015-09-21 12:16:01.955071245 +0300 3 | @@ -47,14 +47,14 @@ 4 | endef 5 | 6 | define Package/joe/install 7 | - $(INSTALL_DIR) $(1)/usr/bin 8 | - $(INSTALL_BIN) $(PKG_BUILD_DIR)/joe/joe $(1)/usr/bin/ 9 | - $(INSTALL_DIR) $(1)/etc/joe 10 | - $(INSTALL_CONF) ./files/joerc $(1)/etc/joe/joerc 11 | + $(INSTALL_DIR) $(1)/opt/bin 12 | + $(INSTALL_BIN) $(PKG_BUILD_DIR)/joe/joe $(1)/opt/bin/ 13 | + $(INSTALL_DIR) $(1)/opt/etc/joe 14 | + $(INSTALL_CONF) ./files/joerc $(1)/opt/etc/joe/joerc 15 | endef 16 | 17 | define Package/joe/conffiles 18 | -/etc/joe/joerc 19 | +/opt/etc/joe/joerc 20 | endef 21 | 22 | $(eval $(call BuildPackage,joe)) 23 | -------------------------------------------------------------------------------- /packages/libpam/500-config-path.patch: -------------------------------------------------------------------------------- 1 | --- a/libpam/pam_private.h 2 | +++ b/libpam/pam_private.h 3 | @@ -24,11 +24,11 @@ 4 | 5 | /* the Linux-PAM configuration file */ 6 | 7 | -#define PAM_CONFIG "/etc/pam.conf" 8 | -#define PAM_CONFIG_D "/etc/pam.d" 9 | -#define PAM_CONFIG_DF "/etc/pam.d/%s" 10 | -#define PAM_CONFIG_DIST_D "/usr/lib/pam.d" 11 | -#define PAM_CONFIG_DIST_DF "/usr/lib/pam.d/%s" 12 | +#define PAM_CONFIG "/Apps/opt/etc/pam.conf" 13 | +#define PAM_CONFIG_D "/Apps/opt/etc/pam.d" 14 | +#define PAM_CONFIG_DF "/Apps/opt/etc/pam.d/%s" 15 | +#define PAM_CONFIG_DIST_D "/Apps/opt/lib/pam.d" 16 | +#define PAM_CONFIG_DIST_DF "/Apps/opt/lib/pam.d/%s" 17 | 18 | #define PAM_DEFAULT_SERVICE "other" /* lower case */ 19 | #define PAM_DEFAULT_SERVICE_FILE PAM_CONFIG_D "/" PAM_DEFAULT_SERVICE 20 | -------------------------------------------------------------------------------- /packages/openvpn/S20openvpn: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Startup script for openvpn server 4 | # 5 | 6 | # Make sure IP forwarding is enabled 7 | echo 1 > /proc/sys/net/ipv4/ip_forward 8 | 9 | # Make device if not present (not devfs) 10 | if ( [ ! -c /dev/net/tun ] ) then 11 | # Make /dev/net directory if needed 12 | if ( [ ! -d /dev/net ] ) then 13 | mkdir -m 755 /dev/net 14 | fi 15 | mknod /dev/net/tun c 10 200 16 | fi 17 | 18 | # Make sure the tunnel driver is loaded 19 | #if ( !(lsmod | grep -q "^tun") ); then 20 | # insmod /opt/lib/modules/tun.ko 21 | #fi 22 | 23 | ENABLED=yes 24 | PROCS=openvpn 25 | ARGS="--daemon --cd /Apps/opt/etc/openvpn --config openvpn.conf" 26 | PREARGS="" 27 | DESC=$PROCS 28 | PATH=/Apps/opt/sbin:/Apps/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 29 | 30 | . /Apps/opt/etc/init.d/rc.func 31 | -------------------------------------------------------------------------------- /packages/squeezelite/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-r47008/feeds/packages/sound/squeezelite/Makefile 2015-09-21 12:01:28.407056706 +0300 2 | +++ ../../../openwrt_trunk/feeds/packages/sound/squeezelite/Makefile 2015-09-21 15:08:14.463243219 +0300 3 | @@ -131,12 +131,8 @@ 4 | endif 5 | 6 | define Package/squeezelite/install 7 | - $(INSTALL_DIR) $(1)/usr/bin 8 | - $(INSTALL_BIN) $(PKG_BUILD_DIR)/squeezelite $(1)/usr/bin 9 | - $(INSTALL_DIR) $(1)/etc/init.d 10 | - $(INSTALL_BIN) ./files/squeezelite.init $(1)/etc/init.d/squeezelite 11 | - $(INSTALL_DIR) $(1)/etc/config 12 | - $(INSTALL_CONF) ./files/squeezelite.conf $(1)/etc/config/squeezelite 13 | + $(INSTALL_DIR) $(1)/opt/bin 14 | + $(INSTALL_BIN) $(PKG_BUILD_DIR)/squeezelite $(1)/opt/bin 15 | endef 16 | 17 | Package/squeezelite-mini/install=$(Package/squeezelite/install) 18 | -------------------------------------------------------------------------------- /packages/htop/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-r43718/feeds/packages/admin/htop/Makefile 2 | +++ ../../../openwrt_trunk/feeds/packages/admin/htop/Makefile 3 | @@ -27,7 +27,7 @@ 4 | SECTION:=admin 5 | CATEGORY:=Administration 6 | TITLE:=Interactive processes viewer 7 | - DEPENDS:=+libncurses 8 | + DEPENDS:=+libncurses +libncursesw 9 | URL:=http://htop.sourceforge.net/ 10 | MAINTAINER:=Etienne CHAMPETIER 11 | endef 12 | @@ -50,8 +50,8 @@ 13 | ac_cv_func_realloc_0_nonnull=yes 14 | 15 | define Package/htop/install 16 | - $(INSTALL_DIR) $(1)/usr/bin 17 | - $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/ 18 | + $(INSTALL_DIR) $(1)/opt/bin 19 | + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/Apps/opt/bin/$(PKG_NAME) $(1)/opt/bin/ 20 | endef 21 | 22 | $(eval $(call BuildPackage,htop)) 23 | -------------------------------------------------------------------------------- /packages/strongswan/500-disable-insmod-flags.patch: -------------------------------------------------------------------------------- 1 | --- a/src/starter/klips.c 2 | +++ b/src/starter/klips.c 3 | @@ -30,7 +30,7 @@ 4 | /* ipsec module makes the pf_key proc interface visible */ 5 | if (stat(PROC_MODULES, &stb) == 0) 6 | { 7 | - ignore_result(system("modprobe -qv ipsec")); 8 | + ignore_result(system("insmod ipsec")); 9 | } 10 | 11 | /* now test again */ 12 | @@ -42,9 +42,9 @@ 13 | } 14 | 15 | /* load crypto algorithm modules */ 16 | - ignore_result(system("modprobe -qv ipsec_aes")); 17 | - ignore_result(system("modprobe -qv ipsec_blowfish")); 18 | - ignore_result(system("modprobe -qv ipsec_sha2")); 19 | + ignore_result(system("insmod ipsec_aes")); 20 | + ignore_result(system("insmod ipsec_blowfish")); 21 | + ignore_result(system("insmod ipsec_sha2")); 22 | 23 | DBG2(DBG_APP, "found KLIPS IPsec stack"); 24 | return TRUE; 25 | -------------------------------------------------------------------------------- /packages/xl2tpd/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | cp -f ./S20xl2tpd ../../../openwrt_trunk/feeds/packages/net/xl2tpd/files/ 13 | cp -f ./chap-secrets ../../../openwrt_trunk/feeds/packages/net/xl2tpd/files/ 14 | cp -f ./ip-down.sh ../../../openwrt_trunk/feeds/packages/net/xl2tpd/files/ 15 | cp -f ./ip-up.sh ../../../openwrt_trunk/feeds/packages/net/xl2tpd/files/ 16 | cp -f ./140-config_path.patch ../../../openwrt_trunk/feeds/packages/net/xl2tpd/patches/ 17 | cp -f ./150-entware-path.patch ../../../openwrt_trunk/feeds/packages/net/xl2tpd/patches/ 18 | @touch $@ 19 | 20 | clean: 21 | @rm -f .done 22 | 23 | .PHONY: clean 24 | -------------------------------------------------------------------------------- /packages/motion/002-honor_cppflags.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile.in 2 | +++ b/Makefile.in 3 | @@ -31,6 +31,7 @@ examplesdir = $(datadir)/@PACKAGE_NAME@- 4 | # install. # 5 | ################################################################################ 6 | CFLAGS = @CFLAGS@ -Wall -DVERSION=\"@PACKAGE_VERSION@\" -Dsysconfdir=\"$(sysconfdir)\" 7 | +CPPFLAGS = @CPPFLAGS@ 8 | LDFLAGS = @LDFLAGS@ 9 | LIBS = @LIBS@ 10 | VIDEO_OBJ = @VIDEO@ 11 | @@ -118,7 +119,7 @@ endif 12 | ################################################################################ 13 | $(DEPEND_FILE): *.h $(SRC) 14 | @echo "Generating dependencies, please wait..." 15 | - @$(CC) $(CFLAGS) -M $(SRC) > .tmp 16 | + @$(CC) $(CFLAGS) $(CPPFLAGS) -M $(SRC) > .tmp 17 | @mv -f .tmp $(DEPEND_FILE) 18 | @echo 19 | 20 | -------------------------------------------------------------------------------- /packages/shadowsocks-libev/510-external-libsodium.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile.am 2 | +++ b/Makefile.am 3 | @@ -1,4 +1,4 @@ 4 | -SUBDIRS = libsodium libcork libipset libudns src 5 | +SUBDIRS = libcork libipset libudns src 6 | 7 | ACLOCAL_AMFLAGS = -I m4 8 | man_MANS = shadowsocks-libev.8 9 | --- a/src/Makefile.am 10 | +++ b/src/Makefile.am 11 | @@ -5,14 +5,12 @@ 12 | AM_CFLAGS += -I$(top_srcdir)/libudns 13 | AM_CFLAGS += -I$(top_srcdir)/libipset/include 14 | AM_CFLAGS += -I$(top_srcdir)/libcork/include 15 | -AM_CFLAGS += -I$(top_srcdir)/libsodium/src/libsodium/include 16 | 17 | AM_LDFLAGS = -static 18 | 19 | SS_COMMON_LIBS = $(PTHREAD_LIBS) \ 20 | $(top_builddir)/libipset/libipset.la \ 21 | $(top_builddir)/libcork/libcork.la \ 22 | - $(top_builddir)/libsodium/src/libsodium/libsodium.la \ 23 | $(INET_NTOP_LIB) 24 | 25 | bin_PROGRAMS = ss-local ss-tunnel 26 | -------------------------------------------------------------------------------- /packages/ser2net/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-r46338/feeds/packages/net/ser2net/Makefile 2015-07-14 10:55:19.798308173 +0300 2 | +++ ../../../openwrt_trunk/feeds/packages/net/ser2net/Makefile 2015-07-14 10:55:53.246308708 +0300 3 | @@ -37,14 +37,14 @@ 4 | endef 5 | 6 | define Package/ser2net/conffiles 7 | -/etc/ser2net.conf 8 | +/opt/etc/ser2net.conf 9 | endef 10 | 11 | define Package/ser2net/install 12 | - $(INSTALL_DIR) $(1)/usr/sbin 13 | - $(CP) $(PKG_INSTALL_DIR)/usr/sbin/ser2net $(1)/usr/sbin/ 14 | - $(INSTALL_DIR) $(1)/etc 15 | - $(INSTALL_CONF) $(PKG_BUILD_DIR)/ser2net.conf $(1)/etc/ 16 | + $(INSTALL_DIR) $(1)/opt/sbin 17 | + $(CP) $(PKG_INSTALL_DIR)/Apps/opt/sbin/ser2net $(1)/opt/sbin/ 18 | + $(INSTALL_DIR) $(1)/opt/etc 19 | + $(INSTALL_CONF) $(PKG_BUILD_DIR)/ser2net.conf $(1)/opt/etc/ 20 | endef 21 | 22 | $(eval $(call BuildPackage,ser2net)) 23 | -------------------------------------------------------------------------------- /packages/ppp/610-LDFLAGS.patch: -------------------------------------------------------------------------------- 1 | --- a/chat/Makefile.linux 2 | +++ b/chat/Makefile.linux 3 | @@ -18,7 +18,7 @@ 4 | all: chat 5 | 6 | chat: chat.o 7 | - $(CC) -o chat chat.o 8 | + $(CC) -o chat $(LDFLAGS) chat.o 9 | 10 | chat.o: chat.c 11 | $(CC) -c $(CFLAGS) -o chat.o chat.c 12 | --- a/pppdump/Makefile.linux 13 | +++ b/pppdump/Makefile.linux 14 | @@ -11,7 +11,7 @@ 15 | all: pppdump 16 | 17 | pppdump: $(OBJS) 18 | - $(CC) -o pppdump $(OBJS) 19 | + $(CC) -o pppdump $(LDFLAGS) $(OBJS) 20 | 21 | clean: 22 | rm -f pppdump $(OBJS) *~ 23 | --- a/pppstats/Makefile.linux 24 | +++ b/pppstats/Makefile.linux 25 | @@ -26,7 +26,7 @@ 26 | $(INSTALL) -c -m 444 pppstats.8 $(MANDIR) 27 | 28 | pppstats: $(PPPSTATSRCS) 29 | - $(CC) $(CFLAGS) -o pppstats pppstats.c $(LIBS) 30 | + $(CC) $(CFLAGS) -o pppstats $(LDFLAGS) pppstats.c $(LIBS) 31 | 32 | clean: 33 | rm -f pppstats *~ #* core 34 | -------------------------------------------------------------------------------- /packages/cjdns/510-execinfo.patch: -------------------------------------------------------------------------------- 1 | --- a/util/Assert.c 2 | +++ b/util/Assert.c 3 | @@ -19,10 +19,6 @@ 4 | #include 5 | #include 6 | 7 | -#ifdef __GLIBC__ 8 | -# include 9 | -#endif 10 | - 11 | Gcc_PRINTF(1, 2) 12 | void Assert_failure(const char* format, ...) 13 | { 14 | @@ -33,21 +29,6 @@ 15 | va_start(args, format); 16 | vfprintf(stderr, format, args); 17 | fflush(stderr); 18 | - 19 | -#ifdef __GLIBC__ 20 | - void *array[20]; 21 | - size_t size = backtrace(array, 20); 22 | - char **strings = backtrace_symbols(array, size); 23 | - 24 | - fprintf(stderr, "Backtrace (%zd frames):\n", size); 25 | - for (size_t i = 0; i < size; i++) 26 | - { 27 | - fprintf(stderr, " %s\n", strings[i]); 28 | - } 29 | - fflush(stderr); 30 | - free(strings); 31 | - 32 | -#endif 33 | abort(); 34 | va_end(args); 35 | } 36 | -------------------------------------------------------------------------------- /packages/openssh/S40sshd: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | prefix="/Apps/opt" 4 | PATH=${prefix}/bin:${prefix}/sbin:/sbin:/bin:/usr/sbin:/usr/bin 5 | 6 | start() { 7 | echo "starting sshd..." 8 | /Apps/opt/sbin/sshd 9 | } 10 | 11 | stop() { 12 | echo "stopping sshd..." 13 | killall sshd 14 | } 15 | status() { 16 | echo "PID of sshd is `pidof sshd`" 17 | } 18 | 19 | case "$1" in 20 | start) 21 | start 22 | ;; 23 | stop) 24 | stop 25 | ;; 26 | restart) 27 | stop 28 | sleep 3 29 | start 30 | ;; 31 | status) status 32 | ;; 33 | *) 34 | echo "Usage: $0 (start|stop|restart|status)" 35 | exit 1 36 | ;; 37 | esac 38 | 39 | exit 0 -------------------------------------------------------------------------------- /packages/libnl/160-update_includes_for_iw.patch: -------------------------------------------------------------------------------- 1 | --- a/include/linux/genetlink.h 2 | +++ b/include/linux/genetlink.h 3 | @@ -39,6 +39,9 @@ enum { 4 | CTRL_CMD_NEWOPS, 5 | CTRL_CMD_DELOPS, 6 | CTRL_CMD_GETOPS, 7 | + CTRL_CMD_NEWMCAST_GRP, 8 | + CTRL_CMD_DELMCAST_GRP, 9 | + CTRL_CMD_GETMCAST_GRP, /* unused */ 10 | __CTRL_CMD_MAX, 11 | }; 12 | 13 | @@ -52,6 +55,7 @@ enum { 14 | CTRL_ATTR_HDRSIZE, 15 | CTRL_ATTR_MAXATTR, 16 | CTRL_ATTR_OPS, 17 | + CTRL_ATTR_MCAST_GROUPS, 18 | __CTRL_ATTR_MAX, 19 | }; 20 | 21 | @@ -66,4 +70,13 @@ enum { 22 | 23 | #define CTRL_ATTR_OP_MAX (__CTRL_ATTR_OP_MAX - 1) 24 | 25 | +enum { 26 | + CTRL_ATTR_MCAST_GRP_UNSPEC, 27 | + CTRL_ATTR_MCAST_GRP_NAME, 28 | + CTRL_ATTR_MCAST_GRP_ID, 29 | + __CTRL_ATTR_MCAST_GRP_MAX, 30 | +}; 31 | + 32 | +#define CTRL_ATTR_MCAST_GRP_MAX (__CTRL_ATTR_MCAST_GRP_MAX - 1) 33 | + 34 | #endif /* __LINUX_GENERIC_NETLINK_H */ 35 | -------------------------------------------------------------------------------- /packages/grep/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-r44497/feeds/packages/utils/grep/Makefile 2015-02-24 12:08:56.865768246 +0300 2 | +++ ../../../openwrt_trunk/feeds/packages/utils/grep/Makefile 2015-02-27 11:07:37.333113890 +0300 3 | @@ -41,20 +41,8 @@ 4 | endef 5 | 6 | define Package/grep/install 7 | - $(INSTALL_DIR) $(1)/usr/bin 8 | - $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/grep $(1)/usr/bin/grep 9 | -endef 10 | - 11 | -define Package/grep/postinst 12 | -#!/bin/sh 13 | -[ -L "$${IPKG_INSTROOT}/bin/grep" ] && rm -f "$${IPKG_INSTROOT}/bin/grep" 14 | -exit 0 15 | -endef 16 | - 17 | -define Package/grep/prerm 18 | -$${IPKG_INSTROOT}/bin/busybox grep -h 2>&1 | grep -q BusyBox && \ 19 | -ln -sf busybox $${IPKG_INSTROOT}/bin/grep 20 | -exit 0 21 | + $(INSTALL_DIR) $(1)/opt/bin 22 | + $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/grep $(1)/opt/bin/grep 23 | endef 24 | 25 | $(eval $(call BuildPackage,grep)) 26 | -------------------------------------------------------------------------------- /packages/php5/050-php5-fpm-conf.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-r44486/feeds/packages/lang/php5/files/php5-fpm.conf 2015-02-18 12:16:57.576306332 +0300 2 | +++ ../../../openwrt_trunk/feeds/packages/lang/php5/files/php5-fpm.conf 2015-02-19 17:08:01.938410646 +0300 3 | @@ -22,14 +22,14 @@ 4 | ; Pid file 5 | ; Note: the default prefix is /var 6 | ; Default Value: none 7 | -pid = /var/run/php5-fpm.pid 8 | +pid = /opt/var/run/php5-fpm.pid 9 | 10 | ; Error log file 11 | ; If it's set to "syslog", log is sent to syslogd instead of being written 12 | ; in a local file. 13 | ; Note: the default prefix is /var 14 | ; Default Value: log/php-fpm.log 15 | -error_log = /var/log/php5-fpm.log 16 | +error_log = /Apps/opt/var/log/php5-fpm.log 17 | 18 | ; syslog_facility is used to specify what type of program is logging the 19 | ; message. This lets syslogd specify that messages from different facilities 20 | -------------------------------------------------------------------------------- /packages/postfix/S69postfix: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | case "$1" in 4 | start) 5 | echo "starting service postfix" 6 | 7 | /Apps/opt/sbin/postfix -c /Apps/opt/etc/postfix start 8 | 9 | # waiting for qmgr 10 | ( i=60 11 | while [ -z "$(pidof qmgr)" -a $i -gt 0 ]; do 12 | i=$(( $i - 1 )) 13 | sleep 1 14 | done 15 | echo /Apps/opt/sbin/postfix flush 16 | ) > /dev/null 2>&1 & 17 | ;; 18 | stop) 19 | echo "stopping service postfix" 20 | 21 | #if [ -f "/Apps/opt/var/spool/postfix/pid/master.pid" ]; then 22 | # /bin/kill -TERM `cat /Apps/opt/var/spool/postfix/pid/master.pid` 2>/dev/null 23 | #fi 24 | 25 | if [ -n "`pidof master`" ]; then 26 | /Apps/opt/sbin/postfix -c /Apps/opt/etc/postfix stop > /dev/null 2>&1 27 | fi 28 | ;; 29 | restart) 30 | "$0" stop 31 | sleep 1 32 | "$0" start 33 | ;; 34 | *) 35 | echo "Usage: $0 (start|stop|restart|usage)" 36 | ;; 37 | esac 38 | -------------------------------------------------------------------------------- /packages/esniper/500-find-ca-bundle.patch: -------------------------------------------------------------------------------- 1 | --- a/http.c 2 | +++ b/http.c 3 | @@ -201,6 +201,9 @@ 4 | int 5 | initCurlStuff(void) 6 | { 7 | + /* Path to OpenSSL bundle file. */ 8 | + const char *ssl_capath=NULL; 9 | + 10 | /* list for custom headers */ 11 | struct curl_slist *slist=NULL; 12 | 13 | @@ -242,6 +245,12 @@ 14 | if ((curlrc = curl_easy_setopt(easyhandle, CURLOPT_COOKIEFILE, ""))) 15 | return initCurlStuffFailed(); 16 | 17 | + /* If the environment variable CURL_CA_BUNDLE is set, pass through its 18 | + * contents to curl. */ 19 | + if ((ssl_capath = getenv("CURL_CA_BUNDLE"))) 20 | + if ((curlrc = curl_easy_setopt(easyhandle, CURLOPT_CAINFO, ssl_capath))) 21 | + return initCurlStuffFailed(); 22 | + 23 | slist = curl_slist_append(slist, "Accept: text/*"); 24 | slist = curl_slist_append(slist, "Accept-Language: en"); 25 | slist = curl_slist_append(slist, "Accept-Charset: iso-8859-1,*,utf-8"); 26 | -------------------------------------------------------------------------------- /packages/davfs2/090-rpmatch-fix.patch: -------------------------------------------------------------------------------- 1 | --- a/src/webdav.c 2 | +++ b/src/webdav.c 3 | @@ -2036,15 +2036,12 @@ ssl_verify(void *userdata, int failures, 4 | "verify the fingerprint! The server might be faked\n" 5 | "or there might be a man-in-the-middle-attack.\n")); 6 | printf(_("Accept certificate for this session? [y,N] ")); 7 | - char *s = NULL; 8 | - size_t n = 0; 9 | - ssize_t len = 0; 10 | - len = getline(&s, &n, stdin); 11 | - if (len < 0) 12 | + char yesno[3]; 13 | + fflush(stdout); 14 | + if (fgets(yesno, sizeof(yesno), stdin) == NULL) 15 | abort(); 16 | - if (rpmatch(s) > 0) 17 | + if (yesno[0] == 'y' || yesno[0] == 'Y') 18 | ret = 0; 19 | - free(s); 20 | } 21 | 22 | if (failures & NE_SSL_NOTYETVALID) 23 | -------------------------------------------------------------------------------- /packages/rtpproxy/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-r46338/feeds/telephony/net/rtpproxy/Makefile 2015-07-14 10:55:19.890308175 +0300 2 | +++ ../../../openwrt_trunk/feeds/telephony/net/rtpproxy/Makefile 2015-07-14 10:55:50.502308684 +0300 3 | @@ -36,14 +36,11 @@ 4 | endef 5 | 6 | define Package/rtpproxy/install 7 | - $(INSTALL_DIR) $(1)/usr/bin 8 | - $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/rtpproxy $(1)/usr/bin/ 9 | + $(INSTALL_DIR) $(1)/opt/bin 10 | + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/Apps/opt/bin/rtpproxy $(1)/opt/bin/ 11 | 12 | - $(INSTALL_DIR) $(1)/etc/init.d 13 | - $(INSTALL_BIN) ./files/rtpproxy.init $(1)/etc/init.d/rtpproxy 14 | - 15 | - $(INSTALL_DIR) $(1)/etc/config 16 | - $(INSTALL_BIN) ./files/rtpproxy.config $(1)/etc/config/rtpproxy 17 | + $(INSTALL_DIR) $(1)/opt/etc/init.d 18 | + $(INSTALL_BIN) ./files/S18rtpproxy $(1)/opt/etc/init.d 19 | endef 20 | 21 | $(eval $(call BuildPackage,rtpproxy)) 22 | -------------------------------------------------------------------------------- /packages/ser2net/001-linux-headers.patch: -------------------------------------------------------------------------------- 1 | --- a/dataxfer.h 2 | +++ b/dataxfer.h 3 | @@ -20,8 +20,6 @@ 4 | #ifndef DATAXFER 5 | #define DATAXFER 6 | 7 | -#include 8 | - 9 | #include "controller.h" 10 | 11 | #ifdef USE_UUCP_LOCKING 12 | @@ -30,6 +28,9 @@ 13 | 14 | #ifdef linux 15 | 16 | +#include 17 | +#include 18 | + 19 | #define USE_RS485_FEATURE 20 | 21 | /* Check, if the toolchain provides serial_rs485 structure and macros */ 22 | --- a/devcfg.c 23 | +++ b/devcfg.c 24 | @@ -18,7 +18,6 @@ 25 | */ 26 | 27 | /* This code handles generating the configuration for the serial port. */ 28 | - 29 | #include 30 | #include 31 | #include 32 | @@ -31,7 +30,6 @@ 33 | #include 34 | #include 35 | #include 36 | -#include 37 | 38 | #include "ser2net.h" 39 | #include "selector.h" 40 | -------------------------------------------------------------------------------- /packages/simplejson/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-r44497/feeds/packages/lang/simplejson/Makefile 2015-02-20 12:39:13.361134248 +0300 2 | +++ ../../../openwrt_trunk/feeds/packages/lang/simplejson/Makefile 2015-02-20 20:59:14.643486203 +0300 3 | @@ -15,7 +15,8 @@ 4 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 5 | PKG_SOURCE_URL:=http://pypi.python.org/packages/source/s/simplejson/ 6 | PKG_MD5SUM:=b65dc21c7aaad14c6b4ad0d9179e437d 7 | -PKG_BUILD_DEPENDS:=python python-setuptools 8 | +PKG_BUILD_DEPENDS:=python 9 | +# python-setuptools 10 | 11 | include $(INCLUDE_DIR)/package.mk 12 | $(call include_mk, python-package.mk) 13 | @@ -35,7 +36,7 @@ 14 | endef 15 | 16 | define Build/Compile 17 | - $(call Build/Compile/PyMod,,install --prefix=/usr --root=$(PKG_INSTALL_DIR)) 18 | + $(call Build/Compile/PyMod,,install --prefix=/opt --root=$(PKG_INSTALL_DIR)) 19 | endef 20 | 21 | define Package/simplejson/install 22 | -------------------------------------------------------------------------------- /packages/gmp/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../openwrt_trunk.orig/package/libs/gmp/Makefile 2 | +++ ../../../openwrt_trunk/package/libs/gmp/Makefile 3 | @@ -55,15 +55,15 @@ 4 | endef 5 | 6 | define Build/InstallDev 7 | - $(INSTALL_DIR) $(1)/usr/include 8 | - $(CP) $(PKG_INSTALL_DIR)/usr/include/gmp* $(1)/usr/include/ 9 | - $(INSTALL_DIR) $(1)/usr/lib 10 | - $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgmp.{a,so*} $(1)/usr/lib/ 11 | + $(INSTALL_DIR) $(1)/opt/include 12 | + $(CP) $(PKG_INSTALL_DIR)/Apps/opt/include/gmp* $(1)/opt/include/ 13 | + $(INSTALL_DIR) $(1)/opt/lib 14 | + $(CP) $(PKG_INSTALL_DIR)/Apps/opt/lib/libgmp.{a,so*} $(1)/opt/lib/ 15 | endef 16 | 17 | define Package/libgmp/install 18 | - $(INSTALL_DIR) $(1)/usr/lib 19 | - $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgmp.so.* $(1)/usr/lib/ 20 | + $(INSTALL_DIR) $(1)/opt/lib 21 | + $(CP) $(PKG_INSTALL_DIR)/Apps/opt/lib/libgmp.so.* $(1)/opt/lib/ 22 | endef 23 | 24 | $(eval $(call BuildPackage,libgmp)) 25 | -------------------------------------------------------------------------------- /packages/gdbm/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../openwrt_trunk.orig/feeds/packages/libs/gdbm/Makefile 2 | +++ ../../../openwrt_trunk/feeds/packages/libs/gdbm/Makefile 3 | @@ -53,15 +53,15 @@ 4 | endef 5 | 6 | define Build/InstallDev 7 | - $(INSTALL_DIR) $(1)/usr/include 8 | - $(CP) $(PKG_INSTALL_DIR)/usr/include/gdbm.h $(1)/usr/include/ 9 | - $(INSTALL_DIR) $(1)/usr/lib 10 | - $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgdbm.{a,so*} $(1)/usr/lib/ 11 | + $(INSTALL_DIR) $(1)/opt/include 12 | + $(CP) $(PKG_INSTALL_DIR)/Apps/opt/include/gdbm.h $(1)/opt/include/ 13 | + $(INSTALL_DIR) $(1)/opt/lib 14 | + $(CP) $(PKG_INSTALL_DIR)/Apps/opt/lib/libgdbm.{a,so*} $(1)/opt/lib/ 15 | endef 16 | 17 | define Package/libgdbm/install 18 | - $(INSTALL_DIR) $(1)/usr/lib 19 | - $(CP) $(PKG_INSTALL_DIR)/usr/lib/libgdbm.so.* $(1)/usr/lib/ 20 | + $(INSTALL_DIR) $(1)/opt/lib 21 | + $(CP) $(PKG_INSTALL_DIR)/Apps/opt/lib/libgdbm.so.* $(1)/opt/lib/ 22 | endef 23 | 24 | $(eval $(call BuildPackage,libgdbm)) 25 | -------------------------------------------------------------------------------- /packages/lzo/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-r43593/package/libs/lzo/Makefile 2014-12-10 12:26:33.282951674 +0300 2 | +++ ../../../openwrt_trunk/package/libs/lzo/Makefile 2014-12-10 12:49:06.838925485 +0300 3 | @@ -50,14 +50,14 @@ 4 | endif 5 | 6 | define Build/InstallDev 7 | - $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib 8 | - $(CP) $(PKG_INSTALL_DIR)/usr/include/lzo $(1)/usr/include/ 9 | - $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblzo2.{a,so*} $(1)/usr/lib/ 10 | + $(INSTALL_DIR) $(1)/opt/include $(1)/opt/lib 11 | + $(CP) $(PKG_INSTALL_DIR)/Apps/opt/include/lzo $(1)/opt/include/ 12 | + $(CP) $(PKG_INSTALL_DIR)/Apps/opt/lib/liblzo2.{a,so*} $(1)/opt/lib/ 13 | endef 14 | 15 | define Package/liblzo/install 16 | - $(INSTALL_DIR) $(1)/usr/lib 17 | - $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblzo2.so* $(1)/usr/lib/ 18 | + $(INSTALL_DIR) $(1)/opt/lib 19 | + $(CP) $(PKG_INSTALL_DIR)/Apps/opt/lib/liblzo2.so* $(1)/opt/lib/ 20 | endef 21 | 22 | $(eval $(call BuildPackage,liblzo)) 23 | -------------------------------------------------------------------------------- /packages/ncurses/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | all: .done 9 | 10 | .done: 11 | patch -d $(TOP) -p3 -i $(CURDIR)/fix-path.patch 12 | rm -f ../../../openwrt_trunk/package/libs/ncurses/patches/100-ncurses-5.6-20080112-urxvt.patch 13 | rm -f ../../../openwrt_trunk/package/libs/ncurses/patches/101-ncurses-5.6-20080628-kbs.patch 14 | rm -f ../../../openwrt_trunk/package/libs/ncurses/patches/102-ncurses-5.9-gcc-5.patch 15 | rm -f ../../../openwrt_trunk/package/libs/ncurses/patches/200-fix_missing_include.patch 16 | rm -f ../../../openwrt_trunk/package/libs/ncurses/patches/500-cross.patch 17 | rm -f ../../../openwrt_trunk/package/libs/ncurses/patches/900-terminfo.patch 18 | cp -f ./100-20130202.patch ../../../openwrt_trunk/package/libs/ncurses/patches/ 19 | @touch $@ 20 | 21 | clean: 22 | @rm -f .done 23 | 24 | .PHONY: clean 25 | -------------------------------------------------------------------------------- /packages/python-setuptools/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-q47008/feeds/packages/lang/python-setuptools/Makefile 2015-09-24 20:31:27.302958283 +0300 2 | +++ ../../../openwrt_trunk/feeds/packages/lang/python-setuptools/Makefile 2015-09-27 18:10:20.710449431 +0300 3 | @@ -36,7 +36,7 @@ 4 | 5 | define Build/Compile 6 | $(call Build/Compile/PyMod,,\ 7 | - install --root="$(PKG_INSTALL_DIR)" --prefix="/usr" \ 8 | + install --root="$(PKG_INSTALL_DIR)" --prefix="/opt" \ 9 | --single-version-externally-managed \ 10 | ) 11 | endef 12 | @@ -49,8 +49,11 @@ 13 | endef 14 | 15 | define PyPackage/python-setuptools/install 16 | - $(INSTALL_DIR) $(1)/usr/bin 17 | - $(CP) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/ 18 | + $(INSTALL_DIR) $(1)/opt/bin 19 | + $(CP) $(PKG_INSTALL_DIR)/opt/bin/* $(1)/opt/bin/ 20 | + $(INSTALL_DIR) $(1)/opt/lib 21 | + $(CP) $(PKG_INSTALL_DIR)/opt/lib/* $(1)/opt/lib/ 22 | + 23 | endef 24 | 25 | $(eval $(call PyPackage,python-setuptools)) 26 | -------------------------------------------------------------------------------- /packages/strace/510-l2_cid-absense.patch: -------------------------------------------------------------------------------- 1 | --- a/net.c 2 | +++ b/net.c 3 | @@ -351,7 +351,7 @@ 4 | case AF_BLUETOOTH: 5 | tprintf("{sco_bdaddr=%02X:%02X:%02X:%02X:%02X:%02X} or " 6 | "{rc_bdaddr=%02X:%02X:%02X:%02X:%02X:%02X, rc_channel=%d} or " 7 | - "{l2_psm=htobs(%d), l2_bdaddr=%02X:%02X:%02X:%02X:%02X:%02X, l2_cid=htobs(%d)} or " 8 | + "{l2_psm=htobs(%d), l2_bdaddr=%02X:%02X:%02X:%02X:%02X:%02X} or " 9 | "{hci_dev=htobs(%d)}", 10 | addrbuf.sco.sco_bdaddr.b[0], addrbuf.sco.sco_bdaddr.b[1], 11 | addrbuf.sco.sco_bdaddr.b[2], addrbuf.sco.sco_bdaddr.b[3], 12 | @@ -363,7 +363,7 @@ 13 | btohs(addrbuf.l2.l2_psm), addrbuf.l2.l2_bdaddr.b[0], 14 | addrbuf.l2.l2_bdaddr.b[1], addrbuf.l2.l2_bdaddr.b[2], 15 | addrbuf.l2.l2_bdaddr.b[3], addrbuf.l2.l2_bdaddr.b[4], 16 | - addrbuf.l2.l2_bdaddr.b[5], btohs(addrbuf.l2.l2_cid), 17 | + addrbuf.l2.l2_bdaddr.b[5], 18 | btohs(addrbuf.hci.hci_dev)); 19 | break; 20 | #endif /* AF_BLUETOOTH && HAVE_BLUETOOTH_BLUETOOTH_H */ 21 | -------------------------------------------------------------------------------- /packages/libid3tag/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../openwrt_trunk.orig/feeds/packages/libs/libid3tag/Makefile 2 | +++ ../../../openwrt_trunk/feeds/packages/libs/libid3tag/Makefile 3 | @@ -51,15 +51,15 @@ 4 | endef 5 | 6 | define Build/InstallDev 7 | - $(INSTALL_DIR) $(1)/usr/include 8 | - $(CP) $(PKG_INSTALL_DIR)/usr/include/id3tag.h $(1)/usr/include/ 9 | - $(INSTALL_DIR) $(1)/usr/lib 10 | - $(CP) $(PKG_INSTALL_DIR)/usr/lib/libid3tag.so* $(1)/usr/lib/ 11 | + $(INSTALL_DIR) $(1)/opt/include 12 | + $(CP) $(PKG_INSTALL_DIR)/Apps/opt/include/id3tag.h $(1)/opt/include/ 13 | + $(INSTALL_DIR) $(1)/opt/lib 14 | + $(CP) $(PKG_INSTALL_DIR)/Apps/opt/lib/libid3tag.so* $(1)/opt/lib/ 15 | endef 16 | 17 | define Package/libid3tag/install 18 | - $(INSTALL_DIR) $(1)/usr/lib 19 | - $(CP) $(PKG_INSTALL_DIR)/usr/lib/libid3tag.so.* $(1)/usr/lib/ 20 | + $(INSTALL_DIR) $(1)/opt/lib 21 | + $(CP) $(PKG_INSTALL_DIR)/Apps/opt/lib/libid3tag.so.* $(1)/opt/lib/ 22 | endef 23 | 24 | $(eval $(call BuildPackage,libid3tag)) 25 | -------------------------------------------------------------------------------- /packages/libmad/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../openwrt_trunk.orig/feeds/packages/libs/libmad/Makefile 2 | +++ ../../../openwrt_trunk/feeds/packages/libs/libmad/Makefile 3 | @@ -65,15 +65,15 @@ 4 | CFLAGS="$(TARGET_CFLAGS)" \ 5 | 6 | define Build/InstallDev 7 | - $(INSTALL_DIR) $(1)/usr/include 8 | - $(CP) $(PKG_INSTALL_DIR)/usr/include/mad.h $(1)/usr/include/ 9 | - $(INSTALL_DIR) $(1)/usr/lib 10 | - $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmad.{a,so*} $(1)/usr/lib/ 11 | + $(INSTALL_DIR) $(1)/opt/include 12 | + $(CP) $(PKG_INSTALL_DIR)/Apps/opt/include/mad.h $(1)/opt/include/ 13 | + $(INSTALL_DIR) $(1)/opt/lib 14 | + $(CP) $(PKG_INSTALL_DIR)/Apps/opt/lib/libmad.{a,so*} $(1)/opt/lib/ 15 | endef 16 | 17 | define Package/libmad/install 18 | - $(INSTALL_DIR) $(1)/usr/lib 19 | - $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmad.so.* $(1)/usr/lib/ 20 | + $(INSTALL_DIR) $(1)/opt/lib 21 | + $(CP) $(PKG_INSTALL_DIR)/Apps/opt/lib/libmad.so.* $(1)/opt/lib/ 22 | endef 23 | 24 | $(eval $(call BuildPackage,libmad)) 25 | -------------------------------------------------------------------------------- /packages/busybox/020-Config-defaults.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-r45513/package/utils/busybox/Config-defaults.in 2015-04-20 10:09:30.574135331 +0300 2 | +++ ../../../openwrt_trunk/package/utils/busybox/Config-defaults.in 2015-04-21 09:27:42.860664285 +0300 3 | @@ -99,7 +99,7 @@ 4 | default y 5 | config BUSYBOX_DEFAULT_PID_FILE_PATH 6 | string 7 | - default "/var/run" 8 | + default "/Apps/opt/var/run" 9 | config BUSYBOX_DEFAULT_FEATURE_SUID 10 | bool 11 | default y 12 | @@ -1644,7 +1644,7 @@ 13 | default n 14 | config BUSYBOX_DEFAULT_FEATURE_CROND_DIR 15 | string 16 | - default "/etc" 17 | + default "/Apps/opt/etc" 18 | config BUSYBOX_DEFAULT_LESS 19 | bool 20 | default y 21 | @@ -2289,7 +2289,7 @@ 22 | default n 23 | config BUSYBOX_DEFAULT_UDHCPC_DEFAULT_SCRIPT 24 | string 25 | - default "/usr/share/udhcpc/default.script" 26 | + default "/Apps/opt/share/udhcpc/default.script" 27 | config BUSYBOX_DEFAULT_UDHCPC_SLACK_FOR_BUGGY_SERVERS 28 | int 29 | default 80 30 | -------------------------------------------------------------------------------- /packages/libpcap/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/mipsel-hardfloat/openwrt_trunk-r40423/package/libs/libpcap/Makefile 2 | +++ ../../../openwrt_trunk/package/libs/libpcap/Makefile 3 | @@ -83,16 +83,16 @@ 4 | endef 5 | 6 | define Build/InstallDev 7 | - $(INSTALL_DIR) $(1)/usr/include 8 | - $(CP) $(PKG_INSTALL_DIR)/usr/include/pcap* $(1)/usr/include/ 9 | + $(INSTALL_DIR) $(1)/opt/include 10 | + $(CP) $(PKG_INSTALL_DIR)/Apps/opt/include/pcap* $(1)/opt/include/ 11 | 12 | - $(INSTALL_DIR) $(1)/usr/lib 13 | - $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpcap.{a,so*} $(1)/usr/lib/ 14 | + $(INSTALL_DIR) $(1)/opt/lib 15 | + $(CP) $(PKG_INSTALL_DIR)/Apps/opt/lib/libpcap.{a,so*} $(1)/opt/lib/ 16 | endef 17 | 18 | define Package/libpcap/install 19 | - $(INSTALL_DIR) $(1)/usr/lib 20 | - $(CP) $(PKG_INSTALL_DIR)/usr/lib/libpcap.so* $(1)/usr/lib/ 21 | + $(INSTALL_DIR) $(1)/opt/lib 22 | + $(CP) $(PKG_INSTALL_DIR)/Apps/opt/lib/libpcap.so* $(1)/opt/lib/ 23 | endef 24 | 25 | $(eval $(call BuildPackage,libpcap)) 26 | -------------------------------------------------------------------------------- /packages/libsoxr/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-r45513/feeds/packages/libs/libsoxr/Makefile 2015-04-23 10:21:55.509457455 +0300 2 | +++ ../../../openwrt_trunk/feeds/packages/libs/libsoxr/Makefile 2015-05-22 15:11:54.044515280 +0300 3 | @@ -47,15 +47,15 @@ 4 | CMAKE_OPTIONS+= -DHAVE_WORDS_BIGENDIAN_EXITCODE=$(if $(CONFIG_BIG_ENDIAN),0,1) 5 | 6 | define Build/InstallDev 7 | - $(INSTALL_DIR) $(1)/usr/include 8 | - $(CP) $(PKG_BUILD_DIR)/src/soxr.h $(1)/usr/include/ 9 | - $(INSTALL_DIR) $(1)/usr/lib 10 | - $(CP) $(PKG_BUILD_DIR)/src/*.a $(1)/usr/lib/ 11 | + $(INSTALL_DIR) $(1)/opt/include 12 | + $(CP) $(PKG_BUILD_DIR)/src/soxr.h $(1)/opt/include/ 13 | + $(INSTALL_DIR) $(1)/opt/lib 14 | + $(CP) $(PKG_BUILD_DIR)/src/*.a $(1)/opt/lib/ 15 | endef 16 | 17 | define Package/libsoxr/install 18 | - $(INSTALL_DIR) $(1)/usr/lib 19 | - $(CP) $(PKG_BUILD_DIR)/src/*.a $(1)/usr/lib/ 20 | + $(INSTALL_DIR) $(1)/opt/lib 21 | + $(CP) $(PKG_BUILD_DIR)/src/*.a $(1)/opt/lib/ 22 | endef 23 | 24 | 25 | -------------------------------------------------------------------------------- /packages/shairport-sync/S50shairport-sync: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if [ -d /dev/snd ]; then 4 | ENABLED=yes 5 | else 6 | ENABLED=no 7 | fi 8 | PROCS=shairport-sync 9 | # software volume control 10 | # output to: audio card 0 device 0 11 | ARGS="-d -- -d hw:0,0" 12 | 13 | # Hi-Fi mode: hardware volume control 14 | # output to: audio card 0 device 0 15 | # note: you need to set proper mixer control name with -c option 16 | # in case it have different name than PCM (use alsamixer to check) 17 | # you can't control volume on digital SPDIF outputs in this mode 18 | # ARGS="-d -- -d hw:0,0 -m hw:0 -t hardware -c PCM" 19 | 20 | # useful options to add (see shairport-sync --help for more): 21 | # --statistics : print some interesting statistics to log 22 | # --verbose : print debug information; -vv more; -vvv lots 23 | 24 | PREARGS="" 25 | DESC=$PROCS 26 | PATH=/Apps/opt/sbin:/Apps//opt/bin:/Apps//opt/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 27 | 28 | . /Apps/opt/etc/init.d/rc.func 29 | -------------------------------------------------------------------------------- /packages/procps-ng/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-r47008/feeds/packages/utils/procps-ng/Makefile 2015-09-21 12:01:28.419056706 +0300 2 | +++ ../../../openwrt_trunk/feeds/packages/utils/procps-ng/Makefile 2015-09-21 13:04:01.347119170 +0300 3 | @@ -79,15 +79,15 @@ 4 | LDFLAGS="$(TARGET_LDFLAGS)" \ 5 | 6 | define Package/procps-ng/install 7 | - $(INSTALL_DIR) $(1)/usr/bin 8 | - $(INSTALL_DIR) $(1)/usr/lib 9 | - $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libprocps.so* $(1)/usr/lib/ 10 | + $(INSTALL_DIR) $(1)/opt/bin 11 | + $(INSTALL_DIR) $(1)/opt/lib 12 | + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/Apps/opt/lib/libprocps.so* $(1)/opt/lib/ 13 | endef 14 | 15 | define BuildPlugin 16 | define Package/$(1)/install 17 | - $(INSTALL_DIR) $$(1)/usr/bin 18 | - $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(2) $$(1)/usr/bin/ 19 | + $(INSTALL_DIR) $$(1)/opt/bin 20 | + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/Apps/opt/bin/$(2) $$(1)/opt/bin/ 21 | endef 22 | 23 | $$(eval $$(call BuildPackage,$(1))) 24 | -------------------------------------------------------------------------------- /packages/shadowsocks-libev/500-external-libev.patch: -------------------------------------------------------------------------------- 1 | --- a/Makefile.am 2 | +++ b/Makefile.am 3 | @@ -1,4 +1,4 @@ 4 | -SUBDIRS = libsodium libcork libipset libudns libev src 5 | +SUBDIRS = libsodium libcork libipset libudns src 6 | 7 | ACLOCAL_AMFLAGS = -I m4 8 | man_MANS = shadowsocks-libev.8 9 | --- a/src/Makefile.am 10 | +++ b/src/Makefile.am 11 | @@ -2,7 +2,6 @@ 12 | 13 | AM_CFLAGS = -g -O2 -Wall -Werror -Wno-deprecated-declarations -fno-strict-aliasing -std=gnu99 -D_GNU_SOURCE 14 | AM_CFLAGS += $(PTHREAD_CFLAGS) 15 | -AM_CFLAGS += -I$(top_srcdir)/libev 16 | AM_CFLAGS += -I$(top_srcdir)/libudns 17 | AM_CFLAGS += -I$(top_srcdir)/libipset/include 18 | AM_CFLAGS += -I$(top_srcdir)/libcork/include 19 | @@ -11,7 +10,6 @@ 20 | AM_LDFLAGS = -static 21 | 22 | SS_COMMON_LIBS = $(PTHREAD_LIBS) \ 23 | - $(top_builddir)/libev/libev.la \ 24 | $(top_builddir)/libipset/libipset.la \ 25 | $(top_builddir)/libcork/libcork.la \ 26 | $(top_builddir)/libsodium/src/libsodium/libsodium.la \ 27 | -------------------------------------------------------------------------------- /TODO: -------------------------------------------------------------------------------- 1 | === Known bugs and odds, to do list === 2 | 3 | sshd: syslogin_perform_logout: logout() returned an error, /var/... or /etc/... somewhere in sources 4 | bash_completion: /etc/bashcompletion in optware is newer 5 | freeswitch: spandsp marked as broken for now. 6 | elfutils: is a fake package for now, still old libelf package used due to our 2.6 kernel 7 | 8 | OpenWRT packages with updagraded version: 9 | dialog 1.2-20140112 10 | elinks 0.12pre6 11 | gw6c 6.0.1 12 | hplip 3.14.4 13 | imapfilter 2.5.6 14 | leptonica 1.71 giflib 5.0.0 compability 15 | libev 4.19 16 | libsodium 1.0.0 17 | lvm2 2.02.111 18 | mosh 1.2.4a-20140108 19 | msmtp 1.4.32 20 | n2n 2.1.0-r7223 21 | nzbget 12.0 22 | snort 2.9.5.5 EOL of previous version 23 | wview 5.21.5 24 | 25 | Can't be upgraded (because of too old 2.6.22 kernel, mostly): 26 | cjdns 0.5-20131009 node.js required 27 | gdb 7.3.1 due to gnu_v3_object_ctor_group() absence 28 | libnl 2.0 (r33657) 29 | libv4l 0.8.6 30 | mjpg-streamer r181 31 | usbip 0.1.7 32 | -------------------------------------------------------------------------------- /packages/libusb-compat/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-r43718/package/libs/libusb-compat/Makefile 2015-01-05 20:26:58.677493417 +0300 2 | +++ ../../../openwrt_trunk/package/libs/libusb-compat/Makefile 2015-01-08 10:26:26.555834375 +0300 3 | @@ -39,15 +39,15 @@ 4 | TARGET_CFLAGS += $(FPIC) 5 | 6 | define Build/InstallDev 7 | - $(INSTALL_DIR) $(1) 8 | - $(CP) $(PKG_INSTALL_DIR)/* $(1)/ 9 | - $(INSTALL_DIR) $(2)/bin 10 | - $(CP) $(PKG_INSTALL_DIR)/usr/bin/libusb-config $(2)/bin/ 11 | + $(INSTALL_DIR) $(STAGING_DIR)/host/bin 12 | + 13 | + $(CP) $(PKG_INSTALL_DIR)/Apps/* $(1)/ 14 | + $(CP) $(PKG_INSTALL_DIR)/Apps/opt/bin/libusb-config $(STAGING_DIR)/host/bin 15 | endef 16 | 17 | define Package/libusb-compat/install 18 | - $(INSTALL_DIR) $(1)/usr/lib 19 | - $(CP) $(PKG_INSTALL_DIR)/usr/lib/libusb-0.1.so* $(1)/usr/lib/ 20 | + $(INSTALL_DIR) $(1)/opt/lib 21 | + $(CP) $(PKG_INSTALL_DIR)/Apps/opt/lib/libusb-0.1.so* $(1)/opt/lib/ 22 | endef 23 | 24 | $(eval $(call BuildPackage,libusb-compat)) 25 | -------------------------------------------------------------------------------- /packages/polipo/500-pid-file.patch: -------------------------------------------------------------------------------- 1 | --- a/util.c 2 | +++ b/util.c 3 | @@ -600,12 +600,24 @@ 4 | int fd, n, rc; 5 | char buf[16]; 6 | 7 | - fd = open(pidfile, O_WRONLY | O_CREAT | O_EXCL, 0666); 8 | + fd = open(pidfile, O_WRONLY | O_CREAT, 0644); 9 | if(fd < 0) { 10 | do_log_error(L_ERROR, errno, 11 | "Couldn't create pid file %s", pidfile); 12 | exit(1); 13 | } 14 | + rc = lockf(fd, F_TLOCK, 0); 15 | + if(rc) { 16 | + n = errno; 17 | + if(EACCES == n || EAGAIN == n) { 18 | + do_log_error(L_ERROR, 0,"Another instance is alredy running"); 19 | + exit(1); 20 | + } else { 21 | + do_log_error(L_ERROR, n,"Couldn't create pid file %s", pidfile); 22 | + exit(1); 23 | + } 24 | + } 25 | + 26 | n = snprintf(buf, 16, "%ld\n", (long)getpid()); 27 | if(n < 0 || n >= 16) { 28 | close(fd); 29 | -------------------------------------------------------------------------------- /packages/aria2/aria2.conf: -------------------------------------------------------------------------------- 1 | # Basic Options 2 | dir=/Apps/opt/var/aria2/torrents 3 | input-file=/Apps/opt/var/aria2/session.dat 4 | log=/Apps/opt/var/log/aria2.log 5 | max-concurrent-downloads=8 6 | check-integrity=true 7 | continue=true 8 | 9 | # BitTorrent/Metalink Options 10 | bt-enable-lpd=true 11 | bt-max-open-files=16 12 | bt-max-peers=8 13 | dht-file-path=/Apps/opt/var/aria2/dht.dat 14 | dht-file-path6=/Apps/opt/var/aria2/dht6.dat 15 | dht-listen-port=6801 16 | #enable-dht6=true 17 | listen-port=6801 18 | max-overall-upload-limit=2M 19 | seed-ratio=0 20 | 21 | # RPC Options 22 | enable-rpc=true 23 | rpc-allow-origin-all=true 24 | #rpc-certificate=/Apps/opt/var/aria2/aria2.pfx 25 | rpc-listen-all=true 26 | rpc-listen-port=6800 27 | rpc-secret=Passw0rd 28 | #rpc-secure=true 29 | 30 | # Advanced Options 31 | daemon=true 32 | disable-ipv6=true 33 | #enable-mmap=true 34 | force-save=true 35 | file-allocation=none 36 | log-level=warn 37 | max-overall-download-limit=5M 38 | save-session=/Apps/opt/var/aria2/session.dat 39 | -------------------------------------------------------------------------------- /packages/ipset-dns/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-r43718/package/network/services/ipset-dns/Makefile 2014-12-18 13:14:28.759607753 +0300 2 | +++ ../../../openwrt_trunk/package/network/services/ipset-dns/Makefile 2015-02-09 15:04:39.188261717 +0300 3 | @@ -44,17 +44,11 @@ 4 | IP addresses and instead rely on dizzying arrays of DNS resolutions. 5 | endef 6 | 7 | -define Package/ipset-dns/conffiles 8 | -/etc/config/ipset-dns 9 | -endef 10 | +MAKE_FLAGS += OLD_IPSET=1 11 | 12 | define Package/ipset-dns/install 13 | - $(INSTALL_DIR) $(1)/usr/sbin 14 | - $(INSTALL_BIN) $(PKG_BUILD_DIR)/ipset-dns $(1)/usr/sbin/ipset-dns 15 | - $(INSTALL_DIR) $(1)/etc/init.d 16 | - $(INSTALL_BIN) ./files/ipset-dns.init $(1)/etc/init.d/ipset-dns 17 | - $(INSTALL_DIR) $(1)/etc/config 18 | - $(INSTALL_CONF) ./files/ipset-dns.config $(1)/etc/config/ipset-dns 19 | + $(INSTALL_DIR) $(1)/opt/sbin 20 | + $(INSTALL_BIN) $(PKG_BUILD_DIR)/ipset-dns $(1)/opt/sbin/ipset-dns 21 | endef 22 | 23 | $(eval $(call BuildPackage,ipset-dns)) 24 | -------------------------------------------------------------------------------- /packages/zip/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-r44497/feeds/packages/utils/zip/Makefile 2015-02-24 12:08:56.873768246 +0300 2 | +++ ../../../openwrt_trunk/feeds/packages/utils/zip/Makefile 2015-02-27 13:29:24.484951933 +0300 3 | @@ -46,17 +46,17 @@ 4 | 5 | define Build/Compile 6 | $(MAKE) -C $(PKG_BUILD_DIR) -f unix/Makefile generic \ 7 | - prefix="$(PKG_INSTALL_DIR)/usr" \ 8 | + prefix="$(PKG_INSTALL_DIR)/Apps/opt" \ 9 | CFLAGS="$(TARGET_CFLAGS)" \ 10 | - CC="$(TARGET_CC) $(TARGET_CFLAGS) -O $(TARGET_CPPFLAGS) -I. -DUNIX" \ 11 | + CC="$(TARGET_CC) $(TARGET_CFLAGS) -O $(TARGET_CPPFLAGS) -I. -DUNIX $(TARGET_LDFLAGS)" \ 12 | LD="$(TARGET_CC) $(TARGET_LDFLAGS)" \ 13 | IZ_BZIP2="no" \ 14 | install 15 | endef 16 | 17 | define Package/zip/install 18 | - $(INSTALL_DIR) $(1)/usr/bin/ 19 | - $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/ 20 | + $(INSTALL_DIR) $(1)/opt/bin/ 21 | + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/Apps/opt/bin/* $(1)/opt/bin/ 22 | endef 23 | 24 | $(eval $(call BuildPackage,zip)) 25 | -------------------------------------------------------------------------------- /packages/libevent/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../openwrt_trunk.orig/feeds/packages/libs/libevent/Makefile 2 | +++ ../../../openwrt_trunk/feeds/packages/libs/libevent/Makefile 3 | @@ -53,15 +53,15 @@ 4 | CFLAGS="$(TARGET_CFLAGS)" \ 5 | 6 | define Build/InstallDev 7 | - $(INSTALL_DIR) $(1)/usr/include/libevent 8 | - $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/libevent/ 9 | - $(INSTALL_DIR) $(1)/usr/lib/libevent 10 | - $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.{a,so} $(1)/usr/lib/libevent/ 11 | + $(INSTALL_DIR) $(1)/opt/include/libevent 12 | + $(CP) $(PKG_INSTALL_DIR)/Apps/opt/include/* $(1)/opt/include/libevent/ 13 | + $(INSTALL_DIR) $(1)/opt/lib/libevent 14 | + $(CP) $(PKG_INSTALL_DIR)/Apps/opt/lib/*.{a,so} $(1)/opt/lib/libevent/ 15 | endef 16 | 17 | define Package/libevent/install 18 | - $(INSTALL_DIR) $(1)/usr/lib 19 | - $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so.* $(1)/usr/lib/ 20 | + $(INSTALL_DIR) $(1)/opt/lib 21 | + $(CP) $(PKG_INSTALL_DIR)/Apps/opt/lib/*.so.* $(1)/opt/lib/ 22 | endef 23 | 24 | $(eval $(call BuildPackage,libevent)) 25 | -------------------------------------------------------------------------------- /packages/libev/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-q46338/feeds/packages/libs/libev/Makefile 2015-07-21 13:57:42.000000000 +0300 2 | +++ ../../../openwrt_trunk/feeds/packages/libs/libev/Makefile 2015-07-23 21:30:49.012723915 +0300 3 | @@ -43,15 +43,15 @@ 4 | --enable-static \ 5 | 6 | define Build/InstallDev 7 | - $(INSTALL_DIR) $(1)/usr/include 8 | - $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/ 9 | - $(INSTALL_DIR) $(1)/usr/lib 10 | - $(CP) $(PKG_INSTALL_DIR)/usr/lib/libev.{a,so*} $(1)/usr/lib/ 11 | + $(INSTALL_DIR) $(1)/opt/include 12 | + $(CP) $(PKG_INSTALL_DIR)/Apps/opt/include/* $(1)/opt/include/ 13 | + $(INSTALL_DIR) $(1)/opt/lib 14 | + $(CP) $(PKG_INSTALL_DIR)/Apps/opt/lib/libev.{a,so*} $(1)/opt/lib/ 15 | endef 16 | 17 | define Package/libev/install 18 | - $(INSTALL_DIR) $(1)/usr/lib 19 | - $(CP) $(PKG_INSTALL_DIR)/usr/lib/libev.so* $(1)/usr/lib/ 20 | + $(INSTALL_DIR) $(1)/opt/lib 21 | + $(CP) $(PKG_INSTALL_DIR)/Apps/opt/lib/libev.so* $(1)/opt/lib/ 22 | endef 23 | 24 | $(eval $(call BuildPackage,libev)) 25 | -------------------------------------------------------------------------------- /packages/aria2/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-r42803/feeds/packages/net/aria2/Makefile 2014-10-15 10:43:09.835917916 +0400 2 | +++ ../../../openwrt_trunk/feeds/packages/net/aria2/Makefile 2014-12-08 08:03:24.894391534 +0300 3 | @@ -8,7 +8,7 @@ 4 | 5 | PKG_NAME:=aria2 6 | PKG_VERSION:=1.18.7 7 | -PKG_RELEASE:=1 8 | +PKG_RELEASE:=1a 9 | 10 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 11 | PKG_SOURCE_URL:=@SF/aria2 12 | @@ -62,9 +62,16 @@ 13 | --without-sqlite3 \ 14 | --with-libz 15 | 16 | +define Package/aria2/conffiles 17 | +/opt/etc/aria2.conf 18 | +endef 19 | + 20 | define Package/aria2/install 21 | - $(INSTALL_DIR) $(1)/usr/bin 22 | - $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aria2c $(1)/usr/bin 23 | + $(INSTALL_DIR) $(1)/opt/bin 24 | + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/Apps/opt/bin/aria2c $(1)/opt/bin 25 | + $(INSTALL_DIR) $(1)/opt/var/aria2/torrents $(1)/opt/etc/init.d 26 | + $(INSTALL_CONF) ./files/aria2.conf $(1)/opt/etc 27 | + $(INSTALL_BIN) ./files/S81aria2 $(1)/opt/etc/init.d 28 | endef 29 | 30 | $(eval $(call BuildPackage,aria2)) 31 | -------------------------------------------------------------------------------- /packages/bash/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-r43593/feeds/packages/utils/bash/Makefile 2014-12-10 12:26:33.030951680 +0300 2 | +++ ../../../openwrt_trunk/feeds/packages/utils/bash/Makefile 2014-12-12 16:00:53.844860114 +0300 3 | @@ -43,7 +43,7 @@ 4 | define Build/Configure 5 | $(call Build/Configure/Default, \ 6 | --without-bash-malloc \ 7 | - --bindir=/bin \ 8 | + --bindir=/Apps/opt/bin \ 9 | ) 10 | endef 11 | 12 | @@ -56,17 +56,10 @@ 13 | all install 14 | endef 15 | 16 | -define Package/bash/postinst 17 | -#!/bin/sh 18 | -grep bash $${IPKG_INSTROOT}/etc/shells || \ 19 | - echo "/bin/bash" >> $${IPKG_INSTROOT}/etc/shells 20 | - echo "/bin/rbash" >> $${IPKG_INSTROOT}/etc/shells 21 | -endef 22 | - 23 | define Package/bash/install 24 | - $(INSTALL_DIR) $(1)/bin 25 | - $(INSTALL_BIN) $(PKG_INSTALL_DIR)/bin/bash $(1)/bin/ 26 | - ln -sf bash $(1)/bin/rbash 27 | + $(INSTALL_DIR) $(1)/opt/bin 28 | + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/Apps/opt/bin/bash $(1)/opt/bin/ 29 | + ln -sf bash $(1)/opt/bin/rbash 30 | endef 31 | 32 | 33 | -------------------------------------------------------------------------------- /packages/etherwake/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../openwrt_trunk.orig/feeds/packages/net/etherwake/Makefile 2 | +++ ../../../openwrt_trunk/feeds/packages/net/etherwake/Makefile 3 | @@ -36,20 +36,12 @@ 4 | endef 5 | 6 | define Build/Compile 7 | - $(TARGET_CC) $(TARGET_CFLAGS) -D__UCLIBC__ $(PKG_BUILD_DIR)/ether-wake.c -o $(PKG_BUILD_DIR)/etherwake 8 | + $(TARGET_CC) $(TARGET_LDFLAGS) $(TARGET_CFLAGS) -D__UCLIBC__ $(PKG_BUILD_DIR)/ether-wake.c -o $(PKG_BUILD_DIR)/etherwake 9 | endef 10 | 11 | define Package/etherwake/install 12 | - $(INSTALL_DIR) $(1)/usr/bin 13 | - $(INSTALL_BIN) $(PKG_BUILD_DIR)/etherwake $(1)/usr/bin/ 14 | - $(INSTALL_DIR) $(1)/etc/config 15 | - $(INSTALL_DATA) files/$(PKG_NAME).config $(1)/etc/config/$(PKG_NAME) 16 | - $(INSTALL_DIR) $(1)/etc/init.d 17 | - $(INSTALL_BIN) files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME) 18 | -endef 19 | - 20 | -define Package/etherwake/conffiles 21 | -/etc/config/etherwake 22 | + $(INSTALL_DIR) $(1)/opt/bin 23 | + $(INSTALL_BIN) $(PKG_BUILD_DIR)/etherwake $(1)/opt/bin/ 24 | endef 25 | 26 | $(eval $(call BuildPackage,etherwake)) 27 | -------------------------------------------------------------------------------- /packages/libsrtp/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-r45513/feeds/telephony/libs/libsrtp/Makefile 2015-04-20 10:09:29.074135357 +0300 2 | +++ ../../../openwrt_trunk/feeds/telephony/libs/libsrtp/Makefile 2015-04-20 10:09:47.330135024 +0300 3 | @@ -47,17 +47,17 @@ 4 | endef 5 | 6 | define Build/InstallDev 7 | - $(INSTALL_DIR) $(1)/usr/include 8 | - $(CP) $(PKG_INSTALL_DIR)/usr/include/srtp $(1)/usr/include/ 9 | - $(INSTALL_DIR) $(1)/usr/lib 10 | - $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsrtp.{a,so*} $(1)/usr/lib/ 11 | + $(INSTALL_DIR) $(1)/opt/include 12 | + $(CP) $(PKG_INSTALL_DIR)/Apps/opt/include/srtp $(1)/opt/include/ 13 | + $(INSTALL_DIR) $(1)/opt/lib 14 | + $(CP) $(PKG_INSTALL_DIR)/Apps/opt/lib/libsrtp.{a,so*} $(1)/opt/lib/ 15 | endef 16 | 17 | 18 | define Package/libsrtp/install 19 | - $(INSTALL_DIR) $(1)/usr/lib 20 | - $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsrtp.so.* \ 21 | - $(1)/usr/lib/ 22 | + $(INSTALL_DIR) $(1)/opt/lib 23 | + $(CP) $(PKG_INSTALL_DIR)/Apps/opt/lib/libsrtp.so.* \ 24 | + $(1)/opt/lib/ 25 | endef 26 | 27 | $(eval $(call BuildPackage,libsrtp)) 28 | -------------------------------------------------------------------------------- /packages/gdb/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-r43718/package/devel/gdb/Makefile 2015-01-09 19:51:38.499693648 +0300 2 | +++ ../../../openwrt_trunk/package/devel/gdb/Makefile 2015-01-09 19:52:23.776723376 +0300 3 | @@ -31,7 +31,7 @@ 4 | define Package/gdb 5 | $(call Package/gdb/Default) 6 | TITLE:=GNU Debugger 7 | - DEPENDS+=+libreadline +libncurses +zlib 8 | + DEPENDS+=+libreadline +libncurses +zlib +liblzma 9 | endef 10 | 11 | define Package/gdb/description 12 | @@ -74,13 +74,13 @@ 13 | endef 14 | 15 | define Package/gdb/install 16 | - $(INSTALL_DIR) $(1)/usr/bin 17 | - $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gdb $(1)/usr/bin/ 18 | + $(INSTALL_DIR) $(1)/opt/bin 19 | + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/Apps/opt/bin/gdb $(1)/opt/bin/ 20 | endef 21 | 22 | define Package/gdbserver/install 23 | - $(INSTALL_DIR) $(1)/usr/bin 24 | - $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/gdbserver $(1)/usr/bin/ 25 | + $(INSTALL_DIR) $(1)/opt/bin 26 | + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/Apps/opt/bin/gdbserver $(1)/opt/bin/ 27 | endef 28 | 29 | $(eval $(call BuildPackage,gdb)) 30 | -------------------------------------------------------------------------------- /packages/librpc/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-r45513/package/libs/librpc/Makefile 2015-04-20 10:09:29.142135354 +0300 2 | +++ ../../../openwrt_trunk/package/libs/librpc/Makefile 2015-04-20 10:09:47.230135026 +0300 3 | @@ -9,7 +9,6 @@ 4 | PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) 5 | PKG_SOURCE_VERSION:=308e9964bfb623773dc0dcc99ef9d18d1551d6ae 6 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz 7 | -CMAKE_INSTALL:=1 8 | PKG_USE_MIPS16:=0 9 | 10 | PKG_LICENSE:=LGPL-2.1 11 | @@ -26,9 +25,25 @@ 12 | TITLE:=uClibc RPC library 13 | endef 14 | 15 | +define Build/Prepare 16 | + true 17 | +endef 18 | + 19 | +define Build/Configure 20 | + true 21 | +endef 22 | + 23 | +define Build/Compile 24 | + true 25 | +endef 26 | + 27 | +define Build/Install 28 | + true 29 | +endef 30 | + 31 | define Package/librpc/install 32 | - $(INSTALL_DIR) $(1)/lib/ 33 | - $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/librpc.so $(1)/lib/ 34 | + $(INSTALL_DIR) $(1)/opt/tmp/ 35 | + touch $(1)/opt/tmp/.librpc_placeholder 36 | endef 37 | 38 | $(eval $(call BuildPackage,librpc)) 39 | -------------------------------------------------------------------------------- /packages/minidlna/100_album_art_samsung_f-series_fix.patch: -------------------------------------------------------------------------------- 1 | --- a/upnpsoap.c 2 | +++ b/upnpsoap.c 3 | @@ -1079,10 +1079,14 @@ 4 | { 5 | /* Video and audio album art is handled differently */ 6 | if( *mime == 'v' && (passed_args->filter & FILTER_RES) && !(passed_args->flags & FLAG_MS_PFS) ) { 7 | ret = strcatf(str, "<res protocolInfo=\"http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_TN\">" 8 | "http://%s:%d/AlbumArt/%s-%s.jpg" 9 | + "</res>\n\n" 10 | + "<res protocolInfo=\"http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_SM\">" 11 | + "http://%s:%d/AlbumArt/%s-%s.jpg" 12 | "</res>", 13 | + lan_addr[passed_args->iface].str, runtime_vars.port, album_art, detailID, 14 | lan_addr[passed_args->iface].str, runtime_vars.port, album_art, detailID); 15 | } else if( passed_args->filter & FILTER_UPNP_ALBUMARTURI ) { 16 | ret = strcatf(str, "<upnp:albumArtURI"); 17 | if( passed_args->filter & FILTER_UPNP_ALBUMARTURI_DLNA_PROFILEID ) { 18 | -------------------------------------------------------------------------------- /packages/nano/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-q47008/feeds/packages/utils/nano/Makefile 2015-09-24 20:31:27.850958283 +0300 2 | +++ ../../../openwrt_trunk/feeds/packages/utils/nano/Makefile 2015-09-26 16:52:55.896063896 +0300 3 | @@ -29,7 +29,7 @@ 4 | TITLE:=An enhanced clone of the Pico text editor 5 | URL:=http://www.nano-editor.org/ 6 | MAINTAINER:=Jonathan Bennett 7 | - DEPENDS:=+libncurses 8 | + DEPENDS:=+libncursesw 9 | endef 10 | 11 | define Package/nano/description 12 | @@ -40,7 +40,7 @@ 13 | CONFIGURE_ARGS += \ 14 | --enable-tiny \ 15 | --disable-glibtest \ 16 | - --disable-utf8 \ 17 | + --enable-utf8 \ 18 | --without-slang \ 19 | --disable-color \ 20 | 21 | @@ -48,8 +48,8 @@ 22 | ac_cv_header_regex_h=no \ 23 | 24 | define Package/nano/install 25 | - $(INSTALL_DIR) $(1)/usr/bin 26 | - $(CP) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/ 27 | + $(INSTALL_DIR) $(1)/opt/bin 28 | + $(CP) $(PKG_INSTALL_DIR)/Apps/opt/bin/$(PKG_NAME) $(1)/opt/bin/ 29 | endef 30 | 31 | $(eval $(call BuildPackage,nano)) 32 | -------------------------------------------------------------------------------- /packages/less/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-r44497/feeds/packages/utils/less/Makefile 2015-02-20 12:39:13.457134246 +0300 2 | +++ ../../../openwrt_trunk/feeds/packages/utils/less/Makefile 2015-02-20 19:12:08.836704311 +0300 3 | @@ -69,25 +69,11 @@ 4 | endif 5 | 6 | define Package/less/install 7 | - $(INSTALL_DIR) $(1)/bin 8 | - $(CP) $(PKG_INSTALL_DIR)/usr/bin/less $(1)/bin/less 9 | -endef 10 | - 11 | -define Package/less/postinst 12 | -#!/bin/sh 13 | -[ -L "$${IPKG_INSTROOT}/usr/bin/less" ] && rm -f "$${IPKG_INSTROOT}/usr/bin/less" 14 | -exit 0 15 | -endef 16 | - 17 | -define Package/less/postrm 18 | -#!/bin/sh 19 | -/bin/busybox less -h 2>&1 | grep -q BusyBox && ln -sf ../../bin/busybox /usr/bin/less 20 | -exit 0 21 | + $(INSTALL_DIR) $(1)/opt/bin 22 | + $(CP) $(PKG_INSTALL_DIR)/Apps/opt/bin/less $(1)/opt/bin/less 23 | endef 24 | 25 | Package/less-wide/install = $(Package/less/install) 26 | -Package/less-wide/postinst = $(Package/less/postinst) 27 | -Package/less-wide/postrm = $(Package/less/postrm) 28 | 29 | $(eval $(call BuildPackage,less)) 30 | $(eval $(call BuildPackage,less-wide)) 31 | -------------------------------------------------------------------------------- /packages/libnl-tiny/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-r43718/package/libs/libnl-tiny/Makefile 2014-12-15 21:16:34.057049665 +0300 2 | +++ ../../../openwrt_trunk/package/libs/libnl-tiny/Makefile 2015-01-03 22:56:39.393035083 +0300 3 | @@ -43,15 +43,15 @@ 4 | endef 5 | 6 | define Build/InstallDev 7 | - $(INSTALL_DIR) $(1)/usr/lib/pkgconfig $(1)/usr/include/libnl-tiny 8 | - $(CP) $(PKG_BUILD_DIR)/include/* $(1)/usr/include/libnl-tiny 9 | - $(CP) $(PKG_BUILD_DIR)/libnl-tiny.so $(1)/usr/lib/ 10 | - $(CP) ./files/libnl-tiny.pc $(1)/usr/lib/pkgconfig 11 | + $(INSTALL_DIR) $(1)/opt/lib/pkgconfig $(1)/opt/include/libnl-tiny 12 | + $(CP) $(PKG_BUILD_DIR)/include/* $(1)/opt/include/libnl-tiny 13 | + $(CP) $(PKG_BUILD_DIR)/libnl-tiny.so $(1)/opt/lib/ 14 | + $(CP) ./files/libnl-tiny.pc $(1)/opt/lib/pkgconfig 15 | endef 16 | 17 | define Package/libnl-tiny/install 18 | - $(INSTALL_DIR) $(1)/usr/lib 19 | - $(CP) $(PKG_BUILD_DIR)/libnl-tiny.so $(1)/usr/lib/ 20 | + $(INSTALL_DIR) $(1)/opt/lib 21 | + $(CP) $(PKG_BUILD_DIR)/libnl-tiny.so $(1)/opt/lib/ 22 | endef 23 | 24 | $(eval $(call BuildPackage,libnl-tiny)) 25 | -------------------------------------------------------------------------------- /switch-arch/arch_defs_arm: -------------------------------------------------------------------------------- 1 | CONFIG_TARGET_qnaparm=y 2 | # CONFIG_TARGET_qnapx86 is not set 3 | CONFIG_TARGET_qnaparm_Default=y 4 | CONFIG_TARGET_BOARD="qnaparm" 5 | CONFIG_TARGET_ARCH_PACKAGES="qnaparm" 6 | CONFIG_DEFAULT_TARGET_OPTIMIZATION="-Os -pipe -march=armv5te -mtune=xscale" 7 | CONFIG_CPU_TYPE="xscale" 8 | CONFIG_arm=y 9 | CONFIG_ARCH="arm" 10 | CONFIG_TARGET_OPTIMIZATION="-O2 -pipe -march=armv5te -mtune=xscale" 11 | CONFIG_SOFT_FLOAT=y 12 | CONFIG_TARGET_NAME="arm-openwrt-linux-gnueabi" 13 | CONFIG_TOOLCHAIN_PREFIX="arm-unknown-linux-gnueabi-" 14 | CONFIG_TOOLCHAIN_INC_PATH="./arm-unknown-linux-gnueabi/sys-root/usr/include" 15 | CONFIG_TOOLCHAIN_LIB_PATH="./arm-unknown-linux-gnueabi/sys-root/lib ./arm-unknown-linux-gnueabi/sys-root/usr/lib" 16 | CONFIG_TOOLCHAIN_ROOT="__TOOLCHAIN_ROOT__" 17 | CONFIG_LIBC_ROOT_DIR="__SYSROOT__" 18 | CONFIG_LIBGCC_ROOT_DIR="__SYSROOT__" 19 | CONFIG_LIBRT_ROOT_DIR="__SYSROOT__" 20 | CONFIG_LIBSSP_ROOT_DIR="__SYSROOT__" 21 | CONFIG_LIBSTDCPP_ROOT_DIR="__SYSROOT__" 22 | CONFIG_LIBPTHREAD_ROOT_DIR="__SYSROOT__" 23 | CONFIG_TOOLCHAIN_USR_DIR="__USR__" 24 | CONFIG_LDD_ROOT_DIR="__USRBIN__" 25 | -------------------------------------------------------------------------------- /packages/sslh/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-r46338/feeds/packages/net/sslh/Makefile 2015-07-14 10:55:19.806308173 +0300 2 | +++ ../../../openwrt_trunk/feeds/packages/net/sslh/Makefile 2015-07-14 17:00:43.358673690 +0300 3 | @@ -36,6 +36,7 @@ 4 | $(MAKE) -C $(PKG_BUILD_DIR) \ 5 | CC="$(TARGET_CC)" \ 6 | CFLAGS="$(TARGET_CFLAGS)" \ 7 | + LDFLAGS="$(TARGET_LDFLAGS)" \ 8 | USELIBCONFIG= \ 9 | USELIBWRAP= \ 10 | USELIBPCRE= \ 11 | @@ -43,12 +44,10 @@ 12 | endef 13 | 14 | define Package/sslh/install 15 | - $(INSTALL_DIR) $(1)/usr/sbin 16 | - $(INSTALL_BIN) $(PKG_BUILD_DIR)/sslh-fork $(1)/usr/sbin/sslh 17 | - $(INSTALL_DIR) $(1)/etc/init.d/ 18 | - $(INSTALL_BIN) files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME) 19 | - $(INSTALL_DIR) $(1)/etc/config 20 | - $(INSTALL_CONF) files/$(PKG_NAME).config $(1)/etc/config/$(PKG_NAME) 21 | + $(INSTALL_DIR) $(1)/opt/sbin 22 | + $(INSTALL_BIN) $(PKG_BUILD_DIR)/sslh-fork $(1)/opt/sbin/sslh 23 | + $(INSTALL_DIR) $(1)/opt/etc/init.d 24 | + $(INSTALL_BIN) files/S14$(PKG_NAME) $(1)/opt/etc/init.d 25 | endef 26 | 27 | $(eval $(call BuildPackage,sslh)) 28 | -------------------------------------------------------------------------------- /packages/acl/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-r43718/feeds/packages/utils/acl/Makefile 2014-12-15 16:50:13.336093577 +0300 2 | +++ ../../../openwrt_trunk/feeds/packages/utils/acl/Makefile 2014-12-16 09:28:24.211007595 +0300 3 | @@ -72,19 +72,19 @@ 4 | endef 5 | 6 | define Package/acl/install 7 | - $(INSTALL_DIR) $(1)/usr/bin 8 | - $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/ 9 | + $(INSTALL_DIR) $(1)/opt/bin 10 | + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/Apps/opt/bin/* $(1)/opt/bin/ 11 | endef 12 | 13 | define Package/libacl/install 14 | - $(INSTALL_DIR) $(1)/usr/lib 15 | - $(CP) $(PKG_INSTALL_DIR)/usr/lib/*.so* $(1)/usr/lib/ 16 | + $(INSTALL_DIR) $(1)/opt/lib 17 | + $(CP) $(PKG_INSTALL_DIR)/Apps/opt/lib/*.so* $(1)/opt/lib/ 18 | endef 19 | 20 | define Build/InstallDev 21 | - mkdir -p $(1)/usr/include 22 | - mkdir -p $(1)/usr/lib/pkgconfig 23 | - $(CP) -r $(PKG_INSTALL_DIR)/usr/{include,lib} $(1)/usr/ 24 | + mkdir -p $(1)/opt/include 25 | + mkdir -p $(1)/opt/lib/pkgconfig 26 | + $(CP) -r $(PKG_INSTALL_DIR)/Apps/opt/{include,lib} $(1)/opt/ 27 | endef 28 | 29 | $(eval $(call BuildPackage,acl)) 30 | -------------------------------------------------------------------------------- /packages/netcat/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-r44486/feeds/packages/net/netcat/Makefile 2015-02-18 12:16:57.620306332 +0300 2 | +++ ../../../openwrt_trunk/feeds/packages/net/netcat/Makefile 2015-02-19 16:09:18.954479376 +0300 3 | @@ -40,26 +40,9 @@ 4 | endef 5 | 6 | define Package/netcat/install 7 | - $(INSTALL_DIR) $(1)/usr/bin 8 | - $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/netcat \ 9 | - $(1)/usr/bin 10 | + $(INSTALL_DIR) $(1)/opt/bin 11 | + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/Apps/opt/bin/netcat \ 12 | + $(1)/opt/bin 13 | endef 14 | 15 | -define Package/netcat/postinst 16 | -#!/bin/sh 17 | -if [ -e $${IPKG_INSTROOT}/usr/bin/nc ]; then 18 | - rm -rf $${IPKG_INSTROOT}/usr/bin/nc; 19 | -fi 20 | -ln -s ./netcat $${IPKG_INSTROOT}/usr/bin/nc 21 | -endef 22 | - 23 | -define Package/netcat/postrm 24 | -#!/bin/sh 25 | -rm $${IPKG_INSTROOT}/usr/bin/nc 26 | -ln -s ../../bin/busybox $${IPKG_INSTROOT}/usr/bin/nc 27 | -$${IPKG_INSTROOT}/usr/bin/nc 2>&1 | grep 'applet not found' > /dev/null 2>&1 && rm $${IPKG_INSTROOT}/usr/bin/nc 28 | -exit 0 29 | -endef 30 | - 31 | - 32 | $(eval $(call BuildPackage,netcat)) 33 | -------------------------------------------------------------------------------- /packages/minidlna/060-conf_path.patch: -------------------------------------------------------------------------------- 1 | --- a/minidlna.c 2 | +++ b/minidlna.c 3 | @@ -492,7 +492,7 @@ 4 | int options_flag = 0; 5 | struct sigaction sa; 6 | const char * presurl = NULL; 7 | - const char * optionsfile = "/etc/minidlna.conf"; 8 | + const char * optionsfile = "/Apps/opt/etc/minidlna.conf"; 9 | char mac_str[13]; 10 | char *string, *word; 11 | char *path; 12 | --- a/upnpglobalvars.c 13 | +++ b/upnpglobalvars.c 14 | @@ -60,7 +60,7 @@ 15 | struct runtime_vars_s runtime_vars; 16 | uint32_t runtime_flags = INOTIFY_MASK; 17 | 18 | -const char *pidfilename = "/var/run/minidlna/minidlna.pid"; 19 | +const char *pidfilename = "/Apps/opt/var/minidlna/minidlna.pid"; 20 | 21 | char uuidvalue[] = "uuid:00000000-0000-0000-0000-000000000000"; 22 | char modelname[MODELNAME_MAX_LEN] = ROOTDEV_MODELNAME; 23 | @@ -79,7 +79,7 @@ 24 | int sssdp = -1; 25 | 26 | /* Path of the Unix socket used to communicate with MiniSSDPd */ 27 | -const char * minissdpdsocketpath = "/var/run/minissdpd.sock"; 28 | +const char * minissdpdsocketpath = "/Apps/opt/var/minidlna/minissdpd.sock"; 29 | 30 | /* UPnP-A/V [DLNA] */ 31 | sqlite3 *db; 32 | -------------------------------------------------------------------------------- /packages/screen/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-r40859/feeds/packages/utils/screen/Makefile 2 | +++ ../../../openwrt_trunk/feeds/packages/utils/screen/Makefile 3 | @@ -37,20 +37,22 @@ 4 | define Build/Configure 5 | $(call Build/Configure/Default,\ 6 | --with-sys-screenrc=/etc/screenrc \ 7 | + --with-sys-screenrc=/Apps/opt/etc/screenrc \ 8 | + --with-socket-dir=/Apps/opt/tmp/screens \ 9 | ) 10 | # XXX: memmove() works well with overlapped memory areas 11 | echo "#define USEMEMMOVE 1" >>$(PKG_BUILD_DIR)/config.h 12 | endef 13 | 14 | define Package/screen/install 15 | - $(INSTALL_DIR) $(1)/usr/sbin 16 | - $(INSTALL_BIN) $(PKG_BUILD_DIR)/screen $(1)/usr/sbin/ 17 | - $(INSTALL_DIR) $(1)/etc 18 | - $(INSTALL_DATA) ./files/etc/screenrc $(1)/etc/screenrc 19 | + $(INSTALL_DIR) $(1)/opt/sbin 20 | + $(INSTALL_BIN) $(PKG_BUILD_DIR)/screen $(1)/opt/sbin/ 21 | + $(INSTALL_DIR) $(1)/opt/etc 22 | + $(INSTALL_DATA) ./files/etc/screenrc $(1)/opt/etc/screenrc 23 | endef 24 | 25 | define Package/screen/conffiles 26 | -/etc/screenrc 27 | +/opt/etc/screenrc 28 | endef 29 | 30 | $(eval $(call BuildPackage,screen)) 31 | -------------------------------------------------------------------------------- /packages/Makefile.package: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (C) 2011-2015 Entware 3 | # 4 | # This is free software, licensed under the GNU General Public License v2. 5 | # See /LICENSE for more information. 6 | # 7 | 8 | ifneq ($(MAKECMDGOALS),clean) 9 | include ../.packages_path.mk 10 | endif 11 | 12 | ifdef $(PK_NAME_$(PK_NAME)) 13 | PK_PATH=$(PK_NAME_$(PK_NAME)) 14 | PK_LEVEL=8 15 | else 16 | PK_PATH=$(TOP) 17 | PK_LEVEL=3 18 | endif 19 | 20 | all: .done 21 | 22 | .done: 23 | @for patch in `ls *.patch | sort`; do ( \ 24 | echo $$patch; \ 25 | patch -d $(PK_PATH) -p$(PK_LEVEL) -i $(CURDIR)/$$patch; \ 26 | ); done 27 | ifeq (0,1) 28 | @if [ -d 'files' ]; then \ 29 | [ -d '$(PK_PATH)/files' ] || mkdir $(PK_PATH)/files; \ 30 | cp -rf files/ $(PK_PATH)/files; \ 31 | fi 32 | @if [ -d 'patches/' ]; then \ 33 | [ -d '$(PK_PATH)/patches' ] || mkdir $(PK_PATH)/patches; \ 34 | cp -rf patches/ $(PK_PATH)/pathces; \ 35 | fi 36 | @if [ -f postmake.sh ]; then \ 37 | $(SHELL) ./postmake.sh $(PK_NAME) $(PK_PATH); \ 38 | fi 39 | endif 40 | @touch $@ 41 | 42 | clean: 43 | @rm -f .done 44 | 45 | .PHONY: clean 46 | -------------------------------------------------------------------------------- /packages/gdb/200-namespace.patch: -------------------------------------------------------------------------------- 1 | diff --git a/gdb/nat/linux-namespaces.c b/gdb/nat/linux-namespaces.c 2 | index a7a3e4d..c2f0d2e 100644 3 | --- a/gdb/nat/linux-namespaces.c 4 | +++ b/gdb/nat/linux-namespaces.c 5 | @@ -34,18 +34,20 @@ int debug_linux_namespaces; 6 | 7 | /* Handle systems without setns. */ 8 | 9 | -#ifndef HAVE_SETNS 10 | -static int 11 | -setns (int fd, int nstype) 12 | +static inline int 13 | +do_setns (int fd, int nstype) 14 | { 15 | -#ifdef __NR_setns 16 | - return syscall (__NR_setns, fd, nstype); 17 | +#ifdef HAVE_SETNS 18 | + return setns (fd, nstype); 19 | #else 20 | +# ifdef __NR_setns 21 | + return syscall (__NR_setns, fd, nstype); 22 | +# else 23 | errno = ENOSYS; 24 | return -1; 25 | +# endif 26 | #endif 27 | } 28 | -#endif 29 | 30 | /* Handle systems without MSG_CMSG_CLOEXEC. */ 31 | 32 | @@ -495,7 +497,7 @@ mnsh_recv_message (int sock, enum mnsh_msg_type *type, 33 | static ssize_t 34 | mnsh_handle_setns (int sock, int fd, int nstype) 35 | { 36 | - int result = setns (fd, nstype); 37 | + int result = do_setns (fd, nstype); 38 | 39 | return mnsh_return_int (sock, result, errno); 40 | } 41 | -------------------------------------------------------------------------------- /packages/uqmi/fix-path.patch: -------------------------------------------------------------------------------- 1 | --- ../../../downloads/openwrt_trunk-r45513/package/network/utils/uqmi/Makefile 2015-04-20 10:09:30.030135342 +0300 2 | +++ ../../../openwrt_trunk/package/network/utils/uqmi/Makefile 2015-04-20 14:55:04.613823097 +0300 3 | @@ -24,7 +24,7 @@ 4 | define Package/uqmi 5 | SECTION:=net 6 | CATEGORY:=Network 7 | - DEPENDS:=+libubox +libblobmsg-json +kmod-usb-net +kmod-usb-net-qmi-wwan +wwan 8 | + DEPENDS:=+libubox +libblobmsg-json 9 | TITLE:=Control utility for mobile broadband modems 10 | endef 11 | 12 | @@ -34,7 +34,7 @@ 13 | endef 14 | 15 | TARGET_CFLAGS += \ 16 | - -I$(STAGING_DIR)/usr/include -ffunction-sections -fdata-sections 17 | + -I$(STAGING_DIR)/opt/include -ffunction-sections -fdata-sections 18 | 19 | TARGET_LDFLAGS += -Wl,--gc-sections 20 | 21 | @@ -42,9 +42,8 @@ 22 | -DDEBUG=1 23 | 24 | define Package/uqmi/install 25 | - $(INSTALL_DIR) $(1)/sbin 26 | - $(INSTALL_BIN) $(PKG_BUILD_DIR)/uqmi $(1)/sbin/ 27 | - $(CP) ./files/* $(1)/ 28 | + $(INSTALL_DIR) $(1)/opt/sbin 29 | + $(INSTALL_BIN) $(PKG_BUILD_DIR)/uqmi $(1)/opt/sbin/ 30 | endef 31 | 32 | $(eval $(call BuildPackage,uqmi)) 33 | --------------------------------------------------------------------------------