Compare commits

...

590 commits

Author SHA1 Message Date
Daniel Golle
d0cd9f198d
Merge pull request #6124 from wigyori/for-15.05-freeradius2
CC: freeradius2: bump to 2.2.10
2018-06-15 16:02:27 +02:00
Philip Prindeville
e39a0a9212
Merge pull request #6120 from wigyori/for-15.05-perl
CC: perl5: upgrade 3 CPAN packages to fix build
2018-05-29 19:00:15 -06:00
Thomas Heil
074bb2166e
Merge pull request #6126 from wigyori/for-15.05-pcre_nginx
CC: pcre: bump to 8.41 and fix CVEs
2018-05-25 13:52:53 +02:00
Zoltan HERPAI
1657a09a2d freeradius2: bump to 2.2.10
- Fix multiple security issues. See http://freeradius.org/security/fuzzer-2017.html Thanks to Guido Vranken for working with us to discover the issues and test the fixes.
 - FR-GV-207 Avoid zero-length malloc() in data2vp().
 - FR-GV-206 correct decoding of option 60.
 - FR-GV-205 check for "too long" WiMAX options.
 - FR-GV-204 free VP if decoding fails, so we don't leak memory.
 - FR-GV-203 fix memory leak when using decode_tlv().
 - FR-GV-202 check for "too long" attributes.
 - FR-GV-201 check input/output length in make_secret().
 - FR-AD-001 Use strncmp() instead of memcmp() for bounded data.
 - Disable in-memory TLS session caches due to OpenSSL API issues.
 - Allow issuer_cert to be empty.
 - Look for extensions using correct index.
 - Fix types.
 - Work around OpenSSL 1.0.2 problems, which cause failures in TLS-based EAP methods.
 - Revert RedHat contributed bug which removes run-time checks for OpenSSL consistency.
 - Allow OCSP responder URL to be later in the packet Fix by Ean Pasternak.
 - Catch empty subject and non-existent issuer cert in OCSP Fix by Ean Pasternak.
 - Allow non-FIPS for MD5 Fix by Ean Pasternak.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2018-05-24 01:35:09 +02:00
Daniel Golle
520ac45ca8 freeradius2: update to version 2.2.9
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2018-05-24 01:35:06 +02:00
Thomas Heil
27133d6866 pcre: Added fix for CVE-2017-11164 by adding stack recursion limit
Signed-off-by: Thomas Heil <heil@terminal-consulting.de>
2018-05-24 01:32:52 +02:00
Thomas Heil
7ff17dd5a3 pcre: upgrade to version 8.41 - fixes security issues
Signed-off-by: Thomas Heil <heil@terminal-consulting.de>
2018-05-24 01:32:48 +02:00
Thomas Heil
a83284d7bd fix CVE-2017-7186 Fix CVE-2017-7186 mentioned in https://bugs.exim.org/show_bug.cgi?id=2052
Signed-off-by: Thomas Heil <heil@terminal-consulting.de>
2018-05-24 01:32:44 +02:00
heil
5c64d6a6d3 package: pcre bump to version 8.40
Signed-off-by: heil <heil@terminal-consulting.de>
2018-05-24 01:32:40 +02:00
Zoltan HERPAI
9232d123e4 perl-uri: bump to 1.74
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2018-05-24 01:19:23 +02:00
Zoltan HERPAI
86f8d58ad0 perl-html-parser: bump to 3.72
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2018-05-24 01:19:20 +02:00
Zoltan HERPAI
f0755b41ef perl-dbi: bump to 1.641
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2018-05-24 01:19:18 +02:00
Jiri Slachta
8d98c0501a
Merge pull request #5542 from micmac1/jiri-for-15.05
libssh2, libxslt, tiff: security bumps (for 15.05)
2018-01-30 20:00:45 +01:00
Sebastian Kemper
bdfe75a5cd tiff: version bump to address open CVEs
- Bumps version to 4.0.9. Otherwise about two dozen packages would need
  to be backported. There were no ABI/API changes between 4.0.3 and
  4.0.9, so this is OK.
- Adds a patch from Jow that addresses a macro issue (already in
  master/lede-17.01)
- Adds patches copied from Debian for CVE-2017-18013 and CVE-2017-9935
  on top.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-01-30 15:32:49 +01:00
Sebastian Kemper
7d2337a17f libxslt: revision bump to address open CVEs
- Add patches copied from Debian to address open CVEs
- Update mail address of maintainer
- Fix a typo
- Add --disable-silent-rules for verbose build output

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-01-30 15:28:35 +01:00
Sebastian Kemper
f84cc525d6 libssh2: revision bump to fix CVE-2016-0787
- adds patch copied from Debian to address CVE
- fixes zlib detection
- changes http to https links
- updates maintainer's mail address

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
2018-01-30 15:25:25 +01:00
Zoltan Herpai
2b8f946204
Merge pull request #5084 from wigyori/for-15.05-irssi
CC: net/irssi: upgrade irssi, update download URL
2018-01-29 09:20:09 +01:00
Zoltan Herpai
f3e4493e0b
Merge pull request #5102 from wigyori/for-15.05-xupnpd
CC: multimedia/xupnpd: move download source and upgrade to 2016-07-06
2018-01-29 09:19:18 +01:00
Zoltan Herpai
318af6607d
Merge pull request #5151 from wigyori/for-15.05-bluez
CC: bluez: upgrade to 5.47
2018-01-29 09:10:29 +01:00
Marko Ratkaj
2543a12a60
Merge pull request #5114 from wigyori/for-15.05-squid
CC: squid: upgrade to 3.5.27
2018-01-24 20:23:49 +01:00
Zoltan Herpai
e5f16da2ec
Merge pull request #5233 from wigyori/for-15.05-bind
CC: bind: bump to 9.11.2
2017-12-07 10:49:26 +01:00
Zoltan HERPAI
2f28404a93 bind: bring back PKG_MD5SUM for CC
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2017-12-06 21:23:26 +01:00
Philip Prindeville
bc8a2ff329 bind: version update to 9.11.2
Also refresh patches and dependencies.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
2017-11-19 17:36:53 +01:00
Noah Meyerhans
ed10cd0c39 bind: Update to 9.10.5-P3
New upstream release includes fixes for the following security issues:

 * CVE-2017-3140: With certain RPZ configurations, a response with TTL 0 could
   cause named to go into an infinite query loop
 * CVE-2017-3142: An error in TSIG handling could permit unauthorized zone
   transfers or zone updates.
 * CVE-2017-3143: An error in TSIG handling could permit unauthorized zone
   transfers or zone updates.

Signed-off-by: Noah Meyerhans <frodo@morgul.net>
2017-11-19 17:34:15 +01:00
Sami Olmari
e2cd2f2b3c bind: Include dnssec-settime in bind-dnssec/tool
<net/bind>

Maintainer: @nmeyerhans
Compile tested: x86_64, OpenWRT 50107
Run tested: x86 / 64, OpenWRT 50107

Description:

Added dnssec-settime into bind-dnssec and bind-tools

Signed-off-by: Sami Olmari <sami+git@olmari.fi>
2017-11-19 17:34:05 +01:00
Noah Meyerhans
f648f3766f bind: Update to bind-9.10.5
This change includes fixes for several security issues:

  * CVE-2017-3138: rndc "" could trigger an assertion failure in named.
  * CVE-2017-3137: Some chaining (i.e., type CNAME or DNAME) responses to
    upstream queries could trigger assertion failures.
  * CVE-2017-3136: dns64 with break-dnssec yes; can result in an assertion
    failure.
  * CVE-2017-3135: If a server is configured with a response policy zone
    (RPZ) that rewrites an answer with local data, and is also configured
    for DNS64 address mapping, a NULL pointer can be read triggering a
    server crash.
  * CVE-2016-9444: named could mishandle authority sections with missing
    RRSIGs, triggering an assertion failure.
  * CVE-2016-9131: named mishandled some responses where covering RRSIG
    records were returned without the requested data, resulting in an
    assertion failure.
  * CVE-2016-9131: named incorrectly tried to cache TKEY records which could
    trigger an assertion failure when there was a class mismatch.
  * CVE-2016-8864: It was possible to trigger assertions when processing
    responses containing answers of type DNAME.
  * CVE-2016-6170: Added the ability to specify the maximum number of
    records permitted in a zone (max-records #;). This provides a mechanism
    to block overly large zone transfers, which is a potential risk with
    slave zones from other parties.
  * CVE-2016-2776: It was possible to trigger an assertion when rendering a
    message using a specially crafted request.
  * CVE-2016-2775: Calling getrrsetbyname() with a non absolute name could
    trigger an infinite recursion bug in lwresd or named with lwres
    configured if, when combined with a search list entry from resolv.conf,
    the resulting name is too long.

Signed-off-by: Noah Meyerhans <frodo@morgul.net>
2017-11-19 17:33:49 +01:00
Noah Meyerhans
556c80b16f bind: update to bind-9.10.4-P5
This change fixes multiple denial-of-service vulnerabilities:
 * CVE-2016-9131: A malformed response to an ANY query can cause an
   assertion failure during recursion
 * CVE-2016-9147: An error handling a query response containing
   inconsistent DNSSEC information could cause an assertion failure
 * CVE-2016-9444: An unusually-formed DS record response could cause
   an assertion failure
 * CVE-2016-9778: An error handling certain queries using the
   nxdomain-redirect feature could cause a REQUIRE assertion failure
   in db.c

Signed-off-by: Noah Meyerhans <frodo@morgul.net>
2017-11-19 17:33:33 +01:00
Stijn Tintel
bd048aabb8 bind: disable libjson support
If libjson-c is detected during bind-libs configure phase, bind-libs
will be built with libjson support. This results in a missing dependency
error during install phase. Solve this by disabling libjson support.
2017-11-19 17:32:03 +01:00
Noah Meyerhans
cc6555e1d9 bind: set sysconfdir to /etc/bind
Signed-off-by: Noah Meyerhans <frodo@morgul.net>
2017-11-19 17:31:47 +01:00
Zoltan Herpai
e6ff63036d
Merge pull request #5081 from wigyori/for-15.05-mxml3
CC: upgrade mxml, update download URL
2017-11-18 21:18:41 +01:00
Zoltan Herpai
5fe8c6140e
Merge pull request #5103 from wigyori/for-15.05-wifidog
CC: wifidog: upgrade to 1.3.0 to fix build
2017-11-18 21:14:31 +01:00
Hirokazu MORIKAWA
e19f2e5c97 bluez: bump to 5.47 fix CVE-2017-1000250
http://www.bluez.org/release-of-bluez-5-47/

Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
2017-11-18 13:05:28 +01:00
Álvaro Fernández Rojas
8b99eb30b7 bluez: update to v5.38
Fixes https://github.com/openwrt/packages/issues/2523
Closes https://github.com/openwrt/packages/pull/2545

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2017-11-18 13:03:31 +01:00
Álvaro Fernández Rojas
506b35e97d bluez: Add support for Raspberry Pi 3
- Adds bcm43xx-3wire variant.
- Resets UART speed after firmware download.
- Prints chip name when firmware isn't found for bcm43xx.
- Increases timeout for bcm43xx.
- Moves bcm43xx firmware to lib.

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2017-11-18 13:03:26 +01:00
Álvaro Fernández Rojas
f325fafa21 bluez: update to v5.37
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2017-11-18 13:03:22 +01:00
Hauke Mehrtens
b4a4c1e4bf bluez: update to version 5.33
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2017-11-18 13:03:18 +01:00
Hauke Mehrtens
f4665c4ae4 bluez: update to version 5.31
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2017-11-18 13:03:11 +01:00
Hauke Mehrtens
c2fb968f02 bluez: add btmgmt tool
The btmgmt tool is needed to activate BL LE support.
Currently it is not installed.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2017-11-18 13:03:06 +01:00
Bruno Randolf
dde94d75d1 bluez: Add bluez-daemon package
Move bluetoothd and related programs and files from bluez-utils into
bluez-daemon package. The main motivation for this is to remove the dependency
to DBus from bluez-utils. The utilities like "hcitool" are useful without it.

Also add kmod-bluetooth dependency to bluez-utils, as the utils don't make much
sense without bluetooth support in the kernel.

Signed-off-by: Bruno Randolf <br1@einfach.org>
2017-11-18 13:03:00 +01:00
Zoltan Herpai
49f5ad1706
Merge pull request #5086 from wigyori/for-15.05-fdm2
CC: mail/fdm: update download URL
2017-11-18 12:58:16 +01:00
Zoltan Herpai
765b738db7
Merge pull request #5099 from wigyori/for-15.05-taskwarrior
CC: utils/taskwarrior: upgrade to 2.4.4
2017-11-18 12:57:57 +01:00
Zoltan Herpai
51a5745910
Merge pull request #5095 from wigyori/for-15.05-perl
CC: upgrade a couple perl packages
2017-11-18 12:57:41 +01:00
Zoltan Herpai
b017b246df
Merge pull request #5101 from wigyori/for-15.05-tor
CC: net/tor: fix build and upgrade to 0.2.9.11
2017-11-18 12:57:25 +01:00
Michael Heimpold
345cb4d509
Merge pull request #5108 from wigyori/for-15.05-php
CC: php: upgrade to 5.6.32

LGTM2, thanks.
2017-11-13 20:18:55 +01:00
Thomas Heil
5df3860f23
Merge pull request #5111 from wigyori/for-15.05-nginx
CC: nginx: upgrade to 1.12.1
2017-11-13 10:28:25 +01:00
Zoltan Herpai
9faf1ea30c
Merge pull request #5080 from wigyori/for-15.05
CC: update download URLs for various packages
2017-11-13 07:24:45 +01:00
Zoltan Herpai
330f86da51
Merge pull request #5078 from wigyori/for-15.05-neon
CC: upgrade libs/neon
2017-11-13 07:22:58 +01:00
Zoltan Herpai
d2a404bf3c
Merge pull request #5094 from wigyori/for-15.05-pianod
CC: fix pianod build
2017-11-13 07:20:47 +01:00
Marko Ratkaj
9b772a50db squid: bump to 3.5.27
Bump Squid to version 3.5.27 and fix broken menuconfig menu.

Signed-off-by: Marko Ratkaj <marko.ratkaj@sartura.hr>
2017-11-12 23:38:23 +01:00
Adam Gensler
3e972a57c6 net/squid: Allow squid to parse mime.conf
Copy mime.conf to temporary directory so squid process can properly read the file. Without it squid cannot access mime.conf and throws a warning during startup.

Signed-off by: Adam Gensler <openwrt@a.gnslr.us>
2017-11-12 23:14:26 +01:00
Zoltan Herpai
bb39456e41
Merge pull request #5098 from wigyori/for-15.05-stunnel
CC: net/stunnel: fix download source and upgrade
2017-11-12 22:50:48 +01:00
Zoltan Herpai
de8dc83895
Merge pull request #5093 from wigyori/for-15.05-libupnpp
CC: upmpdcli/libupnpp upgrade
2017-11-12 21:57:56 +01:00
Zoltan Herpai
4b422023d7
Merge pull request #5112 from wigyori/for-15.05-sshfs
CC: sshfs: upgrade to 2.10
2017-11-12 21:44:52 +01:00
Zoltan HERPAI
942ad75e91 sshfs: upgrade to 2.10
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2017-11-12 20:57:16 +01:00
Thomas Heil
5db5399040 nginx: update lua-nginx to cdd2ae921f67bf396c743406493127be496e57ce
- fixes lua compilation issue

Signed-off-by: Thomas Heil <heil@terminal-consulting.de>
2017-11-12 19:25:00 +01:00
Uwe Arnold
5837dfeb11 nginx: update to 1.12.1
Fixes: CVE-2017-7529

remove PKG_MD5SUM as it is deprecated

Signed-off-by: Uwe Arnold <donvipre@gmail.com>
2017-11-12 19:15:49 +01:00
Val Kulkov
90075956d2 nginx: update to 1.12.0, the latest stable version
This is a straightforward update to the latest stable version.

Signed-off-by: Val Kulkov <val.kulkov@gmail.com>
2017-11-12 19:15:45 +01:00
Val Kulkov
066f648fb1 nginx: update to 1.10.3, add new module options
Update nginx to version 1.10.3.

Add new configuration options to enable the following optional
modules (disabled by default):
   - http_auth_request_module
   - http_v2_module
   - http_realip_module
   - http_secure_link_module

Signed-off-by: Val Kulkov <val.kulkov@gmail.com>
2017-11-12 19:15:39 +01:00
heil
a7ee240daa nginx: bump version to latest stable 1.10.2
Signed-off-by: heil <heil@terminal-consulting.de>
2017-11-12 19:15:33 +01:00
Xotic750
055ac44d0b nginx: Bumped nginx-naxsi to v0.54
Signed-off-by: Graham Fairweather <xotic750@gmail.com>
2017-11-12 19:15:27 +01:00
Xotic750
15c041ac25 nginx: Bumped to v1.10.1
fixes NULL pointer dereference while writing client request body vulnerability (CVE-2016-4450).

Signed-off-by: Graham Fairweather <xotic750@gmail.com>
2017-11-12 19:15:20 +01:00
Dirk Feytons
63037f9ae4 nginx: change start level to 80
Signed-off-by: Dirk Feytons <dirk.feytons@gmail.com>
2017-11-12 19:15:14 +01:00
Dirk Feytons
8fdd1db9d3 nginx: correct f3c7cc6
Signed-off-by: Dirk Feytons <dirk.feytons@gmail.com>
2017-11-12 19:15:07 +01:00
heil
a529b679a3 nginx: correct errors from previous merge
Signed-off-by: heil <heil@terminal-consulting.de>
2017-11-12 19:14:26 +01:00
Dirk Feytons
0912175ec1 nginx: upstep to 1.10.0, add Lua module, footprint optimizations
Signed-off-by: Dirk Feytons <dirk.feytons@gmail.com>
2017-11-12 19:14:14 +01:00
heil
a387117a2a nginx: bump to version 1.9.13
Signed-off-by: heil <heil@terminal-consulting.de>
2017-11-12 18:43:10 +01:00
heil
67a9f67cc4 nginx: add naxsi module
- this brings back naxsi support aka WAF for nginx

Signed-off-by: heil <heil@terminal-consulting.de>
2017-11-12 18:43:05 +01:00
Dirk Feytons
13021781b4 nginx: upstep to 1.9.9
Signed-off-by: Dirk Feytons <dirk.feytons@gmail.com>
2017-11-12 18:42:59 +01:00
Luka Perkov
d44b07c279 nginx: bump to 1.9.6
In this bump as agreed with Thomas we are dropping out all the nginx 3rd party
addons. In case you would like to see your 3rd party addon included please send
a pull request and make sure it works with newest version.

Signed-off-by: Luka Perkov <luka@openwrt.org>
2017-11-12 18:42:54 +01:00
Paul Fertser
3c7b3d57dd nginx: add support for SPNEGO authentication
This adds a module suitable for Kerberos SSO, e.g. for integrating
into Active Directory domains.

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2017-11-12 18:42:49 +01:00
heil
ec14ed490a nginx: fix musl compatibility
- include Patches according to issue #1129
 - refresh Makefile

Signed-off-by: heil <heil@terminal-consulting.de>
2017-11-12 18:42:45 +01:00
Nuno Goncalves
b4b69ca9c5 rtklib: fix repository and bump version (fixes #3212)
Signed-off-by: Nuno Goncalves <nunojpg@gmail.com>
2017-11-12 09:38:00 +01:00
Nuno Goncalves
2930345a7b rtklib: bump version to 2.4.2 p11, close #1624
Signed-off-by: Nuno Goncalves <nunojpg@gmail.com>
2017-11-12 09:38:00 +01:00
Zoltan HERPAI
4273641178 php5: bump to 5.6.32
Fixes since 5.6.26:
 - ton of bugs
 - CVE-2016-9933
 - CVE-2016-9934
 - CVE-2016-9935
 - CVE-2016-10158
 - CVE-2016-10167
 - CVE-2016-10168
 - CVE-2016-10159
 - CVE-2016-10160
 - CVE-2016-10161
 - CVE-2017-7890
 - CVE-2017-9224
 - CVE-2017-9226
 - CVE-2017-9227
 - CVE-2017-9228
 - CVE-2017-9229
 - CVE-2016-1283

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2017-11-10 22:12:34 +01:00
Michael Heimpold
b8a8d398de php5: update to 5.6.26
This fixes the following CVEs:
 - in intl: CVE-2016-7416
 - in mysqlnd: CVE-2016-7412
 - in phar: CVE-2016-7414
 - in spl: CVE-2016-7417
 - in standard: CVS-2016-7411
 - in wddx: CVE-2016-7413, CVE-2016-7418

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2017-11-10 20:31:31 +01:00
Michael Heimpold
0897526541 php5: update to 5.6.25
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2017-11-10 20:31:25 +01:00
Michael Heimpold
48b402eb65 php5: update to 5.6.23
This fixes the following CVEs:
 - in GD: CVE-2015-8874, CVE-2016-5766, CVE-2016-5767
 - in mbstring: CVE-2016-5768
 - in mcrypt: CVE-2016-5769
 - in SPL: CVE-2016-5770, CVE-2016-5771
 - in WDDX: CVE-2016-5772
 - in zip: CVE-2016-5773

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2017-11-10 20:31:20 +01:00
Michael Heimpold
01e3a2fe18 php5: update to 5.6.21
This fixes the following CVEs:
 - in BCMath: CVE-2016-4537, CVE-2016-4538
 - in EXIF: CVE-2016-4542, CVE-2016-4543, CVE-2016-4544
 - in GD: CVE-2016-3074
 - in Intl: CVE-2016-4540, CVE-2016-4541
 - in XML: CVE-2016-4539

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2017-11-10 20:31:15 +01:00
Michael Heimpold
eb71734dba php5: add mod_intl (resolves #2620)
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2017-11-10 20:31:08 +01:00
Michael Heimpold
9b44ecc86f php5: update to 5.6.19
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2017-11-10 20:31:00 +01:00
Michael Heimpold
11ed11780d php5: update to 5.6.18
Note: Upstream tagged this as security release.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2017-11-10 20:30:55 +01:00
Álvaro Fernández Rojas
db651ddd85 xupnpd: update to latest version
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2017-11-10 20:09:30 +01:00
kuoruan
cdf268a8be xupnpd: Update to 2016-05-11
* Change source url to GitHub
* Update to 2016-05-11
* Add LICENSE
* Edit Makefile

Signed-off-by: Hsing-Wang Liao <kuoruan@gmail.com>
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2017-11-10 20:09:21 +01:00
Michael Haas
3df25df858 wifidog: Bump to 1.3.0
* Updates wifidog to latest upstream release.
* Removes patches/100-musl-compat.patch as that's included in 1.3.0

Signed-off-by: Michael Haas <haas@computerlinguist.org>
2017-11-10 18:39:13 +01:00
Jo-Philipp Wich
eb0de8f114 wifidog: fix musl compatibility
- Fix missing `fcntl.h` in `protocol.c`
 - Replace nonstandard `sys/unistd.h` includes with `unistd.h` ones

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2017-11-10 18:39:08 +01:00
Daniel Golle
481a8850ff
Merge pull request #5100 from wigyori/for-15.05-tracertools
CC: tracertools: use new git HEAD
2017-11-10 18:26:32 +01:00
Daniel Golle
0f854ba5fe tracertools: use new git HEAD
gitorious archive became available, so I could import the project
history from there into the new repo on github. Rebasing the changes
made since 2014 on top of the original git tree obviously caused
the commit hashes to differ.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2017-11-10 14:53:26 +01:00
Daniel Golle
852570e41e tracertools: update source, fixes bug on little-endian systems
and improves collectd support

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2017-11-10 14:53:08 +01:00
Daniel Golle
b4b62a17e7 tracertools: update source
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2017-11-10 14:53:02 +01:00
Hauke Mehrtens
e37a60ef3a tor: update to version 0.2.9.11
This fixes CVE-2017-0376

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2017-11-10 14:07:34 +01:00
Hauke Mehrtens
7d5da97506 tor: update to version 0.2.9.10
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2017-11-10 14:07:29 +01:00
Hauke Mehrtens
83dba23e0a tor: update to version 0.2.9.9
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2017-11-10 14:07:22 +01:00
Hauke Mehrtens
b05cb4e4bd tor: log to syslog by default
Make tor log to syslog by default instead of stdout.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2017-11-10 14:07:13 +01:00
Hauke Mehrtens
e6ea3339fe tor: add tor-gencert, tor-resolve and torify
These are some additional applications build by the tor package.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2017-11-10 14:07:04 +01:00
Hauke Mehrtens
5228fe11d8 tor: add geoip6 to tor-geoip
This add the IPv6 addresses to the tor-geoip6 package.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2017-11-10 14:06:56 +01:00
Hauke Mehrtens
4001649ed5 tor: preserve tor keys over sysupgrade
Mark the directories containing the keys for hidden services as
conffiles to preserve them over sysupgrade.

Fixes: #2247

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2017-11-10 14:06:47 +01:00
Hauke Mehrtens
88e4f98f2c tor: update to version 0.2.9.8
In addition update some configure options and use EXTRA_CFLAGS.
Setting RunAsDaemon to 1 will be overwritten by the init script option
"--runasdaemon 0" anyway and we want it in foreground for procd.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2017-11-10 14:06:32 +01:00
Hauke Mehrtens
030c7796ef tor: update to version 0.2.8.11
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2017-11-10 14:05:50 +01:00
Nima Fatemi
aa224c9ae1 Tor: update to 0.2.8.9
- update to 0.2.8.9
    - use sha256 instead of md5 for integrity check
    - add dependency: libcap

signed-off-by: Nima Fatemi <nima@torproject.org>
2017-11-10 14:05:39 +01:00
Felix Fietkau
e02b4a7793 tor: add missing zlib dependency
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2017-11-10 14:05:25 +01:00
Karl Palsson
37b5a5761e tor: correct URL for dist downloads
Original url was 404.
Fixes Github issue #2284
2017-11-10 14:05:16 +01:00
Jeffery To
da2c8cc672 tor: remove tor-fw-helper
The "internal pure-C" tor-fw-helper was removed in 0.2.7.5. This removes
the tor-fw-helper package and references to its dependencies.

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
2017-11-10 14:05:03 +01:00
Luka Perkov
b24f68ead8 taskwarrior: update to 2.4.4
Signed-off-by: Luka Perkov <luka@openwrt.org>
2017-11-10 13:41:46 +01:00
Zoltan HERPAI
0396883a08 stunnel: use archive/ as download source
Anything below 5.43 is archived, update download source
to use paths accordingly.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2017-11-10 13:19:14 +01:00
Felix Fietkau
1c9d3861d8 stunnel: add missing zlib dependency
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2017-11-10 12:12:06 +01:00
Michael Haas
c544adacd4 stunnel: Update from 5.14 to 5.20
* 010_fix_getnameinfo.patch is no longer needed
* 011-cron-without-pthread-fix.patch added, fixes incorrect
  ifdef when building without pthreads

Signed-off-by: Michael Haas <haas@computerlinguist.org>
2017-11-10 12:11:59 +01:00
Zoltan HERPAI
c11b79a127 stm32flash: move download source
code.google is not available anymore, move to use SF.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2017-11-10 12:05:57 +01:00
Zoltan HERPAI
becd747c1a net/sslh: move download source
The old download source was pulled from the net, move to github.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2017-11-10 12:04:52 +01:00
Dirk Neukirchen
92fa2b3895 squid: disable krb5
- fix build error reported by buildbot by disabling krb5
- libcom_err from krb5 is used - configure output:
configure: WARNING: library 'com_err' is required for Heimdal Kerberos
- krb5 has its own libcom_err (see krb5 package) with its own symbols

- linking with wrong libcom_err from libext2fs produces errors during
libgssapi_krb5.so: undefined reference to `error_message@com_err_3_MIT'
libgssapi_krb5.so: undefined reference to `remove_error_table@com_err_3_MIT'
libgssapi_krb5.so: undefined reference to `add_error_table@com_err_3_MIT'
-> remove libext2fs dependency (wasnt working anyway - no PKG_BUILD_DEP)

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
2017-11-09 23:33:36 +01:00
Daniel Golle
c465fdc5f8 squid: build-depend on libext2fs
squid uses libcom_err, a static library provided by libext2fs

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2017-11-09 23:33:33 +01:00
Zoltan HERPAI
86ff9a70f1 snort: update download source
2.9.7.2 was moved into the archive section, update
source accordingly until someone upgrades it.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2017-11-09 22:54:14 +01:00
Noah Meyerhans
6f06eb2e70 bind: update to 9.10.4-p4
Signed-off-by: Noah Meyerhans <frodo@morgul.net>
2017-11-09 21:00:41 +01:00
Noah Meyerhans
374eea23e2 bind: Set PKG_USE_MIPS16:=0 2017-11-09 21:00:25 +01:00
Noah Meyerhans
c2b892b145 bind: Update to 9.9.9-p3 for CVE-2016-2776
Signed-off-by: Noah Meyerhans <frodo@morgul.net>
2017-11-09 21:00:13 +01:00
Zoltan HERPAI
61df1559b8 net/bind: PKG_RELEASE increased
Signed-off-by: DonkZZ <donk@evhr.net>
2017-11-09 20:59:27 +01:00
DonkZZ
41a87a5ce5 net/bind: Update db.root
The contents of the file "db.root" is very old (12 years).
Here's a new version downloaded from ftp://ftp.internic.net/domain/

Signed-off-by: DonkZZ <donk@evhr.net>
2017-11-09 20:58:03 +01:00
DonkZZ
3497b7239d net/bind: Little cleaning in named.init
The variable "config_file" appears twice.

Signed-off-by: DonkZZ donk@evhr.net
2017-11-09 20:57:55 +01:00
Noah Meyerhans
fae7df9e66 bind: Update to 9.9.8-P4 to resolve CVE-2016-1285 and CVE-2016-1286
Signed-off-by: Noah Meyerhans <frodo@morgul.net>
2017-11-09 20:57:38 +01:00
Zoltan HERPAI
f297f6e6c9 perl-dbi: bump to 1.634
As the previous sources were pulled from the net, bump to this
version.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2017-11-09 19:50:29 +01:00
Zoltan HERPAI
3656eb5464 perl-www-mechanize: bump to 1.75
As the previous sources were pulled from the net, bump to this
version.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2017-11-09 19:49:50 +01:00
Zoltan HERPAI
f4fb3ca8be perl-uri: bump to 1.71
As the previous sources were pulled from the net, bump to this
version.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2017-11-09 19:49:06 +01:00
Ted Hess
97c5e0f881 pianod: Remove svn version check from builds
Signed-off-by: Ted Hess <thess@kitschensync.net>
2017-11-09 19:46:42 +01:00
Ted Hess
3d8da2bef4 pianod: Fix build/download order
Signed-off-by: Ted Hess <thess@kitschensync.net>
2017-11-09 19:46:39 +01:00
Ted Hess
9b20566068 pianod: Update to latest version, refresh patches
Signed-off-by: Ted Hess <thess@kitschensync.net>
2017-11-09 19:46:34 +01:00
John Crispin
614e088393 oggfwd: update download source
upstream changed from git:// to https://

Signed-off-by: John Crispin <john@phrozen.org>
2017-11-09 02:06:48 +01:00
Zoltan HERPAI
e4a06b3679 netperf: move source to use github
With netperf.org's FTP gone, and the main site showing the source
has migrated to github, let's use it.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2017-11-09 01:55:57 +01:00
Jo-Philipp Wich
f5294296bf lua-sha2: switch to Github repository
The original Google Code repository is not available anymore, use the
equivalent Github repository instead.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-11-09 00:28:41 +01:00
Ted Hess
b839a8a398 upmpdcli/libupnpp: Update to latest versions, refresh patch
upmpdcli: Version 1.1.3
libupnpp: Version 0.14

Signed-off-by: Ted Hess <thess@kitschensync.net>
2017-11-08 18:57:01 +01:00
Petko Bordjukov
96cfc0b597 upmpdcli: Bump version to 0.11.0
upmpdcli 0.11 mainly improves on the Songcast support, in
complement with the changes in sc2mpd. Especially, it now
includes an utility (scctl) and web interface to set up
multi-room Songcast.

Signed-off-by: Petko Bordjukov <bordjukov@gmail.com>
2017-11-08 18:56:26 +01:00
Petko Bordjukov
93bc6b4141 libupnpp: Bump version to 0.11.0
This new version introduces improvements to the OpenHome support.

Signed-off-by: Petko Bordjukov <bordjukov@gmail.com>
2017-11-08 18:56:23 +01:00
Zoltan HERPAI
2a1eddb5ae libuv: move download URL to https
When using IPv6 and http://, the site redirects to https://nodejs.org
which doesn't have the dist sources. IPv4 does not have this problem.
Use https directly.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2017-11-08 18:02:59 +01:00
Othmar Truniger
8dad744f51 libesmtp: add ssl support, new upstream URL
Signed-off-by: Othmar Truniger <github@truniger.ch>
2017-11-08 09:11:04 +01:00
Alexander Ryzhov
b26a06f139 libdnet: fix source URL
Signed-off-by: Alexander Ryzhov <openwrt@ryzhov-al.ru>
2017-11-08 01:54:15 +01:00
Peter Wagner
10239ddb25 irssi: update to 0.8.21
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2017-11-08 00:27:27 +01:00
Peter Wagner
d4fec80529 irssi: update to 0.8.20
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2017-11-08 00:27:22 +01:00
Thomas Heil
7b9e2e0208
Merge pull request #5079 from wigyori/for-15.05-crtmpd
CC: multimedia/crtmpserver: fix build
2017-11-08 00:10:17 +01:00
Zoltan HERPAI
fe0f06b627 fdm: update download URL
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2017-11-07 23:27:46 +01:00
Zoltan HERPAI
72f1aa450c mxml: update download URL
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2017-11-07 23:10:38 +01:00
ejurgensen
cb070e6182 mxml: Update to version 2.10
Signed-off-by: Espen Jürgensen <espenjurgensen+openwrt@gmail.com>
2017-11-07 23:10:24 +01:00
ejurgensen
639241d79d mxml: update to 2.9
Signed-off-by: Espen Jürgensen <espenjurgensen+openwrt@gmail.com>
2017-11-07 23:10:22 +01:00
Zoltan HERPAI
b9260db2fe neon: upgrade to 0.30.2
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2017-11-07 20:28:33 +01:00
Felix Fietkau
adf193882d neon: add missing dependency on zlib
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2017-11-07 20:27:06 +01:00
Michal Hrušecký
75db8c3422 crtmpserver: Disable apple streaming to fix build
Apple streaming is quite broken so disabling it to make package building again.

Signed-off-by: Michal Hrušecký <Michal.Hrusecky@nic.cz>
2017-11-07 18:08:56 +01:00
Jo-Philipp Wich
fcf8f36e9b crtmpserver: fix multiple issues
- Switch download to the Github clone of crtmpserver
 - Rebase patches against latest version
 - Pregenerate version.h file
 - Disable applestreamingclient as it is broken

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2017-11-07 18:08:11 +01:00
Zoltan HERPAI
d23ac5b749 apache: fix download URL
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2017-11-07 16:50:25 +01:00
Zoltan HERPAI
861881c635 apr: fix download URL
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2017-11-07 16:50:16 +01:00
Zoltan HERPAI
c73482d074 postgresql: fix download URL
Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
2017-11-07 16:49:54 +01:00
Ted Hess
f15b0ace72
Merge pull request #5042 from kishangondaliya/libsodium
[For-15.05] libsodium: Fix download url
2017-11-03 07:11:36 -04:00
Kishan Gondaliya
356436f9bd libsodium: Fix download url
Signed-off-by: Kishan Gondaliya <kishanpgondaliya@gmail.com>
2017-10-31 13:46:19 +05:30
champtar
c52b6f8a0e Merge pull request #3562 from MikePetullo/for-15.05-krb5
krb5: install include properly and leave libcom_err* in place
2017-07-15 16:57:57 -07:00
Hannu Nyman
b5f471857b Merge pull request #4127 from gstrauss/lighttpd-for-15.05
Lighttpd for 15.05
2017-04-08 10:30:35 +03:00
Glenn Strauss
d1433a582c lighttpd: add new modules, upd URLs, add restart()
(with feedback from @hnyman and patch additions from @MikePetullo)

Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com>
2017-03-22 18:09:44 -04:00
Rafał Miłecki
e71771676c lighttpd: fix regression in local-redir used with url.rewrite-once
This fixes upstream regression introduced in 1.4.40. It was reported &
debugged in https://redmine.lighttpd.net/issues/2793
This fix is queued for 1.4.46 in the personal/gstrauss/master upstream
branch.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
2017-03-08 12:34:35 -05:00
Rafał Miłecki
bec3da9759 lighttpd: update to 1.4.45
Update to 1.4.42 introduced a problem with starting lighttpd as
OpenWrt/LEDE service. It was stopping whole init process at sth like:
  783 root      1124 S    {S50lighttpd} /bin/sh /etc/rc.common /etc/rc.d/S50lighttpd boot
  799 root      1164 S    /usr/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf

It was hanging until getting random pool:
[  176.340007] random: nonblocking pool is initialized
and then immediately the rest of init process followed:
[  176.423475] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[  176.430754] jffs2_build_filesystem(): unlocking the mtd device... done.
[  176.437615] jffs2_build_filesystem(): erasing all blocks after the end marker... done.

This was fixed in 1.4.44, but bump directly to 1.4.45 while at it.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
2017-03-08 12:34:35 -05:00
W. Michael Petullo
1792f0f6b9 lighttpd: add option to build mod_authn_file.so
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2017-03-08 12:34:35 -05:00
Hannu Nyman
9dfbb0bce3 Merge pull request #4061 from EricLuehrsen/trust_anchor_15_05
[for-15.05] unbound: DNSSEC trust anchor roll for 2017
2017-02-26 19:47:20 +02:00
Eric Luehrsen
b166e66556 unbound: DNSSEC trust anchor roll for 2017
Carry both the 2010 and 2017 DS records until 2018.
Unbound complies with RFC5011 but fresh installs
need these anchors to get started.
https://www.icann.org/resources/pages/ksk-rollover
https://www.iana.org/domains/root

Signed-off-by: Eric Luehrsen <ericluehrsen@hotmail.com>
2017-02-22 22:25:09 -05:00
Nikos Mavrogiannopoulos
592f849b5e ocserv: updated to 0.11.7
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2017-02-12 10:31:55 +01:00
Nikos Mavrogiannopoulos
2887c2c10f ocserv: explicitly disable lz4 building
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2017-02-12 10:30:26 +01:00
Hannu Nyman
be2609dae1 Merge pull request #3973 from chris5560/for-15.05
[for-15.05] ddns-scripts: New update url for service duiadns.net
2017-02-09 22:56:12 +02:00
Christian Schoenebeck
befb3e65c1 [for-15.05] ddns-scripts: New update url for service duiadns.net
- new update url for service "duiadns.net" #3969
- updated public_suffix_list.dat

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2017-02-09 21:49:05 +01:00
Ted Hess
3cb2cd7b5a Merge pull request #3880 from chris5560/for-15.05
[for-15.05] ddns-scripts: backport of 2.7.6-12
2017-01-20 14:31:45 -05:00
Christian Schoenebeck
1fd8ad1f6f [for-15.05] ddns-scripts: backport of 2.7.6-12
- fix detecting local ip from ip command #3834 and https://forum.lede-project.org/t/bugs-in-ddns-scripts/1000
- updated public_suffix_list.dat
- minor fixes to services files

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2017-01-18 21:54:55 +01:00
Hannu Nyman
7f2618d2d5 Merge pull request #3829 from chris5560/for-15.05
[For 15.05] ddns-scripts: Backport of current version 2.7.6-11
2017-01-12 22:34:36 +02:00
Christian Schoenebeck
76b15db6c3 [for-15.05] ddns-scripts: backport of 2.7.6-11
fix problem with detecting ip from nslookup

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2017-01-12 19:26:33 +01:00
Christian Schoenebeck
728f37ad15 [for-15.05] ddns-scripts: backport of 2.7.6-10
Backport of current version 2.7.6-10
- more services
- more functionality
- be prepared for next versions

compiled ipk-packages available at
https://github.com/chris5560/OpenWrt-Backports/tree/master/for-CC15.05.01/ddns-scripts_2.7.6-10

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2017-01-11 17:05:05 +01:00
Stijn Tintel
61fad8538b Merge pull request #3323 from SvenRoederer/feature/add_snmp-mibs_for-15.05
net-snmp: [backport-15.05] add package snmp-mibs
2017-01-06 02:59:29 +01:00
Sven Roederer
259c96a1bc net-snmp: add package snmp-mibs
this installs the default MIBS-files under /usr/share/snmp/mibs .
Also aligns the defines to the same sorting-scheme.

backport of daeb5fd506

Signed-off-by: Sven Roederer <devel-sven@geroedel.de>
2017-01-05 22:34:24 +01:00
Dirk Brenken
1a64129034 adblock: update to 1.5.4
Apply adblock updates 1.5.3-1.5.4

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>

Original commit messages:

adblock: update 1.5.3
* make wget check more flexible,
  fix for broken wget package installations

adblock: bugfix 1.5.4
* CC/uclient-fetch compatibility fix
2016-11-27 20:31:08 +02:00
Ted Hess
277cefd168 Merge pull request #3576 from mchsk/for-15.05
libaudiofile: updated source url (v0.3.6)
2016-11-27 10:23:22 -05:00
Marek Sedlak
271e054ef9 libbaudiofile: updated source url to gnome repos (v0.3.6)
Signed-off-by: Marek Sedlak bodka.zavinac@gmail.com
2016-11-27 13:18:07 +01:00
Ted Hess
5515c732ce Merge pull request #3560 from julbrygd/for-15.05
libsodium and dnscrypt-proxy url change for 15.05
2016-11-25 08:50:21 -05:00
W. Michael Petullo
75333c03bb krb5: install include properly and leave libcom_err* in place
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2016-11-24 15:07:08 -05:00
Stephan Conrad
7e15eb3cff dnscrypt-proxy: apended /old to download url for 15.05 branch
Signed-off-by: Stephan Conrad <stephan@conrad.pics>
2016-11-24 13:37:29 +01:00
Stephan Conrad
44d8235d54 libsodium: apended /old to download url for 15.05 branch
Signed-off-by: Stephan Conrad <stephan@conrad.pics>
2016-11-24 13:37:08 +01:00
Hannu Nyman
88ee2a03ef Merge pull request #3524 from luizluca/cc/ruby-update
CC15.05 ruby: bump to 2.2.6
2016-11-21 16:39:33 +02:00
Hannu Nyman
5fff381fe7 Merge pull request #3489 from commodo/for-15.05-backport-python-2.7.12
[for 15.05] python: backport version 2.7.12 to CC
2016-11-21 16:27:23 +02:00
Alexandru Ardelean
6a8f1965a9 python: backport version 2.7.12 to CC
Fixes CVE-2016-5699
  https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2016-5699

Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
2016-11-21 15:14:11 +02:00
Luiz Angelo Daros de Luca
9bf001d2c9 ruby: bump to 2.2.6
This release includes new SSL certificates for RubyGems. And, this also
includes about 80 bug fixes after the previous release. See the
http://svn.ruby-lang.org/repos/ruby/tags/v2_2_6/ChangeLog for details.

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
2016-11-18 03:33:54 -02:00
Nikos Mavrogiannopoulos
022d8a4dc2 ocserv: updated to 0.11.6
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2016-11-16 19:25:03 +01:00
Robbie Cao
8edde98c91 libnfc: switch git repository to github
Signed-off-by: Robbie Cao <robbie.cao@gmail.com>
2016-11-12 02:52:22 -06:00
heil
33380cf7e2 haproxy: revert update commits
- Revert "package haproxy: fix typo for buildvariant nossl"
 - Revert "haproxy: bump to version 1.6.9 mainline and pending patches"

Signed-off-by: heil <heil@terminal-consulting.de>
2016-11-10 18:47:56 +01:00
heil
3e74e44c00 package haproxy: fix typo for buildvariant nossl
Signed-off-by: heil <heil@terminal-consulting.de>
2016-11-10 00:05:03 +01:00
heil
bec6d8fc8d haproxy: bump to version 1.6.9 mainline and pending patches
Signed-off-by: heil <heil@terminal-consulting.de>
2016-11-09 23:45:38 +01:00
Luka Perkov
b3139cf56c Revert "libwebsockets: sync with master version"
This reverts commit e245e2b824.

Signed-off-by: Luka Perkov <luka@openwrt.org>
2016-11-08 13:34:59 +01:00
Hannu Nyman
d0763a235f Merge pull request #3173 from MikePetullo/for-15.05-bogofilter
bogofilter: postfix script now reads bogofilter_dir from bogofilter conf
2016-11-06 13:43:29 +02:00
Luka Perkov
e245e2b824 libwebsockets: sync with master version
Signed-off-by: Luka Perkov <luka@openwrt.org>
2016-11-02 14:01:13 +01:00
Hannu Nyman
e3e9f341e6 Merge pull request #3411 from MikePetullo/for-15.05
lighttpd: update to 1.4.42
2016-10-29 11:29:01 +03:00
W. Michael Petullo
c6415452f5 lighttpd: update to 1.4.42
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2016-10-29 04:24:37 -04:00
Dirk Brenken
ba76867c70 adblock: update 1.5.2
* turris omnia compatibility fix

Signed-off-by: Dirk Brenken <dev@brenken.org>
(cherry picked from commit 65bcae0986)
2016-10-25 12:43:35 +03:00
Dirk Brenken
d346839750 adblock: update to 1.5.1
Apply adblock updates 1.4.10-1.5.1

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>

Original commit messages:

adblock: update 1.4.10
- add 'enabled' check to iface hotplug event handler
- decrease startup priority from 99 to 90
- fix tab indentation in config

adblock: update 1.5.0
* add new 'envchk'function to check adblock environment only,
  i.e. check volatile firewall rules or uhttpd instances
  without list updates
* add new optional parm 'adb_loglevel',
  set it to "0" to mute output (print only errors)
* set hotplug priority to '90' as well (missed in the last commit)
* documentation update
* cosmetics

adblock: bugfix 1.5.1
* fix uhttpd detection in tcp 4+6 configurations
2016-10-13 15:59:29 +03:00
Ted Hess
9de3069a94 ffmpeg: Update to 2.6.9, Add patch to fix AAC decoder performance and memory usage (2.7 backport)
Signed-off-by: Ted Hess <thess@kitschensync.net>
2016-09-30 14:48:48 -04:00
Nikos Mavrogiannopoulos
adfaa8e0af ocserv: updated to 0.11.5
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2016-09-27 23:47:35 +02:00
Dirk Brenken
71aedf440b adblock: update to 1.4.9
Apply adblock updates 1.4.8-1.4.9

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>

Original commit messages:

adblock: update 1.4.8
* enhance the new query function:
   change the regex to find only the relevant blocklist entries
   add a recursive tld search to quickly identify domains for
whitelisting (see documentation)
     better result preparation
* add securemecca as new blocklist source
* documentation update

adblock: update 1.4.9
* refine query function (see online doc)
2016-09-19 15:59:33 +03:00
W. Michael Petullo
00685c2439 bogofilter: postfix script now reads bogofilter_dir from bogofilter conf
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2016-09-14 20:40:54 -04:00
Hannu Nyman
70594d1749 Merge pull request #3166 from MikePetullo/for-15.05-lighttpd
lighttpd: update to 1.4.41
2016-09-14 16:08:00 +03:00
Hannu Nyman
3e8130852f Merge pull request #3164 from MikePetullo/for-15.05-luasec
luasec: update to 0.6
2016-09-14 16:06:21 +03:00
Hannu Nyman
72140fc155 Merge pull request #3165 from MikePetullo/for-15.05-openldap
openldap: update to 2.4.44
2016-09-14 15:56:45 +03:00
W. Michael Petullo
a23e3d0c3a lighttpd: update to 1.4.41
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2016-09-13 23:19:58 -04:00
W. Michael Petullo
25ef6b37f2 openldap: update to 2.4.44
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2016-09-13 23:19:06 -04:00
W. Michael Petullo
a9222671eb luasec: update to 0.6
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2016-09-13 23:18:23 -04:00
Denis Osvald
d8d457e52c libuv: bump version to 1.9.1
Signed-off-by: Denis Osvald <denis.osvald@sartura.hr>
2016-09-09 13:12:51 +02:00
Nikos Mavrogiannopoulos
2bdeefb514 gnutls: updated to 3.4.15
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2016-09-08 18:28:14 +02:00
Ted Hess
c5dc486560 libvorbisidec: Use HTTPS for Tremor repo
Signed-off-by: Ted Hess <thess@kitschensync.net>
2016-09-08 08:38:01 -04:00
Karl Palsson
0e43c9c994 mosquitto: fix compatibily with libwebsockets
Only applies to the 15.05 branch!
Apply a patch to correct usage with the (rather old) version of
libwebsockets in CC.  Has been submitted upstream.

Fixes github issue #3127

Signed-off-by: Karl Palsson <karlp@etactica.com>
2016-09-05 11:38:28 +00:00
Dirk Brenken
124ac892c6 adblock: update 1.4.7
Apply adblock update 1.4.5-1.4.7

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>

Original commit messages:

adblock: update 1.4.5
* change the default hphosts list source to ad and tracking servers
only, the overall list includes to many false positives
* new optional config parm 'adb_hotplugif' to restrict hotplug support
to a certain wan interface or to disable it at all
* documentation update
* cosmetics

adblock: update 1.4.6
* added a 'window.close()' to adblock landing page to automatically
close any pop-ups that might get loaded with a blocked ad
* simplified dnsmasq check in ap mode

adblock: update 1.4.7
* add a query function to search the active blocklists for a specific
domain (/etc/init.d/adblock query <DOMAIN>)
* fix bug in ap mode/uhttpd port detection
* check general firewall and dnsmasq package dependencies and remove
redundant checks in ap mode
2016-08-28 17:34:30 +03:00
Karl Palsson
190d5698c6 mosquitto: Bump to 1.4.10
Full changelog: http://mosquitto.org/2016/08/version-1-4-10-released/

Relevant changes:
libwebsockets 2.0 compatibility
openssl 1.1.0 compatibility

Signed-off-by: Karl Palsson <karlp@etactica.com>
2016-08-25 16:13:08 +00:00
Hannu Nyman
bf6eca1a5a Merge pull request #3088 from mrpace2/for-15.05
luai2c: moved upstream project to github
2016-08-23 15:00:42 +03:00
Frank Edelhäuser
f5fe26ec21 moved upstream project to github
Signed-off-by: Frank Edelhaeuser <mrpace2@gmail.com>
2016-08-23 13:37:25 +02:00
Dirk Brenken
7ea2bf5899 adblock: update 1.4.4
Update for-15.05 adblock from 1.2.1 to 1.4.4

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>

Original commit messages of 1.2.5-1.4.4 commits:

adblock: update 1.2.5
* restructured sources
* fix logical glitches in config handling
* many corner case fixes & cosmetics
* show runtime errors in LuCI (in lastrun section)

adbock: update 1.2.6
* small addition in case of a failed list download

adblock: update 1.2.7
* provide adblock statistics as a separate function
  (/etc/init.d/adblock stats)

adblock: update 1.2.8
* fw rule changes:
	force_dns now supports multiple lan devices
	disable needless force_dns- & forward/output-rules in 'ap mode'
	check return codes during adblock chain creation
* simplified the test for a running firewall
* documentation update

adblock: release 1.3.0
* revised hotplug script
* remove wget package dependency
* support uclient-fetch or wget with ssl support
* documentation update

adblock: update 1.3.1
* fix uclient-fetch detection
* cosmetics

adblock: update 1.3.2
* only a few more fixes

adblock: update 1.3.3
* enable automatic restore on empty source downloads

adblock: release 1.4.0
* rework/speed up overall sort
* simplified dns error handling

adblock: update 1.4.1
* fix two possible overflows in adblock statistics

adblock: update 1.4.2
* ad broad blocklist source 'hphosts' https://hosts-file.net

adblock: update 1.4.3
* fix race condition in restricted mode
* cosmetics

adblock: update 1.4.4
* filter non-printable characters/binary data in input stream
* fix IPv4 adblock statistics in CC
2016-08-14 19:23:04 +03:00
champtar
01c323c293 Merge pull request #3051 from bernhardschmidt/fix-ldns
[for-15.05] ldns: Avoid perl bug for manpages.
2016-08-13 00:17:59 +02:00
Konstantin Shalygin
47d41c531c ldns: Avoid perl bug for manpages.
Fix #2663

Signed-off-by: Konstantin Shalygin <k0ste@cn.ru>
[refresh patch]
Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>

(cherry picked from commit a4a9038f58)
2016-08-12 23:50:45 +02:00
Nikos Mavrogiannopoulos
da01e7e635 ocserv: updated to 0.11.4
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2016-08-06 13:17:19 +02:00
Yousong Zhou
992130a11f Merge pull request #2951 from MikePetullo/for-15.05
dmapd: update to 0.0.73
2016-07-10 09:14:07 +08:00
W. Michael Petullo
ff5a1e4a83 dmapd: update to 0.0.73
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2016-07-09 16:11:53 -04:00
Nikos Mavrogiannopoulos
f9e2ef0543 gnutls: updated to 3.4.14
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2016-07-06 10:46:04 +02:00
champtar
a315fd65a8 Merge pull request #2914 from br101/for-15.05
horst: Use version 5.0
2016-07-03 23:45:21 +02:00
W. Michael Petullo
df9eb01b4d nfs-kernel-server: fix segfault on x86_64/uClibc
Signed-off-by: W. Michael Petullo <mike@flyn.org>
[refresh patch]
Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
2016-07-02 23:25:00 +00:00
Bruno Randolf
f59dbcfd7a horst: Use version 5.0
Signed-off-by: Bruno Randolf <br1@einfach.org>
2016-07-01 10:40:58 +01:00
heil
d33b2c7ef9 haproxy: bump to version 1.5.18 and pending patches
Signed-off-by: heil <heil@terminal-consulting.de>
2016-06-21 01:09:09 +02:00
heil
bb1a9fb1fc pcre: bump to version 8.39
Signed-off-by: heil <heil@terminal-consulting.de>
2016-06-21 00:57:25 +02:00
Nikos Mavrogiannopoulos
73892f2f18 openconnect: updated license
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2016-06-16 22:36:03 +02:00
Nikos Mavrogiannopoulos
3b3df642e4 ocserv: updated license
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2016-06-16 22:35:19 +02:00
Nikos Mavrogiannopoulos
087fa999f1 libtasn1: corrected library license
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2016-06-16 22:34:54 +02:00
Nikos Mavrogiannopoulos
d5d893c31f ocserv: updated to 0.11.3
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2016-06-16 22:26:13 +02:00
Dirk Brenken
d89f201d66 adblock: update 1.2.1
* small optimizations & cosmetics

adblock: release 1.2.0

* rework download/backup/restore handling
* rework firewall handling
* refine whitelist parsing
* changed default null-ip to 198.18.0.1 to prevent conflicts with bcp38
* spread traffic from ad servers (port 80/443) on two uhttpd instances,
this fixes timeouts on sites with many ssl ad server connections, i.e.
youtube.com
* provide statistics & last runtime for LuCI interface
* documentation update

Signed-off-by: Dirk Brenken <dev@brenken.org>
(cherry picked from commit 8ab3d8bdc2)
(cherry picked from commit 672dd10b10)
2016-06-16 11:18:10 +03:00
champtar
73776792f7 Merge pull request #2782 from feckert/licenses-for-15.05
libtasn1: add license tag
2016-06-13 23:31:17 +02:00
Nikos Mavrogiannopoulos
3fe7b7b6e4 gnutls: updated to 3.4.13
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2016-06-12 15:36:43 +02:00
Karl Palsson
f43f01ea15 net/mosquitto: update maintainer email address
Signed-off-by: Karl Palsson <karlp@remake.is>
Signed-off-by: Karl Palsson <karlp@etactica.com>
2016-06-06 10:52:41 +00:00
Karl Palsson
bf92a7b74d net/mosquitto: bump to v1.4.9
Bugfix release.  Full changelog available at
http://mosquitto.org/2016/06/version-1-4-9-released/

Signed-off-by: Karl Palsson <karlp@etactica.com>
2016-06-06 10:51:10 +00:00
Dirk Brenken
2f637babe8 adblock: update 1.1.17
* change winspy url again
* various cosmetics left out in former release
Signed-off-by: Dirk Brenken <dev@brenken.org>
(cherry picked from commit d0eceb6b25)

adblock: update 1.1.16, release 2
* workaround for LuCI search path issue
Signed-off-by: Dirk Brenken <dev@brenken.org>
(cherry picked from commit 26fa1c5df0)

adblock: update 1.1.16
* new config option 'adb_restricted' to disable updates of the adblock
config during runtime (no flash writes, disabled by default)
* new update function, to apply latest configuration changes if needed
(/etc/init.d/adblock cfgup)
* fix dns redirect rule
* various optimizations
Signed-off-by: Dirk Brenken <dev@brenken.org>
(cherry picked from commit 41b05a5532)
2016-06-04 10:38:53 +03:00
Dirk Brenken
6b5a320bed adblock: update 1.1.15
* toggle to quickly switch adblocking 'on' or 'off' (/etc/init.d/adblock
toggle)
* new config option 'fetchttl' to set download timeouts (default: 5
seconds)
* better config check, distinct between major/minor changes
* documentation update

Signed-off-by: Dirk Brenken <dev@brenken.org>
(cherry picked from commit 4f3f239ff2)
2016-06-03 10:14:48 +03:00
Florian Eckert
7e8a6ad18c libtasn1: add license tag
show the license for this package in opkg

Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com>
2016-05-31 14:49:11 +02:00
Dirk Brenken
72d2cfe064 adblock: update 1.1.12
* change wget binary naming
* change winspy source url
* documentation update

Signed-off-by: Dirk Brenken <dev@brenken.org>
(cherry picked from commit bad84563dc)
2016-05-25 22:50:41 +03:00
Dirk Brenken
ffae0de40c adblock: update 1.1.11
* fix changed winspy source url in default config
* fix adblock counters in config
* cosmetics

Signed-off-by: Dirk Brenken <dev@brenken.org>
(cherry picked from commit 54b0115d25)
2016-05-23 17:40:39 +03:00
Dirk Brenken
dd2c7136d3 adblock: update 1.1.10
* automatic AP mode detection (change nullip address accordingly)
* (de-)compress backups on the fly
* remove hardcoded path for logger
* documentation update
* change maintainer email address
* cosmetics

Signed-off-by: Dirk Brenken <dev@brenken.org>
(cherry picked from commit 57853a6c14)
2016-05-23 17:40:15 +03:00
Nikos Mavrogiannopoulos
f178723927 gnutls: updated to 3.4.12
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2016-05-22 17:49:28 +02:00
Nikos Mavrogiannopoulos
3164b99f2f openconnect: use proto_add_host_dependency
This ensures that a direct route to the connected host is added
by netifd.

Resolves #2548

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2016-05-22 17:45:00 +02:00
Jo-Philipp Wich
d45a8bb443 openconnect: avoid possible implicit dependency on liblz4
If the liblz4 library exists within the build environment, the openconnect
configure will pick it up and start depending on it, leading to the following
build error:

    Package openconnect is missing dependencies for the following libraries:
    liblz4.so.1

Disable LZ4 support in configure in order to avoid this implicit,
nondeterministic dependency.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2016-05-22 17:44:51 +02:00
Hannu Nyman
2c7e41efeb fwknop: bump PKG_RELEASE
Bump PKG_RELEASE after #2670

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-05-12 10:46:02 +03:00
Dirk Brenken
da4115d276 adblock: update 1.1.2
* remove hardcoded paths for system tools like iptables, uci & fetch
(wget)
* support openwrt & lede spin-off
* cosmetics & cleanups

Signed-off-by: Dirk Brenken <openwrt@brenken.org>

(cherry picked from commit 7b4ad33255)
2016-05-10 16:40:27 +03:00
Dirk Brenken
0f34254995 adblock: update to 1.1.1
* discard uncommitted uci changes in case of processing errors
* init script (stop action) now removes all 'adb_src_count' &
'adb_src_timestamp' entries in config
* updated documentation

Signed-off-by: Dirk Brenken <openwrt@brenken.org>

(cherry picked from commit 262f4551e2)
2016-05-10 16:40:16 +03:00
Dirk Brenken
bb5f4f6d29 adblock: release 1.1.0
* support more router modes, as long as the firewall and the DNS server
are enabled
* new source sites can be added & changed via awk ruleset in uci config
* source domain count, last update time & overall count will be stored
in uci config
* added 3 new source sites:
   ransomware tracker
   rolist/easylist
   winspy
* switch to minimal inline base64 encoded 1×1 GIF for pixel server
(separate png image no longer needed)
* simplified uci parser
* source download & domain sort optimization
* add whitelist parser with wildcard support
* reduced code size & various cleanups
* updated documentation

Signed-off-by: Dirk Brenken <openwrt@brenken.org>
(cherry picked from commit b9aeb82c95)
2016-05-10 16:40:08 +03:00
Hannu Nyman
9aa63712b3 Merge pull request #2670 from oneru/for-15.05
Fwknop: Fix setting getting overwritten
2016-05-08 21:41:04 +03:00
Jonathan Bennett
a105a0ce53 Fwknop: Fix setting getting overwritten
A typo in the init file was causing a certain setting to be overwritten on every daemon start.
Signed-off-by: Jonathan Bennett <JBennett@incomsystems.biz>
2016-05-08 13:35:46 -05:00
champtar
21fe2da3a6 Merge pull request #2509 from wimanwifi/for-15.05-coova-fix-backport
coova-chilli: fix stat failed error when compile without kmod
2016-05-03 21:11:23 +02:00
Nikos Mavrogiannopoulos
632c7899f7 gnutls: updated to 3.4.11
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2016-04-25 23:15:21 +02:00
Nikos Mavrogiannopoulos
869a5943c0 libtasn1: updated to version 4.8
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2016-04-25 23:15:21 +02:00
champtar
c3ed91a734 Merge pull request #2617 from SvenRoederer/fix/tmux_for-15.05
fix download-url for tmux
2016-04-21 16:52:17 +02:00
Sven Roederer
bc9a027a9e tmux: fix download-url
tmux is not avail on Sourceforge anymore, so change to Github as in trunk

Signed-off-by: Sven Roederer <devel-sven@geroedel.de>
2016-04-21 11:27:03 +02:00
champtar
beb295fad0 Merge pull request #2380 from chris5560/for-15.05
[for-15.05] privoxy: bump to 3.0.24 incl. fix for CVE-2016-1982, CVE-2016-1983
2016-04-10 15:06:33 +02:00
Dirk Brenken
4044c55847 adblock: update 1.0.3
* remove syntax glitch & cosmetics
* probably the last 1.0.x release

Signed-off-by: Dirk Brenken <openwrt@brenken.org>
(cherry picked from commit 40a9c0a92d)
2016-04-07 23:23:29 +03:00
Dirk Brenken
289549a6e1 adblock: update 1.0.2
* fix corner case during shallalist backup/restore

Signed-off-by: Dirk Brenken <openwrt@brenken.org>
(cherry picked from commit e32bbffc7b)
2016-04-04 00:45:59 +03:00
Dirk Brenken
3587540ea5 adblock: update 1.0.1
* optimize list sort
* simplified block list removal

Signed-off-by: Dirk Brenken <openwrt@brenken.org>
(cherry picked from commit a066df55a5)
2016-04-04 00:44:01 +03:00
heil
19c5dcf528 haproxy: bump to version 1.5.16
[RELEASE] Released version 1.5.16

  Released version 1.5.16 with the following main changes :
    - BUG/BUILD: replace haproxy-systemd-wrapper with $(EXTRA) in install-bin.
    - BUG/MINOR: acl: don't use record layer in req_ssl_ver
    - BUG: http: do not abort keep-alive connections on server timeout
    - BUG/MEDIUM: http: switch the request channel to no-delay once done.
    - MINOR: config: extend the default max hostname length to 64 and beyond
    - BUG/MEDIUM: http: don't enable auto-close on the response side
    - BUG/MEDIUM: stream: fix half-closed timeout handling
    - BUG/MEDIUM: cli: changing compression rate-limiting must require admin level
    - BUILD: freebsd: double declaration
    - BUG/MEDIUM: sample: urlp can't match an empty value
    - BUG/MEDIUM: peers: table entries learned from a remote are pushed to others after a random delay.
    - BUG/MEDIUM: peers: old stick table updates could be repushed.
    - CLEANUP: haproxy: using _GNU_SOURCE instead of __USE_GNU macro.
    - BUG/MINOR: chunk: make chunk_dup() always check and set dst->size
    - MINOR: chunks: ensure that chunk_strcpy() adds a trailing zero
    - MINOR: chunks: add chunk_strcat() and chunk_newstr()
    - MINOR: chunk: make chunk_initstr() take a const string
    - BUG/MEDIUM: config: Adding validation to stick-table expire value.
    - BUG/MEDIUM: sample: http_date() doesn't provide the right day of the week
    - BUG/MEDIUM: channel: fix miscalculation of available buffer space.
    - BUG/MINOR: stream: don't force retries if the server is DOWN
    - MINOR: unix: don't mention free ports on EAGAIN
    - BUG/CLEANUP: CLI: report the proper field states in "show sess"
    - MINOR: stats: send content-length with the redirect to allow keep-alive
    - BUG: stream_interface: Reuse connection even if the output channel is empty
    - DOC: remove old tunnel mode assumptions
    - DOC: add server name at rate-limit sessions example
    - BUG/MEDIUM: ssl: fix off-by-one in ALPN list allocation
    - BUG/MEDIUM: ssl: fix off-by-one in NPN list allocation
    - BUG/MEDIUM: stats: stats bind-process doesn't propagate the process mask correctly
    - BUG/MINOR: http: Be sure to process all the data received from a server
    - BUG/MEDIUM: chunks: always reject negative-length chunks
    - BUG/MINOR: systemd: ensure we don't miss signals
    - BUG/MINOR: systemd: report the correct signal in debug message output
    - BUG/MINOR: systemd: propagate the correct signal to haproxy
    - MINOR: systemd: ensure a reload doesn't mask a stop
    - CLEANUP: stats: Avoid computation with uninitialized bits.
    - CLEANUP: pattern: Ignore unknown samples in pat_match_ip().
    - CLEANUP: map: Avoid memory leak in out-of-memory condition.
    - BUG/MINOR: tcpcheck: conf parsing error when no port configured on server and last rule is a CONNECT with no port
    - BUG/MINOR: tcpcheck: fix incorrect list usage resulting in failure to load certain configs
    - MINOR: cfgparse: warn when uid parameter is not a number
    - MINOR: cfgparse: warn when gid parameter is not a number
    - BUG/MINOR: standard: Avoid free of non-allocated pointer
    - BUG/MINOR: pattern: Avoid memory leak on out-of-memory condition
    - CLEANUP: http: fix a build warning introduced by a recent fix
    - BUG/MINOR: log: GMT offset not updated when entering/leaving DST

Signed-off-by: heil <heil@terminal-consulting.de>
2016-03-29 13:10:34 +02:00
heil
cc469ae468 pcre: Integrate pending patches for next upstream version 8.39
- Fix auto-callout
    (http://vcs.pcre.org/viewvc?view=rev&revision=1611)
 -  Fix negated POSIX class within negated overall class UCP
    (git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1612 2f5784b3-3f2a-0410-8824-cb99058d5e15)
 - Fix bug for isolated \E between an item and its qualifier when auto callout is set.
    (git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1613 2f5784b3-3f2a-0410-8824-cb99058d5e15)
 - Give error for regexec with pmatch=NULL and REG_STARTEND set
    (git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1614 2f5784b3-3f2a-0410-8824-cb99058d5e15)
 - Fix \Q\E before qualifier bug when auto callouts are
   (git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1616 2f5784b3-3f2a-0410-8824-cb99058d5e15)
 - Fix /x bug when pattern starts with white space and (?-x)
   (git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1617 2f5784b3-3f2a-0410-8824-cb99058d5e15)
 - Fix copy named substring bug.
   (git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1618 2f5784b3-3f2a-0410-8824-cb99058d5e15)
 - Fix (by hacking) another length computation issue.
   (git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1619 2f5784b3-3f2a-0410-8824-cb99058d5e15

 - Fix get_substring_list() bug when \K is used in an assertion.
   (git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1620 2f5784b3-3f2a-0410-8824-cb99058d5e15

 - Fix pcretest bad behaviour for callout in lookbehind.
   (git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1625 2f5784b3-3f2a-0410-8824-cb99058d5e15

 - Fix workspace overflow for (*ACCEPT) with deeply nested
   (git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1631 2f5784b3-3f2a-0410-8824-cb99058d5e15
   fixes CVE-2016-3191

 - Fix Yet another duplicate name bugfix by overestimating the memory needed (i.e. another hack - PCRE2 has this "properly" fixed).
   (git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1636 2f5784b3-3f2a-0410-8824-cb99058d5e15

 - Fix pcretest loop for global matching with an ovector size
   (git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1637 2f5784b3-3f2a-0410-8824-cb99058d5e15

Signed-off-by: heil <heil@terminal-consulting.de>
2016-03-29 13:04:27 +02:00
Etienne CHAMPETIER
e4bfdb144e zabbix: add missing dependency on libiconv ($(ICONV_DEPENDS))
this fixes #2507
thanks @gilfrade and @Noltari

Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
2016-03-23 12:43:52 +00:00
Hannu Nyman
a938fb267a nano: update to 2.5.3
Backport the version upgrade to 2.5.3 from master.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2016-03-16 18:24:55 +02:00
dirk
081f255ac3 adblock: release 1.0.0 (backport from trunk)
Bckport the adblock package from master.

Signed-off-by:  Hannu Nyman <hannu.nyman@iki.fi>
(backport from commit 9f719e4c2c)
2016-03-16 16:11:49 +02:00
Jaehoon You
3c129346a2 coova-chilli: fix stat failed error when compile without kmod
This patch fixes #1261.

Signed-off-by: Jaehoon You <teslamint@gmail.com>
2016-03-15 17:15:03 +01:00
Álvaro Fernández Rojas
8246c8d9b8 minicom: backport fixes for full language support and iconv dependencies
Fixes https://github.com/openwrt/packages/issues/2501

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2016-03-14 19:09:52 +01:00
Hannu Nyman
aa2a72e459 Merge pull request #2472 from jreinam/patch-1
collectd: perl INSTALL_BASE fix in 15.05
2016-03-09 10:10:54 +02:00
jreinam
fa48db20f7 collectd: perl bindings disable, backported
Fix for compile error in collectd 5.4.2 , for cc15.05, disable perl bindings
backported from trunk 4fc1ad88f7

Signed-off-by: Jordi Reina <rwebking@yahoo.es>
2016-03-09 01:46:43 +01:00
Karl Palsson
637ea2abea mosquitto: Bump to version 1.4.8
Changelog and release notes:
http://mosquitto.org/2016/02/version-1-4-8-released/

Signed-off-by: Karl Palsson <karlp@etactica.com>
2016-03-07 11:42:41 +00:00
Nikos Mavrogiannopoulos
1e0d97f0d8 gnutls: updated to 3.4.10
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2016-03-05 11:58:35 +01:00
heil
b6c9f34a47 [RFC] prosody: update to 0.9.10, switch to procd init script
- backport from master

Signed-off-by: heil <heil@terminal-consulting.de>
2016-02-28 15:34:53 +01:00
Nikos Mavrogiannopoulos
183e5a5e34 ocserv: updated to 0.10.12
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2016-02-19 17:02:35 +01:00
Toke Høiland-Jørgensen
2f36f666e5 sqm-scripts: Bump to v1.0.7.
Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
2016-02-16 12:33:11 +01:00
Christian Schoenebeck
1adba81824 [for-15.05] privoxy: bump to 3.0.24 incl. fix for CVE-2016-1982, CVE-2016-1983
* upstream to Privoxy 3.0.24
 - incl. fix for CVE-2016-1982 and CVE-2016-1983
* add facility to set compile options
* add file list to be saved on sysupgrade
* fixed PKG_MAINTAINER string
* add port 8118 used by privoxy to /etc/services
* new "boot_delay" option (default 10 seconds) to wait for interfaces to come up before hotplug restarts are enabled

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2016-02-13 17:39:10 +01:00
Nikos Mavrogiannopoulos
9622fe984b gnutls: updated to 3.4.9
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2016-02-03 09:57:26 +01:00
Ted Hess
185f5ba9e5 lua-cjson: remove zmq dependency (same as trunk)
Signed-off-by: Ted Hess <thess@kitschensync.net>
2016-02-01 10:12:24 -05:00
Álvaro Fernández Rojas
22fd12922e Merge pull request #2319 from mikeage/dump1090
dump1090: fix typo preventing daemon startup
Backport of 51474d7499
2016-01-27 08:24:03 +01:00
Mike Miller
0668c0c861 dump1090: fix typo preventing daemon startup
This fix is already in master, but based on the switch to the
mutability fork.

Signed-off-by: Mike Miller <github@mikeage.net>
2016-01-27 08:10:43 +02:00
Peter Wagner
770b0d6113 ntpd: update to 4.2.8p6
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2016-01-25 20:22:58 +01:00
heil
0bc0190b59 haproxy: add pending patches from upstream
- [PATCH 11/13] BUG/MEDIUM: peers: table entries learned from a remote
 - [PATCH 12/13] BUG/MEDIUM: peers: old stick table updates could be
 - [PATCH 13/13] CLEANUP: haproxy: using _GNU_SOURCE instead of

Signed-off-by: heil <heil@terminal-consulting.de>
2016-01-25 17:01:48 +01:00
heil
b28b3ff56a unixodbc:
- corect fetch url

Signed-off-by: heil <heil@terminal-consulting.de>
2016-01-25 14:08:29 +01:00
heil
560cb220d2 pcre: upgrade to 0.8.38
fixes:
  * CVE 2015-2327 CVE 2015-2328 CVE 2015-8380 CVE 2015-8381 CVE
  * 2015-8382
  * CVE 2015-8383 CVE 2015-8384 CVE 2015-8385 CVE 2015-8386 CVE
  * 2015-8387
  * CVE 2015-8388 CVE 2015-8389 CVE 2015-8390 CVE 2015-8391 CVE
  * 2015-8392
  * CVE 2015-8393 CVE 2015-8394 CVE 2015-8395

Signed-off-by: heil <heil@terminal-consulting.de>
2016-01-25 14:08:12 +01:00
heil
bb23089e84 prosody: upgrade to 0.9.9
fixes:
    * path traversal vulnerability in mod_http_files (CVE-2016-1231)
    * use of weak PRNG in generation of dialback secrets (CVE-2016-1232)

Signed-off-by: heil <heil@terminal-consulting.de>
2016-01-25 13:31:29 +01:00
Michael Heimpold
18d121b854 php5: update to 5.6.17
Fixes CVE-2016-1903.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2016-01-24 21:47:52 +01:00
Noah Meyerhans
41dcf83e53 bind: upgrade to 9.9.8-P3
Fixes:
 * CVE-2015-8704
 * CVE-2015-3193
 * CVE-2015-8000
 * CVE-2015-8461

Signed-off-by: Noah Meyerhans <frodo@morgul.net>
2016-01-24 12:43:29 +01:00
Karl Palsson
97a33d77ef mosquitto: properly separate the passwd utility
Building both variants improperly tried to include the passwd utility
for the non-ssl variant, as the variable was set for the ssl variant.

Use properly separated install tasks to install additional files, rather
than hacking around inside the single target.

Signed-off-by: Karl Palsson <karlp@remake.is>
2016-01-19 12:05:48 +00:00
Karl Palsson
6ff7317492 mosquitto: fix old whitespace bug
Introduced back in 2014

Fixes: cd21cbb82e
Signed-off-by: Karl Palsson <karlp@tweak.net.au>
2016-01-19 12:05:48 +00:00
Jo-Philipp Wich
472f8c826e mosquitto: fix whitespace error introduced with 7a6a575887
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2016-01-18 09:53:55 +01:00
Peter Wagner
400d01d37f tor: update to 0.2.7.6
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2016-01-16 20:42:48 +01:00
Peter Wagner
6052829a43 ntpd: update to 4.2.8p5
Signed-off-by: Peter Wagner <tripolar@gmx.at>
2016-01-16 12:47:09 +01:00
tripolar
dbe561d856 Merge pull request #2270 from xypron/15.05-openssh
openssh: update to 7.1p2
2016-01-16 12:41:05 +01:00
Heinrich Schuchardt
fc7fc89ee7 net/openssh: version 7.1p2
Use version 7.1p2 due to several security bulletins.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2016-01-16 11:46:32 +01:00
Karl Palsson
18d05777af mosquitto: Bump to version 1.4.7
Minor changes mostly unrelated to OpenWRT.
Full changelog at http://mosquitto.org/2015/12/version-1-4-7-released/

Signed-off-by: Karl Palsson <karlp@remake.is>
2016-01-15 09:33:59 +00:00
Karl Palsson
5dda75f84c mosquitto: optionally include mosquitto_passwd utility
Many users of the SSL build of mosquitto need the passwd utility for
managing keys.

Fixes github issue #1909

Signed-off-by: Karl Palsson <karlp@remake.is>
2016-01-15 09:33:59 +00:00
Nikolay Martynov
d9c2951b19 bridge-utils: copy from oldpackages
* update Makefile accoring to CONTRIBUTING.md, set maintainer
* fix file offset handling
* use https://git.kernel.org/pub/scm/linux/kernel/git/shemminger/bridge-utils.git for source code

Signed-off-by: Nikolay Martynov <mar.kolya@gmail.com>
2016-01-15 08:45:42 +01:00
Luiz Angelo Daros de Luca
d5999694c1 sane-backends: minor Makefile text typo
Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
2016-01-14 16:43:01 +01:00
Luiz Angelo Daros de Luca
6128fa0f3d sane-backends: select all backends when CONFIG_ALL
sane-xxx backend packages are hidden packages with custom
config and CONFIG_ALL does not select them alone. Now
sane-backends depends on +ALL:sane-backends-all.

No existing ipk is affected as the changed package/sane-backends
does not exist as an ipk.

030-musl.patch was updated to be submitted upstream. However,
the added preprocessor #if are always true for OpenWRT and will
not change the resulting code.

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
2016-01-14 16:43:01 +01:00
Luiz Angelo Daros de Luca
752590d266 sane-backends: import from oldpackages and update
Changes since oldpackages:
- updated to 1.0.25
  * most of openwrt patches are upstreamed now
- cups dependency was completely removed
- small musl patch
- small uclibc patch
- removed link to extra libraries in libsane (used only
  for preload backends)
- sane-libs and sane-backends merged and exploded into
  individual packages for each backend:
  * libsane for sane library (which backends should dep on)
  * sane-daemon for saned daemon
  * sane-xxx for sane backend for xxx
  ** each backend has its own custom dep libraries
  * sane-backends-all (with no files) that deps on all backends
  * sane-qcam is only available for x86/x86_64
  ** other archs does not implement inb/outb (at least in musl)

Now it is possible to use SANE with much less FS space (KB
instead of MB).

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
2016-01-14 16:43:00 +01:00
Mislav Novakovic
04d79438d2 squid: update to 3.5.12
Signed-off-by: Mislav Novakovic <mislav.novakovic@sartura.hr>
2016-01-13 00:59:37 +01:00
Hannu Nyman
6650c96833 Merge pull request #2262 from clehner/for-15.05
ncdu: update to 1.11
2016-01-12 20:12:02 +02:00
Charles Lehner
624f2a8967 ncdu: update to 1.11
- Add patch to get WEXITSTATUS and WIFEXITED defined
    The issue is fixed in upstream's development repo, so the patch won't be
    needed with ncdu's next release.
- Depend on more commonly used libncurses instead of libncursesw
- Enable parallel build
- Update copyright

Signed-off-by: Charles Lehner <cel@celehner.com>
2016-01-12 12:33:23 -05:00
Luiz Angelo Daros de Luca
375f617245 ruby: bump to 2.2.4
This release includes a security fix for Fiddle extension.

* CVE-2015-7551: Unsafe tainted string usage in Fiddle and DL

There are also some bugfixes.

In package, now LD_FLAGS is copied to DLD_FLAGS (used by ruby for libraries).
The missing values from LD_FLAGS cause build error when gcc does not implicitly
include staging/usr/lib.

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
2016-01-11 15:31:27 +01:00
Hannu Nyman
f6ee970394 Merge pull request #2258 from lbschenkel/cloudflare-rec_id-for-15.05
ddns-scripts: allow setting CloudFlare 'rec_id' in the config
2016-01-11 12:56:58 +02:00
Nikos Mavrogiannopoulos
25de619b04 ocserv: updated to 0.10.11
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2016-01-10 08:35:27 +01:00
Nikos Mavrogiannopoulos
4a3331c47a gnutls: updated to 3.4.8
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2016-01-10 08:35:21 +01:00
Nikos Mavrogiannopoulos
a712cfd4e6 gnutls: updated to 3.4.7
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2016-01-10 08:35:21 +01:00
Hannu Nyman
594e6a4916 Merge pull request #2230 from MikePetullo/for-15.05
For 15.05: Cherry pick a number of updates from maintainer into 15.05
2016-01-09 17:06:44 +02:00
Oliver Middleton
b4a34de7d8 libpng: update to 1.2.56
Fixes CVE-2015-8126 and CVE-2015-8540.

Signed-off-by: Oliver Middleton <olliemail27@gmail.com>
2016-01-09 13:54:46 +01:00
Leonardo Brondani Schenkel
163252fcec ddns-scripts: bump 2.4.3 to release 2 2016-01-08 20:10:58 +01:00
Leonardo Brondani Schenkel
57ba3be8e0 ddns-scripts: allow setting CloudFlare 'rec_id' in the config
This is necessary when there are multiple records for the same domain,
otherwise the script will overwrite the first one returned by the API.
It has the secondary benefit of allowing faster updates by performing
only one API call instead of two.

In case 'rec_id' is not set the script behaves exactly as before.

Signed-off-by: Leonardo Brondani Schenkel <leonardo@schenkel.net>
(grafted from 019ba13d01e93c18d0ed35b0aeb3399f28108e0e)
2016-01-08 19:47:57 +01:00
Nikos Mavrogiannopoulos
57c660e98d ocserv: prevent a crash if the per-user dir does not exist
Relates #2167

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2016-01-05 21:49:13 +01:00
Jo-Philipp Wich
7bc5cdcee3 Merge pull request #2195 from jow-/for-15.05
CC: freeradius2: completely disable runtime OpenSSL version checks
2016-01-04 09:06:40 +01:00
W. Michael Petullo
23fbc85322 krb5: port removal of Prepare target from master
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2016-01-01 17:23:27 -05:00
W. Michael Petullo
aa49d8967b lighttpd: update to 1.4.38
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2016-01-01 16:33:59 -05:00
W. Michael Petullo
19e3ebc68e krb5: update to 1.14
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2016-01-01 16:29:56 -05:00
W. Michael Petullo
b8c9bc0200 openldap: update to 2.4.43
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2016-01-01 16:29:52 -05:00
W. Michael Petullo
304fefb3fa libsoup: update to 2.53.2
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2016-01-01 16:29:48 -05:00
W. Michael Petullo
29fdf3e483 luasec: update to 0.5.1
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2016-01-01 16:29:43 -05:00
Jo-Philipp Wich
08d8c7f60b Merge pull request #2169 from MikePetullo/php5
Cherry pick PHP5 updates into for-15.05.
2015-12-28 16:26:52 +01:00
Jo-Philipp Wich
36ea23dce8 freeradius2: completely disable runtime OpenSSL version checks
Whenever we ship fixed libopenssl binaries in CC, the Freeradius daemon fails
at startup because it detects a mismatch of the build time and runtime OpenSSL
version.

Since our OpenSSL updates for CC are ABI compatible we do not need or even want
this superflous check. Removing it saves us the effort to rebuild Freeradius
after every OpenSSL version bump.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-12-28 16:25:02 +01:00
Michael Heimpold
766cfcc77f php5: update to 5.6.16
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2015-12-23 16:00:14 -05:00
Michael Heimpold
41f541bd26 php5: update to 5.6.15
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2015-12-23 16:00:04 -05:00
Michael Heimpold
0df349f8df php5: update to 5.6.14
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2015-12-23 15:59:54 -05:00
Michael Heimpold
196b622bd6 php5: update to 5.6.13
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2015-12-23 15:59:43 -05:00
Michael Heimpold
1cbcdf7f9e php5: fix the two different maintainer fields into one (fixes #1688)
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2015-12-23 15:59:32 -05:00
Michael Heimpold
9bbdad4ed7 php5: update to 5.6.12
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2015-12-23 15:59:21 -05:00
Michael Heimpold
6cba0bf545 php5: update to 5.6.10
This fixes the following CVEs:
 - in PCRE: CVE-2015-2325, CVE-2015-2326
 - in sqlite3: CVE-2015-3414, CVE-2015-3415, CVE-2015-3416

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2015-12-23 15:59:10 -05:00
Michael Heimpold
559df398ff php5: update to 5.6.9
This fixes CVE-2006-7243, a multipart/form-data remote dos vulnerability,
a heap buffer overflow in unpack and a integer overflow in ftp_genlist,
which also results in a heap overflow.
For more details, see http://php.net/ChangeLog-5.php#5.6.9

Also sync the timezone patch with latest version from Debian and
adopt this patch for the changes in this php release.

Refresh 950-Fix-dl-cross-compiling-issue.patch.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2015-12-23 15:58:46 -05:00
Michael Heimpold
f0a0448857 php5: add php5-mod-opcache (fixes #1010)
This patch adds build infrastructure for PHP's OPcache extension.
Compared with the other extension, this is a Zend module and it
need a little workaround during cross-compiling.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2015-12-23 15:58:27 -05:00
Michael Heimpold
f04165e4e0 php5: pecl: move phpize into prepare stage
This allows pecl modules to rely on PKG_FIXUP:=autoreconf.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
2015-12-23 15:57:57 -05:00
Nikos Mavrogiannopoulos
83ad5a9233 vpnc-scripts: bumped version
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-12-20 19:31:50 +02:00
Aleksandar Radovanovic
a057c03002 vpnc-scripts: Fix handling of multiple VPN DNS servers
Fix for #2116 - $INTERNAL_IP{4,6}_DNS variables are not word-split correctly when containing more than one DNS server.

Signed-off-by: Aleksandar Radovanovic <biblbroks@sezampro.rs>
2015-12-20 19:29:59 +02:00
Hannu Nyman
1cf7b5ae05 CONTRIBUTING.md: Add advice about pull requests
Add "best practices" advice about working with pull requests.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit df35777400)
2015-12-15 17:38:35 +02:00
Hannu Nyman
3ee2e24082 wget: bump version to 1.17.1
Backport from trunk the version update to 1.17.1.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-12-15 17:24:30 +02:00
Hannu Nyman
d00825894a Merge pull request #2122 from commodo/python-backports-15.05
python: backport some patches from trunk to 15.05
2015-12-14 19:46:25 +02:00
Jan Čermák
c4ca3f0bf2 python: add missing host build dependency on expat/host
Since 94f87dc1, host build of Python depends on expat installed in host
staging directory. However, pyexpat extension fails to build if expat
was not built and installed to staging dir before - adding host build
dependency should fix this.

Signed-off-by: Jan Čermák <jan.cermak@nic.cz>
2015-12-13 20:21:29 +02:00
Attila Lendvai
a28067d30d python: fix cross-compiling C++ modules.
Signed-off-by: Attila Lendvai <attila@lendvai.name>
2015-12-13 20:20:02 +02:00
Steven Barth
7b2c37067b python: add correct host expat
Signed-off-by: Steven Barth <steven@midlink.org>
2015-12-13 20:19:33 +02:00
Jan Čermák
7e6939bdc0 python: fix patch removing multiarch support for host python
Patch removing multiarch paths from build should be applied only when
Python is built for target, but not for host. When the paths are removed
during host build, host python throws some ugly errors when importing
some hashlib modules. Also it reports that modules crypt and nis failed
to build (tested on Ubuntu 14.04 host).

Signed-off-by: Jan Čermák <jan.cermak@nic.cz>
2015-12-13 20:08:45 +02:00
Toke Høiland-Jørgensen
35188c0f9d sqm-scripts: Bump to v1.0.6.
Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
2015-12-09 15:08:26 +01:00
Nikos Mavrogiannopoulos
ae9a33f00d libradcli: updated to 1.2.5
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-12-07 19:58:21 +01:00
Alexander Ryzhov
87d696053e postgresql: now visible with uclibc
Signed-off-by: Alexander Ryzhov <openwrt@ryzhov-al.ru>
2015-12-07 09:45:55 +01:00
Ted Hess
fa5e832d77 Merge pull request #2072 from thess/for-15.05
dosfstools: [for-15.05] bump to 3.0.28, fix URLs - dev moved to github
2015-12-04 15:11:45 -05:00
Ted Hess
747c5e42f1 dosfstools: bump to 3.0.28, fix URLs - dev moved to github
Signed-off-by: Ted Hess <thess@kitschensync.net>
2015-12-04 15:01:48 -05:00
heil
107b83e1de haproxy: bump to version 1.5.15
- integrate pending patches

Signed-off-by: heil <heil@terminal-consulting.de>
2015-12-02 12:06:32 +01:00
Carlos Miguel Ferreira
74729bc10d p11-kit: Version update
Just a regular version update
- Package gnutls requires the 0.23.1 to compile.

Signed-off-by: Carlos M. Ferreira <carlosmf.pt@gmail.com>
2015-11-29 11:21:57 +01:00
Nikos Mavrogiannopoulos
59f0d5607b ocserv: corrected path for ocserv-fw
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-11-28 23:09:24 +01:00
Nikos Mavrogiannopoulos
fe541acd8a ocserv: correct md5sum, install ocserv-fw, and eliminate ip dependency
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-11-28 23:07:34 +01:00
Nikos Mavrogiannopoulos
c3d29513cb vpnc-script: don't attempt to resolve domains which match the local domain
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-11-28 22:40:19 +01:00
Nikos Mavrogiannopoulos
c1017ac247 vpnc-script: create dnsmasq entries for connections where default domain is set
Relates to #1975

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-11-28 22:40:19 +01:00
Nikos Mavrogiannopoulos
9d22009696 ocserv: updated to 0.10.10
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-11-28 22:30:08 +01:00
Nikos Mavrogiannopoulos
46356c7f39 ocserv: always advertise the local domain to peer
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-11-28 22:30:08 +01:00
Nikos Mavrogiannopoulos
95383f479a ocserv: Added option to pass split-dns configuration to clients
Relates to #1975

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-11-28 22:30:08 +01:00
Nikos Mavrogiannopoulos
94c43deb9f ocserv: when default-domain is set, enable split-dns
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-11-28 22:29:35 +01:00
Nikos Mavrogiannopoulos
6252504514 ocserv: allow enabling proxy ARP
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-11-28 22:29:35 +01:00
Nikos Mavrogiannopoulos
ddb59c4f72 ocserv: if ocserv.conf.local is present append it to ocserv.conf
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-11-28 22:29:34 +01:00
Nikos Mavrogiannopoulos
3e0e8c3863 ocserv: simplify IPv6 network setting
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-11-28 22:29:34 +01:00
Nikos Mavrogiannopoulos
b703519216 ocserv: removed unecessary instructions and script
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-11-28 22:29:34 +01:00
Nikos Mavrogiannopoulos
4185ad9e49 ocserv: updated to 0.10.9
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-11-28 22:29:34 +01:00
Luka Perkov
819a8085cd Merge pull request #2018 from thomasp11/for-15.05
cshark: update to latest git HEAD
2015-11-24 18:50:58 +01:00
Thomas Peterson
b1178b7591 cshark: update to latest git HEAD 2015-11-24 12:41:54 -05:00
Oliver Middleton
c19bf27d8d libpng: update to 1.2.54
Includes fixes for CVE-2015-7981 and CVE-2015-8126.

Signed-off-by: Oliver Middleton <olliemail27@gmail.com>
2015-11-24 16:21:37 +01:00
Steven Barth
a7cd2d9438 Merge pull request #1871 from dangowrt/update-postgresql-for-15.05
update PostgreSQL
2015-11-19 16:23:34 +01:00
Steven Barth
7f24f26e13 Merge pull request #1941 from padre-lacroix/for-15.05
bandwidthd: Addition of 2 variants of the bandwidthd package.
2015-11-19 12:32:21 +01:00
Toke Høiland-Jørgensen
9966c162ce sqm-scripts: Bump to v1.0.5. 2015-11-19 11:46:36 +01:00
Luka Perkov
70471762cc pptpd: backport from trunk
Signed-off-by: Luka Perkov <luka@openwrt.org>
2015-11-18 21:49:25 +01:00
Jean-Michel Lacroix
23fabf774e bandwidthd: Addition of 2 variants of the bandwidthd package.
Addition of the bandwithd package variant from the oldpackage
Addition of the bandwidthd-pgsql package variant that can save also
in a postgres database.
Compile tested on CC and trunk (ar71xx and mvebu in both cases)
run tested on CC (ar71xx) and trunk (r47397 on mvebu)

Signed-off-by: Jean-Michel Lacroix <lacroix@lepine-lacroix.info>
2015-11-10 13:54:42 -05:00
John Crispin
ee0bb7b9df libmraa: board detection was broken after the name changed
Signed-off-by: John Crispin <blogic@openwrt.org>
2015-11-06 22:39:41 +01:00
Álvaro Fernández Rojas
8a70ddefc7 unzip: patch CVE-2015-7696, CVE-2015-7697 and integer underflow
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
2015-11-01 16:21:56 +01:00
John Crispin
f8a70fc188 madplay: some build variant related fixes
the 2 variants could not be built at the same time

Signed-off-by: John Crispin <blogic@openwrt.org>
2015-10-26 17:15:00 +01:00
John Crispin
6f8928afbc node: disable MIPS16
Signed-off-by: John Crispin <blogic@openwrt.org>
2015-10-24 09:57:36 +02:00
Jo-Philipp Wich
375b9aeee4 python: fix two build depend issues
Build depends must refer to the source package name, not the binary one,
therefore we need to use `bzip2` in order to enforce a build of libbz2.so.

Also make the host python build depend on the bzip2 host build in order to
ensure that host python is built with bzip2 support. We don't need a build
dependency for the target python as this already depends on +libbz2 through
python-light. That package dependency in turn implies a build dependency.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-10-24 09:56:53 +02:00
Nikos Mavrogiannopoulos
ffd3b199e1 gnutls: update to 3.4.6
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-10-22 07:34:54 +02:00
John Crispin
f690a75422 node-cylon: dont double build firmata and serialport
Signed-off-by: John Crispin <blogic@openwrt.org>
2015-10-21 10:44:49 +02:00
John Crispin
25a4a2f15d libupm: add fixes for 2 sensors
Signed-off-by: John Crispin <blogic@openwrt.org>
2015-10-20 15:58:30 +02:00
John Crispin
fbef79fd9f swig: make it compile even if pcre libs are not available
Signed-off-by: John Crispin <blogic@openwrt.org>
2015-10-20 13:27:29 +02:00
John Crispin
3740ab89eb node: add a python/host dependency
Signed-off-by: John Crispin <blogic@openwrt.org>
2015-10-20 13:27:29 +02:00
Etienne CHAMPETIER
5d079de65a zabbix: enable IPv6 support
compile tested on trunk, run tested on CC (ar71xx)

size before:
 96757 zabbix-agentd_2.4.6-1_ar71xx.ipk
 29180 zabbix-get_2.4.6-1_ar71xx.ipk
258979 zabbix-proxy_2.4.6-1_ar71xx.ipk
 35121 zabbix-sender_2.4.6-1_ar71xx.ipk
282885 zabbix-server_2.4.6-1_ar71xx.ipk

size after:
 97359 zabbix-agentd_2.4.6-2_ar71xx.ipk
 29841 zabbix-get_2.4.6-2_ar71xx.ipk
259948 zabbix-proxy_2.4.6-2_ar71xx.ipk
 35801 zabbix-sender_2.4.6-2_ar71xx.ipk
284019 zabbix-server_2.4.6-2_ar71xx.ipk

original PR by Thomas Bahn <thomas-bahn@gmx.net>

Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
2015-10-19 22:28:27 +00:00
John Crispin
c86d2d5ecb swig: add PKG_LICENSE_FILE
Signed-off-by: John Crispin <blogic@openwrt.org>
2015-10-19 15:59:58 +02:00
John Crispin
56e6a67621 node-hid: set proper version and revision
* fix revision variables
* fix version variables

Signed-off-by: John Crispin <blogic@openwrt.org>
2015-10-19 15:58:55 +02:00
John Crispin
a0baae412c node-hid: set proper version and revision
* fix revision variables
* fix version variables

Signed-off-by: John Crispin <blogic@openwrt.org>
2015-10-19 15:58:55 +02:00
John Crispin
02d684636a node-cylon: add proper download path and set version properly
* fix version
* fix download path
* fix version variables

Signed-off-by: John Crispin <blogic@openwrt.org>
2015-10-19 15:58:55 +02:00
John Crispin
8133570a9c node-arduino-firmata: set proper download path and set version properly
* fix download path
* fix version variables

Signed-off-by: John Crispin <blogic@openwrt.org>
2015-10-19 15:58:55 +02:00
John Crispin
0c2c46417d madplay: add PKG_RELEASE and keep oss variants name
* update PKG_RELEASE
* dont change the name of the oss variant

Signed-off-by: John Crispin <blogic@openwrt.org>
2015-10-19 15:58:41 +02:00
Dirk Neukirchen
323a2d1da0 postgresql: fix potential snprintf issue
adopt buildroot commit: 3d3f70b567718ae308b5704ddd7d107c4849309e

spotted while reviewing buildroot changes to postgresql

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
2015-10-19 00:41:59 +02:00
Dirk Neukirchen
c1f12cc650 postgresql: fix uclibc locale.h bug
reported in forum:
https://forum.openwrt.org/viewtopic.php?id=59137

issue was discovered and fixed already in buildroot
git commit id: f5e4ca10220e2325d3a34c0a423388e40b27dbdf

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
2015-10-19 00:41:59 +02:00
Dirk Neukirchen
0e3e7ca91b postgresql: add missing librt dependency
fixes build error with uclibc

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
2015-10-19 00:41:59 +02:00
Daniel Golle
40ba683222 postgresql: update source to 9.4.4 and refresh scripts
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2015-10-19 00:41:59 +02:00
Dirk Neukirchen
4ab5dc95a6 postgresql: update to 9.4.1
- supports arm64/aarch64

Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de>
2015-10-19 00:41:59 +02:00
John Crispin
224ead0d5b madplay: add alsa build variant
Signed-off-by: John Crispin <blogic@openwrt.org>
2015-10-17 12:31:23 +02:00
John Crispin
d88a1494fd yunbridge: add linux side python code
to make the bridge work we need to run an askfirst instance on the ttyS.
additionally add the lua scripts needed to make REST work. this is really ugly
code but it works. i already cleaned up to the original code, but there are still
issues such as a new luci session being created for each request.

Signed-off-by: John Crispin <blogic@openwrt.org>
2015-10-17 12:31:23 +02:00
John Crispin
d313c7b182 libupm: add package
upm is a sensor library that sits ontop of libmraa. it has support for a large
number of sensors and exports bindings for node, python, ...

Signed-off-by: John Crispin <blogic@openwrt.org>
2015-10-17 12:31:23 +02:00
John Crispin
e3d82916ad libmraa: add mraa including mips platform code
mraa is a lowlevel io bus abstraction layer. it allows us to export bindings for
various linux io busses for node, python, ...

Signed-off-by: John Crispin <blogic@openwrt.org>
2015-10-17 12:31:23 +02:00
John Crispin
4fb1eda08e nodejs: add 0.12 version of node
add node-js 0.12 and a few gyp bindings

Signed-off-by: John Crispin <blogic@openwrt.org>
2015-10-16 13:30:56 +02:00
John Crispin
756a24c3d4 swig: add host build
this is a binding generator needed to build node plugins

Signed-off-by: John Crispin <blogic@openwrt.org>
2015-10-16 00:11:57 +02:00
Steven Barth
61d0f260f3 Merge pull request #1791 from MikePetullo/for-15.05-krb5
krb5: update to 1.13.2
2015-10-13 10:06:28 +02:00
John Crispin
9f3881f1f3 python-serial: backport from master branch to for-15.05
Signed-off-by: John Crispin <blogic@openwrt.org>
2015-10-02 13:59:43 +02:00
John Crispin
fc2152034c cgi-io: add a small helper cgi that can be used by RPCD based UIs
Signed-off-by: John Crispin <blogic@openwrt.org>
2015-10-02 13:59:43 +02:00
John Crispin
9d042c3564 spi-tools: add new package
this package adds 2 tools that can be used to control spidev devices from userland

Signed-off-by: John Crispin <blogic@openwrt.org>
2015-10-02 13:59:43 +02:00
Yousong Zhou
7f3ef93466 xl2tpd: bump version
The update is mainly for addressing some memory corruption and segementation
faults issues observed when running xl2tpd in OpenWrt.  The relevant upstream
pull request was at link [1]

 [1] Devel fix valgrind #77, https://github.com/xelerance/xl2tpd/pull/77

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2015-10-02 08:43:14 +08:00
John Crispin
6d892fb2fa python: add dependency to bz2 host build
Signed-off-by: John Crispin <blogic@openwrt.org>
2015-10-01 14:04:15 +02:00
Marko Ratkaj
eb1254a3a0 squild: bump version to 3.5.9
Signed-off-by: Marko Ratkaj <marko.ratkaj@sartura.hr>
2015-09-27 23:42:22 +02:00
Marko Ratkaj
085fdc9c3c lxc: bump version to 1.1.3
Signed-off-by: Marko Ratkaj <marko.ratkaj@sartura.hr>
2015-09-27 23:42:11 +02:00
Marko Ratkaj
3831a680ab file: bump version to 5.25
Signed-off-by: Marko Ratkaj <marko.ratkaj@sartura.hr>
2015-09-27 23:42:05 +02:00
Marko Ratkaj
2a1409b927 e2guardian: bump version to 3.2.0
Signed-off-by: Marko Ratkaj <marko.ratkaj@sartura.hr>
2015-09-27 23:41:57 +02:00
Yousong Zhou
77e4444a27 xl2tpd: fix by backporting the version from master branch
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2015-09-26 12:03:06 +08:00
Karl Palsson
5fd21e2305 mosquitto: update to 1.4.4
More information: http://mosquitto.org/2015/09/version-1-4-4-released/

Signed-off-by: Karl Palsson <karlp@tweak.net.au>
2015-09-25 15:03:08 +00:00
Nikos Mavrogiannopoulos
b86ffea908 libtasn1: updated to 4.7
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-09-24 10:07:47 +02:00
Nikos Mavrogiannopoulos
4c75da6e28 gnutls: updated to 3.4.5
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-09-24 10:07:47 +02:00
Nikos Mavrogiannopoulos
41a5ec56fe radcli: updated to 1.2.3
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-09-24 10:03:57 +02:00
Steven Barth
088c1a12be Merge pull request #1794 from MikePetullo/for-15.05-lighttpd
lighttpd: update to 1.4.37
2015-09-22 10:42:24 +02:00
W. Michael Petullo
57ec0c99a5 lighttpd: update to 1.4.37
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2015-09-21 15:47:12 +02:00
W. Michael Petullo
b2869e2a22 lighttpd: update to 1.4.37
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2015-09-20 20:14:00 -04:00
W. Michael Petullo
6e1a70ad6c krb5: update to 1.13.2
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2015-09-20 19:41:16 -04:00
Daniel Golle
9cadde2183 tracertools: update source URL
rip gitorious.org

[backport of commit c6b65ce on master]
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2015-09-19 20:40:57 +02:00
Gergely Kiss
ad00330865 sudo: upgrade to version 1.8.14p3
Signed-off-by: Gergely Kiss <mail.gery@gmail.com>
2015-09-17 16:47:09 +02:00
Alexander Tsoy
12b1f4fab8 sudo: preserve sudoers.d during sysupgrade
Signed-off-by: Alexander Tsoy <alexander@tsoy.me>
2015-09-17 16:47:02 +02:00
Steven Barth
9f63667c06 Merge pull request #1733 from hnyman/collectd-entropy
collectd: backport the entropy plugin and changes to example config file
2015-09-15 08:31:35 +02:00
Markus Stenberg
2bcaf5fc70 mdnsresponder: fix fd leak for IPv6 sockets
Signed-off-by: Steven Barth <steven@midlink.org>
2015-09-14 14:06:53 +02:00
Nuno Goncalves
e7c01b17df tcsh: update source mirrors
Signed-off-by: Nuno Goncalves <nunojpg@gmail.com>
2015-09-12 12:11:03 +01:00
Steven Barth
8a0cba2010 Merge pull request #1762 from pdxmeshnet/for-15.05
zmq fixes from master
2015-09-10 17:47:00 +02:00
heil
d06a94bfe6 haproxy: fixes from upstream
- [PATCH 14/16] BUG/MINOR: http: remove stupid HTTP_METH_NONE entry
 - [PATCH 15/16] BUG/MAJOR: http: don't call http_send_name_header()
 - [PATCH 16/16] BUG/MINOR: tools: make str2sa_range() report

Signed-off-by: heil <heil@terminal-consulting.de>
2015-09-09 20:50:36 +02:00
Nicolas Thill
5f24380c03 luarocks: update to 2.2.2
Signed-off-by: Nicolas Thill <nico@openwrt.org>
2015-09-08 17:41:51 -07:00
Daniel Salzman
fd2374e5ff knot: update to 1.6.5
Signed-off-by: Daniel Salzman <daniel.salzman@nic.cz>
2015-09-08 11:33:46 +02:00
Daniel Salzman
dadc4008ed knot: update to 1.6.4
Signed-off-by: Daniel Salzman <daniel.salzman@nic.cz>
2015-09-08 11:33:42 +02:00
Ted Hess
9ea5f365f6 zmq: Make 2 variants, refresh patches, fix C++ build issues
Signed-off-by: Ted Hess <thess@kitschensync.net>
2015-09-07 20:40:55 -07:00
Dirk Chang
4b1cf93c0e libzmq upgrade to 4.1.1
lzmq upgrade to 0.4.3

Signed-off-by: Dirk Chang <dirk@kooiot.com>
2015-09-07 20:39:55 -07:00
Ted Hess
9b2d4f8d83 lzmq: Use smaller .tar.gz source package
Signed-off-by: Ted Hess <thess@kitschensync.net>
2015-09-07 20:39:04 -07:00
Steven Barth
f387d3cc81 strongswan: bump to 5.3.3
Signed-off-by: Steven Barth <steven@midlink.org>
2015-09-07 11:11:22 +02:00
Marcin Jurkowski
997c932e62 strongswan: make kmod-ipsec6 dependency conditional
Makes kmod-ipsec6 requirement dependent on IPv6 support for packages.
This allows to disable unnecessary IPv6 kernel modules, saving
considerable amount of space.

Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
2015-09-07 11:11:15 +02:00
Dirk Feytons
29d1085028 strongswan: add a couple more plugins
Signed-off-by: Dirk Feytons <dirk.feytons@gmail.com>
2015-09-07 11:11:07 +02:00
Ulrich Weber
046f800efb strongswan: dont overwrite ipsec.conf and ipsec.user during upgrade
Signed-off-by: Ulrich Weber <uw@ocedo.com>
2015-09-07 11:11:01 +02:00
Yousong Zhou
19cf8c6105 strongswan: split out libtls.so as a separate package.
When only strongswan-minimal is selected, libtls.so will not be built
yet package strongswan will still try to copy the file causing build
failure.

Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
2015-09-07 11:10:53 +02:00
Adam Lebsack
1deb958e37 strongswan: Added strongswan-mod-eap-tls
Signed-off-by: Adam Lebsack <alebsack@gmail.com>
2015-09-07 11:10:48 +02:00
Steven Barth
da180706b6 strongswan: add more exceptions to musl-fixes
Signed-off-by: Steven Barth <steven@midlink.org>
2015-09-07 11:10:40 +02:00
Steven Barth
69ad693a37 strongswan: refresh musl compatibility fixes
Signed-off-by: Steven Barth <steven@midlink.org>
2015-09-07 11:10:34 +02:00
heil
e51b71ad78 haproxy: fixes from upstream
- [PATCH 05/13] BUG/MINOR: http/sample: gmtime/localtime can fail
 - [PATCH 06/13] DOC: typo in 'redirect', 302 code meaning
 - [PATCH 07/13] DOC: mention that %ms is left-padded with zeroes.
 - [PATCH 08/13] CLEANUP: .gitignore: ignore more test files
 - [PATCH 09/13] CLEANUP: .gitignore: finally ignore everything but what
 - [PATCH 10/13] MEDIUM: config: emit a warning on a frontend without
 - [PATCH 11/13] BUG/MEDIUM: counters: ensure that src_{inc,clr}_gpc0
 - [PATCH 12/13] DOC: ssl: missing LF
 - [PATCH 13/13] DOC: fix example of http-request using

Signed-off-by: heil <heil@terminal-consulting.de>
2015-09-07 00:02:48 +02:00
heil
cad6bb8ee0 unixodbc: bump to version 2.3.4
Signed-off-by: heil <heil@terminal-consulting.de>
2015-09-06 23:57:39 +02:00
heil
985d5c3234 unixodbc: update to 2.3.3
Signed-off-by: heil <heil@terminal-consulting.de>
2015-09-06 23:57:32 +02:00
Nikos Mavrogiannopoulos
241a8ad346 ocserv: updated to 0.10.8
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-09-04 21:33:19 +02:00
Nikos Mavrogiannopoulos
7f6a237d7d openconnect: corrected port descriptions in README
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-09-04 21:33:19 +02:00
Nikos Mavrogiannopoulos
c773d4ad91 ocserv: more explicit documentation
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-09-04 21:33:19 +02:00
Nikos Mavrogiannopoulos
52bf9d5efc ocserv: updated to 0.10.6
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-09-04 21:33:19 +02:00
Hannu Nyman
9af392d629 collectd: backport "Clarify config file example/placeholder" from #1736
The config file shipped with collectd dates from 2010 and
leads to error messages if luci-statistics & collectd are installed,
as it references several plugins not usually installed, or such ones
that have been renamed since then.

For most users, this file is just a placeholder during collectd installation,
as /usr/bin/stat-genconfig from /etc/init.d/luci_statistics will overwrite it.

Sanitize and shorten the placeholder config file:
* Reference actively only the default plugins installed by luci statistics.
* Match the placeholder config with the genuine config from luci statistics.

If somebody uses collectd separately from luci statistics, he will need to
edit these settings anyway.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-09-04 15:03:58 +03:00
Hannu Nyman
42f2974f3c collectd: backport the enablement of entropy plugin to for-15.05
Enable 'entropy' plugin also for collectd 5.4.2.
Works ok.

( backport of 35552db4ee )

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2015-09-04 15:03:58 +03:00
Daniel Gimpelevich
877e9fb00d vpnc: bump release
Signed-off-by: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
2015-09-03 17:38:22 +02:00
Daniel Gimpelevich
5ff1b7ad51 vpnc: corrected call to proto_add_host_dependency 2015-09-03 17:38:18 +02:00
Jo-Philipp Wich
cb5b508b46 vpnc: fix musl compatibility
- Add missing `sys/ttydefaults.h` include to `config.c`
 - Restrict usage of `error.h` to glibc and uclibc only
 - Avoid including `linux/if_tun.h` on non-glibc/uclibc to prevent
   musl kernel/libc header conflicts

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2015-09-03 17:38:13 +02:00
Jo-Philipp Wich
37f1c3f66f Merge pull request #1753 from zorun/bmon_15.05_
bmon: Add missing runtime dependency: terminfo
2015-09-03 17:34:10 +02:00
Baptiste Jonglez
1a78a488b7 bmon: Add missing runtime dependency: terminfo
Signed-off-by: Baptiste Jonglez <git@bitsofnetworks.org>
2015-09-03 17:32:13 +02:00
Toke Høiland-Jørgensen
250b11a475 sqm-scripts: Bump to v1.0.3.
Backported changes from master.

Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
2015-09-03 15:31:56 +02:00
Noah Meyerhans
ffda9cc9c7 [bind] Update to 9.9.7-P3 to fix CVE-2015-5722 and CVE-2015-5986
Signed-off-by: Noah Meyerhans <frodo@morgul.net>
2015-09-03 14:03:41 +02:00
Noah Meyerhans
4e3085cd05 bind: update to version 9.9.7-p2
Signed-off-by: Noah Meyerhans <frodo@morgul.net>
2015-09-03 14:03:31 +02:00
Alexander Ryzhov
f5c70eaa5a xz: add xz-utils meta package
Signed-off-by: Alexander Ryzhov <openwrt@ryzhov-al.ru>
2015-09-02 12:13:25 +02:00
Jan Čermák
b721a1d8cc libevent: update to 1.4.15 (fixes CVE-2014-6272)
This update fixes CVE-2014-6272. Change of source URL was needed,
because the older location does not contain the latest version.

Signed-off-by: Jan Čermák <jan.cermak@nic.cz>
2015-09-01 19:55:47 +02:00
Steven Barth
114b6ce270 Merge pull request #1728 from roger-/micropython-15.05
micropython: update to latest (15.05)
2015-08-29 08:41:54 +02:00
Roger
0b1509c9e3 micropython: update to latest
Signed-off-by: Roger D <rogerdammit@gmail.com>
2015-08-28 10:36:49 -05:00
John Crispin
d32e986ef6 python: remove bz2 build dep
Revert "python: add dependency to bz2 host build"

This reverts commit da6d7b57f5.

Signed-off-by: John Crispin <blogic@openwrt.org>
2015-08-26 12:18:59 +02:00
Nikos Mavrogiannopoulos
e778bd4998 openconnect: disabled the resolving code from ppp in netifd script
That code was causing netifd disabling openconnect with no way
to restart it.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-08-26 23:00:45 +02:00
John Crispin
47a400aaa7 avrdude: enable linux-gpio by default
Signed-off-by: John Crispin <blogic@openwrt.org>
2015-08-26 00:24:33 +02:00
John Crispin
ef9e4d0eb2 bluelog: mark as BROKEN
the CC Buildservers are failing on this package as the OUI download timesout indefinatley.

Signed-off-by: John Crispin <blogic@openwrt.org>
2015-08-25 16:20:41 +02:00
heil
ee8052d459 haproxy: fixes for upstream version 1.5.14
- [PATCH 1/4] BUG/MINOR: log: missing some ARGC_* entries in
 - [PATCH 2/4] DOC: usesrc root privileges requirements
 - [PATCH 3/4] BUILD: ssl: Allow building against libssl without SSLv3.
 - [PATCH 4/4] DOC/MINOR: fix OpenBSD versions where haproxy works

Signed-off-by: heil <heil@terminal-consulting.de>
2015-08-24 10:46:34 +02:00
John Crispin
de1b14830d libuv: fix download path
Signed-off-by: John Crispin <blogic@openwrt.org>
2015-08-22 01:14:04 +02:00
John Crispin
da6d7b57f5 python: add dependency to bz2 host build
Signed-off-by: John Crispin <blogic@openwrt.org>
2015-08-22 01:12:58 +02:00
Etienne CHAMPETIER
441da09158 zabbix: update to 2.4.6 (and refresh patches)
Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
2015-08-23 22:24:30 +00:00
Daniel Golle
a6d950b739 sqlite3: update source to 3.8.11.1
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
2015-08-23 19:48:15 +00:00
Ted Hess
02c147374b Merge pull request #1678 from luizluca/for-15.05-ruby_update
ruby: bump version to 2.2.3 [backport from trunk]
2015-08-19 14:54:26 -04:00
Luiz Angelo Daros de Luca
df3c5de2f7 ruby: bump version to 2.2.3
This is a bug and security fix release, including:

- CVE-2015-3900 Request hijacking vulnerability in RubyGems 2.4.6 and earlier

http://svn.ruby-lang.org/repos/ruby/tags/v2_2_3/ChangeLog

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
2015-08-19 14:18:50 -03:00
Rafał Miłecki
01717c05a0 lighttpd: backport a fix for running out of filedescriptors
It was breaking uploads of files 4 MiB+. This patch fixes:
https://github.com/openwrt/packages/issues/1658

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
2015-08-19 17:53:50 +02:00
heil
a7d66cec4c apache: bump to version 2.2.31
Signed-off-by: heil <heil@terminal-consulting.de>
2015-08-17 14:37:14 +02:00
Marcel Denia
b51c61cf55 libidn: Update to 1.32
Signed-off-by: Marcel Denia <naoir@gmx.net>
2015-08-13 20:11:57 +02:00
Nikos Mavrogiannopoulos
74a1d01651 gnutls: updated to 3.4.4
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-08-10 19:51:42 +02:00
Toke Høiland-Jørgensen
1ee31bdfd2 netperf: update to v2.7.0 2015-08-03 18:13:58 +02:00
Toke Høiland-Jørgensen
aa75904c0b Adopt the netperf package.
Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
2015-08-03 18:13:54 +02:00
Steven Barth
e96cf8db91 Merge pull request #1616 from tru7/for-15.05
[for-15.05] knxd: bump to newest version for CC
2015-07-27 23:24:39 +02:00
Jo-Philipp Wich
5cc2d45535 Merge pull request #1618 from MikePetullo/for-15.05
For 15.05: lighttpd: update to 1.4.36
2015-07-27 18:41:01 +02:00
W. Michael Petullo
1e2bf20acf lighttpd: update to 1.4.36
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2015-07-26 12:56:12 -04:00
Alexander Ryzhov
da756e239f lighttpd: add liblua deps for lighttpd-mod-cml and lighttpd-mod-magnet
Signed-off-by: Alexander Ryzhov <openwrt@ryzhov-al.ru>
2015-07-26 12:55:12 -04:00
Othmar Truniger
805c6e6924 knxd: bump to newest version for CC
Signed-off-by: Othmar Truniger <github@truniger.ch>
2015-07-26 18:27:01 +02:00
Jeroen Louwes
75f978879e mwan3: update to version 1.6-2
Fix malformed uci commands. (issue #1502)

Signed-off-by: Jeroen Louwes <jeroen.louwes@gmail.com>
2015-07-23 13:51:04 +02:00
Cezary Jackiewicz
bcedf17632 [packages] vsftpd: CVE-2015-1419
Unspecified vulnerability in vsftp 3.0.2 and earlier allows remote attackers to bypass access restrictions via unknown vectors, related to deny_file parsing.
2015-07-22 09:47:48 +02:00
Steven Barth
f91e8f04a1 Merge pull request #1599 from MikePetullo/for-15.05
For 15.05: openldap: update to 2.4.41
2015-07-21 13:19:32 +02:00
W. Michael Petullo
5006684e43 openldap: remove --without-cyrus-sasl to build SASL support
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2015-07-20 19:01:24 -04:00
W. Michael Petullo
3a02d9e19a openldap: update copyright dates
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2015-07-20 11:00:36 -04:00
W. Michael Petullo
c05dce1890 openldap: update to 2.4.41
Signed-off-by: W. Michael Petullo <mike@flyn.org>
2015-07-20 11:00:20 -04:00
Daniel Golle
64c458ba8c freeradius2: update to 2.2.8
Fixes oCert CVE-2015-4680.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
2015-07-20 10:14:31 +02:00
Steven Barth
bc424ae857 Merge pull request #1572 from dvlemplgk/patch-4
open-plc-utils: backport of update on master branch
2015-07-14 22:12:14 +02:00
Günther Kelleter
14bf39979c open-plc-utils: Update to commit 885a1b7e2e663b5ab8797db6d40a0318131fdf18
This particularly fixes unusable amphost utility on big endian targets.

Signed-off-by: Günther Kelleter <guenther.kelleter@devolo.de>
2015-07-14 15:23:57 +02:00
Toke Høiland-Jørgensen
c293247428 sqm-scripts/luci-app-sqm: Merge upstream changes.
Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
2015-07-12 22:26:42 +02:00
Toke Høiland-Jørgensen
876ee51cc8 sqm-scripts: Default to ECN on for egress.
Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
2015-07-12 22:25:12 +02:00
Sebastian Moeller
e9a7e58ba3 [SQM] Fix simple.qos to allow using cake as ingress shaper
simple.qos had accidentally set up the egress shaper twice, once
with the true egress parameters and a second time using the ingress
parameters, effectively misconfiguring both directions. This bub
only affected situations where 3-tier ingress classification was
used.

Signed-off-by: Sebastian Moeller <moeller0@gmx.de>
2015-07-12 22:25:12 +02:00
Sebastian Moeller
478903aea1 [SQM] Fix sqm_logger to accept empty strings as input
sqm_logger tried tro wait indefinitely if passed an empty string.
This in turn makes sqm-scripts hang. Quoting the input argument in sqm_logger
seems to fix the problem.

Signed-off-by: Sebastian Moeller <moeller0@gmx.de>
2015-07-12 22:25:12 +02:00
Sebastian Moeller
30e02086c5 [SQM] Fix changes relating to cake lnk layer adjustments
The last batch of changes tried to teach the GUI to pass link layer
options to cake but forgot to actually call the function that parses
the GUI variables and used it as a string insteead. So this fixes that
it also tries to allow the use of the tc_stab link layer adjustment
method with cake so the implementations can be validated against each other
easily. Needs testing...

Signed-off-by: Sebastian Moeller <moeller0@gmx.de>
2015-07-12 22:25:12 +02:00
Sebastian Moeller
05fe796a8b [SQM/luci-app-sqm] Wire up link layer dandling for cake
The cake traffic-shaper qdisc omne stop solution knows how to handle
link layer adjustments for ATM and can account for per packet overhead.
This commit adds cake as link layer adjustment mechanism in the GUI and
passes numerically specified overhead as well as the ATM linklayer
keywords on to cake. This change also passes the "advanced option strings"
from the Queue Discipline tab to cake. But as before no error checking.
This needs testing, as I have no working cake qdisc available so
caveat emptor...

Signed-off-by: Sebastian Moeller <moeller0@gmx.de>
2015-07-12 22:25:12 +02:00
Dave Taht
9a532691dd luci-app-sqm: add cake support 2015-07-12 22:25:12 +02:00
Dave Taht
1f9238ed3f sqm-scripts: Support the cake qdisc.
Signed-off-by: Dave Taht <dave.taht@bufferbloat.net>
2015-07-12 22:25:12 +02:00
Sebastian Moeller
499aef158d [SQM/luci-app-sqm] Fix SQM GUI help messages.
Make clear that configuration options guarded by checkboxes are only
effective as long as those boxes are checked.

The sqm gui has giarded some advanced configuration options behind exposing
checkboxes, meaning these optiopn's values were only used as long
as those boxes were checked. This commit just improves the description of
the checkboxes to included this useage instruction...

Signed-off-by: Sebastian Moeller <moeller0@gmx.de>
2015-07-12 22:25:12 +02:00
Sebastian Moeller
7a23a00c45 [SQM/luci-app-sqm] Enable sqm initiscript if a single sqm instance gets enabled
The SQM gui has confused its users with an enable button, that only served to
selecively activate/de-activate sqm instances instead of controlling sqm's
initscript (which needs to be enabled so the sqm properly starts up after a reboot
and also for hotplug to work properly). luci-app-sqm will now enable sqm's
initscript when a single sqm instance get enabled. It also informs the user about
this fact in the top margin of the sqm page. Note sqm will not disable the
initscript behind the user's back if sqm instances get disabled.
While I would have prefered this notice to be more prominent an attentive user
should notice, and most users should not care anyway. This also increases the
package release number.

Signed-off-by: Sebastian Moeller <moeller0@gmx.de>
2015-07-12 22:25:12 +02:00
Marcel Denia
c94254f697 libidn: Update to 1.31
Signed-off-by: Marcel Denia <naoir@gmx.net>
2015-07-12 21:43:03 +02:00
Nikos Mavrogiannopoulos
d8ceff5cba gnutls: updated to 3.4.3
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-07-12 21:42:49 +02:00
Etienne CHAMPETIER
b0f4c0ed6f screen: update to 4.3.1
quickly run tested on ar71xx

Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
2015-07-11 00:38:24 +02:00
Etienne CHAMPETIER
a1a5a3fe5f monit: update to 5.14
run tested on ar71xx

Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
2015-07-11 00:38:23 +02:00
Etienne CHAMPETIER
3387e2715f zabbix: increase PKG_RELEASE
Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
2015-07-11 00:38:23 +02:00
Etienne CHAMPETIER
551f39d4fd zabbix: switch zabbix_agentd to procd
run tested on ar71xx

Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
2015-07-11 00:34:31 +02:00
Etienne CHAMPETIER
f505a27607 zabbix: add option to run daemon in foreground
this will allow us to switch to procd and use jailing ...
this patch come from https://support.zabbix.com/browse/ZBXNEXT-611
big thanks to Boris Manojlovic

Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
2015-07-10 21:45:53 +02:00
Nikos Mavrogiannopoulos
62037ba35f openconnect: corrected call to proto_add_host_dependency
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-07-07 22:49:05 +02:00
arfett
2150ffa21f mwan3-luci update to version 1.4-3
Fixed two issues in Chaos Calmer and trunk:
-troubleshooting page not displaying
-UCI arguments out of order because of switch to musl c library from uclibc

Signed-off-by: Aedan "arfett" Renner <chipdankly@gmail.com>
2015-07-07 10:58:33 +02:00
Saverio Proto
b75488123b [for-15.05] tinc: version bump 1.0.26
Signed-off-by: Saverio Proto <zioproto@gmail.com>
2015-07-06 20:24:59 +02:00
Jiri Slachta
51f194e91f libssh2: update to version 1.6.0
Signed-off-by: Jiri Slachta <slachta@cesnet.cz>
2015-07-04 23:03:29 +02:00
heil
181b13f834 haproxy: fixes from upstream
- BUILD/MINOR: tools: rename popcount to my_popcountl
 - BUG/MAJOR: buffers: make the buffer_slow_realign() function respect output data

Signed-off-by: heil <heil@terminal-consulting.de>
2015-07-03 18:35:21 +02:00
heil
45ba9f112a haproxy: fixes from upstream
- BUG/MAJOR: buffers: make the buffer_slow_realign() function respect output data

Signed-off-by: heil <heil@terminal-consulting.de>
2015-07-02 21:58:51 +02:00
Steven Barth
fa7ed79149 Merge pull request #1490 from chris5560/for-15.05
[for-15.05] ddns-scripts: fix/update to version 2.4.3-1
2015-06-29 11:28:08 +02:00
Christian Schoenebeck
ce2b260ca5 [for-15.05] ddns-scripts: fix/update to version 2.4.3-1
fixed sed when filtering IP address from nslookup output
because "Server:" block might have multiple address lines.
Thanks to Arjen de Korte

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-06-27 10:37:50 +02:00
Nikos Mavrogiannopoulos
7551321fab vpnc-scripts: bumped version
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-06-27 08:22:20 +02:00
Nikos Mavrogiannopoulos
814f65cfb9 vpnc-script: handle multiple servers in INTERNAL_IP_DNS vars
Resolves #1372

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-06-27 08:20:14 +02:00
heil
d74b836a35 haproxy: bugfix release 1.5.13
Released version 1.5.13 with the following main changes :
  - BUG/MINOR: check: fix tcpcheck error message
  - CLEANUP: deinit: remove codes for cleaning p->block_rules
  - DOC: Update doc about weight, act and bck fields in the statistics
  - MINOR: ssl: add a destructor to free allocated SSL ressources
  - BUG/MEDIUM: ssl: fix tune.ssl.default-dh-param value being overwritten
  - MEDIUM: ssl: replace standards DH groups with custom ones
  - BUG/MINOR: debug: display (null) in place of "meth"
  - BUG/MINOR: cfgparse: fix typo in 'option httplog' error message
  - BUG/MEDIUM: cfgparse: segfault when userlist is misused
  - BUG/MEDIUM: stats: properly initialize the scope before dumping stats
  - BUG/MEDIUM: http: don't forward client shutdown without NOLINGER except for tunnels
  - CLEANUP: checks: fix double usage of cur / current_step in tcp-checks
  - BUG/MEDIUM: checks: do not dereference head of a tcp-check at the end
  - CLEANUP: checks: simplify the loop processing of tcp-checks
  - BUG/MAJOR: checks: always check for end of list before proceeding
  - BUG/MEDIUM: checks: do not dereference a list as a tcpcheck struct
  - BUG/MEDIUM: peers: apply a random reconnection timeout
  - BUG/MINOR: ssl: fix smp_fetch_ssl_fc_session_id
  - MEDIUM: init: don't stop proxies in parent process when exiting
  - MINOR: peers: store the pointer to the signal handler
  - MEDIUM: peers: unregister peers that were never started
  - MEDIUM: config: propagate the table's process list to the peers sections
  - MEDIUM: init: stop any peers section not bound to the correct process
  - MEDIUM: config: validate that peers sections are bound to exactly one process
  - MAJOR: peers: allow peers section to be used with nbproc > 1
  - DOC: relax the peers restriction to single-process
  - CLEANUP: config: fix misleading information in error message.
  - MINOR: config: report the number of processes using a peers section in the error case
  - BUG/MEDIUM: config: properly compute the default number of processes for a proxy

Signed-off-by: heil <heil@terminal-consulting.de>
2015-06-26 18:08:24 +02:00
heil
0716433f2e haproxy: upstream fixes
- [PATCH 15/18] MEDIUM: ssl: replace standards DH groups with custom
 - [PATCH 16/18] BUG/MINOR: debug: display (null) in place of "meth"
 - [PATCH 17/18] CLEANUP: deinit: remove codes for cleaning
 - [PATCH 18/18] BUG/MINOR: ssl: fix smp_fetch_ssl_fc_session_id

Signed-off-by: heil <heil@terminal-consulting.de>
2015-06-22 14:59:02 +02:00
Nikos Mavrogiannopoulos
8cb6f4c09e transmission: bumped version
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-06-21 12:00:17 +02:00
Nikos Mavrogiannopoulos
4dd617c9af transmission: increase the number of retries for respawn
The default 5 per hour is too small for transmission which may
crash quite some times.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-06-21 11:59:31 +02:00
Nikos Mavrogiannopoulos
641ee7ce44 transmission: use procd
That allows to restart transmission when it crashes, to limit
the memory used by it, as well as be jailed in the directories
it is supposed to access.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-06-21 11:59:22 +02:00
Nikos Mavrogiannopoulos
90914f8054 ocserv: depend on radcli
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-06-20 13:57:33 +02:00
Nikos Mavrogiannopoulos
c555cb924f libradcli: added package to replace freeradius-client
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-06-20 13:57:26 +02:00
Steven Barth
afc558eb7d strongswan: fix musl builds, reenable lost modules
Signed-off-by: Steven Barth <steven@midlink.org>
2015-06-19 18:39:18 +02:00
John Crispin
4a44bd069e seafile-*: update to trunk version
Signed-off-by: John Crispin <blogic@openwrt.org>
2015-06-18 20:06:11 +02:00
John Crispin
a93c172c71 zmq: update to trunk version
Signed-off-by: John Crispin <blogic@openwrt.org>
2015-06-18 20:05:31 +02:00
Nikos Mavrogiannopoulos
50b79a9e86 ocserv: don't use isolate workers as seccomp is not enabled
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-06-17 22:55:44 +02:00
Nikos Mavrogiannopoulos
d28ab39ffa ocserv: disabled MIPS16
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-06-17 22:08:11 +02:00
Nikos Mavrogiannopoulos
f4e47a668d openconnect: updated to 7.06 and disabled MIPS16
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-06-17 22:08:11 +02:00
Nikos Mavrogiannopoulos
1dc27c47f4 gnutls: updated to 3.4.2
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-06-17 20:48:34 +02:00
Toke Høiland-Jørgensen
ede101a5c2 [sqm-scripts/luci-app-sqm] Document how to disable shaping on a per direction basis
sqm-scripts for a long time interprets a "Down- or Upload speed" of zero as
an indication that the shaper should be disabled. Note that really shaping
an individual direction down  o zero will make the link effectively dead
for tcp (think reverse ACK traffic). Son instead of allowing the user to
configure something broken, 0 was "over-loaded" to denote no shaping
since several years, but that information has not been documented visibly
to the users. This commit aims at fixing that oversight.

Signed-off-by: Sebastian Moeller <moeller0@gmx.de>
2015-06-17 13:05:04 +02:00
Steven Barth
2bff28cf8f Merge pull request #1377 from thess/for-15.05
[for-15.05] Remove elfutils & bzip2
2015-06-16 08:51:52 +02:00
Ted Hess
2e394971cb bzip2: Moved to base on git.openwrt.org
Signed-off-by: Ted Hess <thess@kitschensync.net>
2015-06-15 12:37:18 -04:00
Ted Hess
4bdb4c7d8b elfutils: Moved to base on git.openwrt.org
Signed-off-by: Ted Hess <thess@kitschensync.net>
2015-06-15 12:37:01 -04:00
Ted Hess
ed8272ad80 argp-standalone: Moved to 15.05 base at git.openwrt.org
Signed-off-by: Ted Hess <thess@kitschensync.net>
2015-06-15 08:22:34 -04:00
Steven Barth
f0e68f2beb Merge pull request #1367 from oneru/for-15.05
[For-15.05] Fwknopd: Set capture interface to wan by default
2015-06-14 23:09:32 +02:00
Steven Barth
5f9e4b7830 Merge pull request #1365 from chris5560/for-15.05
[for-15.05] radicale: update to 0.10-2 (not updated from trunk)
2015-06-14 23:09:00 +02:00
Jonathan Bennett
a819f2c165 Fwknopd: Set capture interface to wan by default
Signed-off-by: Jonathan Bennett <JBennett@incomsystems.biz>
2015-06-14 08:42:31 -05:00
Christian Schoenebeck
0341970545 [for-15.05] radicale: update to 0.10-2 (not updated from trunk)
* fixed hotplug script (not restarting on "ifup")
* fixed init script (not stopping in 1 second)
* fixed PKG_MAINTAINER string
* removing not needed comments in config file

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-06-14 12:51:15 +02:00
heil
30908edc95 haproxy: add patches from upstream
- [PATCH 1/2] BUG/MEDIUM: stats: properly initialize the scope before
 - [PATCH 2/2] BUG/MEDIUM: http: don't forward client shutdown without
 - [PATCH 3/8] BUG/MINOR: check: fix tcpcheck error message
 - [PATCH 4/8] CLEANUP: checks: fix double usage of cur / current_step
 - [PATCH 5/8] BUG/MEDIUM: checks: do not dereference head of a
 - [PATCH 6/8] CLEANUP: checks: simplify the loop processing of
 - [PATCH 7/8] BUG/MAJOR: checks: always check for end of list before
 - [PATCH 8/8] BUG/MEDIUM: checks: do not dereference a list as a
 - [PATCH 09/10] BUG/MEDIUM: peers: apply a random reconnection timeout
 - [PATCH 10/10] DOC: Update doc about weight, act and bck fields in the
 - [PATCH 11/14] MINOR: ssl: add a destructor to free allocated SSL
 - [PATCH 12/14] BUG/MEDIUM: ssl: fix tune.ssl.default-dh-param value
 - [PATCH 13/14] BUG/MINOR: cfgparse: fix typo in 'option httplog' error
 - [PATCH 14/14] BUG/MEDIUM: cfgparse: segfault when userlist is misused

Signed-off-by: heil <heil@terminal-consulting.de>
2015-06-11 19:05:51 +02:00
heil
f109732f56 pcre: fix CVE-2015-3210
- should fix eap buffer overflow in pcre_compile2() / compile_regex()

Signed-off-by: heil <heil@terminal-consulting.de>
2015-06-08 18:19:07 +02:00
Steven Barth
535e9ef92c strongswan: bump to 5.3.2
Signed-off-by: Steven Barth <steven@midlink.org>
2015-06-08 18:10:16 +02:00
Ted Hess
e56c31a78e Merge pull request #1347 from thess/for-15.05
zmq: Make CurveZMQ security (libsodium) optional [for-15.05]
2015-06-08 07:11:11 -04:00
Steven Barth
430408c0b2 strongswan: update to 5.3.1, cleanup broken modules
Signed-off-by: Steven Barth <steven@midlink.org>
2015-06-08 07:49:03 +02:00
Marcel Denia
4c4c2dbdae db47: Disable Replication Manager
Replication Manager accidentally got enabled by 541193d.
Fixes #1331.

Signed-off-by: Marcel Denia <naoir@gmx.net>
2015-06-05 09:48:38 +02:00
Ted Hess
4267ae50f4 zmq: Make CurveZMQ security (libsodium) optional, cleanup descrition and dependencies
Signed-off-by: Ted Hess <thess@kitschensync.net>
2015-06-04 13:19:34 -04:00
Ted Hess
20a7734215 Revert "zmq: Make CurveZMQ security (libsodium) optional, cleanup descrition and dependencies"
This reverts commit 2cd58bca38.
2015-06-04 13:09:04 -04:00
Ted Hess
2cd58bca38 zmq: Make CurveZMQ security (libsodium) optional, cleanup descrition and dependencies
Signed-off-by: Ted Hess <thess@kitschensync.net>
2015-06-04 13:01:19 -04:00
Paul Fertser
6b8276a000 openocd: update to final 0.9.0
Disables building documentation to avoid makeinfo v4,v5
incompatibilities.

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2015-06-02 10:06:29 +00:00
Steven Barth
bb9e1ed2c0 Merge pull request #1328 from Naoir/db-python-cc
db47: Force pthread mutexes, bump PKG_RELEASE [for-15.05]
2015-05-31 14:48:44 +02:00
Marcel Denia
541193dd39 db47: Force pthread mutexes, bump PKG_RELEASE
Fixes #1312.

Signed-off-by: Marcel Denia <naoir@gmx.net>
2015-05-31 13:48:55 +02:00
Nikos Mavrogiannopoulos
f138a1ca3c gnutls: corrected regression with camellia cipher
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-05-30 22:53:01 +02:00
Nikos Mavrogiannopoulos
4ae1631f2a ocserv: use freeradius-client library if radius support is requested
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-05-30 22:46:46 +02:00
Nikos Mavrogiannopoulos
c7b9381de5 freeradius-client: added library
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-05-30 22:46:46 +02:00
Marko Ratkaj
7b8fd78406 ulogd: add json plugin
Signed-off-by: Marko Ratkaj <marko.ratkaj@sartura.hr>
2015-05-28 16:09:01 +02:00
Etienne CHAMPETIER
761c15286f sqlite: update to 3.8.10.2
quickly run tested on ar71xx

Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
2015-05-27 22:06:42 +02:00
Etienne CHAMPETIER
7594df416e zabbix: update to 2.4.5
run tested on ar71xx

Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
2015-05-27 22:06:42 +02:00
Etienne CHAMPETIER
ac7044ae08 monit: update to 5.13
run tested on ar71xx

Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
2015-05-27 22:06:42 +02:00
Karl Palsson
a1e9270f77 libev: Import from management, with path fixes
Imports the latest version from the management feed, and fixes the
install paths.  All example code, and desktop linux expects and installs
libev's headers to /usr/include/<ev.h> not under a subdirectory.

Signed-off-by: Karl Palsson <karlp@tweak.net.au>
2015-05-27 13:26:26 +02:00
Steven Barth
e0fd1fada4 Merge pull request #1288 from equinox0815/for-15.05-pps-tools-linux3.18
pps-tools: enable for Linux 3.18 [for-15.05]
2015-05-27 12:13:44 +02:00
Steven Barth
f7fc4e1ac5 Merge pull request #1304 from equinox0815/for-15.05-ntpd-enalbe-pps
ntpd: enable ATOM (PPS) support [for-15.05]
2015-05-27 12:12:30 +02:00
Jonathan Bennett
a696764d9c libqrencode: fix typo in makefile
Fix compile error due to autoconf
Signed-off-by: Jonathan Bennett <jbennett@incomsystems.biz>
2015-05-26 15:24:03 +02:00
Mislav Novakovic
6f36722c73 freeradius2: add mirror for older releases
Signed-off-by: Mislav Novakovic <mislav.novakovic@sartura.hr>
2015-05-26 00:40:31 +02:00
Christian Pointner
26b4ffca23 ntpd: enable ATOM (PPS) support
Signed-off-by: Christian Pointner <equinox@spreadspace.org>
2015-05-25 20:11:34 +02:00
Hauke Mehrtens
73284144f3 openvswitch: fix build with kernel >= 3.18.13
This fixes a build problem with kernel >= 3.18.13.
This should close #1283.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
2015-05-24 15:36:44 +02:00
Nikos Mavrogiannopoulos
485bb55197 ocserv: corrected checksum
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-05-24 11:16:51 +02:00
Nikos Mavrogiannopoulos
e08003851f ocserv: updated to 0.10.5
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-05-24 11:10:48 +02:00
Steven Barth
f232eea959 Merge pull request #1290 from Naoir/bash-cc
bash: Update to 4.3.39 [for-15.05]
2015-05-24 10:16:05 +02:00
Jonathan Bennett
2172a9875f Fwknopd: Backport patch to enable keygen in fwknopd
Signed-off-by: Jonathan Bennett <jbennett@incomsystems.biz>
2015-05-24 10:14:22 +02:00
Christian Pointner
8571c01945 pps-tools: enable for Linux 3.18
Signed-off-by: Christian Pointner <equinox@spreadspace.org>
2015-05-22 23:46:25 +02:00
Nikos Mavrogiannopoulos
3558865a6e ocserv: silence warnings and set group default value
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-05-22 21:57:12 +02:00
Marcel Denia
ff0037ac69 bash: Update to 4.3.39
Signed-off-by: Marcel Denia <naoir@gmx.net>
2015-05-22 07:38:37 +02:00
Steven Barth
e4fe3cd093 Merge pull request #1276 from oneru/for-15.05
[for-15.05] libqrencode: import from old packages
2015-05-21 14:44:23 +02:00
Steven Barth
e02c7e81d0 Merge pull request #1273 from guillaume-d/guillaume-d/protobuf/fix-2.6.1
protobuf: Update version to 2.6.1
2015-05-21 07:40:20 +02:00
Jonathan Bennett
8c7d4c4713 libqrencode: import from old packages
Update to latest release
add qrencode package which contains the qrencode binary
Remove libpng dependancy
Signed-off-by: Jonathan Bennett <jbennett@incomsystems.biz>
2015-05-20 18:24:41 -05:00
Guillaume
5bf0fd165e protobuf: Add licensing info and update copyright
Signed-off-by: Guillaume Déflache <guillaume.deflache@ibwag.com>
2015-05-20 23:58:56 +02:00
Luka Perkov
914beae80e libdaq: add SF mirror
Signed-off-by: Luka Perkov <luka@openwrt.org>
2015-05-20 19:10:05 +02:00
Luka Perkov
5ed3339b07 snort: add SF mirror
Signed-off-by: Luka Perkov <luka@openwrt.org>
2015-05-20 19:10:01 +02:00
Guillaume Déflache
359721a21c protobuf: Update version to 2.6.1
- Unbroke MIPS support which got entirely lost since the upgrade from 2.4.1:
  now all ISAs should work (MIPS1 would need kernel emulation though, untested)
- Fixed host installation which was broken on all targets
- Updated source origin to github and related variables
- Kept mipseb patch exception and MIPS16:=0 exclusion (needed for BB and CC compilation)

Only tested on a ZyXEL NBG6716 router which is MIPS32 (MIPS74Kc), ar71xx target.

Signed-off-by: Guillaume Déflache <guillaume.deflache@ibwag.com>
2015-05-19 17:26:17 +02:00
Christian Schoenebeck
3843e8459a ddns-scripts: update to version 2.4.2-1
* fix Makefile to force compression of tld_names.dat reported in OpenWrt Ticket 19597
* change default of retry_count to "0" (retry endless) suggested by Henning Schild
* updated tld_names.dat include changes until 07.05.2015

Signed-off-by: Christian Schoenebeck <christian.schoenebeck@gmail.com>
2015-05-18 10:10:31 +02:00
Nikos Mavrogiannopoulos
1d285067a6 libseccomp: updated to 2.2.1
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-05-17 20:10:59 +02:00
Jonathan Bennett
dcaa438f41 Fwknopd: Fix a typo in the init file
Signed-off-by: Jonathan Bennett <jbennett@incomsystems.biz>
2015-05-15 09:43:15 +02:00
Jonathan Bennett
7d72d8b170 Fwknop: add flexibility to uci support
Styling cleanups
signed-off-by: Jonathan Bennett <jbennett@incomsystems.biz>
2015-05-15 09:43:15 +02:00
Jonathan Bennett
8c1e0d4bfd Fwknop: Update to newest release
add basic uci support
add optional gpg support

signed-off-by: Jonathan Bennett <jbennett@incomsystems.biz>
2015-05-15 09:43:15 +02:00
Daniel Golle
76baa032e8 Merge pull request #1254 from lgierth/dkjson-git-15.05
dkjson: switch to LuaDist git repo (for-15.05)
2015-05-13 16:52:00 +02:00
Lars Gierth
92c6504a27 dkjson: bump release
Signed-off-by: Lars Gierth <larsg@systemli.org>
2015-05-13 16:46:35 +02:00
Lars Gierth
89f54efb57 dkjson: switch to LuaDist git repo
Signed-off-by: Lars Gierth <larsg@systemli.org>
2015-05-13 16:46:35 +02:00
Steven Barth
28167ad7eb Merge pull request #1251 from thess/mpd-for-15.05
mpd: Update to 0.18.23, fix ALSA support in mpd-mini, refresh patches (for 15.05)
2015-05-13 00:37:13 +02:00
Steven Barth
a01eb81082 Merge pull request #1252 from thess/libmpdclient-for-15.05
libmpdclient: Update to 2.10 (for 15.05)
2015-05-13 00:36:55 +02:00
Ted Hess
f46542cb83 mpd: Update to 0.18.23, fix ALSA support in mpd-mini, refresh patches
Signed-off-by: Ted Hess <thess@kitschensync.net>
2015-05-12 15:42:29 -04:00
Ted Hess
2019612ec5 libmpdclient: Update to 2.10
Signed-off-by: Ted Hess <thess@kitschensync.net>
2015-05-12 15:39:32 -04:00
Markus Stenberg
e53068dda8 mdnsresponder: No longer require IPv4 address to start.
It used to require 1+ IPv4 addresses to start on Linux. Now it starts
up with 0 addresses (of any type), as netlink can provide us more
later. This way, no stupid restart loop with procd if it is racing
with netifd at startup.

Signed-off-by: Steven Barth <steven@midlink.org>
2015-05-08 13:29:32 +02:00
Karl Palsson
eb97e6fc0f net/mosquitto: Upgrade 1.4.1 to 1.4.2
Bugfix release.  Full changelog available at:
http://mosquitto.org/2015/05/version-1-4-2-released/

Drops a patch now included upstream.

Signed-off-by: Karl Palsson <karlp@remake.is>
2015-05-08 10:44:44 +00:00
Marty R
325c643c92 nut: remove patch for old automake version
tools/automake was updated to 1.15 which removed this bug; patch no longer needed.

Signed-off-by: Martin Rowe <martin.p.rowe@gmail.com>
2015-05-07 08:59:44 +02:00
Steven Barth
fa9ffdfb41 Merge branch 'master' into for-15.05 2015-05-04 20:31:17 +02:00
Nikos Mavrogiannopoulos
9d06518ca4 gnutls: updated to 3.4.1
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
2015-05-04 18:42:33 +02:00
454 changed files with 21335 additions and 11854 deletions

View file

@ -2,8 +2,9 @@
(See <http://wiki.openwrt.org/doc/devel/packages> for overall format and construction) (See <http://wiki.openwrt.org/doc/devel/packages> for overall format and construction)
All packages you commit or submit by pull-request should follow these simple guidelines: ### Basic guidelines
All packages you commit or submit by pull-request should follow these simple guidelines:
* Package a version which is still maintained by the upstream author. * Package a version which is still maintained by the upstream author.
* Will be updated regularly to maintained and supported versions. * Will be updated regularly to maintained and supported versions.
* Have no dependencies outside the OpenWrt core packages or this repository feed. * Have no dependencies outside the OpenWrt core packages or this repository feed.
@ -11,7 +12,7 @@ All packages you commit or submit by pull-request should follow these simple gui
* Do NOT use a rolling source file (e.g. foo-latest.tar.gz) or the head of a branch as source for the package since that would create unpredictable builds which change over time. * Do NOT use a rolling source file (e.g. foo-latest.tar.gz) or the head of a branch as source for the package since that would create unpredictable builds which change over time.
* Best of all -- it works as expected! * Best of all -- it works as expected!
Makefile contents should contain: #### Makefile contents should contain:
* An up-to-date copyright notice. Use OpenWrt if no other present or supply your own. * An up-to-date copyright notice. Use OpenWrt if no other present or supply your own.
* A (PKG_)MAINTAINER definition listing either yourself or another person in the field. * A (PKG_)MAINTAINER definition listing either yourself or another person in the field.
@ -22,27 +23,47 @@ Makefile contents should contain:
(E.g.: PKG_LICENSE_FILES:=COPYING) (E.g.: PKG_LICENSE_FILES:=COPYING)
* PKG_RELEASE should be initially set to 1 or reset to 1 if the software version is changed. You should increment it if the package itself has changed. For example, modifying a support script, changing configure options like --disable* or --enable* switches, or if you changed something in the package which causes the resulting binaries to be different. Changes like correcting md5sums, changing mirror URLs, adding a maintainer field or updating a comment or copyright year in a Makefile do not require a change to PKG_RELEASE. * PKG_RELEASE should be initially set to 1 or reset to 1 if the software version is changed. You should increment it if the package itself has changed. For example, modifying a support script, changing configure options like --disable* or --enable* switches, or if you changed something in the package which causes the resulting binaries to be different. Changes like correcting md5sums, changing mirror URLs, adding a maintainer field or updating a comment or copyright year in a Makefile do not require a change to PKG_RELEASE.
Commits in your pull-requests should: #### Commits in your pull-requests should:
* Have a useful description prefixed with the package name * Have a useful description prefixed with the package name
(E.g.: "foopkg: Add libzot dependency") (E.g.: "foopkg: Add libzot dependency")
* Include Signed-off-by in the comment * Include Signed-off-by in the comment
(See <https://dev.openwrt.org/wiki/SubmittingPatches#a10.Signyourwork>) (See <https://dev.openwrt.org/wiki/SubmittingPatches#a10.Signyourwork>)
If you have commit access: ### Advice on pull requests:
Pull requests are the easiest way to contribute changes to git repos at Github. They are the preferred contribution method, as they offer a nice way for commenting and amending the proposed changes.
* You need a local "fork" of the Github repo.
* Use a "feature branch" for your changes. That separates the changes in the pull request from your other changes and makes it easy to edit/amend commits in the pull request. Workflow using "feature_x" as the example:
- Update your local git fork to the tip (of the master, usually)
- Create the feature branch with `git checkout -b feature_x`
- Edit changes and commit them locally
- Push them to your Github fork by `git push -u origin feature_x`. That creates the "feature_x" branch at your Github fork and sets it as the remote of this branch
- When you now visit Github, you should see a proposal to create a pull request
* If you later need to add new commits to the pull request, you can simply commit the changes to the local branch and then use `git push` to automatically update the pull request.
* If you need to change something in the existing pull request (e.g. to add a missing signed-off-by line to the commit message), you can use `git push -f` to overwrite the original commits. That is easy and safe when using a feature branch. Example workflow:
- Checkout the feature branch by `git checkout feature_x`
- Edit changes and commit them locally. If you are just updating the commit message in the last commit, you can use `git commit --amend` to do that
- If you added several new commits or made other changes that require cleaning up, you can use `git rebase -i HEAD~X` (X = number of commits to edit) to possibly squash some commits
- Push the changed commits to Github with `git push -f` to overwrite the original commits in the "feature_x" branch with the new ones. The pull request gets automatically updated
### If you have commit access:
* Do NOT use git push --force. * Do NOT use git push --force.
* Do NOT commit to other maintainer's packages without their consent. * Do NOT commit to other maintainer's packages without their consent.
* Use Pull Requests if you are unsure and to suggest changes to other maintainers. * Use Pull Requests if you are unsure and to suggest changes to other maintainers.
Gaining commit access: #### Gaining commit access:
* We will gladly grant commit access to responsible contributors who have made * We will gladly grant commit access to responsible contributors who have made
useful pull requests and / or feedback or patches to this repository or useful pull requests and / or feedback or patches to this repository or
OpenWrt in general. Please include your request for commit access in your OpenWrt in general. Please include your request for commit access in your
next pull request or ticket. next pull request or ticket.
Release Branches: ### Release Branches:
* Branches named "for-XX.YY" (e.g. for-14.07) are release branches. * Branches named "for-XX.YY" (e.g. for-14.07) are release branches.
* These branches are built with the respective OpenWrt release and are created * These branches are built with the respective OpenWrt release and are created
@ -51,9 +72,8 @@ Release Branches:
* Do NOT add new packages and do NOT do major upgrades of packages here. * Do NOT add new packages and do NOT do major upgrades of packages here.
* If you are unsure if your change is suitable, please use a pull request. * If you are unsure if your change is suitable, please use a pull request.
####Common LICENSE tags (short list) ### Common LICENSE tags (short list)
(Complete list can be found at: <http://spdx.org/licenses>) (Complete list can be found at: <http://spdx.org/licenses>)
####
| Full Name | Identifier | | Full Name | Identifier |
|---|:---| |---|:---|

View file

@ -8,12 +8,12 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=monit PKG_NAME:=monit
PKG_VERSION:=5.12.2 PKG_VERSION:=5.14
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://mmonit.com/monit/dist PKG_SOURCE_URL:=http://mmonit.com/monit/dist
PKG_MD5SUM:=5f5cf4c18b42e8091b49b4e07cf972ce PKG_MD5SUM:=1b3ae1eb08a0914402a8764e5689c1c5
PKG_LICENSE:=AGPL-3.0 PKG_LICENSE:=AGPL-3.0
PKG_LICENSE_FILES:=COPYING PKG_LICENSE_FILES:=COPYING

View file

@ -1,6 +1,6 @@
--- a/configure --- a/configure
+++ b/configure +++ b/configure
@@ -13821,14 +13821,7 @@ fi @@ -13849,14 +13849,7 @@ fi
# Find the right directory to put the root-mode PID file in # Find the right directory to put the root-mode PID file in
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pid file location" >&5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pid file location" >&5
$as_echo_n "checking pid file location... " >&6; } $as_echo_n "checking pid file location... " >&6; }

View file

@ -8,14 +8,14 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=sudo PKG_NAME:=sudo
PKG_VERSION:=1.8.13 PKG_VERSION:=1.8.14p3
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_LICENSE:=ISC PKG_LICENSE:=ISC
PKG_LICENSE_FILES:=doc/LICENSE PKG_LICENSE_FILES:=doc/LICENSE
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.sudo.ws/sudo/dist PKG_SOURCE_URL:=http://www.sudo.ws/dist
PKG_MD5SUM:=f61577ec330ad1bd504c0e2eec6ea2d8 PKG_MD5SUM:=93dbd1e47c136179ff1b01494c1c0e75
PKG_INSTALL:=1 PKG_INSTALL:=1
@ -40,6 +40,7 @@ endef
define Package/sudo/conffiles define Package/sudo/conffiles
/etc/sudoers /etc/sudoers
/etc/sudoers.d/
endef endef
CONFIGURE_ARGS+= \ CONFIGURE_ARGS+= \

View file

@ -0,0 +1,12 @@
diff -rupN sudo-1.8.14p3.orig/include/sudo_util.h sudo-1.8.14p3/include/sudo_util.h
--- sudo-1.8.14p3.orig/include/sudo_util.h 2015-07-22 14:22:49.000000000 +0200
+++ sudo-1.8.14p3/include/sudo_util.h 2015-08-30 18:41:24.509814946 +0200
@@ -23,6 +23,8 @@
# include "compat/stdbool.h"
#endif /* HAVE_STDBOOL_H */
+#include <sys/types.h>
+
/*
* Macros for operating on struct timeval.
*/

View file

@ -1,5 +1,5 @@
# #
# Copyright (C) 2006-2014 OpenWrt.org # Copyright (C) 2006-2015 OpenWrt.org
# #
# This is free software, licensed under the GNU General Public License v2. # This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information. # See /LICENSE for more information.
@ -8,12 +8,12 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=zabbix PKG_NAME:=zabbix
PKG_VERSION:=2.4.4 PKG_VERSION:=2.4.6
PKG_RELEASE:=1 PKG_RELEASE:=3
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/zabbix PKG_SOURCE_URL:=@SF/zabbix
PKG_MD5SUM:=400a3e2ebec80e2f1fe86d1b32bfd2e1 PKG_MD5SUM:=06ad8d5808a0eddf2b9f0a256b6a5fde
PKG_LICENSE:=GPL-2.0 PKG_LICENSE:=GPL-2.0
PKG_LICENSE_FILES:=COPYING PKG_LICENSE_FILES:=COPYING
@ -33,6 +33,7 @@ define Package/zabbix/Default
SUBMENU:=zabbix SUBMENU:=zabbix
MAINTAINER:=Etienne CHAMPETIER <champetier.etienne@gmail.com> MAINTAINER:=Etienne CHAMPETIER <champetier.etienne@gmail.com>
USERID:=zabbix=53:zabbix=53 USERID:=zabbix=53:zabbix=53
DEPENDS += $(ICONV_DEPENDS)
endef endef
define Package/zabbix-agent define Package/zabbix-agent
@ -48,19 +49,19 @@ endef
define Package/zabbix-extra-mac80211 define Package/zabbix-extra-mac80211
$(call Package/zabbix/Default) $(call Package/zabbix/Default)
TITLE+= discovery/userparameters for mac80211 TITLE+= discovery/userparameters for mac80211
DEPENDS += +zabbix-agentd @PACKAGE_MAC80211_DEBUGFS @KERNEL_DEBUG_FS DEPENDS = +zabbix-agentd @PACKAGE_MAC80211_DEBUGFS @KERNEL_DEBUG_FS
endef endef
define Package/zabbix-extra-network define Package/zabbix-extra-network
$(call Package/zabbix/Default) $(call Package/zabbix/Default)
TITLE+= discovery/userparameters for network TITLE+= discovery/userparameters for network
DEPENDS += +zabbix-agentd +libuci-lua +lua DEPENDS = +zabbix-agentd +libuci-lua +lua
endef endef
define Package/zabbix-extra-wifi define Package/zabbix-extra-wifi
$(call Package/zabbix/Default) $(call Package/zabbix/Default)
TITLE+= discovery/userparameters for wifi TITLE+= discovery/userparameters for wifi
DEPENDS += +zabbix-agentd +libiwinfo-lua +libuci-lua +lua DEPENDS = +zabbix-agentd +libiwinfo-lua +libuci-lua +lua
endef endef
define Package/zabbix-sender define Package/zabbix-sender
@ -107,6 +108,7 @@ CONFIGURE_ARGS+= \
--enable-agent \ --enable-agent \
--enable-server \ --enable-server \
--enable-proxy \ --enable-proxy \
$(call autoconf_bool,CONFIG_IPV6,ipv6) \
--disable-java \ --disable-java \
--with-sqlite3="$(STAGING_DIR)/usr" --with-sqlite3="$(STAGING_DIR)/usr"

22
admin/zabbix/files/zabbix_agentd.init Normal file → Executable file
View file

@ -3,29 +3,19 @@
START=60 START=60
USE_PROCD=1
PROG=/usr/sbin/zabbix_agentd PROG=/usr/sbin/zabbix_agentd
CONFIG=/etc/zabbix_agentd.conf CONFIG=/etc/zabbix_agentd.conf
SERVICE_PID_FILE=/var/run/zabbix_agentd.pid
start() { start_service() {
# Sometimes the agentd config was installed in /etc/zabbix/zabbix_agentd.conf # Sometimes the agentd config was installed in /etc/zabbix/zabbix_agentd.conf
[ -f /etc/zabbix/zabbix_agentd.conf ] && mv /etc/zabbix/zabbix_agentd.conf ${CONFIG} [ -f /etc/zabbix/zabbix_agentd.conf ] && mv /etc/zabbix/zabbix_agentd.conf ${CONFIG}
[ -f ${CONFIG} ] || return 1 [ -f ${CONFIG} ] || return 1
grep -q "^PidFile=${SERVICE_PID_FILE}" ${CONFIG} || { procd_open_instance
logger -s -t ${CONFIG} -p daemon.error "Only \"PidFile=${SERVICE_PID_FILE}\" supported" procd_set_param command ${PROG} -c ${CONFIG} -f
return 1 procd_set_param respawn
} procd_close_instance
grep -q "^AllowRoot=1" ${CONFIG} || {
touch ${SERVICE_PID_FILE}
chown zabbix:zabbix ${SERVICE_PID_FILE}
}
service_start ${PROG} -c ${CONFIG}
} }
stop() {
service_stop ${PROG}
}

View file

@ -10,8 +10,8 @@
-# Mandatory: no -# Mandatory: no
-# Default: -# Default:
-# PidFile=/tmp/zabbix_agentd.pid -# PidFile=/tmp/zabbix_agentd.pid
+# Only /var/run/zabbix_agentd.pid supported +# We do not need PidFile with procd
+PidFile=/var/run/zabbix_agentd.pid +# PidFile=/var/run/zabbix_agentd.pid
### Option: LogFile ### Option: LogFile
# Name of log file. # Name of log file.

View file

@ -0,0 +1,243 @@
--- a/include/common.h
+++ b/include/common.h
@@ -1083,4 +1083,7 @@ int parse_serveractive_element(char *str
char *zbx_dyn_escape_shell_single_quote(const char *text);
+#define ZBX_RUN_BACKGROUND 0
+#define ZBX_RUN_FOREGROUND 1
+
#endif
--- a/include/daemon.h
+++ b/include/daemon.h
@@ -28,7 +28,7 @@ extern char *CONFIG_PID_FILE;
#include "threads.h"
-int daemon_start(int allow_root, const char *user);
+int daemon_start(int allow_root, const char *user, int run_foreground);
void daemon_stop();
int zbx_sigusr_send(int flags);
@@ -36,6 +36,6 @@ int zbx_sigusr_send(int flags);
#define ZBX_IS_RUNNING() 1
#define ZBX_DO_EXIT()
-#define START_MAIN_ZABBIX_ENTRY(a, u) daemon_start(a, u)
+#define START_MAIN_ZABBIX_ENTRY(a, u, f) daemon_start(a, u, f)
#endif /* ZABBIX_DAEMON_H */
--- a/src/libs/zbxnix/daemon.c
+++ b/src/libs/zbxnix/daemon.c
@@ -272,16 +272,17 @@ static void set_daemon_signal_handlers()
* *
* Purpose: init process as daemon *
* *
- * Parameters: allow_root - allow root permission for application *
- * user - user on the system to which to drop the *
- * privileges *
+ * Parameters: allow_root - allow root permission for application *
+ * user - user on the system to which to drop the *
+ * privileges *
+ * run_foreground - should it close its controling tty *
* *
* Author: Alexei Vladishev *
* *
* Comments: it doesn't allow running under 'root' if allow_root is zero *
* *
******************************************************************************/
-int daemon_start(int allow_root, const char *user)
+int daemon_start(int allow_root, const char *user, int run_foreground)
{
pid_t pid;
struct passwd *pwd;
@@ -336,15 +337,22 @@ int daemon_start(int allow_root, const c
#endif
}
- if (0 != (pid = zbx_fork()))
- exit(EXIT_SUCCESS);
+ if ( ZBX_RUN_FOREGROUND != run_foreground)
+ if (0 != (pid = zbx_fork()))
+ exit(EXIT_SUCCESS);
setsid();
signal(SIGHUP, SIG_IGN);
- if (0 != (pid = zbx_fork()))
- exit(EXIT_SUCCESS);
+ if ( ZBX_RUN_FOREGROUND == run_foreground) {
+ zabbix_log(LOG_LEVEL_INFORMATION, "Running in foreground...");
+ } else {
+ if (0 != (pid = zbx_fork()))
+ exit(EXIT_SUCCESS);
+ }
+
+
if (-1 == chdir("/")) /* this is to eliminate warning: ignoring return value of chdir */
assert(0);
--- a/src/zabbix_agent/zabbix_agentd.c
+++ b/src/zabbix_agent/zabbix_agentd.c
@@ -62,6 +62,8 @@ const char *progname = NULL;
static char DEFAULT_CONFIG_FILE[] = SYSCONFDIR "/zabbix_agentd.conf";
#endif
+int CONFIG_FOREGROUND = ZBX_RUN_BACKGROUND;
+
/* application TITLE */
const char title_message[] = APPLICATION_NAME
#if defined(_WIN64)
@@ -93,6 +95,7 @@ const char usage_message[] =
const char *help_message[] = {
"Options:",
" -c --config <config-file> Absolute path to the configuration file",
+ " -f --foreground Run in foreground don't fork",
" -p --print Print known items and exit",
" -t --test <item key> Test specified item and exit",
" -h --help Display help information",
@@ -127,6 +130,7 @@ const char *help_message[] = {
/* COMMAND LINE OPTIONS */
static struct zbx_option longopts[] =
{
+ {"foreground", 0, NULL, 'f'},
{"config", 1, NULL, 'c'},
{"help", 0, NULL, 'h'},
{"version", 0, NULL, 'V'},
@@ -147,7 +151,7 @@ static struct zbx_option longopts[] =
};
static char shortopts[] =
- "c:hVpt:"
+ "c:hfVpt:"
#ifndef _WINDOWS
"R:"
#else
@@ -241,6 +245,9 @@ static void parse_commandline(int argc,
{
switch (ch)
{
+ case 'f':
+ CONFIG_FOREGROUND = ZBX_RUN_FOREGROUND;
+ break;
case 'c':
CONFIG_FILE = strdup(zbx_optarg);
break;
@@ -944,7 +951,7 @@ int main(int argc, char **argv)
break;
}
- START_MAIN_ZABBIX_ENTRY(CONFIG_ALLOW_ROOT, CONFIG_USER);
+ START_MAIN_ZABBIX_ENTRY(CONFIG_ALLOW_ROOT, CONFIG_USER, CONFIG_FOREGROUND);
exit(EXIT_SUCCESS);
}
--- a/src/zabbix_proxy/proxy.c
+++ b/src/zabbix_proxy/proxy.c
@@ -60,6 +60,7 @@ const char usage_message[] = "[-hV] [-c
const char *help_message[] = {
"Options:",
+ " -f --foreground Run in foreground don't fork",
" -c --config <file> Absolute path to the configuration file",
" -R --runtime-control <option> Perform administrative functions",
"",
@@ -84,6 +85,7 @@ const char *help_message[] = {
/* long options */
static struct zbx_option longopts[] =
{
+ {"foreground", 0, NULL, 'f'},
{"config", 1, NULL, 'c'},
{"runtime-control", 1, NULL, 'R'},
{"help", 0, NULL, 'h'},
@@ -92,7 +94,7 @@ static struct zbx_option longopts[] =
};
/* short options */
-static char shortopts[] = "c:n:hVR:";
+static char shortopts[] = "c:n:fhVR:";
/* end of COMMAND LINE OPTIONS */
@@ -202,6 +204,7 @@ char *CONFIG_LOAD_MODULE_PATH = NULL;
char **CONFIG_LOAD_MODULE = NULL;
char *CONFIG_USER = NULL;
+int CONFIG_FOREGROUND = ZBX_RUN_BACKGROUND;
/* web monitoring */
#ifdef HAVE_LIBCURL
@@ -666,6 +669,9 @@ int main(int argc, char **argv)
{
switch (ch)
{
+ case 'f':
+ CONFIG_FOREGROUND = ZBX_RUN_FOREGROUND;
+ break;
case 'c':
CONFIG_FILE = zbx_strdup(CONFIG_FILE, zbx_optarg);
break;
@@ -705,7 +711,7 @@ int main(int argc, char **argv)
init_ipmi_handler();
#endif
- return daemon_start(CONFIG_ALLOW_ROOT, CONFIG_USER);
+ return daemon_start(CONFIG_ALLOW_ROOT, CONFIG_USER, CONFIG_FOREGROUND);
}
int MAIN_ZABBIX_ENTRY()
--- a/src/zabbix_server/server.c
+++ b/src/zabbix_server/server.c
@@ -64,6 +64,7 @@ const char usage_message[] = "[-hV] [-c
const char *help_message[] = {
"Options:",
+ " -f --foreground Run in foreground don't fork",
" -c --config <file> Absolute path to the configuration file",
" -R --runtime-control <option> Perform administrative functions",
"",
@@ -88,6 +89,7 @@ const char *help_message[] = {
/* long options */
static struct zbx_option longopts[] =
{
+ {"foreground", 0, NULL, 'f'},
{"config", 1, NULL, 'c'},
{"runtime-control", 1, NULL, 'R'},
{"help", 0, NULL, 'h'},
@@ -96,7 +98,7 @@ static struct zbx_option longopts[] =
};
/* short options */
-static char shortopts[] = "c:n:hVR:";
+static char shortopts[] = "c:n:fhVR:";
/* end of COMMAND LINE OPTIONS */
@@ -197,6 +199,7 @@ char *CONFIG_LOAD_MODULE_PATH = NULL;
char **CONFIG_LOAD_MODULE = NULL;
char *CONFIG_USER = NULL;
+int CONFIG_FOREGROUND = ZBX_RUN_BACKGROUND;
/* web monitoring */
#ifdef HAVE_LIBCURL
@@ -631,6 +634,9 @@ int main(int argc, char **argv)
{
switch (ch)
{
+ case 'f':
+ CONFIG_FOREGROUND = ZBX_RUN_FOREGROUND;
+ break;
case 'c':
CONFIG_FILE = zbx_strdup(CONFIG_FILE, zbx_optarg);
break;
@@ -670,7 +676,7 @@ int main(int argc, char **argv)
init_ipmi_handler();
#endif
- return daemon_start(CONFIG_ALLOW_ROOT, CONFIG_USER);
+ return daemon_start(CONFIG_ALLOW_ROOT, CONFIG_USER, CONFIG_FOREGROUND);
}
int MAIN_ZABBIX_ENTRY()

View file

@ -9,12 +9,15 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=dkjson PKG_NAME:=dkjson
PKG_VERSION:=2.5 PKG_VERSION:=2.5
PKG_RELEASE:=2 PKG_RELEASE:=3
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://github.com/LuaDist/dkjson.git
PKG_SOURCE_URL:=http://dkolf.de/src/dkjson-lua.fsl/tarball/ PKG_SOURCE_PROTO:=git
PKG_MD5SUM:=af6b5f3df681e208f1dfb1a724a87e7c PKG_SOURCE_VERSION:=e72ba0c9f5d8b8746fc306f6189a819dbb5cd0be
PKG_LICENSE:=MIT PKG_LICENSE:=MIT
PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.bz2
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_SOURCE_VERSION)
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_SOURCE_VERSION)
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk

View file

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=lua-cjson PKG_NAME:=lua-cjson
PKG_VERSION:=2.1.0 PKG_VERSION:=2.1.0
PKG_RELEASE:=1 PKG_RELEASE:=2
PKG_MAINTAINER:=Dirk Chang <dirk@kooiot.com> PKG_MAINTAINER:=Dirk Chang <dirk@kooiot.com>
PKG_LICENSE:=MIT PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=LICENSE PKG_LICENSE_FILES:=LICENSE
@ -29,7 +29,7 @@ define Package/lua-cjson
CATEGORY:=Languages CATEGORY:=Languages
TITLE:=Lua CJSON parser TITLE:=Lua CJSON parser
URL:=https://github.com/mpx/lua-cjson URL:=https://github.com/mpx/lua-cjson
DEPENDS:= +lua +libzmq DEPENDS:= +lua
endef endef
define Package/lua-cjson/description define Package/lua-cjson/description

View file

@ -13,7 +13,7 @@ PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_URL:=https://code.google.com/p/sha2/ PKG_SOURCE_URL:=https://github.com/lgierth/lua-sha2.git
PKG_SOURCE_PROTO:=git PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=02bd4bfdc806 PKG_SOURCE_VERSION:=02bd4bfdc806
PKG_LICENSE:=MIT PKG_LICENSE:=MIT

View file

@ -1,5 +1,5 @@
# #
# Copyright (C) 2014 OpenWrt.org # Copyright (C) 2016 OpenWrt.org
# #
# This is free software, licensed under the GNU General Public License v2. # This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information. # See /LICENSE for more information.
@ -9,27 +9,26 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=luai2c PKG_NAME:=luai2c
PKG_VERSION:=1.0.0 PKG_VERSION:=1.0.0
PKG_RELEASE:=2 PKG_RELEASE:=3
PKG_MAINTAINER:=Frank Edelhaeuser <fedel@users.sourceforge.net> PKG_MAINTAINER:=Frank Edelhaeuser <mrpace2@gmail.com>
PKG_LICENSE:=MIT
PKG_SOURCE_NAME:=i2c-lua
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_SOURCE_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_SOURCE_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/$(PKG_SOURCE_NAME)
PKG_MD5SUM:=7098577f101410b201cd43a7467e408d
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/mrpace2/i2c-lua.git
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_VERSION:=$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
define Package/luai2c define Package/luai2c
SUBMENU:=Lua SUBMENU:=Lua
SECTION:=lang SECTION:=lang
CATEGORY:=Languages CATEGORY:=Languages
TITLE:=Lua I2C binding TITLE:=Lua I2C binding
URL:=http://sourceforge.net/projects/i2c-lua/ URL:=https://github.com/mrpace2/i2c-lua/
DEPENDS:=+liblua +kmod-i2c-core DEPENDS:=+liblua +kmod-i2c-core
MAINTAINER:=Frank Edelhaeuser <fedel@users.sourceforge.net> MAINTAINER:=Frank Edelhaeuser <mrpace2@gmail.com>
endef endef
define Package/luai2c/description define Package/luai2c/description

View file

@ -8,8 +8,8 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=luarocks PKG_NAME:=luarocks
PKG_VERSION:=2.2.0-rc1 PKG_VERSION:=2.2.2
PKG_RELEASE:=2 PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_PROTO:=git PKG_SOURCE_PROTO:=git

View file

@ -8,12 +8,12 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=luasec PKG_NAME:=luasec
PKG_VERSION:=0.5 PKG_VERSION:=0.6
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/brunoos/luasec/archive/ PKG_SOURCE_URL:=https://github.com/brunoos/luasec/archive/
PKG_MD5SUM:=0518f4524f399f33424c6f450e1d06db PKG_MD5SUM:=14e1aef6d2aae96bbf98afc6b6634af2
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_NAME)-$(PKG_VERSION) PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_NAME)-$(PKG_VERSION)
MAINTAINER:=W. Michael Petullo <mike@flyn.org> MAINTAINER:=W. Michael Petullo <mike@flyn.org>
@ -43,8 +43,8 @@ endef
MAKE_FLAGS += \ MAKE_FLAGS += \
INCDIR="$(TARGET_CPPFLAGS) -I." \ INCDIR="$(TARGET_CPPFLAGS) -I." \
LIBDIR="$(TARGET_LDFLAGS) -L./luasocket" \ LIBDIR="$(TARGET_LDFLAGS) -L./luasocket" \
LUACPATH="/usr/lib/lua" \ LUACPATH="$(PKG_INSTALL_DIR)/usr/lib/lua" \
LUAPATH="/usr/lib/lua" LUAPATH="$(PKG_INSTALL_DIR)/usr/lib/lua"
define Build/Compile define Build/Compile
$(call Build/Compile/Default,linux) $(call Build/Compile/Default,linux)

View file

@ -1,20 +0,0 @@
--- luasec-luasec-0.5-old/src/luasocket/Makefile 2014-01-29 21:43:33.000000000 +0100
+++ luasec-luasec-0.5/src/luasocket/Makefile 2014-11-30 13:07:44.850051000 +0100
@@ -6,7 +6,7 @@
CC ?= cc
CFLAGS += $(MYCFLAGS) -DLUASOCKET_DEBUG
-AR := ar rcu
+AR ?= ar
RANLIB ?= ranlib
.PHONY: all clean
@@ -14,7 +14,7 @@
all: libluasocket.a
libluasocket.a: $(OBJS)
- $(AR) $@ $(OBJS)
+ $(AR) rcu $@ $(OBJS)
$(RANLIB) $@
clean:

View file

@ -8,14 +8,14 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=lzmq PKG_NAME:=lzmq
PKG_VERSION:=0.4.2 PKG_VERSION:=0.4.3
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_MAINTAINER:=Dirk Chang <dirk@kooiot.com> PKG_MAINTAINER:=Dirk Chang <dirk@kooiot.com>
PKG_LICENSE:=MIT PKG_LICENSE:=MIT
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).zip PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/zeromq/lzmq/zip/v0.4.2? PKG_SOURCE_URL:=https://codeload.github.com/zeromq/lzmq/tar.gz/v$(PKG_VERSION)?
PKG_MD5SUM:=6789895c925e7eb9036e526181ec1a33 PKG_MD5SUM:=c4e51a60a5a26987bdce59e45d674a9e
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk include $(INCLUDE_DIR)/cmake.mk

View file

@ -1,5 +1,5 @@
# #
# Copyright (C) 2008-2010 OpenWrt.org # Copyright (C) 2008-2015 OpenWrt.org
# #
# This is free software, licensed under the GNU General Public License v2. # This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information. # See /LICENSE for more information.
@ -8,7 +8,7 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=micropython-lib PKG_NAME:=micropython-lib
PKG_VERSION=0.1-20150302-$(PKG_SOURCE_VERSION) PKG_VERSION=0.5-20150827-$(PKG_SOURCE_VERSION)
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_MAINTAINER:=Roger D <rogerdammit@gmail.com> PKG_MAINTAINER:=Roger D <rogerdammit@gmail.com>
@ -17,7 +17,7 @@ PKG_LICENSE_FILES:=LICENSE
PKG_SOURCE_PROTO:=git PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/micropython/micropython-lib.git PKG_SOURCE_URL:=https://github.com/micropython/micropython-lib.git
PKG_SOURCE_VERSION:=654c7d288603f7dae09eb09b57fb67b38c7ac6c3 PKG_SOURCE_VERSION:=bfbbf85a181d84e2494ea6f15be311734666bf67
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION) PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION)
PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz

View file

@ -1,5 +1,5 @@
# #
# Copyright (C) 2008-2010 OpenWrt.org # Copyright (C) 2008-2015 OpenWrt.org
# #
# This is free software, licensed under the GNU General Public License v2. # This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information. # See /LICENSE for more information.
@ -8,7 +8,7 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=micropython PKG_NAME:=micropython
PKG_VERSION=1.3.10-20150302-$(PKG_SOURCE_VERSION) PKG_VERSION=1.4.5-20150827-$(PKG_SOURCE_VERSION)
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_MAINTAINER:=Roger D <rogerdammit@gmail.com> PKG_MAINTAINER:=Roger D <rogerdammit@gmail.com>
@ -17,7 +17,7 @@ PKG_LICENSE_FILES:=LICENSE
PKG_SOURCE_PROTO:=git PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/micropython/micropython.git PKG_SOURCE_URL:=https://github.com/micropython/micropython.git
PKG_SOURCE_VERSION:=f2a889564b3a215902622b040a1247af38cb8203 PKG_SOURCE_VERSION:=936e25b164d837fc91e4bafd76580e747b235dff
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz PKG_SOURCE:=$(PKG_SOURCE_SUBDIR).tar.gz

View file

@ -0,0 +1,67 @@
#
# Copyright (C) 2014 Arduino LLC
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NPM_NAME:=arduino-firmata
PKG_NAME:=node-$(PKG_NPM_NAME)
PKG_VERSION:=0.3.3
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/shokai/node-arduino-firmata.git
PKG_SOURCE_VERSION:=16e76007edf218d72df590adbd711ac6b7432845
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_SOURCE_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.gz
PKG_BUILD_DEPENDS:=node
PKG_NODE_VERSION:=0.12.7
PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
PKG_LICENSE:=MIT
PKG_LICENSE_FILE:=LICENSE.txt
include $(INCLUDE_DIR)/package.mk
define Package/node-arduino-firmata
DEPENDS:=+node
SUBMENU:=Node.js
SECTION:=lang
CATEGORY:=Languages
DEPENDS:=+node +node-serialport
TITLE:=Node.js package to access serial ports for reading and writing
URL:=https://www.npmjs.org/package/serialport
endef
define Package/node-arduino-firmata/description
Node.js package to access serial ports for reading and writing OR Welcome your robotic JavaScript overlords. Better yet, program them!
endef
define Build/Prepare
/bin/tar xzf $(DL_DIR)/$(PKG_SOURCE) -C $(PKG_BUILD_DIR) --strip-components 1
$(Build/Patch)
endef
EXTRA_LDFLAGS="-L$(TOOLCHAIN_DIR)/lib/ -Wl,-rpath-link $(TOOLCHAIN_DIR)/lib/" \
define Build/Compile
$(MAKE_FLAGS) \
npm_config_arch=$(CONFIG_ARCH) \
npm_config_nodedir=$(BUILD_DIR)/node-v$(PKG_NODE_VERSION)/ \
PREFIX="$(PKG_INSTALL_DIR)/usr/" \
$(STAGING_DIR_HOST)/bin/npm install -g $(PKG_BUILD_DIR)
endef
define Package/node-arduino-firmata/install
mkdir -p $(1)/usr/lib/node
$(CP) $(PKG_INSTALL_DIR)/usr/lib/node_modules/* $(1)/usr/lib/node
rm -rf $(1)/usr/lib/node/arduino-firmata/node_modules/serialport/
$(CP) -r ./files/* $(1)/
endef
$(eval $(call BuildPackage,node-arduino-firmata))

View file

@ -0,0 +1,306 @@
(function() {
'use strict';
var ArduinoFirmata, SerialPort, debug, events, exports, serialport,
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
events = require('eventemitter2');
SerialPort = (serialport = require('serialport')).SerialPort;
debug = require('debug')('arduino-firmata');
exports = module.exports = ArduinoFirmata = (function(superClass) {
extend(ArduinoFirmata, superClass);
ArduinoFirmata.Status = {
CLOSE: 0,
OPEN: 1
};
ArduinoFirmata.INPUT = 0;
ArduinoFirmata.OUTPUT = 1;
ArduinoFirmata.ANALOG = 2;
ArduinoFirmata.PWM = 3;
ArduinoFirmata.SERVO = 4;
ArduinoFirmata.SHIFT = 5;
ArduinoFirmata.I2C = 6;
ArduinoFirmata.LOW = 0;
ArduinoFirmata.HIGH = 1;
ArduinoFirmata.MAX_DATA_BYTES = 32;
ArduinoFirmata.DIGITAL_MESSAGE = 0x90;
ArduinoFirmata.ANALOG_MESSAGE = 0xE0;
ArduinoFirmata.REPORT_ANALOG = 0xC0;
ArduinoFirmata.REPORT_DIGITAL = 0xD0;
ArduinoFirmata.SET_PIN_MODE = 0xF4;
ArduinoFirmata.REPORT_VERSION = 0xF9;
ArduinoFirmata.SYSTEM_RESET = 0xFF;
ArduinoFirmata.START_SYSEX = 0xF0;
ArduinoFirmata.END_SYSEX = 0xF7;
ArduinoFirmata.list = function(callback) {
return serialport.list(function(err, ports) {
var devices, j, len, port;
if (err) {
return callback(err);
}
devices = [];
for (j = 0, len = ports.length; j < len; j++) {
port = ports[j];
if (/usb|acm|com\d+/i.test(port.comName)) {
devices.push(port.comName);
}
}
return callback(null, devices);
});
};
function ArduinoFirmata() {
this.status = ArduinoFirmata.Status.CLOSE;
this.wait_for_data = 0;
this.execute_multi_byte_command = 0;
this.multi_byte_channel = 0;
this.stored_input_data = [];
this.parsing_sysex = false;
this.sysex_bytes_read = 0;
this.digital_output_data = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
this.digital_input_data = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
this.analog_input_data = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
this.boardVersion = null;
}
ArduinoFirmata.prototype.isOldArduinoDevice = function() {
return /usbserial|USB/.test(this.serialport_name);
};
ArduinoFirmata.prototype.connect = function(serialport_name, opts) {
this.serialport_name = serialport_name;
if (opts == null) {
opts = {
baudrate: 57600
};
}
opts.parser = serialport.parsers.raw;
if (!this.serialport_name) {
ArduinoFirmata.list((function(_this) {
return function(err, devices) {
return _this.connect(devices[0], opts);
};
})(this));
return this;
}
this.once('boardReady', function() {
var io_init_wait;
debug('boardReady');
io_init_wait = this.isOldArduinoDevice() ? (debug("old arduino device found " + this.serialport_name), 3000) : (debug("new arduino device found " + this.serialport_name), 100);
debug("wait " + io_init_wait + "(msec)");
return setTimeout((function(_this) {
return function() {
var i, j, k;
for (i = j = 0; j < 6; i = ++j) {
_this.write([ArduinoFirmata.REPORT_ANALOG | i, 1]);
}
for (i = k = 0; k < 2; i = ++k) {
_this.write([ArduinoFirmata.REPORT_DIGITAL | i, 1]);
}
debug('init IO ports');
return _this.emit('connect');
};
})(this), io_init_wait);
});
this.serialport = new SerialPort(this.serialport_name, opts);
this.serialport.once('open', (function(_this) {
return function() {
var cid;
cid = setInterval(function() {
debug('request REPORT_VERSION');
return _this.write([ArduinoFirmata.REPORT_VERSION]);
}, 500);
_this.once('boardVersion', function(version) {
clearInterval(cid);
_this.status = ArduinoFirmata.Status.OPEN;
return _this.emit('boardReady');
});
return _this.serialport.on('data', function(data) {
var byte, j, len, results;
results = [];
for (j = 0, len = data.length; j < len; j++) {
byte = data[j];
results.push(_this.process_input(byte));
}
return results;
});
};
})(this));
return this;
};
ArduinoFirmata.prototype.isOpen = function() {
return this.status === ArduinoFirmata.Status.OPEN;
};
ArduinoFirmata.prototype.close = function(callback) {
this.status = ArduinoFirmata.Status.CLOSE;
return this.serialport.close(callback);
};
ArduinoFirmata.prototype.reset = function(callback) {
return this.write([ArduinoFirmata.SYSTEM_RESET], callback);
};
ArduinoFirmata.prototype.write = function(bytes, callback) {
return this.serialport.write(bytes, callback);
};
ArduinoFirmata.prototype.sysex = function(command, data, callback) {
var write_data;
if (data == null) {
data = [];
}
data = data.map(function(i) {
return i & 0x7f;
});
write_data = [ArduinoFirmata.START_SYSEX, command].concat(data, [ArduinoFirmata.END_SYSEX]);
return this.write(write_data, callback);
};
ArduinoFirmata.prototype.pinMode = function(pin, mode, callback) {
switch (mode) {
case true:
mode = ArduinoFirmata.OUTPUT;
break;
case false:
mode = ArduinoFirmata.INPUT;
}
return this.write([ArduinoFirmata.SET_PIN_MODE, pin, mode], callback);
};
ArduinoFirmata.prototype.digitalWrite = function(pin, value, callback) {
var port_num;
this.pinMode(pin, ArduinoFirmata.OUTPUT);
port_num = (pin >>> 3) & 0x0F;
if (value === 0 || value === false) {
this.digital_output_data[port_num] &= ~(1 << (pin & 0x07));
} else {
this.digital_output_data[port_num] |= 1 << (pin & 0x07);
}
return this.write([ArduinoFirmata.DIGITAL_MESSAGE | port_num, this.digital_output_data[port_num] & 0x7F, this.digital_output_data[port_num] >>> 7], callback);
};
ArduinoFirmata.prototype.analogWrite = function(pin, value, callback) {
value = Math.floor(value);
this.pinMode(pin, ArduinoFirmata.PWM);
return this.write([ArduinoFirmata.ANALOG_MESSAGE | (pin & 0x0F), value & 0x7F, value >>> 7], callback);
};
ArduinoFirmata.prototype.servoWrite = function(pin, angle, callback) {
this.pinMode(pin, ArduinoFirmata.SERVO);
return this.write([ArduinoFirmata.ANALOG_MESSAGE | (pin & 0x0F), angle & 0x7F, angle >>> 7], callback);
};
ArduinoFirmata.prototype.digitalRead = function(pin) {
return ((this.digital_input_data[pin >>> 3] >>> (pin & 0x07)) & 0x01) > 0;
};
ArduinoFirmata.prototype.analogRead = function(pin) {
return this.analog_input_data[pin];
};
ArduinoFirmata.prototype.process_input = function(input_data) {
var analog_value, command, diff, i, j, old_analog_value, results, stat, sysex_command, sysex_data;
if (this.parsing_sysex) {
if (input_data === ArduinoFirmata.END_SYSEX) {
this.parsing_sysex = false;
sysex_command = this.stored_input_data[0];
sysex_data = this.stored_input_data.slice(1, this.sysex_bytes_read);
return this.emit('sysex', {
command: sysex_command,
data: sysex_data
});
} else {
this.stored_input_data[this.sysex_bytes_read] = input_data;
return this.sysex_bytes_read += 1;
}
} else if (this.wait_for_data > 0 && input_data < 128) {
this.wait_for_data -= 1;
this.stored_input_data[this.wait_for_data] = input_data;
if (this.execute_multi_byte_command !== 0 && this.wait_for_data === 0) {
switch (this.execute_multi_byte_command) {
case ArduinoFirmata.DIGITAL_MESSAGE:
input_data = (this.stored_input_data[0] << 7) + this.stored_input_data[1];
diff = this.digital_input_data[this.multi_byte_channel] ^ input_data;
this.digital_input_data[this.multi_byte_channel] = input_data;
if (this.listeners('digitalChange').length > 0) {
results = [];
for (i = j = 0; j <= 13; i = ++j) {
if (((0x01 << i) & diff) > 0) {
stat = (input_data & diff) > 0;
results.push(this.emit('digitalChange', {
pin: i + this.multi_byte_channel * 8,
value: stat,
old_value: !stat
}));
} else {
results.push(void 0);
}
}
return results;
}
break;
case ArduinoFirmata.ANALOG_MESSAGE:
analog_value = (this.stored_input_data[0] << 7) + this.stored_input_data[1];
old_analog_value = this.analogRead(this.multi_byte_channel);
this.analog_input_data[this.multi_byte_channel] = analog_value;
if (old_analog_value !== analog_value) {
return this.emit('analogChange', {
pin: this.multi_byte_channel,
value: analog_value,
old_value: old_analog_value
});
}
break;
case ArduinoFirmata.REPORT_VERSION:
this.boardVersion = this.stored_input_data[1] + "." + this.stored_input_data[0];
return this.emit('boardVersion', this.boardVersion);
}
}
} else {
if (input_data < 0xF0) {
command = input_data & 0xF0;
this.multi_byte_channel = input_data & 0x0F;
} else {
command = input_data;
}
if (command === ArduinoFirmata.START_SYSEX) {
this.parsing_sysex = true;
return this.sysex_bytes_read = 0;
} else if (command === ArduinoFirmata.DIGITAL_MESSAGE || command === ArduinoFirmata.ANALOG_MESSAGE || command === ArduinoFirmata.REPORT_VERSION) {
this.wait_for_data = 2;
return this.execute_multi_byte_command = command;
}
}
};
return ArduinoFirmata;
})(events.EventEmitter2);
}).call(this);

View file

@ -0,0 +1,10 @@
--- a/package.json
+++ b/package.json
@@ -30,7 +30,6 @@
"author": "Sho Hashimoto <hashimoto@shokai.org>",
"license": "MIT",
"dependencies": {
- "serialport": "*",
"eventemitter2": "*",
"debug": "*"
},

98
lang/node-cylon/Makefile Normal file
View file

@ -0,0 +1,98 @@
#
# Copyright (C) 2014 Arduino LLC
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NPM_NAME:=cylon
PKG_NAME:=node-$(PKG_NPM_NAME)
PKG_VERSION:=0.22.0
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/hybridgroup/cylon-firmata.git
PKG_SOURCE_VERSION:=0c37da77e48b3e2cc3a8d566822a17689de91b40
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_SOURCE_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.gz
PKG_BUILD_DEPENDS:=node
PKG_NODE_VERSION:=0.12.7
PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
PKG_LICENSE:=Apache-2.0
PKG_LICENSE_FILE:=LICENSE
include $(INCLUDE_DIR)/package.mk
define Package/node-cylon/default
DEPENDS:=+node $(2)
SUBMENU:=Node.js
SECTION:=lang
CATEGORY:=Languages
TITLE:=CylonJS - $(1)
URL:=https://www.npmjs.org/package/cylon
endef
define Package/node-cylon
$(call Package/node-cylon/default,Core)
endef
define Package/node-cylon-i2c
$(call Package/node-cylon/default,I2C,+node-cylon)
endef
define Package/node-cylon-gpio
$(call Package/node-cylon/default,GPIO,+node-cylon)
endef
define Package/node-cylon-firmata
$(call Package/node-cylon/default,Firmata,+node-cylon-gpio +node-cylon-i2c +node-arduino-firmata)
endef
define Package/node-cylon/description
JavaScript Robotics, By Your Command Next generation robotics framework with support for 36 different platforms Get Started
endef
define Build/Prepare
/bin/tar xzf $(DL_DIR)/$(PKG_SOURCE) -C $(PKG_BUILD_DIR) --strip-components 1
$(Build/Patch)
endef
EXTRA_LDFLAGS="-L$(TOOLCHAIN_DIR)/lib/ -Wl,-rpath-link $(TOOLCHAIN_DIR)/lib/" \
define Build/Compile
$(MAKE_FLAGS) \
npm_config_arch=$(CONFIG_ARCH) \
npm_config_nodedir=$(BUILD_DIR)/node-v$(PKG_NODE_VERSION)/ \
PREFIX="$(PKG_INSTALL_DIR)/usr/" \
$(STAGING_DIR_HOST)/bin/npm install -g $(PKG_BUILD_DIR)
endef
define Package/node-cylon/install
mkdir -p $(1)/usr/lib/node/cylon
$(CP) -r $(PKG_INSTALL_DIR)/usr/lib/node_modules/cylon-firmata/node_modules/cylon/* $(1)/usr/lib/node/cylon/
endef
define Package/node-cylon-i2c/install
mkdir -p $(1)/usr/lib/node/cylon-i2c
$(CP) -r $(PKG_INSTALL_DIR)/usr/lib/node_modules/cylon-firmata/node_modules/cylon-i2c/* $(1)/usr/lib/node/cylon-i2c/
endef
define Package/node-cylon-gpio/install
mkdir -p $(1)/usr/lib/node/cylon-gpio
$(CP) -r $(PKG_INSTALL_DIR)/usr/lib/node_modules/cylon-firmata/node_modules/cylon-gpio/* $(1)/usr/lib/node/cylon-gpio/
endef
define Package/node-cylon-firmata/install
mkdir -p $(1)/usr/lib/node/cylon-firmata
$(CP) -r $(PKG_INSTALL_DIR)/usr/lib/node_modules/cylon-firmata/{index.js,lib,LICENSE,package.json,README.md,RELEASES.md,spec} $(1)/usr/lib/node/cylon-firmata/
endef
$(eval $(call BuildPackage,node-cylon))
$(eval $(call BuildPackage,node-cylon-i2c))
$(eval $(call BuildPackage,node-cylon-gpio))
$(eval $(call BuildPackage,node-cylon-firmata))

View file

@ -0,0 +1,12 @@
Index: node-cylon-0.22.0/package.json
===================================================================
--- node-cylon-0.22.0.orig/package.json 2015-10-20 20:32:48.000000000 +0200
+++ node-cylon-0.22.0/package.json 2015-10-21 10:42:20.616109122 +0200
@@ -38,7 +38,6 @@
},
"dependencies": {
- "firmata": ">= 0.3.2",
"cylon": "1.1.0",
"cylon-gpio": "0.26.0",
"cylon-i2c": "0.22.0"

62
lang/node-hid/Makefile Normal file
View file

@ -0,0 +1,62 @@
#
# Copyright (C) 2015 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NPM_NAME:=hid
PKG_NAME:=node-$(PKG_NPM_NAME)
PKG_VERSION:=0.4.0
PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/node-hid/node-hid.git
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_VERSION:=c56c8aa5d113c6f2574d1f7e64d41745702965bb
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_BUILD_DEPENDS:=node
PKG_NODE_VERSION:=0.12.7
PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
PKG_LICENSE:=Custom
PKG_LICENSE_FILE:=
include $(INCLUDE_DIR)/package.mk
define Package/node-hid
DEPENDS:=+node
SUBMENU:=Node.js
SECTION:=lang
CATEGORY:=Languages
DEPENDS:=+libusb-1.0 +hidapi +libstdcpp
TITLE:=Node.js package to access HID devices
URL:=https://github.com/node-hid/node-hid
endef
define Package/node-hid/description
Node.js package to access HID devices
endef
EXTRA_LDFLAGS+="-lhidapi-libusb"
EXTRA_CFLAGS+="-I$(STAGING_DIR)/usr/include/hidapi/"
define Build/Compile
$(MAKE_VARS) \
$(MAKE_FLAGS) \
npm_config_arch=$(CONFIG_ARCH) \
npm_config_nodedir=$(BUILD_DIR)/node-v$(PKG_NODE_VERSION)/ \
PREFIX="$(PKG_INSTALL_DIR)/usr/" \
$(STAGING_DIR_HOST)/bin/npm install -g $(PKG_BUILD_DIR)
endef
define Package/node-hid/install
mkdir -p $(1)/usr/lib/node/node-hid/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/node_modules/node-hid/{index.js,package.json,build,node_modules} $(1)/usr/lib/node/node-hid/
endef
$(eval $(call BuildPackage,node-hid))

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,62 @@
#
# Copyright (C) 2014 Arduino LLC
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NPM_NAME:=serialport
PKG_NAME:=node-$(PKG_NPM_NAME)
PKG_VERSION:=1.4.6
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NPM_NAME)-$(PKG_VERSION).tgz
PKG_SOURCE_URL:=http://registry.npmjs.org/$(PKG_NPM_NAME)/-/
PKG_MD5SUM:=1eb21082e0aa676b8350182a60230808
PKG_BUILD_DEPENDS:=node
PKG_NODE_VERSION:=0.12.7
PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
PKG_LICENSE:=Custom
PKG_LICENSE_FILE:=LICENSE
include $(INCLUDE_DIR)/package.mk
define Package/node-serialport
DEPENDS:=+node
SUBMENU:=Node.js
SECTION:=lang
CATEGORY:=Languages
TITLE:=Node.js package to access serial ports for reading and writing
URL:=https://www.npmjs.org/package/serialport
endef
define Package/node-serialport/description
Node.js package to access serial ports for reading and writing OR Welcome your robotic JavaScript overlords. Better yet, program them!
endef
define Build/Prepare
/bin/tar xzf $(DL_DIR)/$(PKG_SOURCE) -C $(PKG_BUILD_DIR) --strip-components 1
$(Build/Patch)
endef
EXTRA_LDFLAGS="-L$(TOOLCHAIN_DIR)/lib/ -Wl,-rpath-link $(TOOLCHAIN_DIR)/lib/" \
define Build/Compile
$(MAKE_FLAGS) \
npm_config_arch=$(CONFIG_ARCH) \
npm_config_nodedir=$(BUILD_DIR)/node-v$(PKG_NODE_VERSION)/ \
PREFIX="$(PKG_INSTALL_DIR)/usr/" \
$(STAGING_DIR_HOST)/bin/npm install -g $(PKG_BUILD_DIR)
endef
define Package/node-serialport/install
mkdir -p $(1)/usr/lib/node/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/node_modules/* $(1)/usr/lib/node/
endef
$(eval $(call BuildPackage,node-serialport))

View file

@ -0,0 +1,11 @@
--- a/package.json 2014-05-02 12:02:02.940515727 +0200
+++ b/package.json 2014-05-02 12:03:08.488512762 +0200
@@ -69,7 +71,7 @@
"serialportterm": "./bin/serialportTerminal.js"
},
"scripts": {
- "install": "node-pre-gyp install --fallback-to-build",
+ "install": "node-pre-gyp reinstall --build-from-source --target_arch=${npm_config_arch}",
"test": "grunt --verbose"
}
}

73
lang/node/Makefile Normal file
View file

@ -0,0 +1,73 @@
#
# Copyright (C) 2006-2011 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=node
PKG_VERSION:=v0.12.7
PKG_RELEASE:=1
PKG_SOURCE:=node-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://nodejs.org/dist/${PKG_VERSION}
PKG_BUILD_DEPENDS:=python/host
PKG_INSTALL:=1
PKG_USE_MIPS16:=0
PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
PKG_LICENSE:=
include $(INCLUDE_DIR)/host-build.mk
include $(INCLUDE_DIR)/package.mk
define Package/node
SECTION:=lang
CATEGORY:=Languages
SUBMENU:=Node.js
TITLE:=Node.js is a platform built on Chrome's JavaScript runtime
URL:=http://nodejs.org/
DEPENDS:=+libpthread +librt +libstdcpp +libopenssl +libuv
endef
define Package/node/description
Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine. Node.js uses
an event-driven, non-blocking I/O model that makes it lightweight and efficient. Node.js'
package ecosystem, npm, is the largest ecosystem of open source libraries in the world.
endef
CONFIGURE_ARGS= \
--dest-cpu=$(CONFIG_ARCH) \
--dest-os=linux \
--without-snapshot \
--shared-zlib \
--shared-openssl \
--prefix=/usr
HOST_CONFIGURE_VARS:=
HOST_CONFIGURE_ARGS:= \
--dest-os=linux \
--without-snapshot \
--prefix=$(STAGING_DIR_HOST)/
HOST_CONFIGURE_CMD:=python ./configure
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
endef
define Package/node/install
mkdir -p $(1)/usr/bin $(1)/usr/lib/node_modules/npm/{bin,lib,node_modules}
$(CP) $(PKG_INSTALL_DIR)/usr/bin/{node,npm} $(1)/usr/bin/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/node_modules/npm/{package.json,LICENSE,cli.js} $(1)/usr/lib/node_modules/npm
$(CP) $(PKG_INSTALL_DIR)/usr/lib/node_modules/npm/bin/npm-cli.js $(1)/usr/lib/node_modules/npm/bin
$(CP) $(PKG_INSTALL_DIR)/usr/lib/node_modules/npm/lib/* $(1)/usr/lib/node_modules/npm/lib/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/node_modules/npm/node_modules/* $(1)/usr/lib/node_modules/npm/node_modules/
endef
$(eval $(call HostBuild))
$(eval $(call BuildPackage,node))

View file

@ -0,0 +1,15 @@
--- a/deps/v8/build/toolchain.gypi
+++ b/deps/v8/build/toolchain.gypi
@@ -50,10 +50,10 @@
'arm_test_noprobe%': 'off',
# Similar to vfp but on MIPS.
- 'v8_can_use_fpu_instructions%': 'true',
+ 'v8_can_use_fpu_instructions%': 'false',
# Similar to the ARM hard float ABI but on MIPS.
- 'v8_use_mips_abi_hardfloat%': 'true',
+ 'v8_use_mips_abi_hardfloat%': 'false',
# Default arch variant for MIPS.
'mips_arch_variant%': 'r2',

View file

@ -0,0 +1,10 @@
--- a/deps/uv/src/unix/getaddrinfo.c
+++ b/deps/uv/src/unix/getaddrinfo.c
@@ -99,6 +99,7 @@
int err;
req = container_of(w, uv_getaddrinfo_t, work_req);
+ req->hints->ai_flags &= ~AI_V4MAPPED;
err = getaddrinfo(req->hostname, req->service, req->hints, &req->addrinfo);
req->retcode = uv__getaddrinfo_translate_error(err);
}

View file

@ -0,0 +1,12 @@
--- a/lib/module.js
+++ b/lib/module.js
@@ -512,7 +512,8 @@
var homeDir = process.env.HOME;
}
- var paths = [path.resolve(process.execPath, '..', '..', 'lib', 'node')];
+ var paths = [path.resolve(process.execPath, '..', '..', 'lib', 'node'),
+ path.resolve(process.execPath, '..', '..', 'lib', 'node_modules')];
if (homeDir) {
paths.unshift(path.resolve(homeDir, '.node_libraries'));

View file

@ -8,12 +8,12 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=perl-dbi PKG_NAME:=perl-dbi
PKG_VERSION:=1.633 PKG_VERSION:=1.641
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_SOURCE_URL:=http://www.cpan.org/authors/id/T/TI/TIMB/ PKG_SOURCE_URL:=http://www.cpan.org/authors/id/T/TI/TIMB/
PKG_SOURCE:=DBI-$(PKG_VERSION).tar.gz PKG_SOURCE:=DBI-$(PKG_VERSION).tar.gz
PKG_MD5SUM:=b4fe13b9a51c1446c5f3cf93e69a2044 PKG_MD5SUM:=e77fd37fcf77fc88fde029c1b75ded54
PKG_LICENSE:=GPL-1.0+ Artistic-1.0-Perl PKG_LICENSE:=GPL-1.0+ Artistic-1.0-Perl
PKG_MAINTAINER:=Marcel Denia <naoir@gmx.net> PKG_MAINTAINER:=Marcel Denia <naoir@gmx.net>

View file

@ -8,12 +8,12 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=perl-html-parser PKG_NAME:=perl-html-parser
PKG_VERSION:=3.71 PKG_VERSION:=3.72
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_SOURCE_URL:=http://www.cpan.org/authors/id/G/GA/GAAS/ PKG_SOURCE_URL:=http://www.cpan.org/authors/id/G/GA/GAAS/
PKG_SOURCE:=HTML-Parser-$(PKG_VERSION).tar.gz PKG_SOURCE:=HTML-Parser-$(PKG_VERSION).tar.gz
PKG_MD5SUM:=9128a45893097dfa3bf03301b19c5efe PKG_MD5SUM:=eb7505e5f626913350df9dd4a03d54a8
PKG_LICENSE:=GPL-1.0+ Artistic-1.0-Perl PKG_LICENSE:=GPL-1.0+ Artistic-1.0-Perl
PKG_MAINTAINER:=Marcel Denia <naoir@gmx.net> PKG_MAINTAINER:=Marcel Denia <naoir@gmx.net>

View file

@ -8,12 +8,12 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=perl-uri PKG_NAME:=perl-uri
PKG_VERSION:=1.67 PKG_VERSION:=1.74
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_SOURCE_URL:=http://www.cpan.org/authors/id/E/ET/ETHER/ PKG_SOURCE_URL:=http://www.cpan.org/authors/id/E/ET/ETHER/
PKG_SOURCE:=URI-$(PKG_VERSION).tar.gz PKG_SOURCE:=URI-$(PKG_VERSION).tar.gz
PKG_MD5SUM:=d0ef53b6c63bcc02ba55f405c30741e3 PKG_MD5SUM:=892f7183b178af40f205ba37128225db
PKG_LICENSE:=GPL-1.0+ Artistic-1.0-Perl PKG_LICENSE:=GPL-1.0+ Artistic-1.0-Perl
PKG_MAINTAINER:=Marcel Denia <naoir@gmx.net> PKG_MAINTAINER:=Marcel Denia <naoir@gmx.net>

View file

@ -8,12 +8,12 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=perl-www-mechanize PKG_NAME:=perl-www-mechanize
PKG_VERSION:=1.74 PKG_VERSION:=1.75
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_SOURCE:=WWW-Mechanize-$(PKG_VERSION).tar.gz PKG_SOURCE:=WWW-Mechanize-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.cpan.org/authors/id/E/ET/ETHER/ PKG_SOURCE_URL:=http://www.cpan.org/authors/id/E/ET/ETHER/
PKG_MD5SUM:=8ec615225037ac66a2d37f4e9693ef86 PKG_MD5SUM:=9a4b9c8827f519908ef0a0d2b8ae96fa
PKG_LICENSE:=GPL-1.0+ Artistic-1.0-Perl PKG_LICENSE:=GPL-1.0+ Artistic-1.0-Perl
PKG_MAINTAINER:=Marcel Denia <naoir@gmx.net> PKG_MAINTAINER:=Marcel Denia <naoir@gmx.net>

View file

@ -1,5 +1,5 @@
# #
# Copyright (C) 2006-2015 OpenWrt.org # Copyright (C) 2006-2016 OpenWrt.org
# #
# This is free software, licensed under the GNU General Public License v2. # This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information. # See /LICENSE for more information.
@ -8,17 +8,17 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=php PKG_NAME:=php
PKG_VERSION:=5.6.8 PKG_VERSION:=5.6.32
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org> PKG_MAINTAINER:=W. Michael Petullo <mike@flyn.org>, Michael Heimpold <mhei@heimpold.de>
PKG_LICENSE:=PHPv3.01 PKG_LICENSE:=PHPv3.01
PKG_LICENSE_FILES:=LICENSE PKG_LICENSE_FILES:=LICENSE
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=http://www.php.net/distributions/ PKG_SOURCE_URL:=http://www.php.net/distributions/
PKG_MD5SUM:=a5a6df33aade0cb5425e4374e3832f0b PKG_MD5SUM:=660cd5bc0f16eaad655b7815c757aadc
PKG_FIXUP:=libtool autoreconf PKG_FIXUP:=libtool autoreconf
PKG_BUILD_PARALLEL:=1 PKG_BUILD_PARALLEL:=1
@ -32,11 +32,11 @@ PHP5_MODULES = \
ftp \ ftp \
gettext gd gmp \ gettext gd gmp \
hash \ hash \
iconv \ iconv intl \
json \ json \
ldap \ ldap \
mbstring mcrypt mysql mysqli \ mbstring mcrypt mysql mysqli \
openssl \ opcache openssl \
pcntl pdo pdo-mysql pdo-pgsql pdo-sqlite pgsql \ pcntl pdo pdo-mysql pdo-pgsql pdo-sqlite pgsql \
session shmop simplexml soap sockets sqlite3 sysvmsg sysvsem sysvshm \ session shmop simplexml soap sockets sqlite3 sysvmsg sysvsem sysvshm \
tokenizer \ tokenizer \
@ -55,7 +55,6 @@ define Package/php5/Default
CATEGORY:=Languages CATEGORY:=Languages
TITLE:=PHP5 Hypertext preprocessor TITLE:=PHP5 Hypertext preprocessor
URL:=http://www.php.net/ URL:=http://www.php.net/
MAINTAINER:=Michael Heimpold <mhei@heimpold.de>
DEPENDS:=php5 DEPENDS:=php5
endef endef
@ -99,6 +98,7 @@ endef
define Package/php5-cli define Package/php5-cli
$(call Package/php5/Default) $(call Package/php5/Default)
DEPENDS+= +PACKAGE_php5-mod-intl:libstdcpp
TITLE+= (CLI) TITLE+= (CLI)
endef endef
@ -109,6 +109,7 @@ endef
define Package/php5-cgi define Package/php5-cgi
$(call Package/php5/Default) $(call Package/php5/Default)
DEPENDS+= +PACKAGE_php5-mod-intl:libstdcpp
TITLE+= (CGI & FastCGI) TITLE+= (CGI & FastCGI)
endef endef
@ -238,6 +239,12 @@ else
CONFIGURE_ARGS+= --without-iconv CONFIGURE_ARGS+= --without-iconv
endif endif
ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-intl),)
CONFIGURE_ARGS+= --enable-intl=shared
else
CONFIGURE_ARGS+= --disable-intl
endif
ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-json),) ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-json),)
CONFIGURE_ARGS+= --enable-json=shared CONFIGURE_ARGS+= --enable-json=shared
else else
@ -259,7 +266,7 @@ else
endif endif
ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-mcrypt),) ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-mcrypt),)
CONFIGURE_ARGS+= --with-mcrypt=shared,"$(STAGING_DIR)/usr" CONFIGURE_ARGS+= --with-mcrypt=shared,"$(STAGING_DIR)/usr"
else else
CONFIGURE_ARGS+= --without-mcrypt CONFIGURE_ARGS+= --without-mcrypt
endif endif
@ -276,6 +283,12 @@ else
CONFIGURE_ARGS+= --without-mysqli CONFIGURE_ARGS+= --without-mysqli
endif endif
ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-opcache),)
CONFIGURE_ARGS+= --enable-opcache=shared
else
CONFIGURE_ARGS+= --disable-opcache
endif
ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-openssl),) ifneq ($(SDK)$(CONFIG_PACKAGE_php5-mod-openssl),)
CONFIGURE_ARGS+= \ CONFIGURE_ARGS+= \
--with-openssl=shared,"$(STAGING_DIR)/usr" \ --with-openssl=shared,"$(STAGING_DIR)/usr" \
@ -508,7 +521,11 @@ define BuildModule
$(INSTALL_DIR) $$(1)/usr/lib/php $(INSTALL_DIR) $$(1)/usr/lib/php
$(INSTALL_BIN) $(PKG_BUILD_DIR)/modules/$(subst -,_,$(1)).so $$(1)/usr/lib/php/ $(INSTALL_BIN) $(PKG_BUILD_DIR)/modules/$(subst -,_,$(1)).so $$(1)/usr/lib/php/
$(INSTALL_DIR) $$(1)/etc/php5 $(INSTALL_DIR) $$(1)/etc/php5
ifeq ($(4),zend)
echo "zend_extension=/usr/lib/php/$(subst -,_,$(1)).so" > $$(1)/etc/php5/$(subst -,_,$(1)).ini
else
echo "extension=$(subst -,_,$(1)).so" > $$(1)/etc/php5/$(subst -,_,$(1)).ini echo "extension=$(subst -,_,$(1)).so" > $$(1)/etc/php5/$(subst -,_,$(1)).ini
endif
endef endef
$$(eval $$(call BuildPackage,php5-mod-$(1))) $$(eval $$(call BuildPackage,php5-mod-$(1)))
@ -534,12 +551,14 @@ $(eval $(call BuildModule,gettext,Gettext,+PACKAGE_php5-mod-gettext:libintl-full
$(eval $(call BuildModule,gmp,GMP,+PACKAGE_php5-mod-gmp:libgmp)) $(eval $(call BuildModule,gmp,GMP,+PACKAGE_php5-mod-gmp:libgmp))
$(eval $(call BuildModule,hash,Hash)) $(eval $(call BuildModule,hash,Hash))
$(eval $(call BuildModule,iconv,iConv,$(ICONV_DEPENDS))) $(eval $(call BuildModule,iconv,iConv,$(ICONV_DEPENDS)))
$(eval $(call BuildModule,intl,Internationalization Functions,+PACKAGE_php5-mod-intl:icu))
$(eval $(call BuildModule,json,JSON)) $(eval $(call BuildModule,json,JSON))
$(eval $(call BuildModule,ldap,LDAP,+PACKAGE_php5-mod-ldap:libopenldap +PACKAGE_php5-mod-ldap:libsasl2)) $(eval $(call BuildModule,ldap,LDAP,+PACKAGE_php5-mod-ldap:libopenldap +PACKAGE_php5-mod-ldap:libsasl2))
$(eval $(call BuildModule,mbstring,MBString)) $(eval $(call BuildModule,mbstring,MBString))
$(eval $(call BuildModule,mcrypt,Mcrypt,+PACKAGE_php5-mod-mcrypt:libmcrypt +PACKAGE_php5-mod-mcrypt:libltdl)) $(eval $(call BuildModule,mcrypt,Mcrypt,+PACKAGE_php5-mod-mcrypt:libmcrypt +PACKAGE_php5-mod-mcrypt:libltdl))
$(eval $(call BuildModule,mysql,MySQL,+PACKAGE_php5-mod-mysql:libmysqlclient)) $(eval $(call BuildModule,mysql,MySQL,+PACKAGE_php5-mod-mysql:libmysqlclient))
$(eval $(call BuildModule,mysqli,MySQL Improved Extension,+PACKAGE_php5-mod-mysqli:libmysqlclient)) $(eval $(call BuildModule,mysqli,MySQL Improved Extension,+PACKAGE_php5-mod-mysqli:libmysqlclient))
$(eval $(call BuildModule,opcache,OPcache,,zend))
$(eval $(call BuildModule,openssl,OpenSSL,+PACKAGE_php5-mod-openssl:libopenssl)) $(eval $(call BuildModule,openssl,OpenSSL,+PACKAGE_php5-mod-openssl:libopenssl))
$(eval $(call BuildModule,pcntl,PCNTL)) $(eval $(call BuildModule,pcntl,PCNTL))
$(eval $(call BuildModule,pdo,PHP Data Objects)) $(eval $(call BuildModule,pdo,PHP Data Objects))

View file

@ -309,3 +309,13 @@ ldap.max_links = -1
[mcrypt] [mcrypt]
;mcrypt.algorithms_dir= ;mcrypt.algorithms_dir=
;mcrypt.modes_dir= ;mcrypt.modes_dir=
[opcache]
;opcache.memory_consumption=8 ; 8M is the allowed minimum
;opcache.interned_strings_buffer=1
opcache.max_accelerated_files=200 ; 200 is the allowed minimum
;opcache.revalidate_freq=60
;opcache.fast_shutdown=1
opcache.enable_cli=1
opcache.enable=1
;opcache.log_verbosity_level=4

View file

@ -1,12 +1,13 @@
Add support for use of the system timezone database, rather Add support for use of the system timezone database, rather
than embedding a copy. Discussed upstream but was not desired. than embedding a copy. Discussed upstream but was not desired.
History: History:
r9: fix another compile error without --with-system-tzdata configured r11: adopted to php 5.6.9
r10: make timezone case insensitive
r9: fix another compile error without --with-system-tzdata configured (Michael Heimpold)
r8: fix compile error without --with-system-tzdata configured r8: fix compile error without --with-system-tzdata configured
r7: improve check for valid timezone id to exclude directories r7: improve check for valid timezone id to exclude directories
r6: fix fd leak in r5, fix country code/BC flag use in r6: fix fd leak in r5, fix country code/BC flag use in.
timezone_identifiers_list() using system db, timezone_identifiers_list() using system db,
fix use of PECL timezonedb to override system db, fix use of PECL timezonedb to override system db,
r5: reverts addition of "System/Localtime" fake tzname. r5: reverts addition of "System/Localtime" fake tzname.
@ -19,8 +20,14 @@ r1: initial revision
--- a/ext/date/lib/parse_tz.c --- a/ext/date/lib/parse_tz.c
+++ b/ext/date/lib/parse_tz.c +++ b/ext/date/lib/parse_tz.c
@@ -20,6 +20,16 @@ @@ -22,8 +22,22 @@
* THE SOFTWARE.
*/
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
+
#include "timelib.h" #include "timelib.h"
+#ifdef HAVE_SYSTEM_TZDATA +#ifdef HAVE_SYSTEM_TZDATA
@ -36,12 +43,12 @@ r1: initial revision
#include <stdio.h> #include <stdio.h>
#ifdef HAVE_LOCALE_H #ifdef HAVE_LOCALE_H
@@ -31,7 +41,12 @@ @@ -36,8 +50,12 @@
#else
#include <strings.h> #include <strings.h>
#endif #endif
+
+#ifndef HAVE_SYSTEM_TZDATA +#ifndef HAVE_SYSTEM_TZDATA
#define TIMELIB_SUPPORTS_V2DATA
#include "timezonedb.h" #include "timezonedb.h"
+#endif +#endif
+ +
@ -49,25 +56,19 @@ r1: initial revision
#if (defined(__APPLE__) || defined(__APPLE_CC__)) && (defined(__BIG_ENDIAN__) || defined(__LITTLE_ENDIAN__)) #if (defined(__APPLE__) || defined(__APPLE_CC__)) && (defined(__BIG_ENDIAN__) || defined(__LITTLE_ENDIAN__))
# if defined(__LITTLE_ENDIAN__) # if defined(__LITTLE_ENDIAN__)
@@ -51,9 +66,14 @@ @@ -59,6 +77,11 @@ static int read_preamble(const unsigned
static void read_preamble(const unsigned char **tzf, timelib_tzinfo *tz)
{ {
- /* skip ID */ uint32_t version;
- *tzf += 4;
- + if (memcmp(tzf, "TZif", 4) == 0) {
+ if (memcmp(tzf, "TZif", 4) == 0) { + *tzf += 20;
+ *tzf += 20; + return -1;
+ return; + }
+ }
+ +
+ /* skip ID */ /* read ID */
+ *tzf += 4; version = (*tzf)[3] - '0';
+ *tzf += 4;
/* read BC flag */ @@ -302,7 +325,406 @@ void timelib_dump_tzinfo(timelib_tzinfo
tz->bc = (**tzf == '\1');
*tzf += 1;
@@ -256,7 +276,397 @@ void timelib_dump_tzinfo(timelib_tzinfo
} }
} }
@ -81,7 +82,7 @@ r1: initial revision
+#endif +#endif
+ +
+/* System timezone database pointer. */ +/* System timezone database pointer. */
+static const timelib_tzdb *timezonedb_system = NULL; +static const timelib_tzdb *timezonedb_system;
+ +
+/* Hash table entry for the cache of the zone.tab mapping table. */ +/* Hash table entry for the cache of the zone.tab mapping table. */
+struct location_info { +struct location_info {
@ -99,13 +100,14 @@ r1: initial revision
+ * prevent too many collisions. */ + * prevent too many collisions. */
+#define LOCINFO_HASH_SIZE (1021) +#define LOCINFO_HASH_SIZE (1021)
+ +
+/* Compute a case insensitive hash of str */
+static uint32_t tz_hash(const char *str) +static uint32_t tz_hash(const char *str)
+{ +{
+ const unsigned char *p = (const unsigned char *)str; + const unsigned char *p = (const unsigned char *)str;
+ uint32_t hash = 5381; + uint32_t hash = 5381;
+ int c; + int c;
+ +
+ while ((c = *p++) != '\0') { + while ((c = tolower(*p++)) != '\0') {
+ hash = (hash << 5) ^ hash ^ c; + hash = (hash << 5) ^ hash ^ c;
+ } + }
+ +
@ -443,6 +445,14 @@ r1: initial revision
+ return NULL; + return NULL;
+ } + }
+ +
+ if (system_location_table) {
+ const struct location_info *li;
+ if ((li = find_zone_info(system_location_table, timezone)) != NULL) {
+ /* Use the stored name to avoid case issue */
+ timezone = li->name;
+ }
+ }
+
+ snprintf(fname, sizeof fname, ZONEINFO_PREFIX "/%s", timezone); + snprintf(fname, sizeof fname, ZONEINFO_PREFIX "/%s", timezone);
+ +
+ fd = open(fname, O_RDONLY); + fd = open(fname, O_RDONLY);
@ -466,7 +476,7 @@ r1: initial revision
{ {
int left = 0, right = tzdb->index_size - 1; int left = 0, right = tzdb->index_size - 1;
#ifdef HAVE_SETLOCALE #ifdef HAVE_SETLOCALE
@@ -295,36 +705,128 @@ static int seek_to_tz_position(const uns @@ -341,21 +763,90 @@ static int seek_to_tz_position(const uns
return 0; return 0;
} }
@ -483,14 +493,14 @@ r1: initial revision
+ return 0; + return 0;
+ } + }
+ +
+ (*tzf) = (unsigned char *)orig ; + (*tzf) = (unsigned char *)orig;
+ *map = orig; + *map = orig;
+ +
+ return 1; + return 1;
+ } + }
+ else + else
+#endif +#endif
+ { + {
+ return inmem_seek_to_tz_position(tzf, timezone, tzdb); + return inmem_seek_to_tz_position(tzf, timezone, tzdb);
+ } + }
+} +}
@ -505,7 +515,7 @@ r1: initial revision
+ tmp->data = NULL; + tmp->data = NULL;
+ create_zone_index(tmp); + create_zone_index(tmp);
+ system_location_table = create_location_table(); + system_location_table = create_location_table();
+ fake_data_segment(tmp, system_location_table); + fake_data_segment(tmp, system_location_table);
+ timezonedb_system = tmp; + timezonedb_system = tmp;
+ } + }
+ +
@ -533,38 +543,49 @@ r1: initial revision
- return (seek_to_tz_position(&tzf, timezone, tzdb)); - return (seek_to_tz_position(&tzf, timezone, tzdb));
+ +
+#ifdef HAVE_SYSTEM_TZDATA +#ifdef HAVE_SYSTEM_TZDATA
+ if (tzdb == timezonedb_system) { + if (tzdb == timezonedb_system) {
+ char fname[PATH_MAX]; + char fname[PATH_MAX];
+ struct stat st; + struct stat st;
+ +
+ if (timezone[0] == '\0' || strstr(timezone, "..") != NULL) { + if (timezone[0] == '\0' || strstr(timezone, "..") != NULL) {
+ return 0; + return 0;
+ } + }
+ +
+ snprintf(fname, sizeof fname, ZONEINFO_PREFIX "/%s", timezone); + if (system_location_table) {
+ if (find_zone_info(system_location_table, timezone) != NULL) {
+ /* found in cache */
+ return 1;
+ }
+ }
+ +
+ return stat(fname, &st) == 0 && is_valid_tzfile(&st); + snprintf(fname, sizeof fname, ZONEINFO_PREFIX "/%s", timezone);
+ } +
+ return stat(fname, &st) == 0 && is_valid_tzfile(&st);
+ }
+#endif +#endif
+ +
+ return (inmem_seek_to_tz_position(&tzf, timezone, tzdb)); + return (inmem_seek_to_tz_position(&tzf, timezone, tzdb));
} }
static void skip_64bit_preamble(const unsigned char **tzf, timelib_tzinfo *tz)
@@ -380,10 +871,12 @@ static void read_64bit_header(const unsi
timelib_tzinfo *timelib_parse_tzfile(char *timezone, const timelib_tzdb *tzdb) timelib_tzinfo *timelib_parse_tzfile(char *timezone, const timelib_tzdb *tzdb)
{ {
const unsigned char *tzf; const unsigned char *tzf;
+ char *memmap = NULL; + char *memmap = NULL;
+ size_t maplen; + size_t maplen;
timelib_tzinfo *tmp; timelib_tzinfo *tmp;
int version;
- if (seek_to_tz_position(&tzf, timezone, tzdb)) { - if (seek_to_tz_position(&tzf, timezone, tzdb)) {
+ if (seek_to_tz_position(&tzf, timezone, &memmap, &maplen, tzdb)) { + if (seek_to_tz_position(&tzf, timezone, &memmap, &maplen, tzdb)) {
tmp = timelib_tzinfo_ctor(timezone); tmp = timelib_tzinfo_ctor(timezone);
read_preamble(&tzf, tmp); version = read_preamble(&tzf, tmp);
read_header(&tzf, tmp); @@ -397,7 +890,34 @@ timelib_tzinfo *timelib_parse_tzfile(cha
read_transistions(&tzf, tmp); skip_64bit_types(&tzf, tmp);
read_types(&tzf, tmp); skip_posix_string(&tzf, tmp);
}
- read_location(&tzf, tmp); - read_location(&tzf, tmp);
+ +
+#ifdef HAVE_SYSTEM_TZDATA +#ifdef HAVE_SYSTEM_TZDATA
@ -576,12 +597,11 @@ r1: initial revision
+ +
+ if ((li = find_zone_info(system_location_table, timezone)) != NULL) { + if ((li = find_zone_info(system_location_table, timezone)) != NULL) {
+ tmp->location.comments = strdup(li->comment); + tmp->location.comments = strdup(li->comment);
+ strncpy(tmp->location.country_code, li->code, 2); + strncpy(tmp->location.country_code, li->code, 2);
+ tmp->location.longitude = li->longitude; + tmp->location.longitude = li->longitude;
+ tmp->location.latitude = li->latitude; + tmp->location.latitude = li->latitude;
+ tmp->bc = 1; + tmp->bc = 1;
+ } + } else {
+ else {
+ strcpy(tmp->location.country_code, "??"); + strcpy(tmp->location.country_code, "??");
+ tmp->bc = 0; + tmp->bc = 0;
+ tmp->location.comments = strdup(""); + tmp->location.comments = strdup("");

View file

@ -0,0 +1,154 @@
From dc8bb6a53bfdfe42d9ae81d4e78c6155ad4bfd6e Mon Sep 17 00:00:00 2001
From: Michael Heimpold <mhei@heimpold.de>
Date: Sun, 17 May 2015 16:50:50 +0200
Subject: [PATCH] ext/opcache: fix detection of shm/mmap
The detection of sysvipc and mmap doesn't work well when cross-compiling,
so I decided to only check for the availability of the functions involved.
This is not a clean solution, but works for now(tm) :-)
It should be discussed with upstream to find a better solution.
This solves the issue reported at
https://github.com/openwrt/packages/issues/1010
and makes opcache usable on OpenWrt.
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
---
ext/opcache/config.m4 | 122 ++-----------------------------------------------
1 file changed, 4 insertions(+), 118 deletions(-)
--- a/ext/opcache/config.m4
+++ b/ext/opcache/config.m4
@@ -11,127 +11,13 @@ if test "$PHP_OPCACHE" != "no"; then
AC_DEFINE(HAVE_MPROTECT, 1, [Define if you have mprotect() function])
])
- AC_MSG_CHECKING(for sysvipc shared memory support)
- AC_TRY_RUN([
-#include <sys/types.h>
-#include <sys/wait.h>
-#include <sys/ipc.h>
-#include <sys/shm.h>
-#include <unistd.h>
-#include <string.h>
-
-int main() {
- pid_t pid;
- int status;
- int ipc_id;
- char *shm;
- struct shmid_ds shmbuf;
-
- ipc_id = shmget(IPC_PRIVATE, 4096, (IPC_CREAT | SHM_R | SHM_W));
- if (ipc_id == -1) {
- return 1;
- }
-
- shm = shmat(ipc_id, NULL, 0);
- if (shm == (void *)-1) {
- shmctl(ipc_id, IPC_RMID, NULL);
- return 2;
- }
-
- if (shmctl(ipc_id, IPC_STAT, &shmbuf) != 0) {
- shmdt(shm);
- shmctl(ipc_id, IPC_RMID, NULL);
- return 3;
- }
-
- shmbuf.shm_perm.uid = getuid();
- shmbuf.shm_perm.gid = getgid();
- shmbuf.shm_perm.mode = 0600;
-
- if (shmctl(ipc_id, IPC_SET, &shmbuf) != 0) {
- shmdt(shm);
- shmctl(ipc_id, IPC_RMID, NULL);
- return 4;
- }
-
- shmctl(ipc_id, IPC_RMID, NULL);
-
- strcpy(shm, "hello");
-
- pid = fork();
- if (pid < 0) {
- return 5;
- } else if (pid == 0) {
- strcpy(shm, "bye");
- return 6;
- }
- if (wait(&status) != pid) {
- return 7;
- }
- if (!WIFEXITED(status) || WEXITSTATUS(status) != 6) {
- return 8;
- }
- if (strcmp(shm, "bye") != 0) {
- return 9;
- }
- return 0;
-}
-],dnl
+ AC_CHECK_FUNC(shmget,[
AC_DEFINE(HAVE_SHM_IPC, 1, [Define if you have SysV IPC SHM support])
- msg=yes,msg=no,msg=no)
- AC_MSG_RESULT([$msg])
-
- AC_MSG_CHECKING(for mmap() using MAP_ANON shared memory support)
- AC_TRY_RUN([
-#include <sys/types.h>
-#include <sys/wait.h>
-#include <sys/mman.h>
-#include <unistd.h>
-#include <string.h>
-
-#ifndef MAP_ANON
-# ifdef MAP_ANONYMOUS
-# define MAP_ANON MAP_ANONYMOUS
-# endif
-#endif
-#ifndef MAP_FAILED
-# define MAP_FAILED ((void*)-1)
-#endif
-
-int main() {
- pid_t pid;
- int status;
- char *shm;
-
- shm = mmap(NULL, 4096, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANON, -1, 0);
- if (shm == MAP_FAILED) {
- return 1;
- }
-
- strcpy(shm, "hello");
+ ])
- pid = fork();
- if (pid < 0) {
- return 5;
- } else if (pid == 0) {
- strcpy(shm, "bye");
- return 6;
- }
- if (wait(&status) != pid) {
- return 7;
- }
- if (!WIFEXITED(status) || WEXITSTATUS(status) != 6) {
- return 8;
- }
- if (strcmp(shm, "bye") != 0) {
- return 9;
- }
- return 0;
-}
-],dnl
+ AC_CHECK_FUNC(mmap,[
AC_DEFINE(HAVE_SHM_MMAP_ANON, 1, [Define if you have mmap(MAP_ANON) SHM support])
- msg=yes,msg=no,msg=no)
- AC_MSG_RESULT([$msg])
+ ])
AC_MSG_CHECKING(for mmap() using /dev/zero shared memory support)
AC_TRY_RUN([

View file

@ -1,7 +1,6 @@
diff -u --recursive php-5.6.6-vanilla/configure.in php-5.6.6/configure.in --- a/configure.in
--- php-5.6.6-vanilla/configure.in 2015-02-26 22:10:51.865487530 -0500 +++ b/configure.in
+++ php-5.6.6/configure.in 2015-02-26 22:29:59.043102135 -0500 @@ -453,7 +453,10 @@ PHP_CHECK_FUNC(gethostname, nsl)
@@ -453,7 +453,10 @@
PHP_CHECK_FUNC(gethostbyaddr, nsl) PHP_CHECK_FUNC(gethostbyaddr, nsl)
PHP_CHECK_FUNC(yp_get_default_domain, nsl) PHP_CHECK_FUNC(yp_get_default_domain, nsl)
@ -13,10 +12,9 @@ diff -u --recursive php-5.6.6-vanilla/configure.in php-5.6.6/configure.in
if test "$ac_cv_func_dlopen" = "yes"; then if test "$ac_cv_func_dlopen" = "yes"; then
AC_DEFINE(HAVE_LIBDL, 1, [ ]) AC_DEFINE(HAVE_LIBDL, 1, [ ])
fi fi
diff -u --recursive php-5.6.6-vanilla/ext/fileinfo/config.m4 php-5.6.6/ext/fileinfo/config.m4 --- a/ext/fileinfo/config.m4
--- php-5.6.6-vanilla/ext/fileinfo/config.m4 2015-02-26 22:10:51.639487135 -0500 +++ b/ext/fileinfo/config.m4
+++ php-5.6.6/ext/fileinfo/config.m4 2015-02-26 22:22:47.645609128 -0500 @@ -46,6 +46,10 @@ int main(void)
@@ -46,6 +46,10 @@
AC_MSG_RESULT(no) AC_MSG_RESULT(no)
AC_MSG_NOTICE(using libmagic strcasestr implementation) AC_MSG_NOTICE(using libmagic strcasestr implementation)
libmagic_sources="$libmagic_sources libmagic/strcasestr.c" libmagic_sources="$libmagic_sources libmagic/strcasestr.c"
@ -27,10 +25,9 @@ diff -u --recursive php-5.6.6-vanilla/ext/fileinfo/config.m4 php-5.6.6/ext/filei
]) ])
PHP_NEW_EXTENSION(fileinfo, fileinfo.c $libmagic_sources, $ext_shared,,-I@ext_srcdir@/libmagic) PHP_NEW_EXTENSION(fileinfo, fileinfo.c $libmagic_sources, $ext_shared,,-I@ext_srcdir@/libmagic)
diff -u --recursive php-5.6.6-vanilla/ext/opcache/config.m4 php-5.6.6/ext/opcache/config.m4 --- a/ext/opcache/config.m4
--- php-5.6.6-vanilla/ext/opcache/config.m4 2015-02-26 22:10:51.790487399 -0500 +++ b/ext/opcache/config.m4
+++ php-5.6.6/ext/opcache/config.m4 2015-02-26 22:34:19.240414394 -0500 @@ -227,7 +227,14 @@ AC_TRY_RUN([
@@ -341,7 +341,14 @@
flock_type=linux flock_type=linux
AC_DEFINE([HAVE_FLOCK_LINUX], [], [Struct flock is Linux-type]) AC_DEFINE([HAVE_FLOCK_LINUX], [], [Struct flock is Linux-type])
AC_MSG_RESULT("yes") AC_MSG_RESULT("yes")
@ -46,7 +43,7 @@ diff -u --recursive php-5.6.6-vanilla/ext/opcache/config.m4 php-5.6.6/ext/opcach
AC_MSG_CHECKING("whether flock struct is BSD ordered") AC_MSG_CHECKING("whether flock struct is BSD ordered")
AC_TRY_RUN([ AC_TRY_RUN([
@@ -357,7 +364,12 @@ @@ -243,7 +250,12 @@ AC_TRY_RUN([
flock_type=bsd flock_type=bsd
AC_DEFINE([HAVE_FLOCK_BSD], [], [Struct flock is BSD-type]) AC_DEFINE([HAVE_FLOCK_BSD], [], [Struct flock is BSD-type])
AC_MSG_RESULT("yes") AC_MSG_RESULT("yes")
@ -58,5 +55,5 @@ diff -u --recursive php-5.6.6-vanilla/ext/opcache/config.m4 php-5.6.6/ext/opcach
+ AC_MSG_RESULT("no") + AC_MSG_RESULT("no")
+]) +])
if test "$flock_type" == "unknown"; then if test "$flock_type" = "unknown"; then
AC_MSG_ERROR([Don't know how to define struct flock on this system[,] set --enable-opcache=no]) AC_MSG_ERROR([Don't know how to define struct flock on this system[,] set --enable-opcache=no])

View file

@ -1,5 +1,5 @@
# #
# Copyright (C) 2011-2014 OpenWrt.org # Copyright (C) 2011-2015 OpenWrt.org
# #
# This is free software, licensed under the GNU General Public License v2. # This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information. # See /LICENSE for more information.
@ -10,13 +10,12 @@ define Package/php5-pecl/Default
SECTION:=lang SECTION:=lang
CATEGORY:=Languages CATEGORY:=Languages
URL:=http://pecl.php.net/ URL:=http://pecl.php.net/
MAINTAINER:=Michael Heimpold <mhei@heimpold.de>
DEPENDS:=php5 DEPENDS:=php5
endef endef
define Build/Configure define Build/Prepare
$(Build/Prepare/Default)
( cd $(PKG_BUILD_DIR); $(STAGING_DIR_HOST)/usr/bin/phpize ) ( cd $(PKG_BUILD_DIR); $(STAGING_DIR_HOST)/usr/bin/phpize )
$(Build/Configure/Default)
endef endef
CONFIGURE_ARGS+= \ CONFIGURE_ARGS+= \

View file

@ -0,0 +1,50 @@
#
# Copyright (C) 2015 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=python-pyserial
PKG_VERSION:=2.7
PKG_RELEASE:=1
PKG_MAINTAINER:=Micke Prag <micke.prag@telldus.se>
PKG_LICENSE:=Python-2.0
PKG_SOURCE:=pyserial-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://pypi.python.org/packages/source/p/pyserial/
PKG_MD5SUM:=794506184df83ef2290de0d18803dd11
PKG_BUILD_DIR:=$(BUILD_DIR)/pyserial-$(PKG_VERSION)
PKG_BUILD_DEPENDS:=python
include $(INCLUDE_DIR)/package.mk
$(call include_mk, python-package.mk)
define Package/python-pyserial
SUBMENU:=Python
SECTION:=lang
CATEGORY:=Languages
TITLE:=python-pyserial
URL:=http://pyserial.sourceforge.net
DEPENDS:=+python-light
endef
define Package/python-pyserial/description
serial port python bindings
endef
define Build/Compile
$(call Build/Compile/PyMod,,install --prefix="$(PKG_INSTALL_DIR)/usr")
endef
define Package/python-pyserial/install
$(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
$(CP) \
$(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
$(1)$(PYTHON_PKG_DIR)
endef
$(eval $(call BuildPackage,python-pyserial))

View file

@ -12,11 +12,11 @@ include ./files/python-package.mk
PKG_NAME:=python PKG_NAME:=python
PKG_VERSION:=$(PYTHON_VERSION).$(PYTHON_VERSION_MICRO) PKG_VERSION:=$(PYTHON_VERSION).$(PYTHON_VERSION_MICRO)
PKG_RELEASE:=5 PKG_RELEASE:=1
PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=http://www.python.org/ftp/python/$(PKG_VERSION) PKG_SOURCE_URL:=https://www.python.org/ftp/python/$(PKG_VERSION)
PKG_MD5SUM:=38d530f7efc373d64a8fb1637e3baaa7 PKG_MD5SUM:=57dffcee9cee8bb2ab5f82af1d8e9a69
PKG_LICENSE:=PSF PKG_LICENSE:=PSF
PKG_LICENSE_FILES:=LICENSE Modules/_ctypes/libffi_msvc/LICENSE Modules/_ctypes/darwin/LICENSE Modules/_ctypes/libffi/LICENSE Modules/_ctypes/libffi_osx/LICENSE Tools/pybench/LICENSE PKG_LICENSE_FILES:=LICENSE Modules/_ctypes/libffi_msvc/LICENSE Modules/_ctypes/darwin/LICENSE Modules/_ctypes/libffi/LICENSE Modules/_ctypes/libffi_osx/LICENSE Tools/pybench/LICENSE
@ -29,6 +29,7 @@ PKG_BUILD_DIR:=$(BUILD_DIR)/Python-$(PKG_VERSION)
HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/Python-$(PKG_VERSION) HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/Python-$(PKG_VERSION)
PKG_BUILD_DEPENDS:=python/host PKG_BUILD_DEPENDS:=python/host
HOST_BUILD_DEPENDS:=bzip2/host expat/host
include $(INCLUDE_DIR)/host-build.mk include $(INCLUDE_DIR)/host-build.mk
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
@ -221,6 +222,7 @@ HOST_CONFIGURE_ARGS+= \
--without-cxx-main \ --without-cxx-main \
--without-pymalloc \ --without-pymalloc \
--with-threads \ --with-threads \
--with-system-expat=$(STAGING_DIR_HOST) \
--prefix=$(STAGING_DIR_HOST) \ --prefix=$(STAGING_DIR_HOST) \
--with-ensurepip=upgrade \ --with-ensurepip=upgrade \
CONFIG_SITE= \ CONFIG_SITE= \

View file

@ -6,7 +6,7 @@
# #
PYTHON_VERSION:=2.7 PYTHON_VERSION:=2.7
PYTHON_VERSION_MICRO:=9 PYTHON_VERSION_MICRO:=12
PYTHON_DIR:=$(STAGING_DIR)/usr PYTHON_DIR:=$(STAGING_DIR)/usr
PYTHON_BIN_DIR:=$(PYTHON_DIR)/bin PYTHON_BIN_DIR:=$(PYTHON_DIR)/bin
@ -103,6 +103,7 @@ define Build/Compile/PyMod
cd $(PKG_BUILD_DIR)/$(strip $(1)); \ cd $(PKG_BUILD_DIR)/$(strip $(1)); \
CC="$(TARGET_CC)" \ CC="$(TARGET_CC)" \
CCSHARED="$(TARGET_CC) $(FPIC)" \ CCSHARED="$(TARGET_CC) $(FPIC)" \
CXX="$(TARGET_CXX)" \
LD="$(TARGET_CC)" \ LD="$(TARGET_CC)" \
LDSHARED="$(TARGET_CC) -shared" \ LDSHARED="$(TARGET_CC) -shared" \
CFLAGS="$(TARGET_CFLAGS)" \ CFLAGS="$(TARGET_CFLAGS)" \

View file

@ -1,12 +1,14 @@
diff --git a/setup.py b/setup.py diff --git a/setup.py b/setup.py
index 7868b7b..9ae0ef2 100644 index 1d1ae72..511aed5 100644
--- a/setup.py --- a/setup.py
+++ b/setup.py +++ b/setup.py
@@ -444,7 +444,6 @@ class PyBuildExt(build_ext): @@ -444,7 +444,8 @@ class PyBuildExt(build_ext):
add_dir_to_list(self.compiler.include_dirs, '/usr/local/include') add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
if cross_compiling: if cross_compiling:
self.add_gcc_paths() self.add_gcc_paths()
- self.add_multiarch_paths() - self.add_multiarch_paths()
+ else:
+ self.add_multiarch_paths()
# Add paths specified in the environment variables LDFLAGS and # Add paths specified in the environment variables LDFLAGS and
# CPPFLAGS for header and library files. # CPPFLAGS for header and library files.

View file

@ -1,5 +1,5 @@
# #
# Copyright (C) 2006-2015 OpenWrt.org # Copyright (C) 2006-2016 OpenWrt.org
# #
# This is free software, licensed under the GNU General Public License v2. # This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information. # See /LICENSE for more information.
@ -10,14 +10,14 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=ruby PKG_NAME:=ruby
PKG_VERSION:=2.2.2 PKG_VERSION:=2.2.6
PKG_RELEASE:=2 PKG_RELEASE:=1
PKG_LIBVER:=2.2 PKG_LIBVER:=2.2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=http://cache.ruby-lang.org/pub/ruby/$(PKG_LIBVER)/ PKG_SOURCE_URL:=http://cache.ruby-lang.org/pub/ruby/$(PKG_LIBVER)/
PKG_MD5SUM:=af6eb4fa7247f1f7b2e19c8e6f3e3145 PKG_MD5SUM:=3d13cf447142b8a11cd9beb7bc63fee0
PKG_MAINTAINER:=Luiz Angelo Daros de Luca <luizluca@gmail.com> PKG_MAINTAINER:=Luiz Angelo Daros de Luca <luizluca@gmail.com>
PKG_LICENSE:=BSD-2-Clause PKG_LICENSE:=BSD-2-Clause
PKG_LICENSE_FILES:=COPYING PKG_LICENSE_FILES:=COPYING
@ -833,6 +833,13 @@ endif
TARGET_LDFLAGS += -L$(PKG_BUILD_DIR) TARGET_LDFLAGS += -L$(PKG_BUILD_DIR)
# Ruby uses DLDFLAGS and not LDFLAGS for libraries. LDFLAGS is only for execs.
# However, DLDFLAGS from configure is not passed to Makefile when target is linux.
# XLDFLAGS is used by both libraries and execs. This is somehow brute force but
# if will fix when some LD_FLAGS is needef for libraries. As side effect, it will
# duplicate ld args for binaries.
CONFIGURE_VARS += XLDFLAGS="$(TARGET_LDFLAGS)"
MAKE_FLAGS += \ MAKE_FLAGS += \
DESTDIR="$(PKG_INSTALL_DIR)" \ DESTDIR="$(PKG_INSTALL_DIR)" \
SHELL="/bin/bash" SHELL="/bin/bash"

View file

@ -12,7 +12,7 @@ PKG_VERSION:=1.5.2
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=http://mirrors.ibiblio.org/apache/apr/ PKG_SOURCE_URL:=https://archive.apache.org/dist/apr/
PKG_MD5SUM:=4e9769f3349fe11fc0a5e1b224c236aa PKG_MD5SUM:=4e9769f3349fe11fc0a5e1b224c236aa
PKG_MAINTAINER:=Thomas Heil <heil@terminal-consulting.de> PKG_MAINTAINER:=Thomas Heil <heil@terminal-consulting.de>
PKG_LICENSE:=Apache License PKG_LICENSE:=Apache License

View file

@ -1,48 +0,0 @@
#
# Copyright (C) 2007-2014 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=argp-standalone
PKG_VERSION:=1.3
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.lysator.liu.se/~nisse/misc/
PKG_MD5SUM:=720704bac078d067111b32444e24ba69
PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
PKG_LICENSE:=LGPL-2.1
PKG_LICENSE:=Makefile.am
include $(INCLUDE_DIR)/package.mk
define Package/argp-standalone
SECTION:=libs
CATEGORY:=Libraries
TITLE:=Hierarchial argument parsing broken out from glibc
URL:=http://www.lysator.liu.se/~nisse/misc/
endef
define Package/argp-standalone/description
GNU libc hierarchial argument parsing library broken out from glibc.
endef
MAKE_FLAGS += \
CFLAGS="$(TARGET_CFLAGS) $(FPIC)"
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include
$(CP) $(PKG_BUILD_DIR)/argp.h \
$(1)/usr/include/
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/libargp.a \
$(1)/usr/lib/
endef
$(eval $(call BuildPackage,argp-standalone))

View file

@ -1,79 +0,0 @@
# --- T2-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# T2 SDE: package/.../rng-tools/throw-in-funcdef.patch.argp-standalone
# Copyright (C) 2006 The T2 SDE Project
#
# More information can be found in the files COPYING and README.
#
# This patch file is dual-licensed. It is available under the license the
# patched project is licensed under, as long as it is an OpenSource license
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
# of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
# --- T2-COPYRIGHT-NOTE-END ---
No __THROW in function implementation.
--jsaw
--- argp-standalone-1.4-test2/argp.h.orig 2006-01-06 02:29:59.000000000 +0100
+++ argp-standalone-1.4-test2/argp.h 2006-01-06 02:41:10.000000000 +0100
@@ -560,17 +560,17 @@
# endif
# ifndef ARGP_EI
-# define ARGP_EI extern __inline__
+# define ARGP_EI extern inline
# endif
ARGP_EI void
-__argp_usage (__const struct argp_state *__state) __THROW
+__argp_usage (__const struct argp_state *__state)
{
__argp_state_help (__state, stderr, ARGP_HELP_STD_USAGE);
}
ARGP_EI int
-__option_is_short (__const struct argp_option *__opt) __THROW
+__option_is_short (__const struct argp_option *__opt)
{
if (__opt->flags & OPTION_DOC)
return 0;
@@ -582,7 +582,7 @@
}
ARGP_EI int
-__option_is_end (__const struct argp_option *__opt) __THROW
+__option_is_end (__const struct argp_option *__opt)
{
return !__opt->key && !__opt->name && !__opt->doc && !__opt->group;
}
--- argp-standalone-1.4-test2/argp-parse.c.orig 2006-01-06 02:47:48.000000000 +0100
+++ argp-standalone-1.4-test2/argp-parse.c 2006-01-06 02:48:16.000000000 +0100
@@ -1290,13 +1290,13 @@
/* Defined here, in case a user is not inlining the definitions in
* argp.h */
void
-__argp_usage (__const struct argp_state *__state) __THROW
+__argp_usage (__const struct argp_state *__state)
{
__argp_state_help (__state, stderr, ARGP_HELP_STD_USAGE);
}
int
-__option_is_short (__const struct argp_option *__opt) __THROW
+__option_is_short (__const struct argp_option *__opt)
{
if (__opt->flags & OPTION_DOC)
return 0;
@@ -1310,7 +1310,7 @@
}
int
-__option_is_end (__const struct argp_option *__opt) __THROW
+__option_is_end (__const struct argp_option *__opt)
{
return !__opt->key && !__opt->name && !__opt->doc && !__opt->group;
}

View file

@ -1,5 +1,5 @@
# #
# Copyright (C) 2009-2014 OpenWrt.org # Copyright (C) 2009-2015 OpenWrt.org
# #
# This is free software, licensed under the GNU General Public License v2. # This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information. # See /LICENSE for more information.
@ -12,7 +12,7 @@ BASE_VERSION:=4.7.25
PKG_NAME:=db47 PKG_NAME:=db47
PKG_VERSION:=$(BASE_VERSION).4.NC PKG_VERSION:=$(BASE_VERSION).4.NC
PKG_RELEASE:=3 PKG_RELEASE:=4.1
PKG_BUILD_DIR:=$(BUILD_DIR)/db-$(BASE_VERSION).NC PKG_BUILD_DIR:=$(BUILD_DIR)/db-$(BASE_VERSION).NC
PKG_SOURCE:=db-$(BASE_VERSION).NC.tar.gz PKG_SOURCE:=db-$(BASE_VERSION).NC.tar.gz
@ -62,7 +62,7 @@ CONFIGURE_ARGS += \
--enable-shared \ --enable-shared \
--enable-static \ --enable-static \
--disable-java \ --disable-java \
--with-mutex=UNIX/fcntl \ --with-mutex=POSIX/pthreads/library \
--disable-tcl \ --disable-tcl \
--disable-rpc \ --disable-rpc \
--enable-compat185 \ --enable-compat185 \

View file

@ -0,0 +1,11 @@
--- a/dist/configure
+++ b/dist/configure
@@ -32451,7 +32451,7 @@ if test "$db_cv_build_replication" = yes
case "$db_cv_mutex" in
POSIX/pthread*|Solaris/lwp)
- db_cv_build_replication_mgr=yes;;
+ db_cv_build_replication_mgr=no;;
esac
if test "$db_cv_pthread_api" = yes; then
db_cv_build_replication_mgr=yes

View file

@ -1,97 +0,0 @@
#
# Copyright (C) 2010-2014 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=elfutils
PKG_VERSION:=0.161
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=http://fedorahosted.org/releases/e/l/$(PKG_NAME)/$(PKG_VERSION)
PKG_MD5SUM:=e1b9847c9a6a1ad340de8d47a863ec52
PKG_MAINTAINER:=Luiz Angelo Daros de Luca <luizluca@gmail.com>
PKG_LICENSE:=GPL-3.0+
PKG_LICENSE_FILES:=COPYING COPYING-GPLV2 COPYING-LGPLV3
PKG_INSTALL:=1
PKG_USE_MIPS16:=0
PKG_BUILD_DEPENDS:=USE_UCLIBC:argp-standalone USE_MUSL:argp-standalone
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/nls.mk
define Package/elfutils/Default
SECTION:=libs
CATEGORY:=Libraries
DEPENDS:=$(INTL_DEPENDS)
TITLE:=ELF manipulation libraries
URL:=https://fedorahosted.org/elfutils/
endef
define Package/libasm
$(call Package/elfutils/Default)
TITLE+= (libasm)
DEPENDS:=libelf1
endef
define Package/libdw
$(call Package/elfutils/Default)
DEPENDS:=libelf1 +zlib +libbz2
TITLE+= (libdw)
endef
define Package/libelf1
$(call Package/elfutils/Default)
TITLE+= (libelf)
endef
ifeq ($(CONFIG_BUILD_NLS),y)
TARGET_LDFLAGS += "-lintl"
endif
ifdef CONFIG_USE_UCLIBC
CONFIGURE_VARS += \
LIBS="-largp"
endif
ifdef CONFIG_USE_MUSL
CONFIGURE_VARS += \
LIBS="-largp"
endif
CONFIGURE_ARGS += \
--disable-werror \
--without-lzma
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/libasm/libasm.{a,so*} $(1)/usr/lib/
$(CP) $(PKG_BUILD_DIR)/libdw/libdw.{a,so*} $(1)/usr/lib/
$(CP) $(PKG_BUILD_DIR)/libelf/libelf.{a,so*} $(1)/usr/lib/
endef
define Package/libasm/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/libasm/libasm.so* $(1)/usr/lib/
endef
define Package/libdw/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/libdw/libdw.so* $(1)/usr/lib/
endef
define Package/libelf1/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/libelf/libelf.so* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libasm))
$(eval $(call BuildPackage,libdw))
$(eval $(call BuildPackage,libelf1))

File diff suppressed because it is too large Load diff

View file

@ -1,14 +0,0 @@
--- elfutils-0.160/lib/color.c.old 2014-11-06 03:46:43.584116134 -0200
+++ elfutils-0.160/lib/color.c 2014-11-06 03:47:25.840116128 -0200
@@ -131,8 +131,10 @@
- 'never', 'no', 'none'\n\
- 'auto', 'tty', 'if-tty'\n"),
program_invocation_short_name, arg);
+ char program_invocation_short_name_nonconst[sizeof(program_invocation_short_name)];
+ strcpy(program_invocation_short_name_nonconst, program_invocation_short_name);
argp_help (&color_argp, stderr, ARGP_HELP_SEE,
- program_invocation_short_name);
+ program_invocation_short_name_nonconst);
exit (EXIT_FAILURE);
}
}

View file

@ -1,49 +0,0 @@
--- elfutils-0.160/libelf/libelfP.h.old 2014-11-06 01:47:55.420116984 -0200
+++ elfutils-0.160/libelf/libelfP.h 2014-11-06 01:48:33.368116980 -0200
@@ -43,6 +43,9 @@
#include <string.h>
+#ifdef _ /* fix libintl-stub */
+#undef _
+#endif
/* gettext helper macros. */
#define _(Str) dgettext ("elfutils", Str)
--- elfutils-0.160/libdw/libdwP.h.old 2014-11-06 02:27:12.628116703 -0200
+++ elfutils-0.160/libdw/libdwP.h 2014-11-06 02:27:39.816116700 -0200
@@ -36,7 +36,9 @@
#include <libdw.h>
#include <dwarf.h>
-
+#ifdef _ /* fix libintl-stub */
+#undef _
+#endif
/* gettext helper macros. */
#define _(Str) dgettext ("elfutils", Str)
--- elfutils-0.160/libdwfl/libdwflP.h.old 2014-11-06 02:31:20.112116673 -0200
+++ elfutils-0.160/libdwfl/libdwflP.h 2014-11-06 02:33:00.548116661 -0200
@@ -46,6 +46,9 @@
typedef struct Dwfl_Process Dwfl_Process;
+#ifdef _ /* fix libintl-stub */
+#undef _
+#endif
/* gettext helper macros. */
#define _(Str) dgettext ("elfutils", Str)
--- elfutils-0.160/libasm/libasmP.h.old 2014-11-06 02:31:32.064116672 -0200
+++ elfutils-0.160/libasm/libasmP.h 2014-11-06 02:33:08.656116660 -0200
@@ -33,6 +33,9 @@
#include <libasm.h>
+#ifdef _ /* fix libintl-stub */
+#undef _
+#endif
/* gettext helper macros. */
#define _(Str) dgettext ("elfutils", Str)

View file

@ -1,11 +0,0 @@
--- elfutils-0.160/libelf/elf_getarsym.c.org 2014-11-06 01:56:58.664116919 -0200
+++ elfutils-0.160/libelf/elf_getarsym.c 2014-11-06 01:57:09.396116918 -0200
@@ -166,7 +166,7 @@
/* We have an archive. The first word in there is the number of
entries in the table. */
- uint64_t n;
+ uint64_t n = 0;
size_t off = elf->start_offset + SARMAG + sizeof (struct ar_hdr);
if (read_number_entries (&n, elf, &off, index64_p) < 0)
{

View file

@ -1,14 +0,0 @@
--- a/libelf/libelf.h
+++ b/libelf/libelf.h
@@ -34,6 +34,11 @@
/* Get the ELF types. */
#include <elf.h>
+#ifndef _LIBC
+#ifndef __mempcpy
+#define __mempcpy mempcpy
+#endif
+#endif
/* Known translation types. */
typedef enum

View file

@ -1,24 +0,0 @@
--- elfutils-0.160/Makefile.in.old 2014-11-06 03:56:04.828116067 -0200
+++ elfutils-0.160/Makefile.in 2014-11-06 03:57:03.380116060 -0200
@@ -359,8 +359,7 @@
pkginclude_HEADERS = version.h
# Add doc back when we have some real content.
-SUBDIRS = config m4 lib libelf libebl libdwelf libdwfl libdw libcpu libasm \
- backends src po tests
+SUBDIRS = config m4 lib libelf libebl libdwelf libdwfl libdw libasm
EXTRA_DIST = elfutils.spec GPG-KEY NOTES CONTRIBUTING \
COPYING COPYING-GPLV2 COPYING-LGPLV3
--- elfutils-0.160/Makefile.am.old 2014-11-06 03:58:13.012116051 -0200
+++ elfutils-0.160/Makefile.am 2014-11-06 03:58:25.948116050 -0200
@@ -23,8 +23,7 @@
pkginclude_HEADERS = version.h
# Add doc back when we have some real content.
-SUBDIRS = config m4 lib libelf libebl libdwelf libdwfl libdw libcpu libasm \
- backends src po tests
+SUBDIRS = config m4 lib libelf libebl libdwelf libdwfl libdw libasm
EXTRA_DIST = elfutils.spec GPG-KEY NOTES CONTRIBUTING \
COPYING COPYING-GPLV2 COPYING-LGPLV3

View file

@ -1,11 +0,0 @@
--- elfutils-0.161/libdw/Makefile.in.orig 2015-01-16 03:50:15.311237461 -0200
+++ elfutils-0.161/libdw/Makefile.in 2015-01-16 03:55:35.082090075 -0200
@@ -969,7 +969,7 @@
-Wl,--enable-new-dtags,-rpath,$(pkglibdir) \
-Wl,--version-script,$<,--no-undefined \
-Wl,--whole-archive $(filter-out $<,$^) -Wl,--no-whole-archive\
- -ldl $(zip_LIBS)
+ -ldl $(zip_LIBS) $(LIBS)
@$(textrel_check)
ln -fs $@ $@.$(VERSION)

View file

@ -1,788 +0,0 @@
--- a/lib/system.h
+++ b/lib/system.h
@@ -68,6 +68,16 @@ extern int crc32_file (int fd, uint32_t
#define gettext_noop(Str) Str
+#ifndef TEMP_FAILURE_RETRY
+#define TEMP_FAILURE_RETRY(expression) \
+ (__extension__ \
+ ({ long int __result; \
+ do __result = (long int) (expression); \
+ while (__result == -1L && errno == EINTR); \
+ __result; }))
+#endif
+
+#define error(status, errno, ...) err(status, __VA_ARGS__)
static inline ssize_t __attribute__ ((unused))
pwrite_retry (int fd, const void *buf, size_t len, off_t off)
--- a/lib/color.c
+++ b/lib/color.c
@@ -32,7 +32,7 @@
#endif
#include <argp.h>
-#include <error.h>
+#include <err.h>
#include <libintl.h>
#include <stdlib.h>
#include <string.h>
--- a/lib/xmalloc.c
+++ b/lib/xmalloc.c
@@ -30,7 +30,7 @@
# include <config.h>
#endif
-#include <error.h>
+#include <err.h>
#include <libintl.h>
#include <stddef.h>
#include <stdlib.h>
--- a/src/addr2line.c
+++ b/src/addr2line.c
@@ -23,7 +23,7 @@
#include <argp.h>
#include <assert.h>
#include <errno.h>
-#include <error.h>
+#include <err.h>
#include <fcntl.h>
#include <inttypes.h>
#include <libdwfl.h>
--- a/src/ar.c
+++ b/src/ar.c
@@ -22,7 +22,7 @@
#include <argp.h>
#include <assert.h>
-#include <error.h>
+#include <err.h>
#include <fcntl.h>
#include <gelf.h>
#include <libintl.h>
--- a/src/arlib2.c
+++ b/src/arlib2.c
@@ -20,7 +20,7 @@
# include <config.h>
#endif
-#include <error.h>
+#include <err.h>
#include <libintl.h>
#include <limits.h>
#include <string.h>
--- a/src/arlib.c
+++ b/src/arlib.c
@@ -21,7 +21,7 @@
#endif
#include <assert.h>
-#include <error.h>
+#include <err.h>
#include <gelf.h>
#include <libintl.h>
#include <stdio.h>
--- a/src/elfcmp.c
+++ b/src/elfcmp.c
@@ -23,7 +23,7 @@
#include <argp.h>
#include <assert.h>
#include <errno.h>
-#include <error.h>
+#include <err.h>
#include <fcntl.h>
#include <locale.h>
#include <libintl.h>
--- a/src/elflint.c
+++ b/src/elflint.c
@@ -24,7 +24,7 @@
#include <assert.h>
#include <byteswap.h>
#include <endian.h>
-#include <error.h>
+#include <err.h>
#include <fcntl.h>
#include <gelf.h>
#include <inttypes.h>
--- a/src/findtextrel.c
+++ b/src/findtextrel.c
@@ -23,7 +23,7 @@
#include <argp.h>
#include <assert.h>
#include <errno.h>
-#include <error.h>
+#include <err.h>
#include <fcntl.h>
#include <gelf.h>
#include <libdw.h>
--- a/src/i386_ld.c
+++ b/src/i386_ld.c
@@ -20,7 +20,7 @@
#endif
#include <assert.h>
-#include <error.h>
+#include <err.h>
#include <libintl.h>
#include <stdlib.h>
#include <string.h>
--- a/src/ld.c
+++ b/src/ld.c
@@ -21,7 +21,7 @@
#include <argp.h>
#include <assert.h>
-#include <error.h>
+#include <err.h>
#include <fcntl.h>
#include <libelf.h>
#include <libintl.h>
--- a/src/ldgeneric.c
+++ b/src/ldgeneric.c
@@ -23,7 +23,7 @@
#include <ctype.h>
#include <dlfcn.h>
#include <errno.h>
-#include <error.h>
+#include <err.h>
#include <fcntl.h>
#include <fnmatch.h>
#include <gelf.h>
--- a/src/ldlex.c
+++ b/src/ldlex.c
@@ -1099,7 +1099,7 @@ char *ldtext;
#include <assert.h>
#include <ctype.h>
#include <elf.h>
-#include <error.h>
+#include <err.h>
#include <inttypes.h>
#include <libintl.h>
#include <stdbool.h>
--- a/src/ldscript.c
+++ b/src/ldscript.c
@@ -95,7 +95,7 @@
#endif
#include <assert.h>
-#include <error.h>
+#include <err.h>
#include <libintl.h>
#include <stdbool.h>
#include <stdint.h>
@@ -106,7 +106,7 @@
#include <system.h>
#include <ld.h>
-/* The error handler. */
+/* The err.handler. */
static void yyerror (const char *s);
/* Some helper functions we need to construct the data structures
--- a/src/nm.c
+++ b/src/nm.c
@@ -26,7 +26,7 @@
#include <ctype.h>
#include <dwarf.h>
#include <errno.h>
-#include <error.h>
+#include <err.h>
#include <fcntl.h>
#include <gelf.h>
#include <inttypes.h>
--- a/src/objdump.c
+++ b/src/objdump.c
@@ -21,7 +21,7 @@
#endif
#include <argp.h>
-#include <error.h>
+#include <err.h>
#include <fcntl.h>
#include <inttypes.h>
#include <libintl.h>
--- a/src/ranlib.c
+++ b/src/ranlib.c
@@ -24,7 +24,7 @@
#include <argp.h>
#include <assert.h>
#include <errno.h>
-#include <error.h>
+#include <err.h>
#include <fcntl.h>
#include <gelf.h>
#include <libintl.h>
--- a/src/readelf.c
+++ b/src/readelf.c
@@ -25,7 +25,7 @@
#include <ctype.h>
#include <dwarf.h>
#include <errno.h>
-#include <error.h>
+#include <err.h>
#include <fcntl.h>
#include <gelf.h>
#include <inttypes.h>
--- a/src/size.c
+++ b/src/size.c
@@ -21,7 +21,7 @@
#endif
#include <argp.h>
-#include <error.h>
+#include <err.h>
#include <fcntl.h>
#include <gelf.h>
#include <inttypes.h>
--- a/src/stack.c
+++ b/src/stack.c
@@ -18,7 +18,7 @@
#include <config.h>
#include <assert.h>
#include <argp.h>
-#include <error.h>
+#include <err.h>
#include <stdlib.h>
#include <inttypes.h>
#include <stdio.h>
--- a/src/strings.c
+++ b/src/strings.c
@@ -25,7 +25,7 @@
#include <ctype.h>
#include <endian.h>
#include <errno.h>
-#include <error.h>
+#include <err.h>
#include <fcntl.h>
#include <gelf.h>
#include <inttypes.h>
--- a/src/strip.c
+++ b/src/strip.c
@@ -24,7 +24,7 @@
#include <assert.h>
#include <byteswap.h>
#include <endian.h>
-#include <error.h>
+#include <err.h>
#include <fcntl.h>
#include <gelf.h>
#include <libelf.h>
--- a/src/unstrip.c
+++ b/src/unstrip.c
@@ -31,7 +31,7 @@
#include <argp.h>
#include <assert.h>
#include <errno.h>
-#include <error.h>
+#include <err.h>
#include <fcntl.h>
#include <fnmatch.h>
#include <libintl.h>
--- a/tests/addrscopes.c
+++ b/tests/addrscopes.c
@@ -25,7 +25,7 @@
#include <stdio_ext.h>
#include <locale.h>
#include <stdlib.h>
-#include <error.h>
+#include <err.h>
#include <string.h>
--- a/tests/allregs.c
+++ b/tests/allregs.c
@@ -21,7 +21,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <error.h>
+#include <err.h>
#include <locale.h>
#include <argp.h>
#include <assert.h>
--- a/tests/backtrace.c
+++ b/tests/backtrace.c
@@ -24,7 +24,7 @@
#include <dirent.h>
#include <stdlib.h>
#include <errno.h>
-#include <error.h>
+#include <err.h>
#include <unistd.h>
#include <dwarf.h>
#include <sys/resource.h>
--- a/tests/backtrace-data.c
+++ b/tests/backtrace-data.c
@@ -27,7 +27,7 @@
#include <dirent.h>
#include <stdlib.h>
#include <errno.h>
-#include <error.h>
+#include <err.h>
#include <unistd.h>
#include <dwarf.h>
#include <sys/resource.h>
--- a/tests/buildid.c
+++ b/tests/buildid.c
@@ -23,7 +23,7 @@
#include ELFUTILS_HEADER(elf)
#include ELFUTILS_HEADER(dwelf)
#include <stdio.h>
-#include <error.h>
+#include <err.h>
#include <string.h>
#include <stdlib.h>
#include <sys/types.h>
--- a/tests/debugaltlink.c
+++ b/tests/debugaltlink.c
@@ -23,7 +23,7 @@
#include ELFUTILS_HEADER(dw)
#include ELFUTILS_HEADER(dwelf)
#include <stdio.h>
-#include <error.h>
+#include <err.h>
#include <string.h>
#include <stdlib.h>
#include <sys/types.h>
--- a/tests/debuglink.c
+++ b/tests/debuglink.c
@@ -21,7 +21,7 @@
#include <errno.h>
#include ELFUTILS_HEADER(dwelf)
#include <stdio.h>
-#include <error.h>
+#include <err.h>
#include <string.h>
#include <stdlib.h>
#include <sys/types.h>
--- a/tests/dwfl-addr-sect.c
+++ b/tests/dwfl-addr-sect.c
@@ -23,7 +23,7 @@
#include <stdio_ext.h>
#include <stdlib.h>
#include <string.h>
-#include <error.h>
+#include <err.h>
#include <locale.h>
#include <argp.h>
#include ELFUTILS_HEADER(dwfl)
--- a/tests/dwfl-bug-addr-overflow.c
+++ b/tests/dwfl-bug-addr-overflow.c
@@ -20,7 +20,7 @@
#include <inttypes.h>
#include <stdio.h>
#include <stdio_ext.h>
-#include <error.h>
+#include <err.h>
#include <locale.h>
#include ELFUTILS_HEADER(dwfl)
--- a/tests/dwfl-bug-fd-leak.c
+++ b/tests/dwfl-bug-fd-leak.c
@@ -24,7 +24,7 @@
#include <dirent.h>
#include <stdlib.h>
#include <errno.h>
-#include <error.h>
+#include <err.h>
#include <unistd.h>
#include <dwarf.h>
#include <sys/resource.h>
--- a/tests/dwfl-bug-getmodules.c
+++ b/tests/dwfl-bug-getmodules.c
@@ -18,7 +18,7 @@
#include <config.h>
#include ELFUTILS_HEADER(dwfl)
-#include <error.h>
+#include <err.h>
static const Dwfl_Callbacks callbacks =
{
--- a/tests/dwfllines.c
+++ b/tests/dwfllines.c
@@ -27,7 +27,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <error.h>
+#include <err.h>
int
main (int argc, char *argv[])
--- a/tests/dwflmodtest.c
+++ b/tests/dwflmodtest.c
@@ -23,7 +23,7 @@
#include <stdio_ext.h>
#include <stdlib.h>
#include <string.h>
-#include <error.h>
+#include <err.h>
#include <locale.h>
#include <argp.h>
#include ELFUTILS_HEADER(dwfl)
--- a/tests/dwfl-report-elf-align.c
+++ b/tests/dwfl-report-elf-align.c
@@ -20,7 +20,7 @@
#include <inttypes.h>
#include <stdio.h>
#include <stdio_ext.h>
-#include <error.h>
+#include <err.h>
#include <locale.h>
#include <string.h>
#include <stdlib.h>
--- a/tests/dwflsyms.c
+++ b/tests/dwflsyms.c
@@ -25,7 +25,7 @@
#include <stdio.h>
#include <stdio_ext.h>
#include <stdlib.h>
-#include <error.h>
+#include <err.h>
#include <string.h>
static const char *
--- a/tests/early-offscn.c
+++ b/tests/early-offscn.c
@@ -19,7 +19,7 @@
#endif
#include <errno.h>
-#include <error.h>
+#include <err.h>
#include <fcntl.h>
#include <gelf.h>
#include <stdio.h>
--- a/tests/ecp.c
+++ b/tests/ecp.c
@@ -16,7 +16,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include <errno.h>
-#include <error.h>
+#include <err.h>
#include <fcntl.h>
#include <gelf.h>
#include <stdlib.h>
--- a/tests/find-prologues.c
+++ b/tests/find-prologues.c
@@ -25,7 +25,7 @@
#include <stdio_ext.h>
#include <locale.h>
#include <stdlib.h>
-#include <error.h>
+#include <err.h>
#include <string.h>
#include <fnmatch.h>
--- a/tests/funcretval.c
+++ b/tests/funcretval.c
@@ -25,7 +25,7 @@
#include <stdio_ext.h>
#include <locale.h>
#include <stdlib.h>
-#include <error.h>
+#include <err.h>
#include <string.h>
#include <fnmatch.h>
--- a/tests/funcscopes.c
+++ b/tests/funcscopes.c
@@ -25,7 +25,7 @@
#include <stdio_ext.h>
#include <locale.h>
#include <stdlib.h>
-#include <error.h>
+#include <err.h>
#include <string.h>
#include <fnmatch.h>
--- a/tests/line2addr.c
+++ b/tests/line2addr.c
@@ -26,7 +26,7 @@
#include <locale.h>
#include <stdlib.h>
#include <string.h>
-#include <error.h>
+#include <err.h>
static void
--- a/tests/low_high_pc.c
+++ b/tests/low_high_pc.c
@@ -25,7 +25,7 @@
#include <stdio_ext.h>
#include <locale.h>
#include <stdlib.h>
-#include <error.h>
+#include <err.h>
#include <string.h>
#include <fnmatch.h>
--- a/tests/md5-sha1-test.c
+++ b/tests/md5-sha1-test.c
@@ -19,7 +19,7 @@
#endif
#include <string.h>
-#include <error.h>
+#include <err.h>
#include "md5.h"
#include "sha1.h"
--- a/tests/rdwrmmap.c
+++ b/tests/rdwrmmap.c
@@ -15,7 +15,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include <errno.h>
-#include <error.h>
+#include <err.h>
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
--- a/tests/saridx.c
+++ b/tests/saridx.c
@@ -17,7 +17,7 @@
#include <config.h>
-#include <error.h>
+#include <err.h>
#include <fcntl.h>
#include <gelf.h>
#include <stdio.h>
--- a/tests/sectiondump.c
+++ b/tests/sectiondump.c
@@ -18,7 +18,7 @@
#include <config.h>
#include <errno.h>
-#include <error.h>
+#include <err.h>
#include <fcntl.h>
#include <gelf.h>
#include <inttypes.h>
--- a/tests/varlocs.c
+++ b/tests/varlocs.c
@@ -25,7 +25,7 @@
#include <dwarf.h>
#include <stdio.h>
#include <stdlib.h>
-#include <error.h>
+#include <err.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
--- a/libelf/libelf.h
+++ b/libelf/libelf.h
@@ -29,6 +29,7 @@
#ifndef _LIBELF_H
#define _LIBELF_H 1
+#include <fcntl.h>
#include <sys/types.h>
/* Get the ELF types. */
--- a/libasm/asm_end.c
+++ b/libasm/asm_end.c
@@ -32,7 +32,7 @@
#endif
#include <assert.h>
-#include <error.h>
+#include <err.h>
#include <libintl.h>
#include <stdio.h>
#include <stdlib.h>
--- a/libasm/asm_newscn.c
+++ b/libasm/asm_newscn.c
@@ -32,7 +32,7 @@
#endif
#include <assert.h>
-#include <error.h>
+#include <err.h>
#include <libintl.h>
#include <stdlib.h>
#include <string.h>
--- a/libcpu/i386_gendis.c
+++ b/libcpu/i386_gendis.c
@@ -31,7 +31,7 @@
# include <config.h>
#endif
-#include <error.h>
+#include <err.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
--- a/libcpu/i386_lex.c
+++ b/libcpu/i386_lex.c
@@ -571,7 +571,7 @@ char *i386_text;
#endif
#include <ctype.h>
-#include <error.h>
+#include <err.h>
#include <libintl.h>
#include <system.h>
--- a/libcpu/i386_lex.l
+++ b/libcpu/i386_lex.l
@@ -31,7 +31,7 @@
#endif
#include <ctype.h>
-#include <error.h>
+#include <err.h>
#include <libintl.h>
#include <system.h>
--- a/libcpu/i386_parse.c
+++ b/libcpu/i386_parse.c
@@ -107,7 +107,7 @@
#include <assert.h>
#include <ctype.h>
#include <errno.h>
-#include <error.h>
+#include <err.h>
#include <inttypes.h>
#include <libintl.h>
#include <math.h>
--- a/libdw/libdw_alloc.c
+++ b/libdw/libdw_alloc.c
@@ -31,7 +31,7 @@
# include <config.h>
#endif
-#include <error.h>
+#include <err.h>
#include <errno.h>
#include <stdlib.h>
#include <sys/param.h>
@@ -74,5 +74,5 @@ __attribute ((noreturn, visibility ("hid
__libdw_oom (void)
{
while (1)
- error (EXIT_FAILURE, ENOMEM, "libdw");
+ err (EXIT_FAILURE, "libdw: out of memory");
}
--- a/libebl/eblopenbackend.c
+++ b/libebl/eblopenbackend.c
@@ -32,7 +32,7 @@
#include <assert.h>
#include <dlfcn.h>
-#include <error.h>
+#include <err.h>
#include <libelfP.h>
#include <dwarf.h>
#include <stdlib.h>
--- a/src/ldlex.l
+++ b/src/ldlex.l
@@ -23,7 +23,7 @@
#include <assert.h>
#include <ctype.h>
#include <elf.h>
-#include <error.h>
+#include <err.h>
#include <inttypes.h>
#include <libintl.h>
#include <stdbool.h>
--- a/libebl/eblwstrtab.c
+++ b/libebl/eblwstrtab.c
@@ -305,7 +305,7 @@ copystrings (struct Ebl_WStrent *nodep,
/* Process the current node. */
nodep->offset = *offsetp;
- *freep = wmempcpy (*freep, nodep->string, nodep->len);
+ *freep = wmemcpy (*freep, nodep->string, nodep->len) + nodep->len;
*offsetp += nodep->len * sizeof (wchar_t);
for (subs = nodep->next; subs != NULL; subs = subs->next)
--- a/libdwfl/dwfl_error.c
+++ b/libdwfl/dwfl_error.c
@@ -128,6 +128,7 @@ const char *
dwfl_errmsg (error)
int error;
{
+ static __thread char s[64] = "";
if (error == 0 || error == -1)
{
int last_error = global_error;
@@ -142,7 +143,8 @@ dwfl_errmsg (error)
switch (error &~ 0xffff)
{
case OTHER_ERROR (ERRNO):
- return strerror_r (error & 0xffff, "bad", 0);
+ strerror_r (error & 0xffff, s, sizeof(s));
+ return s;
case OTHER_ERROR (LIBELF):
return elf_errmsg (error & 0xffff);
case OTHER_ERROR (LIBDW):
--- a/libdwfl/libdwfl.h
+++ b/libdwfl/libdwfl.h
@@ -31,6 +31,27 @@
#include "libdw.h"
#include <stdio.h>
+#include <unistd.h>
+#include <alloca.h>
+#include <string.h>
+
+#ifndef TEMP_FAILURE_RETRY
+#define TEMP_FAILURE_RETRY(expression) \
+ (__extension__ \
+ ({ long int __result; \
+ do __result = (long int) (expression); \
+ while (__result == -1L && errno == EINTR); \
+ __result; }))
+#endif
+
+#ifndef strndupa
+#define strndupa(s, n) \
+ (__extension__ ({const char *__in = (s); \
+ size_t __len = strnlen (__in, (n)) + 1; \
+ char *__out = (char *) alloca (__len); \
+ __out[__len-1] = '\0'; \
+ (char *) memcpy (__out, __in, __len-1);}))
+#endif
/* Handle for a session using the library. */
typedef struct Dwfl Dwfl;
--- a/libdwfl/find-debuginfo.c
+++ b/libdwfl/find-debuginfo.c
@@ -338,7 +338,7 @@ dwfl_standard_find_debuginfo (Dwfl_Modul
/* If FILE_NAME is a symlink, the debug file might be associated
with the symlink target name instead. */
- char *canon = canonicalize_file_name (file_name);
+ char *canon = realpath (file_name, NULL);
if (canon != NULL && strcmp (file_name, canon))
fd = find_debuginfo_in_path (mod, canon,
debuglink_file, debuglink_crc,
--- a/libdwfl/dwfl_build_id_find_elf.c
+++ b/libdwfl/dwfl_build_id_find_elf.c
@@ -80,7 +80,7 @@ __libdwfl_open_by_build_id (Dwfl_Module
{
if (*file_name != NULL)
free (*file_name);
- *file_name = canonicalize_file_name (name);
+ *file_name = realpath (name, NULL);
if (*file_name == NULL)
{
*file_name = name;
--- a/libelf/elf_getarsym.c
+++ b/libelf/elf_getarsym.c
@@ -284,7 +284,7 @@ elf_getarsym (elf, ptr)
arsym[cnt].as_off = file_data->u32[cnt];
arsym[cnt].as_hash = _dl_elf_hash (str_data);
- str_data = rawmemchr (str_data, '\0') + 1;
+ str_data = memchr (str_data, '\0', SIZE_MAX) + 1;
}
/* At the end a special entry. */

View file

@ -1,109 +0,0 @@
--- a/libdwfl/argp-std.c
+++ b/libdwfl/argp-std.c
@@ -52,9 +52,6 @@ static const struct argp_option options[
{ "linux-process-map", 'M', "FILE", 0,
N_("Find addresses in files mapped as read from FILE"
" in Linux /proc/PID/maps format"), 0 },
- { "kernel", 'k', NULL, 0, N_("Find addresses in the running kernel"), 0 },
- { "offline-kernel", 'K', "RELEASE", OPTION_ARG_OPTIONAL,
- N_("Kernel with all modules"), 0 },
{ "debuginfo-path", OPT_DEBUGINFO, "PATH", 0,
N_("Search path for separate debuginfo files"), 0 },
{ NULL, 0, NULL, 0, NULL, 0 }
@@ -81,15 +78,6 @@ static const Dwfl_Callbacks proc_callbac
.find_elf = INTUSE(dwfl_linux_proc_find_elf),
};
-static const Dwfl_Callbacks kernel_callbacks =
- {
- .find_debuginfo = INTUSE(dwfl_standard_find_debuginfo),
- .debuginfo_path = &debuginfo_path,
-
- .find_elf = INTUSE(dwfl_linux_kernel_find_elf),
- .section_address = INTUSE(dwfl_linux_kernel_module_section_address),
- };
-
/* Structure held at state->HOOK. */
struct parse_opt
{
@@ -219,43 +207,6 @@ parse_opt (int key, char *arg, struct ar
}
break;
- case 'k':
- {
- struct parse_opt *opt = state->hook;
- if (opt->dwfl == NULL)
- {
- Dwfl *dwfl = INTUSE(dwfl_begin) (&kernel_callbacks);
- int result = INTUSE(dwfl_linux_kernel_report_kernel) (dwfl);
- if (result != 0)
- return fail (dwfl, result, _("cannot load kernel symbols"));
- result = INTUSE(dwfl_linux_kernel_report_modules) (dwfl);
- if (result != 0)
- /* Non-fatal to have no modules since we do have the kernel. */
- failure (dwfl, result, _("cannot find kernel modules"));
- opt->dwfl = dwfl;
- }
- else
- goto toomany;
- }
- break;
-
- case 'K':
- {
- struct parse_opt *opt = state->hook;
- if (opt->dwfl == NULL)
- {
- Dwfl *dwfl = INTUSE(dwfl_begin) (&offline_callbacks);
- int result = INTUSE(dwfl_linux_kernel_report_offline) (dwfl, arg,
- NULL);
- if (result != 0)
- return fail (dwfl, result, _("cannot find kernel or modules"));
- opt->dwfl = dwfl;
- }
- else
- goto toomany;
- }
- break;
-
case ARGP_KEY_SUCCESS:
{
struct parse_opt *opt = state->hook;
--- a/libdwfl/Makefile.in
+++ b/libdwfl/Makefile.in
@@ -113,7 +113,7 @@ am__libdwfl_a_SOURCES_DIST = dwfl_begin.
dwfl_getmodules.c dwfl_getdwarf.c dwfl_module_getdwarf.c \
dwfl_module_getelf.c dwfl_validate_address.c argp-std.c \
find-debuginfo.c dwfl_build_id_find_elf.c \
- dwfl_build_id_find_debuginfo.c linux-kernel-modules.c \
+ dwfl_build_id_find_debuginfo.c \
linux-proc-maps.c dwfl_addrmodule.c dwfl_addrdwarf.c cu.c \
dwfl_module_nextcu.c dwfl_nextcu.c dwfl_cumodule.c \
dwfl_module_addrdie.c dwfl_addrdie.c lines.c dwfl_lineinfo.c \
@@ -142,7 +142,7 @@ am_libdwfl_a_OBJECTS = dwfl_begin.$(OBJE
dwfl_validate_address.$(OBJEXT) argp-std.$(OBJEXT) \
find-debuginfo.$(OBJEXT) dwfl_build_id_find_elf.$(OBJEXT) \
dwfl_build_id_find_debuginfo.$(OBJEXT) \
- linux-kernel-modules.$(OBJEXT) linux-proc-maps.$(OBJEXT) \
+ linux-proc-maps.$(OBJEXT) \
dwfl_addrmodule.$(OBJEXT) dwfl_addrdwarf.$(OBJEXT) \
cu.$(OBJEXT) dwfl_module_nextcu.$(OBJEXT) \
dwfl_nextcu.$(OBJEXT) dwfl_cumodule.$(OBJEXT) \
@@ -402,7 +402,7 @@ libdwfl_a_SOURCES = dwfl_begin.c dwfl_en
dwfl_getmodules.c dwfl_getdwarf.c dwfl_module_getdwarf.c \
dwfl_module_getelf.c dwfl_validate_address.c argp-std.c \
find-debuginfo.c dwfl_build_id_find_elf.c \
- dwfl_build_id_find_debuginfo.c linux-kernel-modules.c \
+ dwfl_build_id_find_debuginfo.c \
linux-proc-maps.c dwfl_addrmodule.c dwfl_addrdwarf.c cu.c \
dwfl_module_nextcu.c dwfl_nextcu.c dwfl_cumodule.c \
dwfl_module_addrdie.c dwfl_addrdie.c lines.c dwfl_lineinfo.c \
@@ -540,7 +540,6 @@ distclean-compile:
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lines.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/link_map.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/linux-core-attach.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/linux-kernel-modules.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/linux-pid-attach.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/linux-proc-maps.Po@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lzma.Po@am__quote@

View file

@ -8,12 +8,12 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=file PKG_NAME:=file
PKG_VERSION:=5.20 PKG_VERSION:=5.25
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=ftp://ftp.astron.com/pub/file/ PKG_SOURCE_URL:=ftp://ftp.astron.com/pub/file/
PKG_MD5SUM:=5d5e13eb3e0e13839da869a31790faf2 PKG_MD5SUM:=e6a972d4e10d9e76407a432f4a63cd4c
PKG_LICENSE:=BSD-2c PKG_LICENSE:=BSD-2c
PKG_LICENSE_FILES:=COPYING PKG_LICENSE_FILES:=COPYING
@ -83,6 +83,9 @@ define Package/file/install
$(SED) "/^#/d" $(PKG_INSTALL_DIR)/usr/share/file/magic $(SED) "/^#/d" $(PKG_INSTALL_DIR)/usr/share/file/magic
$(SED) "/^$$$$/d" $(PKG_INSTALL_DIR)/usr/share/file/magic $(SED) "/^$$$$/d" $(PKG_INSTALL_DIR)/usr/share/file/magic
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/file/magic $(1)/usr/share/misc/ $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/file/magic $(1)/usr/share/misc/
# For some reason both "magic" and "magic.mgc" MUST exist
ln -sf magic $(1)/usr/share/misc/magic.mgc
endef endef
define Package/libmagic/install define Package/libmagic/install

View file

@ -1,5 +1,5 @@
# #
# Copyright (C) 2005-2015 OpenWrt.org # Copyright (C) 2005-2016 OpenWrt.org
# #
# This is free software, licensed under the GNU General Public License v2. # This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information. # See /LICENSE for more information.
@ -8,13 +8,13 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=gnutls PKG_NAME:=gnutls
PKG_VERSION:=3.4.1 PKG_VERSION:=3.4.15
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_USE_MIPS16:=0 PKG_USE_MIPS16:=0
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=ftp://ftp.gnutls.org/gcrypt/gnutls/v3.4 PKG_SOURCE_URL:=ftp://ftp.gnutls.org/gcrypt/gnutls/v3.4
PKG_MD5SUM:=2d04f34fa25b45f9dcb9104c0394e12e PKG_MD5SUM:=4ea5b239bd8bf1b734dda02997b36459
#PKG_FIXUP:=autoreconf gettext-version #PKG_FIXUP:=autoreconf gettext-version
PKG_MAINTAINER:=Nikos Mavrogiannopoulos <nmav@gnutls.org> PKG_MAINTAINER:=Nikos Mavrogiannopoulos <nmav@gnutls.org>
PKG_LICENSE:=LGPLv2.1+ PKG_LICENSE:=LGPLv2.1+

View file

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=ldns PKG_NAME:=ldns
PKG_VERSION:=1.6.17 PKG_VERSION:=1.6.17
PKG_RELEASE:=1 PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.nlnetlabs.nl/downloads/ldns PKG_SOURCE_URL:=http://www.nlnetlabs.nl/downloads/ldns

View file

@ -0,0 +1,11 @@
--- a/doc/doxyparse.pl
+++ b/doc/doxyparse.pl
@@ -273,7 +273,7 @@ foreach (keys %manpages) {
print MAN $MAN_MIDDLE;
- if (defined(@$also)) {
+ if (@$also) {
print MAN "\n.SH SEE ALSO\n\\fI";
print MAN join "\\fR, \\fI", @$also;
print MAN "\\fR.\nAnd ";

View file

@ -1,5 +1,5 @@
# #
# Copyright (C) 2006-2014 OpenWrt.org # Copyright (C) 2006-2016 OpenWrt.org
# #
# This is free software, licensed under the GNU General Public License v2. # This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information. # See /LICENSE for more information.
@ -11,11 +11,9 @@ PKG_NAME:=audiofile
PKG_VERSION:=0.3.6 PKG_VERSION:=0.3.6
PKG_RELEASE:=3 PKG_RELEASE:=3
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:= \ PKG_SOURCE_URL:=@GNOME/$(PKG_NAME)/0.3
http://github.com/downloads/mpruett/audiofile/ \ PKG_MD5SUM:=235dde14742317328f0109e9866a8008
http://www.68k.org/~michael/audiofile/
PKG_MD5SUM:=2731d79bec0acef3d30d2fc86b0b72fd
PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net> PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
PKG_FIXUP:=autoreconf PKG_FIXUP:=autoreconf

View file

@ -11,7 +11,8 @@ PKG_NAME:=libdaq
PKG_VERSION:=2.0.4 PKG_VERSION:=2.0.4
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_SOURCE_URL:=https://www.snort.org/downloads/snort/ PKG_SOURCE_URL:=https://www.snort.org/downloads/snort/ \
@SF/snort
PKG_SOURCE:=daq-$(PKG_VERSION).tar.gz PKG_SOURCE:=daq-$(PKG_VERSION).tar.gz
PKG_MD5SUM:=65e51d72e9d5d8b397e192e4e5857eff PKG_MD5SUM:=65e51d72e9d5d8b397e192e4e5857eff
PKG_BUILD_DIR:=$(BUILD_DIR)/daq-$(PKG_VERSION) PKG_BUILD_DIR:=$(BUILD_DIR)/daq-$(PKG_VERSION)

View file

@ -11,9 +11,9 @@ PKG_NAME:=libdnet
PKG_VERSION:=1.12 PKG_VERSION:=1.12
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://libdnet.googlecode.com/files/ PKG_SOURCE_URL:=https://github.com/dugsong/libdnet/archive
PKG_MD5SUM:=9253ef6de1b5e28e9c9a62b882e44cc9 PKG_MD5SUM:=d2f1b72eac2a1070959667e9e61dcf20
PKG_FIXUP:=autoreconf PKG_FIXUP:=autoreconf
PKG_INSTALL:=1 PKG_INSTALL:=1
@ -21,6 +21,8 @@ PKG_INSTALL:=1
PKG_LICENSE:=BSD PKG_LICENSE:=BSD
PKG_MAINTAINER:=Luka Perkov <luka@openwrt.org> PKG_MAINTAINER:=Luka Perkov <luka@openwrt.org>
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_NAME)-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
define Package/libdnet define Package/libdnet

View file

@ -1,5 +1,5 @@
# #
# Copyright (C) 2008-2015 OpenWrt.org # Copyright (C) 2008-2016 OpenWrt.org
# #
# This is free software, licensed under the GNU General Public License v2. # This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information. # See /LICENSE for more information.
@ -9,14 +9,16 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=libesmtp PKG_NAME:=libesmtp
PKG_VERSION:=1.0.6 PKG_VERSION:=1.0.6
PKG_RELEASE:=2 PKG_RELEASE:=3
PKG_MD5SUM:=c4fedc999b6c3820296b0eb92cc2e252
PKG_MAINTAINER:=Othmar Truniger <github@truniger.ch> PKG_MAINTAINER:=Othmar Truniger <github@truniger.ch>
PKG_LICENSE:=LGPL-2.0+ PKG_LICENSE:=LGPL-2.0+
PKG_LICENSE_FILES:=COPYING PKG_LICENSE_FILES:=COPYING
PKG_SOURCE_URL:=http://www.stafford.uklinux.net/libesmtp PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/tru7/libesmtp.git
PKG_SOURCE_VERSION=10e9a6df9f76da610941addf71b9a3cbf94f2e9f
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_BUILD_PARALLEL:=1 PKG_BUILD_PARALLEL:=1
@ -28,13 +30,10 @@ define Package/libesmtp
SECTION:=libs SECTION:=libs
CATEGORY:=Libraries CATEGORY:=Libraries
TITLE:=A Library for Posting Electronic Mail TITLE:=A Library for Posting Electronic Mail
URL:=http://www.stafford.uklinux.net/libesmtp/ URL:=https://github.com/tru7/libesmtp.git
DEPENDS:=+libpthread DEPENDS:=+libpthread +libopenssl
endef endef
CONFIGURE_ARGS += \
--without-openssl
define Build/InstallDev define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/bin $(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/libesmtp-config $(1)/usr/bin/ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/libesmtp-config $(1)/usr/bin/

57
libs/libev/Makefile Normal file
View file

@ -0,0 +1,57 @@
#
# Copyright (C) 2014-2015 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=libev
PKG_VERSION:=4.19
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://dist.schmorp.de/libev/Attic/
PKG_MD5SUM:=01d1c672697f649b4f94abd0b70584ff
PKG_LICENSE:=BSD-2-Clause
PKG_MAINTAINER:=Karl Palsson <karlp@tweak.net.au>
PKG_BUILD_PARALLEL:=1
PKG_FIXUP:=autoreconf
PKG_INSTALL:=1
PKG_USE_MIPS16:=0
include $(INCLUDE_DIR)/package.mk
define Package/libev
SECTION:=libs
CATEGORY:=Libraries
TITLE:=High-performance event loop
URL:=http://software.schmorp.de/pkg/libev.html
endef
define Package/libev/description
A full-featured and high-performance event loop that is loosely modelled after
libevent, but without its limitations and bugs.
endef
TARGET_CFLAGS += $(FPIC)
CONFIGURE_ARGS += \
--enable-shared \
--enable-static \
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libev.{a,so*} $(1)/usr/lib/
endef
define Package/libev/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libev.so* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,libev))

View file

@ -1,5 +1,5 @@
# #
# Copyright (C) 2006-2014 OpenWrt.org # Copyright (C) 2006-2015 OpenWrt.org
# #
# This is free software, licensed under the GNU General Public License v2. # This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information. # See /LICENSE for more information.
@ -8,13 +8,13 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=libevent PKG_NAME:=libevent
PKG_VERSION:=1.4.14b PKG_VERSION:=1.4.15
PKG_RELEASE:=2 PKG_RELEASE:=1
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)-stable PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-release-$(PKG_VERSION)-stable
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-stable.tar.gz PKG_SOURCE:=release-$(PKG_VERSION)-stable.tar.gz
PKG_SOURCE_URL:=https://github.com/downloads/libevent/libevent/ PKG_SOURCE_URL:=https://github.com/libevent/libevent/archive/
PKG_MD5SUM:=a00e037e4d3f9e4fe9893e8a2d27918c PKG_MD5SUM:=6dce6fe39f133c09ffe63de895805f7f
PKG_MAINTAINER:=Steven Barth <cyrus@openwrt.org> PKG_MAINTAINER:=Steven Barth <cyrus@openwrt.org>
PKG_FIXUP:=autoreconf PKG_FIXUP:=autoreconf

View file

@ -8,12 +8,12 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=libidn PKG_NAME:=libidn
PKG_VERSION:=1.30 PKG_VERSION:=1.32
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@GNU/libidn PKG_SOURCE_URL:=@GNU/libidn
PKG_MD5SUM:=b17edc8551cd31cc5f14c82a9dabf58e PKG_MD5SUM:=4dd8356ba577287ea7076bfa1554b534
PKG_LICENSE:=GPL-2.0+ GPL-3.0+ LGPL-2.1+ LGPL-3.0+ Apache-2.0 PKG_LICENSE:=GPL-2.0+ GPL-3.0+ LGPL-2.1+ LGPL-3.0+ Apache-2.0
PKG_LICENSE_FILES:=COPYING COPYINGv2 COPYINGv3 COPYING.LESSERv2 COPYING.LESSERv3 java/LICENSE-2.0.txt PKG_LICENSE_FILES:=COPYING COPYINGv2 COPYINGv3 COPYING.LESSERv2 COPYING.LESSERv3 java/LICENSE-2.0.txt

View file

@ -8,12 +8,12 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=libmpdclient PKG_NAME:=libmpdclient
PKG_VERSION:=2.9 PKG_VERSION:=2.10
PKG_RELEASE:=3 PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=http://www.musicpd.org/download/libmpdclient/2/ PKG_SOURCE_URL:=http://www.musicpd.org/download/libmpdclient/2/
PGK_MD5SUM:=4b101a36e5c0cf967dc063391260ddbf PGK_MD5SUM:=00606c630b905aa6196330373b366c29
PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net> PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
PKG_LICENSE:=BSD-3-Clause PKG_LICENSE:=BSD-3-Clause

View file

@ -1,22 +0,0 @@
--- a/src/socket.c
+++ b/src/socket.c
@@ -43,6 +43,7 @@
#else
# include <netinet/in.h>
# include <arpa/inet.h>
+# include <sys/select.h>
# include <sys/socket.h>
# include <netdb.h>
# include <sys/un.h>
--- a/src/sync.c
+++ b/src/sync.c
@@ -33,6 +33,9 @@
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
+#ifndef WIN32
+#include <sys/select.h>
+#endif
#include <fcntl.h>
#include <unistd.h>

51
libs/libmraa/Makefile Normal file
View file

@ -0,0 +1,51 @@
#
# Copyright (C) 2015 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=libmraa
PKG_VERSION:=0.8.0
PKG_RELEASE=$(PKG_SOURCE_VERSION)
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/intel-iot-devkit/mraa.git
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_VERSION:=70600dece4138b0c0dbaff42f57828f1559cd840
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
PKG_BUILD_DEPENDS:=node python/host swig/host node/host
CMAKE_INSTALL:=1
PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
PKG_LICENSE:=LGPL-2.1
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
CMAKE_OPTIONS=-DBUILDARCH=$(CONFIG_ARCH) \
-DENABLEEXAMPLES=0 \
-DNODE_EXECUTABLE=$(STAGING_DIR_HOST)/bin/node \
-DSWIG_DIR=$(STAGING_DIR_HOST)/bin
TARGET_CFLAGS+=-I$(STAGING_DIR)/usr/include/node
define Package/libmraa
SECTION:=libs
CATEGORY:=Libraries
DEPENDS:=+python +libstdcpp
TITLE:=Intel IoT lowlevel IO library
endef
define Package/libmraa/install
$(INSTALL_DIR) $(1)/usr/lib/{node/mraa,python2.7/site-packages} $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/libmraa.so* $(1)/usr/lib/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/node_modules/mraa/* $(1)/usr/lib/node/mraa/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/python2.7/site-packages/* $(1)/usr/lib/python2.7/site-packages/
# $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/mraa/examples/python/blink-io8.py $(1)/usr/bin/
endef
$(eval $(call BuildPackage,libmraa))

View file

@ -0,0 +1,118 @@
From 6fecad819376442d057bdd35a0909cfac9df02f5 Mon Sep 17 00:00:00 2001
From: John Crispin <blogic@openwrt.org>
Date: Thu, 23 Jul 2015 12:18:39 +0200
Subject: [PATCH 1/4] base
---
CMakeLists.txt | 10 ++++------
api/mraa/types.h | 1 +
include/mraa_internal.h | 7 +++++++
src/CMakeLists.txt | 5 +++++
src/i2c/i2c.c | 2 +-
src/mraa.c | 3 +++
src/uart/uart.c | 1 +
7 files changed, 22 insertions(+), 7 deletions(-)
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -14,12 +14,7 @@
set (CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules ${CMAKE_MODULE_PATH})
# Make a version file containing the current version from git.
-include (GetGitRevisionDescription)
-git_describe (VERSION "--tags")
-if ("x_${VERSION}" STREQUAL "x_GIT-NOTFOUND" OR "x_${VERSION}" STREQUAL "x_HEAD-HASH-NOTFOUND")
- message (WARNING " - Install git to compile a production libmraa!")
- set (VERSION "v0.8.0-dirty")
-endif ()
+set (VERSION "v0.8.0")
message (INFO " - libmraa Version ${VERSION}")
@@ -84,8 +79,10 @@
set (X86PLAT ON)
elseif (DETECTED_ARCH MATCHES "arm.*")
set (ARMPLAT ON)
+elseif (DETECTED_ARCH MATCHES "mips")
+ set (MIPSPLAT ON)
else ()
- message(FATAL_ERROR "Only x86 and arm platforms currently supported")
+ message(FATAL_ERROR "Only x86, arm and mips platforms currently supported")
endif()
if (BUILDSWIGPYTHON)
--- a/api/mraa/types.h
+++ b/api/mraa/types.h
@@ -46,6 +46,7 @@
MRAA_BEAGLEBONE = 6, /**< The different BeagleBone Black Modes B/C */
MRAA_BANANA = 7, /**< Allwinner A20 based Banana Pi and Banana Pro */
MRAA_INTEL_NUC5 = 8, /**< The Intel 5th generations Broadwell NUCs */
+ MRAA_MTK_LINKIT = 9, /**< Mediatek MT7688 based Linkit (Air) */
// USB platform extenders start at 256
MRAA_FTDI_FT4222 = 256, /**< FTDI FT4222 USB to i2c bridge */
--- a/include/mraa_internal.h
+++ b/include/mraa_internal.h
@@ -66,6 +66,13 @@
mraa_platform_t mraa_usb_platform_extender(mraa_board_t* board);
/**
+ * runtime detect running arm platforms
+ *
+ * @return mraa_platform_t of the init'ed platform
+ */
+mraa_platform_t mraa_mips_platform();
+
+/**
* helper function to check if file exists
*
* @param filename to check
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -71,6 +71,11 @@
add_subdirectory(usb)
endif ()
+if (MIPSPLAT)
+ add_subdirectory(mips)
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DMIPSPLAT=1")
+endif()
+
set (mraa_LIB_SRCS
${mraa_LIB_PLAT_SRCS_NOAUTO}
# autogenerated version file
--- a/src/i2c/i2c.c
+++ b/src/i2c/i2c.c
@@ -31,9 +31,9 @@
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
+#include <errno.h>
#include <inttypes.h>
#include <sys/types.h>
-#include <sys/errno.h>
#include <sys/ioctl.h>
#include "linux/i2c-dev.h"
--- a/src/mraa.c
+++ b/src/mraa.c
@@ -111,6 +111,9 @@
#elif defined(ARMPLAT)
// Use runtime ARM platform detection
platform_type = mraa_arm_platform();
+#elif MIPSPLAT
+ // Use runtime ARM platform detection
+ platform_type = mraa_mips_platform();
#else
#error mraa_ARCH NOTHING
#endif
--- a/src/uart/uart.c
+++ b/src/uart/uart.c
@@ -26,6 +26,7 @@
#include <stdlib.h>
#include <sys/stat.h>
+#include <sys/time.h>
#include <unistd.h>
#include <string.h>
#include <termios.h>

View file

@ -0,0 +1,483 @@
From 2c67c6f51ce5bab18c79f4304ccf42716f59f13c Mon Sep 17 00:00:00 2001
From: John Crispin <blogic@openwrt.org>
Date: Thu, 23 Jul 2015 13:21:25 +0200
Subject: [PATCH 2/4] add mips support
Signed-off-by: John Crispin <blogic@openwrt.org>
---
include/mips/mediatek.h | 39 ++++++
src/mips/CMakeLists.txt | 6 +
src/mips/mediatek.c | 349 +++++++++++++++++++++++++++++++++++++++++++++++
src/mips/mips.c | 60 ++++++++
4 files changed, 454 insertions(+)
create mode 100644 include/mips/mediatek.h
create mode 100644 src/mips/CMakeLists.txt
create mode 100644 src/mips/mediatek.c
create mode 100644 src/mips/mips.c
--- /dev/null
+++ b/include/mips/mediatek.h
@@ -0,0 +1,39 @@
+/*
+ * Author: Thomas Ingleby <thomas.c.ingleby@intel.com>
+ * Author: Michael Ring <mail@michael-ring.org>
+ * Copyright (c) 2014 Intel Corporation.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+
+#pragma once
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include "mraa_internal.h"
+
+mraa_board_t *
+ mraa_mtk_linkit();
+
+#ifdef __cplusplus
+}
+#endif
--- /dev/null
+++ b/src/mips/CMakeLists.txt
@@ -0,0 +1,6 @@
+message (INFO " - Adding MIPS platforms")
+set (mraa_LIB_PLAT_SRCS_NOAUTO ${mraa_LIB_SRCS_NOAUTO}
+ ${PROJECT_SOURCE_DIR}/src/mips/mips.c
+ ${PROJECT_SOURCE_DIR}/src/mips/mediatek.c
+ PARENT_SCOPE
+)
--- /dev/null
+++ b/src/mips/mediatek.c
@@ -0,0 +1,349 @@
+/*
+ * Author: Thomas Ingleby <thomas.c.ingleby@intel.com>
+ * Author: Michael Ring <mail@michael-ring.org>
+ * Copyright (c) 2014 Intel Corporation.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+
+#include <stdio.h>
+#include <stdint.h>
+#include <stdlib.h>
+#include <string.h>
+#include <sys/mman.h>
+#include <mraa/common.h>
+
+#include "mraa_internal.h"
+
+#include "common.h"
+
+#define PLATFORM_MEDIATEK_LINKIT 1
+#define PLATFORM_MEDIATEK_LINKIT_AIR 2
+#define MMAP_PATH "/dev/mem"
+#define MT7628_GPIO_BASE 0x100
+#define MT7628_BLOCK_SIZE (4 * 1024)
+#define MT7628_GPIO_CTRL 0x00
+#define MT7628_GPIO_DATA 0x20
+#define MT7628_GPIO_SET 0x30
+#define MT7628_GPIO_CLEAR 0x40
+
+#define MAX_SIZE 64
+
+// MMAP
+static uint8_t* mmap_reg = NULL;
+static int mmap_fd = 0;
+static int mmap_size;
+static unsigned int mmap_count = 0;
+static int platform_detected = 0;
+
+mraa_result_t
+mraa_mtk_linkit_mmap_write(mraa_gpio_context dev, int value)
+{
+ volatile uint32_t* addr;
+ if (value) {
+ *(volatile uint32_t*) (mmap_reg + MT7628_GPIO_SET + (dev->pin / 32) * 4) =
+ (uint32_t)(1 << (dev->pin % 32));
+ } else {
+ *(volatile uint32_t*) (mmap_reg + MT7628_GPIO_CLEAR + (dev->pin / 32) * 4) =
+ (uint32_t)(1 << (dev->pin % 32));
+ }
+ return MRAA_SUCCESS;
+}
+
+static mraa_result_t
+mraa_mtk_linkit_mmap_unsetup()
+{
+ if (mmap_reg == NULL) {
+ syslog(LOG_ERR, "linkit mmap: null register cant unsetup");
+ return MRAA_ERROR_INVALID_RESOURCE;
+ }
+ munmap(mmap_reg, mmap_size);
+ mmap_reg = NULL;
+ if (close(mmap_fd) != 0) {
+ return MRAA_ERROR_INVALID_RESOURCE;
+ }
+ return MRAA_SUCCESS;
+}
+
+int
+mraa_mtk_linkit_mmap_read(mraa_gpio_context dev)
+{
+ uint32_t value = *(volatile uint32_t*) (mmap_reg + MT7628_GPIO_DATA + (dev->pin / 32) * 4);
+ if (value & (uint32_t)(1 << (dev->pin % 32))) {
+ return 1;
+ }
+ return 0;
+}
+
+mraa_result_t
+mraa_mtk_linkit_mmap_setup(mraa_gpio_context dev, mraa_boolean_t en)
+{
+ if (dev == NULL) {
+ syslog(LOG_ERR, "linkit mmap: context not valid");
+ return MRAA_ERROR_INVALID_HANDLE;
+ }
+
+ if (en == 0) {
+ if (dev->mmap_write == NULL && dev->mmap_read == NULL) {
+ syslog(LOG_ERR, "linkit mmap: can't disable disabled mmap gpio");
+ return MRAA_ERROR_INVALID_PARAMETER;
+ }
+ dev->mmap_write = NULL;
+ dev->mmap_read = NULL;
+ mmap_count--;
+ if (mmap_count == 0) {
+ return mraa_mtk_linkit_mmap_unsetup();
+ }
+ return MRAA_SUCCESS;
+ }
+
+ if (dev->mmap_write != NULL && dev->mmap_read != NULL) {
+ syslog(LOG_ERR, "linkit mmap: can't enable enabled mmap gpio");
+ return MRAA_ERROR_INVALID_PARAMETER;
+ }
+
+ // Might need to make some elements of this thread safe.
+ // For example only allow one thread to enter the following block
+ // to prevent mmap'ing twice.
+ if (mmap_reg == NULL) {
+ if ((mmap_fd = open(MMAP_PATH, O_RDWR)) < 0) {
+ syslog(LOG_ERR, "linkit map: unable to open resource0 file");
+ return MRAA_ERROR_INVALID_HANDLE;
+ }
+
+ mmap_reg = (uint8_t*) mmap(NULL, MT7628_BLOCK_SIZE, PROT_READ | PROT_WRITE,
+ MAP_FILE | MAP_SHARED, mmap_fd, MT7628_GPIO_BASE);
+ if (mmap_reg == MAP_FAILED) {
+ syslog(LOG_ERR, "linkit mmap: failed to mmap");
+ mmap_reg = NULL;
+ close(mmap_fd);
+ return MRAA_ERROR_NO_RESOURCES;
+ }
+ }
+ dev->mmap_write = &mraa_mtk_linkit_mmap_write;
+ dev->mmap_read = &mraa_mtk_linkit_mmap_read;
+ mmap_count++;
+
+ return MRAA_SUCCESS;
+}
+
+mraa_board_t*
+mraa_mtk_linkit()
+{
+ mraa_board_t* b = (mraa_board_t*) malloc(sizeof(mraa_board_t));
+ if (b == NULL) {
+ return NULL;
+ }
+
+ b->platform_name = "LINKIT";
+ platform_detected = PLATFORM_MEDIATEK_LINKIT;
+ b->phy_pin_count = 31;
+
+ b->aio_count = 0;
+ b->adc_raw = 0;
+ b->adc_supported = 0;
+ b->pwm_default_period = 500;
+ b->pwm_max_period = 2147483;
+ b->pwm_min_period = 1;
+
+ b->pins = (mraa_pininfo_t*) malloc(sizeof(mraa_pininfo_t) * b->phy_pin_count);
+
+ advance_func->gpio_mmap_setup = &mraa_mtk_linkit_mmap_setup;
+
+ strncpy(b->pins[0].name, "P0", MRAA_PIN_NAME_SIZE);
+ b->pins[0].capabilites = (mraa_pincapabilities_t){ 0, 0, 0, 0, 0, 0, 0, 0 };
+
+ strncpy(b->pins[1].name, "P1", MRAA_PIN_NAME_SIZE);
+ b->pins[1].capabilites = (mraa_pincapabilities_t){ 0, 0, 0, 0, 0, 0, 0, 0 };
+
+ strncpy(b->pins[2].name, "P2", MRAA_PIN_NAME_SIZE);
+ b->pins[2].capabilites = (mraa_pincapabilities_t){ 0, 0, 0, 0, 0, 0, 0, 0 };
+
+ strncpy(b->pins[3].name, "P3", MRAA_PIN_NAME_SIZE);
+ b->pins[3].capabilites = (mraa_pincapabilities_t){ 0, 0, 0, 0, 0, 0, 0, 0 };
+
+ strncpy(b->pins[4].name, "P4", MRAA_PIN_NAME_SIZE);
+ b->pins[4].capabilites = (mraa_pincapabilities_t){ 0, 0, 0, 0, 0, 0, 0, 0 };
+
+ strncpy(b->pins[5].name, "P5", MRAA_PIN_NAME_SIZE);
+ b->pins[5].capabilites = (mraa_pincapabilities_t){ 0, 0, 0, 0, 0, 0, 0, 0 };
+
+ strncpy(b->pins[6].name, "P6", MRAA_PIN_NAME_SIZE);
+ b->pins[6].capabilites = (mraa_pincapabilities_t){ 0, 0, 0, 0, 0, 0, 0, 0 };
+
+ strncpy(b->pins[7].name, "P7", MRAA_PIN_NAME_SIZE);
+ b->pins[7].capabilites = (mraa_pincapabilities_t){ 0, 0, 0, 0, 0, 0, 0, 0 };
+
+ strncpy(b->pins[8].name, "P8", MRAA_PIN_NAME_SIZE);
+ b->pins[8].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 1 };
+ b->pins[8].gpio.pinmap = 21;
+ b->pins[8].uart.parent_id = 2;
+ b->pins[8].uart.mux_total = 0;
+
+ strncpy(b->pins[9].name, "P9", MRAA_PIN_NAME_SIZE);
+ b->pins[9].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 1 };
+ b->pins[9].gpio.pinmap = 20;
+ b->pins[9].uart.parent_id = 2;
+ b->pins[9].uart.mux_total = 0;
+
+ strncpy(b->pins[10].name, "P10", MRAA_PIN_NAME_SIZE);
+ b->pins[10].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 };
+ b->pins[10].gpio.pinmap = 2;
+
+ strncpy(b->pins[11].name, "P11", MRAA_PIN_NAME_SIZE);
+ b->pins[11].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 };
+ b->pins[11].gpio.pinmap = 3;
+
+ strncpy(b->pins[12].name, "P12", MRAA_PIN_NAME_SIZE);
+ b->pins[12].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 };
+ b->pins[12].gpio.pinmap = 0;
+
+ strncpy(b->pins[13].name, "P13", MRAA_PIN_NAME_SIZE);
+ b->pins[13].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 };
+ b->pins[13].gpio.pinmap = 1;
+
+ strncpy(b->pins[14].name, "P14", MRAA_PIN_NAME_SIZE);
+ b->pins[14].capabilites = (mraa_pincapabilities_t){ 0, 0, 0, 0, 0, 0, 0, 0 };
+
+ strncpy(b->pins[15].name, "P15", MRAA_PIN_NAME_SIZE);
+ b->pins[15].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 };
+ b->pins[15].gpio.pinmap = 44;
+
+ strncpy(b->pins[16].name, "P16", MRAA_PIN_NAME_SIZE);
+ b->pins[16].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 1 };
+ b->pins[16].gpio.pinmap = 46;
+ b->pins[16].uart.parent_id = 1;
+ b->pins[16].uart.mux_total = 0;
+
+ strncpy(b->pins[17].name, "P17", MRAA_PIN_NAME_SIZE);
+ b->pins[17].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 1 };
+ b->pins[17].gpio.pinmap = 45;
+ b->pins[17].uart.parent_id = 1;
+ b->pins[17].uart.mux_total = 0;
+
+ strncpy(b->pins[18].name, "P18", MRAA_PIN_NAME_SIZE);
+ b->pins[18].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 1 };
+ b->pins[18].gpio.pinmap = 13;
+ b->pins[18].uart.parent_id = 1;
+ b->pins[18].uart.mux_total = 0;
+
+ strncpy(b->pins[19].name, "P19", MRAA_PIN_NAME_SIZE);
+ b->pins[19].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 1 };
+ b->pins[19].gpio.pinmap = 12;
+ b->pins[19].uart.parent_id = 0;
+ b->pins[19].uart.mux_total = 0;
+
+ strncpy(b->pins[20].name, "P20", MRAA_PIN_NAME_SIZE);
+ b->pins[20].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 1, 0, 0 };
+ b->pins[20].gpio.pinmap = 5;
+ b->pins[20].i2c.pinmap = 0;
+ b->pins[20].i2c.mux_total = 0;
+
+ strncpy(b->pins[21].name, "P21", MRAA_PIN_NAME_SIZE);
+ b->pins[21].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 1, 0, 0 };
+ b->pins[21].gpio.pinmap = 4;
+ b->pins[21].i2c.pinmap = 0;
+ b->pins[21].i2c.mux_total = 0;
+
+ strncpy(b->pins[22].name, "P22", MRAA_PIN_NAME_SIZE);
+ b->pins[22].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 1, 0, 0, 0 };
+ b->pins[22].gpio.pinmap = 8;
+ b->pins[22].spi.pinmap = 0;
+ b->pins[22].spi.mux_total = 0;
+
+ strncpy(b->pins[23].name, "P23", MRAA_PIN_NAME_SIZE);
+ b->pins[23].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 1, 0, 0, 0 };
+ b->pins[23].gpio.pinmap = 9;
+ b->pins[23].spi.pinmap = 0;
+ b->pins[23].spi.mux_total = 0;
+
+ strncpy(b->pins[24].name, "P24", MRAA_PIN_NAME_SIZE);
+ b->pins[24].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 1, 0, 0, 0 };
+ b->pins[24].gpio.pinmap = 7;
+ b->pins[24].spi.pinmap = 0;
+ b->pins[24].spi.mux_total = 0;
+
+ strncpy(b->pins[25].name, "P25", MRAA_PIN_NAME_SIZE);
+ b->pins[25].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 1, 0, 0, 0 };
+ b->pins[25].gpio.pinmap = 6;
+ b->pins[25].spi.pinmap = 0;
+ b->pins[25].spi.mux_total = 0;
+
+ strncpy(b->pins[26].name, "P26", MRAA_PIN_NAME_SIZE);
+ b->pins[26].capabilites = (mraa_pincapabilities_t){ 1, 1, 1, 0, 0, 0, 0, 0 };
+ b->pins[26].gpio.pinmap = 18;
+
+ strncpy(b->pins[27].name, "P27", MRAA_PIN_NAME_SIZE);
+ b->pins[27].capabilites = (mraa_pincapabilities_t){ 1, 1, 1, 0, 0, 0, 0, 0 };
+ b->pins[27].gpio.pinmap = 19;
+
+ strncpy(b->pins[28].name, "P28", MRAA_PIN_NAME_SIZE);
+ b->pins[28].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 };
+ b->pins[28].gpio.pinmap = 16;
+
+ strncpy(b->pins[29].name, "P29", MRAA_PIN_NAME_SIZE);
+ b->pins[29].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 };
+ b->pins[29].gpio.pinmap = 17;
+
+ strncpy(b->pins[30].name, "P30", MRAA_PIN_NAME_SIZE);
+ b->pins[30].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 };
+ b->pins[30].gpio.pinmap = 14;
+
+ strncpy(b->pins[31].name, "P31", MRAA_PIN_NAME_SIZE);
+ b->pins[31].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 };
+ b->pins[31].gpio.pinmap = 15;
+
+ // BUS DEFINITIONS
+ b->i2c_bus_count = 1;
+ b->def_i2c_bus = 0;
+ b->i2c_bus[0].bus_id = 0;
+ b->i2c_bus[0].sda = 20;
+ b->i2c_bus[0].scl = 21;
+
+ b->spi_bus_count = 1;
+ b->def_spi_bus = 0;
+ b->spi_bus[0].bus_id = 0;
+ b->spi_bus[0].slave_s = 0;
+ b->spi_bus[0].cs = 25;
+ b->spi_bus[0].mosi = 22;
+ b->spi_bus[0].miso = 23;
+ b->spi_bus[0].sclk = 21;
+
+ b->uart_dev_count = 3;
+ b->def_uart_dev = 0;
+ b->uart_dev[0].rx = 18;
+ b->uart_dev[0].tx = 19;
+
+ b->uart_dev[1].rx = 16;
+ b->uart_dev[1].tx = 17;
+
+ b->uart_dev[2].rx = 9;
+ b->uart_dev[2].tx = 8;
+
+ b->gpio_count = 0;
+ int i;
+ for (i = 0; i < b->phy_pin_count; i++) {
+ if (b->pins[i].capabilites.gpio) {
+ b->gpio_count++;
+ }
+ }
+
+ return b;
+}
--- /dev/null
+++ b/src/mips/mips.c
@@ -0,0 +1,60 @@
+/*
+ * Author: Thomas Ingleby <thomas.c.ingleby@intel.com>
+ * Author: Michael Ring <mail@michael-ring.org>
+ * Copyright (c) 2014 Intel Corporation.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining
+ * a copy of this software and associated documentation files (the
+ * "Software"), to deal in the Software without restriction, including
+ * without limitation the rights to use, copy, modify, merge, publish,
+ * distribute, sublicense, and/or sell copies of the Software, and to
+ * permit persons to whom the Software is furnished to do so, subject to
+ * the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be
+ * included in all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ */
+
+#include <stdlib.h>
+#include <string.h>
+
+#include "mraa_internal.h"
+#include "mips/mediatek.h"
+
+mraa_platform_t
+mraa_mips_platform()
+{
+ mraa_platform_t platform_type = MRAA_UNKNOWN_PLATFORM;
+ size_t len = 100;
+ char* line = malloc(len);
+ FILE* fh = fopen("/proc/cpuinfo", "r");
+ if (fh != NULL) {
+ while (getline(&line, &len, fh) != -1) {
+ if (strncmp(line, "machine", 7) == 0) {
+ if (strstr(line, "MediaTek LinkIt Smart 7688")) {
+ platform_type = MRAA_MTK_LINKIT;
+ }
+ }
+ }
+ fclose(fh);
+ }
+ free(line);
+
+ switch (platform_type) {
+ case MRAA_MTK_LINKIT:
+ plat = mraa_mtk_linkit();
+ break;
+ default:
+ plat = NULL;
+ syslog(LOG_ERR, "Unknown Platform, currently not supported by MRAA");
+ }
+ return platform_type;
+}

View file

@ -0,0 +1,26 @@
From 9540f9b93704e8e80ab2048954ca88d8e6eddf86 Mon Sep 17 00:00:00 2001
From: John Crispin <blogic@openwrt.org>
Date: Thu, 23 Jul 2015 16:43:42 +0200
Subject: [PATCH 3/4] uart
---
src/uart/uart.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/uart/uart.c b/src/uart/uart.c
index 3ef55a4..5102f81 100644
--- a/src/uart/uart.c
+++ b/src/uart/uart.c
@@ -34,6 +34,9 @@
#include "uart.h"
#include "mraa_internal.h"
+#ifndef CMSPAR
+#define CMSPAR 010000000000
+#endif
// This function takes an unsigned int and converts it to a B* speed_t
// that can be used with linux/posix termios
static speed_t
--
1.7.10.4

View file

@ -0,0 +1,666 @@
From 3c34e5f87a741ec2fc7809fc8c169a832275d32c Mon Sep 17 00:00:00 2001
From: John Crispin <blogic@openwrt.org>
Date: Thu, 23 Jul 2015 18:19:32 +0200
Subject: [PATCH 4/4] fixes
---
src/mips/mediatek.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
--- a/src/mips/mediatek.c
+++ b/src/mips/mediatek.c
@@ -37,12 +37,12 @@
#define PLATFORM_MEDIATEK_LINKIT 1
#define PLATFORM_MEDIATEK_LINKIT_AIR 2
#define MMAP_PATH "/dev/mem"
-#define MT7628_GPIO_BASE 0x100
-#define MT7628_BLOCK_SIZE (4 * 1024)
-#define MT7628_GPIO_CTRL 0x00
-#define MT7628_GPIO_DATA 0x20
-#define MT7628_GPIO_SET 0x30
-#define MT7628_GPIO_CLEAR 0x40
+#define MT7628_GPIOMODE_BASE 0x10000000
+#define MT7628_BLOCK_SIZE 0x1000
+#define MT7628_GPIO_CTRL 0x600
+#define MT7628_GPIO_DATA 0x620
+#define MT7628_GPIO_SET 0x630
+#define MT7628_GPIO_CLEAR 0x640
#define MAX_SIZE 64
@@ -50,6 +50,9 @@
static uint8_t* mmap_reg = NULL;
static int mmap_fd = 0;
static int mmap_size;
+static uint8_t* gpio_mmap_reg = NULL;
+static int gpio_mmap_fd = 0;
+static int gpio_mmap_size;
static unsigned int mmap_count = 0;
static int platform_detected = 0;
@@ -129,9 +132,10 @@
}
mmap_reg = (uint8_t*) mmap(NULL, MT7628_BLOCK_SIZE, PROT_READ | PROT_WRITE,
- MAP_FILE | MAP_SHARED, mmap_fd, MT7628_GPIO_BASE);
+ MAP_FILE | MAP_SHARED, mmap_fd, 0x10000000);
if (mmap_reg == MAP_FAILED) {
- syslog(LOG_ERR, "linkit mmap: failed to mmap");
+ perror("foo");
+ syslog(LOG_ERR, "linkit mmap: failed to mmap");
mmap_reg = NULL;
close(mmap_fd);
return MRAA_ERROR_NO_RESOURCES;
@@ -144,201 +148,442 @@
return MRAA_SUCCESS;
}
+static int mmap_gpiomode(void)
+{
+ if ((gpio_mmap_fd = open(MMAP_PATH, O_RDWR)) < 0) {
+ syslog(LOG_ERR, "linkit map: unable to open resource0 file");
+ return MRAA_ERROR_INVALID_HANDLE;
+ }
+
+ gpio_mmap_reg = (uint8_t*) mmap(NULL, MT7628_BLOCK_SIZE, PROT_READ | PROT_WRITE,
+ MAP_FILE | MAP_SHARED, gpio_mmap_fd, MT7628_GPIOMODE_BASE);
+ if (gpio_mmap_reg == MAP_FAILED) {
+ syslog(LOG_ERR, "linkit gpio_mmap: failed to mmap");
+ gpio_mmap_reg = NULL;
+ close(gpio_mmap_fd);
+ return MRAA_ERROR_NO_RESOURCES;
+ }
+ return 0;
+}
+
+static void set_gpiomode(unsigned int mask, unsigned int shift, unsigned int val)
+{
+ unsigned int reg;
+ unsigned int offset = 0x60;
+
+ if (shift >= 32) {
+ shift -= 32;
+ offset += 4;
+ }
+
+ reg = *(volatile uint32_t*) (gpio_mmap_reg + offset);
+
+ reg &= ~(mask << shift);
+ reg |= (val << shift);
+ *(volatile uint32_t*) (gpio_mmap_reg + offset) = reg;
+}
+
+enum {
+ MUX_GPIO = 0,
+ MUX_SPI_S,
+ MUX_SPI_CS1,
+ MUX_I2S,
+ MUX_UART0,
+ MUX_I2C,
+ MUX_UART1,
+ MUX_UART2,
+ MUX_PWM0,
+ MUX_PWM1,
+ MUX_EPHY,
+ MUX_WLED,
+ __MUX_MAX,
+};
+
+static unsigned char gpio_mux_groups[64];
+static struct pinmux {
+ char *name;
+ char *func[4];
+ unsigned int shift;
+ unsigned int mask;
+} mt7688_mux[] = {
+ {
+ .name = "refclk",
+ .func = { "refclk", "gpio", NULL, NULL },
+ .shift = 18,
+ .mask = 0x1,
+ }, {
+ .name = "spi_s",
+ .func = { "spi_s", "gpio", "utif", "pwm" },
+ .shift = 2,
+ .mask = 0x3,
+ }, {
+ .name = "spi_cs1",
+ .func = { "spi_cs1", "gpio", NULL, "refclk" },
+ .shift = 4,
+ .mask = 0x3,
+ }, {
+ .name = "i2s",
+ .func = { "i2s", "gpio", "pcm", NULL },
+ .shift = 6,
+ .mask = 0x3,
+ }, {
+ .name = "uart0",
+ .func = { "uart", "gpio", NULL, NULL },
+ .shift = 8,
+ .mask = 0x3,
+ }, {
+ .name = "i2c",
+ .func = { "i2c", "gpio", NULL, NULL },
+ .shift = 20,
+ .mask = 0x3,
+ }, {
+ .name = "uart1",
+ .func = { "uart", "gpio", NULL, NULL },
+ .shift = 24,
+ .mask = 0x3,
+ }, {
+ .name = "uart2",
+ .func = { "uart", "gpio", "pwm", NULL },
+ .shift = 26,
+ .mask = 0x3,
+ }, {
+ .name = "pwm0",
+ .func = { "pwm", "gpio", NULL, NULL },
+ .shift = 28,
+ .mask = 0x3,
+ }, {
+ .name = "pwm1",
+ .func = { "pwm", "gpio", NULL, NULL },
+ .shift = 30,
+ .mask = 0x3,
+ }, {
+ .name = "ephy",
+ .func = { "ephy", "gpio", NULL, NULL },
+ .shift = 34,
+ .mask = 0x3,
+ }, {
+ .name = "wled",
+ .func = { "wled", "gpio", NULL, NULL },
+ .shift = 32,
+ .mask = 0x3,
+ },
+};
+
+mraa_result_t gpio_init_pre(int pin)
+{
+ struct pinmux *m = &mt7688_mux[gpio_mux_groups[pin]];
+
+ set_gpiomode(m->mask, m->shift, 1);
+
+ return 0;
+}
+
+static void gpiomode_set(unsigned int id, char *name)
+{
+ int i;
+
+ if (id >= __MUX_MAX)
+ return;
+
+ for (i = 0; i < 4; i++) {
+ if (!mt7688_mux[id].func[i] || strcmp(mt7688_mux[id].func[i], name))
+ continue;
+ set_gpiomode(mt7688_mux[id].mask, mt7688_mux[id].shift, i);
+ syslog(0, "mraa: set pinmux %s -> %s\n", mt7688_mux[id].name, name);
+ return;
+ }
+}
+
+mraa_result_t i2c_init_pre(unsigned int bus)
+{
+ gpiomode_set(MUX_I2C, "i2c");
+ return 0;
+}
+
+mraa_result_t
+pwm_init_post(mraa_pwm_context pwm)
+{
+ switch(pwm->pin) {
+ case 0:
+ gpiomode_set(MUX_PWM0, "pwm");
+ break;
+ case 1:
+ gpiomode_set(MUX_PWM1, "pwm");
+ break;
+ case 2:
+ case 3:
+ gpiomode_set(MUX_UART2, "pwm");
+ break;
+ }
+ return 0;
+}
+
+mraa_result_t spi_init_pre(int bus)
+{
+ gpiomode_set(MUX_SPI_CS1, "spi_cs1");
+ return 0;
+}
+
+mraa_result_t uart_init_pre(int index)
+{
+ switch(index) {
+ case 0:
+ gpiomode_set(MUX_UART0, "uart");
+ break;
+ case 1:
+ gpiomode_set(MUX_UART1, "uart");
+ break;
+ case 2:
+ gpiomode_set(MUX_UART2, "uart");
+ break;
+ }
+ return 0;
+}
+
+mraa_result_t
+i2c_freq(mraa_i2c_context dev, mraa_i2c_mode_t mode)
+{
+ switch (mode) {
+ case MRAA_I2C_STD:
+ break;
+ default:
+ syslog(LOG_ERR, "Invalid i2c frequency");
+ break;
+ }
+ return MRAA_SUCCESS;
+}
+
+
mraa_board_t*
mraa_mtk_linkit()
{
+ int i;
+
+ if (mmap_gpiomode())
+ return NULL;
+
mraa_board_t* b = (mraa_board_t*) malloc(sizeof(mraa_board_t));
if (b == NULL) {
return NULL;
}
- b->platform_name = "LINKIT";
+ memset(b, 0, sizeof(mraa_board_t));
+
+ b->platform_name = "LinkIt Smart 7688";
platform_detected = PLATFORM_MEDIATEK_LINKIT;
- b->phy_pin_count = 31;
+ b->phy_pin_count = 64;
b->aio_count = 0;
b->adc_raw = 0;
b->adc_supported = 0;
b->pwm_default_period = 500;
- b->pwm_max_period = 2147483;
+ b->pwm_max_period = 1000000;
b->pwm_min_period = 1;
- b->pins = (mraa_pininfo_t*) malloc(sizeof(mraa_pininfo_t) * b->phy_pin_count);
-
- advance_func->gpio_mmap_setup = &mraa_mtk_linkit_mmap_setup;
-
- strncpy(b->pins[0].name, "P0", MRAA_PIN_NAME_SIZE);
- b->pins[0].capabilites = (mraa_pincapabilities_t){ 0, 0, 0, 0, 0, 0, 0, 0 };
-
- strncpy(b->pins[1].name, "P1", MRAA_PIN_NAME_SIZE);
- b->pins[1].capabilites = (mraa_pincapabilities_t){ 0, 0, 0, 0, 0, 0, 0, 0 };
-
- strncpy(b->pins[2].name, "P2", MRAA_PIN_NAME_SIZE);
- b->pins[2].capabilites = (mraa_pincapabilities_t){ 0, 0, 0, 0, 0, 0, 0, 0 };
-
- strncpy(b->pins[3].name, "P3", MRAA_PIN_NAME_SIZE);
- b->pins[3].capabilites = (mraa_pincapabilities_t){ 0, 0, 0, 0, 0, 0, 0, 0 };
-
- strncpy(b->pins[4].name, "P4", MRAA_PIN_NAME_SIZE);
- b->pins[4].capabilites = (mraa_pincapabilities_t){ 0, 0, 0, 0, 0, 0, 0, 0 };
-
- strncpy(b->pins[5].name, "P5", MRAA_PIN_NAME_SIZE);
- b->pins[5].capabilites = (mraa_pincapabilities_t){ 0, 0, 0, 0, 0, 0, 0, 0 };
-
- strncpy(b->pins[6].name, "P6", MRAA_PIN_NAME_SIZE);
- b->pins[6].capabilites = (mraa_pincapabilities_t){ 0, 0, 0, 0, 0, 0, 0, 0 };
-
- strncpy(b->pins[7].name, "P7", MRAA_PIN_NAME_SIZE);
- b->pins[7].capabilites = (mraa_pincapabilities_t){ 0, 0, 0, 0, 0, 0, 0, 0 };
-
- strncpy(b->pins[8].name, "P8", MRAA_PIN_NAME_SIZE);
- b->pins[8].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 1 };
- b->pins[8].gpio.pinmap = 21;
- b->pins[8].uart.parent_id = 2;
- b->pins[8].uart.mux_total = 0;
+ b->adv_func = (mraa_adv_func_t*) calloc(1, sizeof(mraa_adv_func_t));
+ if (b->adv_func == NULL) {
+ return NULL;
+ }
- strncpy(b->pins[9].name, "P9", MRAA_PIN_NAME_SIZE);
- b->pins[9].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 1 };
- b->pins[9].gpio.pinmap = 20;
- b->pins[9].uart.parent_id = 2;
- b->pins[9].uart.mux_total = 0;
+ b->adv_func->i2c_init_pre = i2c_init_pre;
+ b->adv_func->pwm_init_post = pwm_init_post;
+ b->adv_func->spi_init_pre = spi_init_pre;
+ b->adv_func->uart_init_pre = uart_init_pre;
+ b->adv_func->gpio_init_pre = gpio_init_pre;
+ b->adv_func->i2c_set_frequency_replace = &i2c_freq;
- strncpy(b->pins[10].name, "P10", MRAA_PIN_NAME_SIZE);
- b->pins[10].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 };
- b->pins[10].gpio.pinmap = 2;
+ b->pins = (mraa_pininfo_t*) malloc(sizeof(mraa_pininfo_t) * b->phy_pin_count);
- strncpy(b->pins[11].name, "P11", MRAA_PIN_NAME_SIZE);
- b->pins[11].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 };
- b->pins[11].gpio.pinmap = 3;
+ memset(b->pins, 0, sizeof(mraa_pininfo_t) * b->phy_pin_count);
+ memset(gpio_mux_groups, -1, sizeof(gpio_mux_groups));
- strncpy(b->pins[12].name, "P12", MRAA_PIN_NAME_SIZE);
- b->pins[12].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 };
- b->pins[12].gpio.pinmap = 0;
+ b->adv_func->gpio_mmap_setup = &mraa_mtk_linkit_mmap_setup;
- strncpy(b->pins[13].name, "P13", MRAA_PIN_NAME_SIZE);
- b->pins[13].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 };
- b->pins[13].gpio.pinmap = 1;
+ for (i = 0; i < b->phy_pin_count; i++) {
+ snprintf(b->pins[i].name, MRAA_PIN_NAME_SIZE, "GPIO%d", i);
+ b->pins[i].capabilites = (mraa_pincapabilities_t){ 0, 0, 0, 0, 0, 0, 0, 0 };
+ }
- strncpy(b->pins[14].name, "P14", MRAA_PIN_NAME_SIZE);
- b->pins[14].capabilites = (mraa_pincapabilities_t){ 0, 0, 0, 0, 0, 0, 0, 0 };
+ strncpy(b->pins[43].name, "GPIO43", MRAA_PIN_NAME_SIZE);
+ b->pins[43].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 };
+ b->pins[43].gpio.pinmap = 43;
+ gpio_mux_groups[43] = MUX_EPHY;
+
+ strncpy(b->pins[20].name, "GPIO20", MRAA_PIN_NAME_SIZE);
+ b->pins[20].capabilites = (mraa_pincapabilities_t){ 1, 1, 1, 0, 0, 0, 0, 1 };
+ b->pins[20].gpio.pinmap = 20;
+ b->pins[20].uart.parent_id = 2;
+ b->pins[20].uart.mux_total = 0;
+ b->pins[20].pwm.parent_id = 0;
+ b->pins[20].pwm.pinmap = 2;
+ gpio_mux_groups[20] = MUX_UART2;
+
+ strncpy(b->pins[21].name, "GPIO21", MRAA_PIN_NAME_SIZE);
+ b->pins[21].capabilites = (mraa_pincapabilities_t){ 1, 1, 1, 0, 0, 0, 0, 1 };
+ b->pins[21].gpio.pinmap = 21;
+ b->pins[21].uart.parent_id = 2;
+ b->pins[21].uart.mux_total = 0;
+ b->pins[21].pwm.parent_id = 0;
+ b->pins[21].pwm.pinmap = 3;
+ gpio_mux_groups[21] = MUX_UART2;
+
+ strncpy(b->pins[2].name, "GPIO2", MRAA_PIN_NAME_SIZE);
+ b->pins[2].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 };
+ b->pins[2].gpio.pinmap = 2;
+ gpio_mux_groups[2] = MUX_I2S;
+
+ strncpy(b->pins[3].name, "GPIO3", MRAA_PIN_NAME_SIZE);
+ b->pins[3].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 };
+ b->pins[3].gpio.pinmap = 3;
+ gpio_mux_groups[3] = MUX_I2S;
+
+ strncpy(b->pins[0].name, "GPIO0", MRAA_PIN_NAME_SIZE);
+ b->pins[0].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 };
+ b->pins[0].gpio.pinmap = 0;
+ gpio_mux_groups[0] = MUX_I2S;
+
+ strncpy(b->pins[1].name, "GPIO1", MRAA_PIN_NAME_SIZE);
+ b->pins[1].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 };
+ b->pins[1].gpio.pinmap = 1;
+ gpio_mux_groups[1] = MUX_I2S;
+
+ strncpy(b->pins[37].name, "GPIO37", MRAA_PIN_NAME_SIZE);
+ b->pins[37].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 };
+ b->pins[37].gpio.pinmap = 37;
+ gpio_mux_groups[37] = MUX_GPIO;
+
+ strncpy(b->pins[44].name, "GPIO44", MRAA_PIN_NAME_SIZE);
+ b->pins[44].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 };
+ b->pins[44].gpio.pinmap = 44;
+ gpio_mux_groups[44] = MUX_WLED;
+
+ strncpy(b->pins[46].name, "GPIO46", MRAA_PIN_NAME_SIZE);
+ b->pins[46].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 1 };
+ b->pins[46].gpio.pinmap = 46;
+ b->pins[46].uart.parent_id = 1;
+ b->pins[46].uart.mux_total = 0;
+ gpio_mux_groups[46] = MUX_UART1;
+
+ strncpy(b->pins[45].name, "GPIO45", MRAA_PIN_NAME_SIZE);
+ b->pins[45].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 1 };
+ b->pins[45].gpio.pinmap = 45;
+ b->pins[45].uart.parent_id = 1;
+ b->pins[45].uart.mux_total = 0;
+ gpio_mux_groups[45] = MUX_UART1;
+
+ strncpy(b->pins[13].name, "GPIO13", MRAA_PIN_NAME_SIZE);
+ b->pins[13].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 1 };
+ b->pins[13].gpio.pinmap = 13;
+ b->pins[13].uart.parent_id = 1;
+ b->pins[13].uart.mux_total = 0;
+ gpio_mux_groups[13] = MUX_UART0;
+
+ strncpy(b->pins[12].name, "GPIO12", MRAA_PIN_NAME_SIZE);
+ b->pins[12].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 1 };
+ b->pins[12].gpio.pinmap = 12;
+ b->pins[12].uart.parent_id = 0;
+ b->pins[12].uart.mux_total = 0;
+ gpio_mux_groups[12] = MUX_UART0;
+
+ strncpy(b->pins[5].name, "GPIO5", MRAA_PIN_NAME_SIZE);
+ b->pins[5].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 1, 0, 0 };
+ b->pins[5].gpio.pinmap = 5;
+ b->pins[5].i2c.pinmap = 0;
+ b->pins[5].i2c.mux_total = 0;
+ gpio_mux_groups[5] = MUX_I2C;
+
+ strncpy(b->pins[4].name, "GPIO4", MRAA_PIN_NAME_SIZE);
+ b->pins[4].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 1, 0, 0 };
+ b->pins[4].gpio.pinmap = 4;
+ b->pins[4].i2c.pinmap = 0;
+ b->pins[4].i2c.mux_total = 0;
+ gpio_mux_groups[4] = MUX_I2C;
+
+ strncpy(b->pins[6].name, "GPIO6", MRAA_PIN_NAME_SIZE);
+ b->pins[6].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 1, 0, 0, 0 };
+ b->pins[6].gpio.pinmap = 6;
+ b->pins[6].spi.pinmap = 0;
+ b->pins[6].spi.mux_total = 0;
+ gpio_mux_groups[6] = MUX_SPI_CS1;
+
+ strncpy(b->pins[7].name, "GPIO7", MRAA_PIN_NAME_SIZE);
+ b->pins[7].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 1, 0, 0, 0 };
+ b->pins[7].spi.pinmap = 0;
+ b->pins[7].spi.mux_total = 0;
+
+ strncpy(b->pins[8].name, "GPIO8", MRAA_PIN_NAME_SIZE);
+ b->pins[8].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 1, 0, 0, 0 };
+ b->pins[8].spi.pinmap = 0;
+ b->pins[8].spi.mux_total = 0;
+
+ strncpy(b->pins[9].name, "GPIO9", MRAA_PIN_NAME_SIZE);
+ b->pins[9].capabilites = (mraa_pincapabilities_t){ 1, 0, 0, 0, 1, 0, 0, 0 };
+ b->pins[9].spi.pinmap = 0;
+ b->pins[9].spi.mux_total = 0;
+
+ strncpy(b->pins[18].name, "GPIO18", MRAA_PIN_NAME_SIZE);
+ b->pins[18].capabilites = (mraa_pincapabilities_t){ 1, 1, 1, 0, 0, 0, 0, 0 };
+ b->pins[18].gpio.pinmap = 18;
+ b->pins[18].pwm.parent_id = 0;
+ b->pins[18].pwm.pinmap = 0;
+ gpio_mux_groups[18] = MUX_PWM0;
+
+ strncpy(b->pins[19].name, "GPIO19", MRAA_PIN_NAME_SIZE);
+ b->pins[19].capabilites = (mraa_pincapabilities_t){ 1, 1, 1, 0, 0, 0, 0, 0 };
+ b->pins[19].gpio.pinmap = 19;
+ b->pins[19].pwm.parent_id = 0;
+ b->pins[19].pwm.pinmap = 1;
+ gpio_mux_groups[19] = MUX_PWM1;
+
+ strncpy(b->pins[16].name, "GPIO16", MRAA_PIN_NAME_SIZE);
+ b->pins[16].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 };
+ b->pins[16].gpio.pinmap = 16;
+ gpio_mux_groups[16] = MUX_SPI_S;
+
+ strncpy(b->pins[17].name, "GPIO17", MRAA_PIN_NAME_SIZE);
+ b->pins[17].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 };
+ b->pins[17].gpio.pinmap = 17;
+ gpio_mux_groups[17] = MUX_SPI_S;
+
+ strncpy(b->pins[14].name, "GPIO14", MRAA_PIN_NAME_SIZE);
+ b->pins[14].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 };
+ b->pins[14].gpio.pinmap = 14;
+ gpio_mux_groups[14] = MUX_SPI_S;
- strncpy(b->pins[15].name, "P15", MRAA_PIN_NAME_SIZE);
+ strncpy(b->pins[15].name, "GPIO15", MRAA_PIN_NAME_SIZE);
b->pins[15].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 };
- b->pins[15].gpio.pinmap = 44;
-
- strncpy(b->pins[16].name, "P16", MRAA_PIN_NAME_SIZE);
- b->pins[16].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 1 };
- b->pins[16].gpio.pinmap = 46;
- b->pins[16].uart.parent_id = 1;
- b->pins[16].uart.mux_total = 0;
-
- strncpy(b->pins[17].name, "P17", MRAA_PIN_NAME_SIZE);
- b->pins[17].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 1 };
- b->pins[17].gpio.pinmap = 45;
- b->pins[17].uart.parent_id = 1;
- b->pins[17].uart.mux_total = 0;
-
- strncpy(b->pins[18].name, "P18", MRAA_PIN_NAME_SIZE);
- b->pins[18].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 1 };
- b->pins[18].gpio.pinmap = 13;
- b->pins[18].uart.parent_id = 1;
- b->pins[18].uart.mux_total = 0;
-
- strncpy(b->pins[19].name, "P19", MRAA_PIN_NAME_SIZE);
- b->pins[19].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 1 };
- b->pins[19].gpio.pinmap = 12;
- b->pins[19].uart.parent_id = 0;
- b->pins[19].uart.mux_total = 0;
-
- strncpy(b->pins[20].name, "P20", MRAA_PIN_NAME_SIZE);
- b->pins[20].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 1, 0, 0 };
- b->pins[20].gpio.pinmap = 5;
- b->pins[20].i2c.pinmap = 0;
- b->pins[20].i2c.mux_total = 0;
-
- strncpy(b->pins[21].name, "P21", MRAA_PIN_NAME_SIZE);
- b->pins[21].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 1, 0, 0 };
- b->pins[21].gpio.pinmap = 4;
- b->pins[21].i2c.pinmap = 0;
- b->pins[21].i2c.mux_total = 0;
-
- strncpy(b->pins[22].name, "P22", MRAA_PIN_NAME_SIZE);
- b->pins[22].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 1, 0, 0, 0 };
- b->pins[22].gpio.pinmap = 8;
- b->pins[22].spi.pinmap = 0;
- b->pins[22].spi.mux_total = 0;
-
- strncpy(b->pins[23].name, "P23", MRAA_PIN_NAME_SIZE);
- b->pins[23].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 1, 0, 0, 0 };
- b->pins[23].gpio.pinmap = 9;
- b->pins[23].spi.pinmap = 0;
- b->pins[23].spi.mux_total = 0;
-
- strncpy(b->pins[24].name, "P24", MRAA_PIN_NAME_SIZE);
- b->pins[24].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 1, 0, 0, 0 };
- b->pins[24].gpio.pinmap = 7;
- b->pins[24].spi.pinmap = 0;
- b->pins[24].spi.mux_total = 0;
-
- strncpy(b->pins[25].name, "P25", MRAA_PIN_NAME_SIZE);
- b->pins[25].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 1, 0, 0, 0 };
- b->pins[25].gpio.pinmap = 6;
- b->pins[25].spi.pinmap = 0;
- b->pins[25].spi.mux_total = 0;
-
- strncpy(b->pins[26].name, "P26", MRAA_PIN_NAME_SIZE);
- b->pins[26].capabilites = (mraa_pincapabilities_t){ 1, 1, 1, 0, 0, 0, 0, 0 };
- b->pins[26].gpio.pinmap = 18;
-
- strncpy(b->pins[27].name, "P27", MRAA_PIN_NAME_SIZE);
- b->pins[27].capabilites = (mraa_pincapabilities_t){ 1, 1, 1, 0, 0, 0, 0, 0 };
- b->pins[27].gpio.pinmap = 19;
-
- strncpy(b->pins[28].name, "P28", MRAA_PIN_NAME_SIZE);
- b->pins[28].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 };
- b->pins[28].gpio.pinmap = 16;
-
- strncpy(b->pins[29].name, "P29", MRAA_PIN_NAME_SIZE);
- b->pins[29].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 };
- b->pins[29].gpio.pinmap = 17;
-
- strncpy(b->pins[30].name, "P30", MRAA_PIN_NAME_SIZE);
- b->pins[30].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 };
- b->pins[30].gpio.pinmap = 14;
-
- strncpy(b->pins[31].name, "P31", MRAA_PIN_NAME_SIZE);
- b->pins[31].capabilites = (mraa_pincapabilities_t){ 1, 1, 0, 0, 0, 0, 0, 0 };
- b->pins[31].gpio.pinmap = 15;
+ b->pins[15].gpio.pinmap = 15;
+ gpio_mux_groups[15] = MUX_SPI_S;
// BUS DEFINITIONS
b->i2c_bus_count = 1;
b->def_i2c_bus = 0;
- b->i2c_bus[0].bus_id = 0;
- b->i2c_bus[0].sda = 20;
- b->i2c_bus[0].scl = 21;
+ b->i2c_bus[0].bus_id = 0;
+ b->i2c_bus[0].sda = 5;
+ b->i2c_bus[0].scl = 4;
b->spi_bus_count = 1;
b->def_spi_bus = 0;
- b->spi_bus[0].bus_id = 0;
- b->spi_bus[0].slave_s = 0;
- b->spi_bus[0].cs = 25;
- b->spi_bus[0].mosi = 22;
- b->spi_bus[0].miso = 23;
- b->spi_bus[0].sclk = 21;
+ b->spi_bus[0].bus_id = 32766;
+ b->spi_bus[0].slave_s = 1;
+ b->spi_bus[0].cs = 6;
+ b->spi_bus[0].mosi = 8;
+ b->spi_bus[0].miso = 9;
+ b->spi_bus[0].sclk = 7;
b->uart_dev_count = 3;
b->def_uart_dev = 0;
- b->uart_dev[0].rx = 18;
- b->uart_dev[0].tx = 19;
-
- b->uart_dev[1].rx = 16;
- b->uart_dev[1].tx = 17;
-
- b->uart_dev[2].rx = 9;
- b->uart_dev[2].tx = 8;
+ b->uart_dev[0].rx = 13;
+ b->uart_dev[0].tx = 12;
+ b->uart_dev[0].device_path = "/dev/ttyS0";
+ b->uart_dev[1].rx = 46;
+ b->uart_dev[1].tx = 45;
+ b->uart_dev[1].device_path = "/dev/ttyS1";
+ b->uart_dev[2].rx = 21;
+ b->uart_dev[2].tx = 20;
+ b->uart_dev[2].device_path = "/dev/ttyS2";
b->gpio_count = 0;
- int i;
for (i = 0; i < b->phy_pin_count; i++) {
if (b->pins[i].capabilites.gpio) {
b->gpio_count++;
--- a/src/gpio/gpio.c
+++ b/src/gpio/gpio.c
@@ -113,6 +113,8 @@
close(export);
}
+ mraa_gpio_use_mmaped(dev, 1);
+
init_internal_cleanup:
if (status != MRAA_SUCCESS) {
if (dev != NULL)

View file

@ -15,7 +15,7 @@ PKG_FIXUP:=autoreconf
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_URL:=https://code.google.com/p/libnfc/ PKG_SOURCE_URL:=https://github.com/nfc-tools/libnfc
PKG_SOURCE_PROTO:=git PKG_SOURCE_PROTO:=git
PKG_SOURCE_VERSION:=$(PKG_NAME)-$(PKG_VERSION) PKG_SOURCE_VERSION:=$(PKG_NAME)-$(PKG_VERSION)

View file

@ -1,5 +1,5 @@
# #
# Copyright (C) 2006-2014 OpenWrt.org # Copyright (C) 2006-2015 OpenWrt.org
# #
# This is free software, licensed under the GNU General Public License v2. # This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information. # See /LICENSE for more information.
@ -8,12 +8,12 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=libpng PKG_NAME:=libpng
PKG_VERSION:=1.2.52 PKG_VERSION:=1.2.56
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=@SF/libpng PKG_SOURCE_URL:=@SF/libpng
PKG_MD5SUM:=49d5c71929bf69a172147c47b9309fbe PKG_MD5SUM:=868562bd1c58b76ed8703f135a2e439a
PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org> PKG_MAINTAINER:=Jo-Philipp Wich <jow@openwrt.org>
PKG_LICENSE:=Libpng GPL-2.0+ BSD-3-Clause PKG_LICENSE:=Libpng GPL-2.0+ BSD-3-Clause

10
libs/libradcli/Config.in Normal file
View file

@ -0,0 +1,10 @@
# radcli avanced configuration
menu "Configuration"
depends on PACKAGE_libradcli
config RADCLI_TLS
bool "enable TLS support"
default y
endmenu

75
libs/libradcli/Makefile Normal file
View file

@ -0,0 +1,75 @@
#
# Copyright (C) 2015 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=libradcli
PKG_VERSION:=1.2.5
PKG_RELEASE:=1
PKG_SOURCE:=radcli-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/radcli/radcli/releases/download/$(PKG_VERSION)/
PKG_MD5SUM:=b94e46e37668cc562ea5420d095a836b
PKG_BUILD_DIR:=$(BUILD_DIR)/radcli-$(PKG_VERSION)
PKG_INSTALL:=1
include $(INCLUDE_DIR)/package.mk
define Package/libradcli
SECTION:=libs
CATEGORY:=Libraries
TITLE:=A library for radius clients
URL:=http://radcli.github.io/radcli/
MAINTAINER:=Nikos Mavrogiannopoulos <nmav@gnutls.org>
DEPENDS:= +RADCLI_TLS:libgnutls +libnettle
endef
define Package/libradcli/decription
The radcli library is a library for writing RADIUS Clients. The library's
approach is to allow writing RADIUS-aware application in less than 50 lines
of C code. It was based originally on freeradius-client and is source
compatible with it.
endef
CONFIGURE_ARGS+= \
--enable-legacy-compat
ifneq ($(CONFIG_RADCLI_TLS),y)
CONFIGURE_ARGS += --without-tls
endif
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include/radcli
$(CP) \
$(PKG_INSTALL_DIR)/usr/include/radcli/radcli.h \
$(PKG_INSTALL_DIR)/usr/include/radcli/version.h \
$(1)/usr/include/radcli
$(CP) \
$(PKG_INSTALL_DIR)/usr/include/freeradius-client.h \
$(1)/usr/include/
$(INSTALL_DIR) $(1)/usr/lib
$(CP) \
$(PKG_INSTALL_DIR)/usr/lib/libradcli.so* \
$(PKG_INSTALL_DIR)/usr/lib/libfreeradius-client.so \
$(1)/usr/lib/
endef
define Package/libradcli/conffiles
/etc/radcli/radiusclient.conf
endef
define Package/libradcli/install
$(INSTALL_DIR) $(1)/etc/radcli
$(INSTALL_CONF) $(PKG_BUILD_DIR)/etc/radiusclient.conf $(1)/etc/radcli/
$(INSTALL_DIR) $(1)/usr/lib
$(CP) \
$(PKG_INSTALL_DIR)/usr/lib/libradcli.so.* \
$(1)/usr/lib/
endef
$(eval $(call BuildPackage,libradcli))

View file

@ -1,5 +1,5 @@
# #
# Copyright (C) 2005-2010 OpenWrt.org # Copyright (C) 2014-2015 OpenWrt.org
# #
# This is free software, licensed under the GNU General Public License v2. # This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information. # See /LICENSE for more information.
@ -8,13 +8,13 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=libseccomp PKG_NAME:=libseccomp
PKG_VERSION:=2.2.0 PKG_VERSION:=2.2.1
PKG_RELEASE:=2 PKG_RELEASE:=1
PKG_USE_MIPS16:=0 PKG_USE_MIPS16:=0
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/seccomp/libseccomp/releases/download/v$(PKG_VERSION)/ PKG_SOURCE_URL:=https://github.com/seccomp/libseccomp/releases/download/v$(PKG_VERSION)/
PKG_MD5SUM:=e9509301a1fc024cd10127ac1f31792a PKG_MD5SUM:=068af8e1bc36fcd4b326ee83875ab4fd
PKG_MAINTAINER:=Nikos Mavrogiannopoulos <nmav@gnutls.org> PKG_MAINTAINER:=Nikos Mavrogiannopoulos <nmav@gnutls.org>
PKG_INSTALL:=1 PKG_INSTALL:=1

View file

@ -12,7 +12,7 @@ PKG_VERSION:=1.0.2
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://download.libsodium.org/libsodium/releases PKG_SOURCE_URL:=https://download.libsodium.org/libsodium/releases/old/unsupported
PKG_MD5SUM:=dc40eb23e293448c6fc908757738003f PKG_MD5SUM:=dc40eb23e293448c6fc908757738003f
PKG_FIXUP:=libtool autoreconf PKG_FIXUP:=libtool autoreconf

View file

@ -8,12 +8,12 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=libsoup PKG_NAME:=libsoup
PKG_VERSION:=2.44.2 PKG_VERSION:=2.53.2
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=@GNOME/$(PKG_NAME)/2.44 PKG_SOURCE_URL:=@GNOME/$(PKG_NAME)/2.53
PKG_MD5SUM:=92aa3667357157e8f3489bcca287f2fa PKG_MD5SUM:=dc23612d6365a0b8a6a650ffe0bdcb4c
PKG_LICENSE:=GPL-2.0 PKG_LICENSE:=GPL-2.0
PKG_LICENSE_FILES:=COPYING PKG_LICENSE_FILES:=COPYING
@ -42,6 +42,7 @@ define Build/Configure
--disable-glibtest \ --disable-glibtest \
--without-apache-httpd \ --without-apache-httpd \
--without-gnome \ --without-gnome \
--enable-vala=no \
) )
endef endef

View file

@ -1,5 +1,5 @@
# #
# Copyright (C) 2014 OpenWrt.org # Copyright (C) 2015 - 2018 OpenWrt.org
# #
# This is free software, licensed under the GNU General Public License v2. # This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information. # See /LICENSE for more information.
@ -8,12 +8,12 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=libssh2 PKG_NAME:=libssh2
PKG_VERSION:=1.4.3 PKG_VERSION:=1.6.0
PKG_RELEASE:=2 PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.libssh2.org/download PKG_SOURCE_URL:=https://www.libssh2.org/download
PKG_MD5SUM:=071004c60c5d6f90354ad1b701013a0b PKG_MD5SUM:=00aabd6e714a5f42a4fb82ace20db1dd
PKG_INSTALL:=1 PKG_INSTALL:=1
@ -26,9 +26,9 @@ define Package/libssh2
SECTION:=libs SECTION:=libs
CATEGORY:=Libraries CATEGORY:=Libraries
TITLE:=SSH2 library TITLE:=SSH2 library
URL:=http://www.libssh2.org/ URL:=https://www.libssh2.org/
DEPENDS:=+libopenssl +zlib DEPENDS:=+libopenssl +zlib
MAINTAINER:=Jiri Slachta <slachta@cesnet.cz> MAINTAINER:=Jiri Slachta <jiri@slachta.eu>
endef endef
define Package/libssh2/description define Package/libssh2/description
@ -39,7 +39,8 @@ TARGET_CFLAGS += $(FPIC)
CONFIGURE_ARGS += \ CONFIGURE_ARGS += \
--disable-examples-build \ --disable-examples-build \
--with-libssl-prefix=$(STAGING_DIR)/usr --with-libssl-prefix=$(STAGING_DIR)/usr \
--with-libz-prefix=$(STAGING_DIR)/usr
define Build/InstallDev define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include $(INSTALL_DIR) $(1)/usr/include

View file

@ -0,0 +1,22 @@
Description: CVE-2016-0787: Truncated Difffie-Hellman secret length
Convert bytes to bits in diffie_hellman_sha1. Otherwise we get far too
small numbers.
Origin: backport, http://www.libssh2.org/CVE-2016-0787.patch
Forwarded: not-needed
Author: Daniel Stenberg <daniel@haxx.se>
Reviewed-by: Salvatore Bonaccorso <carnil@debian.org>
Last-Update: 2016-02-18
Applied-Upstream: 1.7.0
---
--- a/src/kex.c
+++ b/src/kex.c
@@ -103,7 +103,7 @@ static int diffie_hellman_sha1(LIBSSH2_S
memset(&exchange_state->req_state, 0, sizeof(packet_require_state_t));
/* Generate x and e */
- _libssh2_bn_rand(exchange_state->x, group_order, 0, -1);
+ _libssh2_bn_rand(exchange_state->x, group_order * 8 - 1, 0, -1);
_libssh2_bn_mod_exp(exchange_state->e, g, exchange_state->x, p,
exchange_state->ctx);

View file

@ -8,12 +8,14 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=libtasn1 PKG_NAME:=libtasn1
PKG_VERSION:=4.4 PKG_VERSION:=4.8
PKG_RELEASE:=1 PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=ftp://ftp.gnu.org/gnu/libtasn1 PKG_SOURCE_URL:=ftp://ftp.gnu.org/gnu/libtasn1
PKG_MD5SUM:=c26d76d1309dd339365c563076599912 PKG_MD5SUM:=9a6767705725544f2b86670dcfb34107
PKG_LICENSE:=LGPLv2.1+
PKG_LICENSE_FILES:=COPYING.LIB
#PKG_FIXUP:=autoreconf #PKG_FIXUP:=autoreconf
PKG_INSTALL:=1 PKG_INSTALL:=1

82
libs/libupm/Makefile Normal file
View file

@ -0,0 +1,82 @@
#
# Copyright (C) 2015 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=libupm
PKG_VERSION:=0.4.0
PKG_RELEASE=$(PKG_SOURCE_VERSION)
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/intel-iot-devkit/upm.git
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_VERSION:=04dc6df4297a7766d6f1a8fef9699d586e7e0d92
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
CMAKE_INSTALL:=1
PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
PKG_LICENSE:=LGPL-2.1
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
UPM_MODULES:= \
a110x ad8232 adafruitss adc121c021 adis16448 adxl335 adxl345 am2315 apds9002 at42qt1070 biss0001 bmpx8x buzzer \
cjq4435 ds1307 ecs1030 enc03r flex gas gp2y0a grovecircularled grovecollision groveehr groveeldriver groveelectromagnet \
groveemg grovegprs grovegsr grovelinefinder grovemd grovemoisture groveo2 grovescam grove grovespeaker grovevdiv grovewater \
grovewfs guvas12d h3lis331dl hcsr04 hm11 hmc5883l hmtrp hp20x ht9170 htu21d hx711 i2clcd ina132 isd1820 itg3200 joystick12 \
l298 ldt0028 lm35 lol loudness lpd8806 lsm303 lsm9ds0 m24lr64e max31723 max31855 max44000 max5487 maxds3231m maxsonarez \
mg811 mhz16 mic mlx90614 mma7455 mma7660 mpl3115a2 mpr121 mpu9150 mq303a my9221 nrf24l01 nrf8001 nunchuck otp538u \
pn532 ppd42ns pulsensor rfr359f rgbringcoder rotaryencoder rpr220 servo si114x sm130 st7735 stepmotor sx6119 ta12200 tcs3414cs \
th02 tm1637 tsl2561 ttp223 ublox6 uln200xa waterlevel wheelencoder wt5001 yg1006 zfm20
CMAKE_OPTIONS=-DBUILDARCH=$(CONFIG_ARCH) \
-DNODE_EXECUTABLE=$(STAGING_DIR_HOST)/bin/node \
-DSWIG_DIR=$(STAGING_DIR_HOST)/bin
define Package/libupm/Default
SECTION:=libs
CATEGORY:=Libraries
DEPENDS:=+libmraa +librt
SUBMENU:=IoT
endef
define Package/libupm
$(call Package/libupm/Default)
TITLE:=Intel IoT sensor library - Full
endef
define Package/libupm/install/Default
$(INSTALL_DIR) $(1)/usr/lib/{node/,python2.7/site-packages}; \
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libupm-$(2).so* $(1)/usr/lib/; \
$(CP) $(PKG_INSTALL_DIR)/usr/lib/node_modules/jsupm_$(2) $(1)/usr/lib/node/; \
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/python2.7/site-packages/{pyupm_$(2).py,_pyupm_$(2).so} \
$(1)/usr/lib/python2.7/site-packages/ ;
endef
define Package/libupm/install
$(foreach module, $(UPM_MODULES), \
$(call Package/libupm/install/Default,$(1),$(module)))
endef
define UpmPackage
define Package/libupm-$(1)
$(call Package/libupm/Default)
TITLE:=Intel IoT sensor library - $(1)
endef
define Package/libupm-$(1)/install
$(call Package/libupm/install/Default,$$(1),$(1))
endef
endef
$(eval $(call BuildPackage,libupm))
$(foreach package, $(UPM_MODULES), \
$(eval $(call UpmPackage,$(package))) \
$(eval $(call BuildPackage,libupm-$(package))) \
)

View file

@ -0,0 +1,16 @@
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -26,12 +26,7 @@
include(GNUInstallDirs)
# Make a version file containing the current version from git.
-include (GetGitRevisionDescription)
-git_describe (VERSION "--tags")
-if ("x_${VERSION}" STREQUAL "x_GIT-NOTFOUND")
- message (WARNING " - Install git to compile a production UPM!")
- set (VERSION "v0.4.0-dirty")
-endif ()
+set (VERSION "v0.4.0")
message (INFO " - UPM Version ${VERSION}")

View file

@ -0,0 +1,11 @@
--- a/src/at42qt1070/at42qt1070.cxx
+++ b/src/at42qt1070/at42qt1070.cxx
@@ -53,7 +53,7 @@
return;
}
- if (readChipID() != 0x2E) {
+ if (readChipID() != 0x1b && readChipID() != 0x2E) {
throw std::runtime_error("Chip ID does not match the expected value (2Eh)");
}

View file

@ -0,0 +1,11 @@
--- a/src/lsm303/lsm303.h
+++ b/src/lsm303/lsm303.h
@@ -34,7 +34,7 @@
/* LSM303 Address definitions */
#define LSM303_MAG 0x1E // assuming SA0 grounded
-#define LSM303_ACC 0x18 // assuming SA0 grounded
+#define LSM303_ACC 0x1E // assuming SA0 grounded
/* LSM303 Register definitions */
#define CTRL_REG1_A 0x20

View file

@ -1,5 +1,5 @@
# #
# Copyright (C) 2014 OpenWrt.org # Copyright (C) 2016 OpenWrt.org
# #
# This is free software, licensed under the GNU General Public License v2. # This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information. # See /LICENSE for more information.
@ -8,12 +8,12 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=libupnpp PKG_NAME:=libupnpp
PKG_VERSION:=0.9.0 PKG_VERSION:=0.14.0
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.lesbonscomptes.com/upmpdcli/downloads PKG_SOURCE_URL:=http://www.lesbonscomptes.com/upmpdcli/downloads
PKG_MD5SUM:=ff218bbe2df6cf70b73843d951ef838e PKG_MD5SUM:=1b10905a365fc6277e1d8ced77278666
PKG_MAINTAINER:=Petko Bordjukov <bordjukov@gmail.com> PKG_MAINTAINER:=Petko Bordjukov <bordjukov@gmail.com>
PKG_LICENSE:=GPL-2.0 PKG_LICENSE:=GPL-2.0
PKG_LICENSE_FILES:=COPYING PKG_LICENSE_FILES:=COPYING
@ -39,14 +39,13 @@ define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include $(INSTALL_DIR) $(1)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/libupnpp $(1)/usr/include/ $(CP) $(PKG_INSTALL_DIR)/usr/include/libupnpp $(1)/usr/include/
$(INSTALL_DIR) $(1)/usr/lib $(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libupnpp-$(PKG_VERSION).so* $(1)/usr/lib/ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libupnpp.so* $(1)/usr/lib/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libupnpp.{so,la} $(1)/usr/lib/ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libupnpp.la $(1)/usr/lib/
endef endef
define Package/libupnpp/install define Package/libupnpp/install
$(INSTALL_DIR) $(1)/usr/lib $(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libupnpp-$(PKG_VERSION).so.* $(1)/usr/lib/ $(CP) $(PKG_INSTALL_DIR)/usr/lib/libupnpp.so.* $(1)/usr/lib/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libupnpp.so $(1)/usr/lib/
endef endef
$(eval $(call BuildPackage,libupnpp)) $(eval $(call BuildPackage,libupnpp))

View file

@ -8,7 +8,7 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=libuv PKG_NAME:=libuv
PKG_VERSION:=1.4.2 PKG_VERSION:=1.9.1
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_LICENSE_FILES:=LICENSE PKG_LICENSE_FILES:=LICENSE
@ -16,8 +16,8 @@ PKG_LICENSE_FILES:=LICENSE
PKG_MAINTAINER:=Luka Perkov <luka@openwrt.org> PKG_MAINTAINER:=Luka Perkov <luka@openwrt.org>
PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://libuv.org/dist/v$(PKG_VERSION)/ PKG_SOURCE_URL:=https://dist.libuv.org/dist/v$(PKG_VERSION)/
PKG_MD5SUM:=d116fbe695157b799fb8805477e24eff PKG_MD5SUM:=654bf6783ac7fc10435c84ec86720a6e
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-v$(PKG_VERSION) PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-v$(PKG_VERSION)
PKG_BUILD_PARALLEL:=1 PKG_BUILD_PARALLEL:=1

View file

@ -1,5 +1,5 @@
# #
# Copyright (C) 2006-2015 OpenWrt.org # Copyright (C) 2006-2016 OpenWrt.org
# #
# This is free software, licensed under the GNU General Public License v2. # This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information. # See /LICENSE for more information.
@ -13,7 +13,7 @@ PKG_VERSION:=1.0.3-$(PKG_REV)
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_SOURCE_PROTO:=git PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=git://git.xiph.org/tremor.git PKG_SOURCE_URL:=https://git.xiph.org/tremor.git
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
PKG_SOURCE_VERSION:=b56ffce0c0773ec5ca04c466bc00b1bbcaf65aef PKG_SOURCE_VERSION:=b56ffce0c0773ec5ca04c466bc00b1bbcaf65aef
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz

View file

@ -1,5 +1,5 @@
# #
# Copyright (C) 2014 OpenWrt.org # Copyright (C) 2014 - 2018 OpenWrt.org
# #
# This is free software, licensed under the GNU General Public License v2. # This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information. # See /LICENSE for more information.
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=libxslt PKG_NAME:=libxslt
PKG_VERSION:=1.1.28 PKG_VERSION:=1.1.28
PKG_RELEASE:=2 PKG_RELEASE:=3
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:= \ PKG_SOURCE_URL:= \
@ -20,7 +20,7 @@ PKG_MD5SUM:=9667bf6f9310b957254fdcf6596600b7
PKG_LICENSE:=MIT PKG_LICENSE:=MIT
PKG_LICENSE_FILES:=COPYING PKG_LICENSE_FILES:=COPYING
PKG_MAINTAINER:=Jiri Slachta <slachta@cesnet.cz> PKG_MAINTAINER:=Jiri Slachta <jiri@slachta.eu>
PKG_FIXUP:=autoreconf PKG_FIXUP:=autoreconf
PKG_INSTALL:=1 PKG_INSTALL:=1
@ -43,7 +43,7 @@ define Package/libexslt
SECTION:=libs SECTION:=libs
CATEGORY:=Libraries CATEGORY:=Libraries
DEPENDS:=+libxslt DEPENDS:=+libxslt
TITLE:=Gnome XSLT library Extention TITLE:=Gnome XSLT library Extension
URL:=http://xmlsoft.org/XSLT/EXSLT/ URL:=http://xmlsoft.org/XSLT/EXSLT/
endef endef
@ -64,6 +64,7 @@ define Package/xsltproc/description
endef endef
CONFIGURE_ARGS+= \ CONFIGURE_ARGS+= \
--disable-silent-rules \
--enable-shared \ --enable-shared \
--enable-static \ --enable-static \
--without-python \ --without-python \

View file

@ -0,0 +1,48 @@
From: Daniel Veillard <veillard@redhat.com>
Date: Wed, 30 Jan 2013 16:31:37 +0000
Subject: Fix a couple of places where (f)printf parameters were broken
As reported by Thomas Jarosch <thomas.jarosch@intra2net.com>
---
python/libxslt.c | 10 +++++-----
xsltproc/xsltproc.c | 2 +-
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/python/libxslt.c b/python/libxslt.c
index 6a4f1c3..8dd6c78 100644
--- a/python/libxslt.c
+++ b/python/libxslt.c
@@ -356,15 +356,15 @@ libxslt_xsltRegisterExtModuleElement(PyObject *self ATTRIBUTE_UNUSED,
PyObject *pyobj_element_f;
PyObject *pyobj_precomp_f;
-#ifdef DEBUG_EXTENSIONS
- printf("libxslt_xsltRegisterExtModuleElement called\n",
- name, ns_uri);
-#endif
-
if (!PyArg_ParseTuple(args, (char *)"szOO:registerExtModuleElement",
&name, &ns_uri, &pyobj_precomp_f, &pyobj_element_f))
return(NULL);
+#ifdef DEBUG_EXTENSIONS
+ printf("libxslt_xsltRegisterExtModuleElement called: %s %s\n",
+ name, ns_uri);
+#endif
+
if ((name == NULL) || (pyobj_element_f == NULL) || (pyobj_precomp_f == NULL)) {
py_retval = libxml_intWrap(-1);
return(py_retval);
diff --git a/xsltproc/xsltproc.c b/xsltproc/xsltproc.c
index 9ec4b76..33beddf 100644
--- a/xsltproc/xsltproc.c
+++ b/xsltproc/xsltproc.c
@@ -319,7 +319,7 @@ static void endTimer(char *format, ...)
va_start(ap, format);
vfprintf(stderr,format,ap);
va_end(ap);
- fprintf(stderr, " was not timed\n", msec);
+ fprintf(stderr, " was not timed\n");
#else
/* We don't have gettimeofday, time or stdarg.h, what crazy world is
* this ?!

View file

@ -0,0 +1,56 @@
From: Nils Werner <wernerns@iis.fraunhofer.de>
Date: Thu, 24 Jan 2013 18:44:03 +0000
Subject: Initialize pseudo random number generator with current time or
optional command line parameter
---
xsltproc/xsltproc.c | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/xsltproc/xsltproc.c b/xsltproc/xsltproc.c
index 33beddf..7d1fe61 100644
--- a/xsltproc/xsltproc.c
+++ b/xsltproc/xsltproc.c
@@ -514,6 +514,7 @@ static void usage(const char *name) {
printf("\t--maxdepth val : increase the maximum depth (default %d)\n", xsltMaxDepth);
printf("\t--maxvars val : increase the maximum variables (default %d)\n", xsltMaxVars);
printf("\t--maxparserdepth val : increase the maximum parser depth\n");
+ printf("\t--seed-rand val : initialize pseudo random number generator with specific seed\n");
#ifdef LIBXML_HTML_ENABLED
printf("\t--html: the input document is(are) an HTML file(s)\n");
#endif
@@ -556,6 +557,7 @@ main(int argc, char **argv)
return (1);
}
+ srand(time(NULL));
xmlInitMemory();
LIBXML_TEST_VERSION
@@ -750,6 +752,15 @@ main(int argc, char **argv)
if (value > 0)
xmlParserMaxDepth = value;
}
+ } else if ((!strcmp(argv[i], "-seed-rand")) ||
+ (!strcmp(argv[i], "--seed-rand"))) {
+ int value;
+
+ i++;
+ if (sscanf(argv[i], "%d", &value) == 1) {
+ if (value > 0)
+ srand(value);
+ }
} else if ((!strcmp(argv[i],"-dumpextensions"))||
(!strcmp(argv[i],"--dumpextensions"))) {
dumpextensions++;
@@ -786,6 +797,10 @@ main(int argc, char **argv)
(!strcmp(argv[i], "--maxparserdepth"))) {
i++;
continue;
+ } else if ((!strcmp(argv[i], "-seed-rand")) ||
+ (!strcmp(argv[i], "--seed-rand"))) {
+ i++;
+ continue;
} else if ((!strcmp(argv[i], "-o")) ||
(!strcmp(argv[i], "-output")) ||
(!strcmp(argv[i], "--output"))) {

Some files were not shown because too many files have changed in this diff Show more