code
string
repo_name
string
path
string
language
string
license
string
size
int64
From 2fb04c2245167e247b95400112b5dbea12fcb206 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Date: Wed, 30 Dec 2015 20:02:29 +0100 Subject: [PATCH] hidtest: dont' use a C++ source file, since it's pure C This allows to build the test program with toolchains that don't have C++ support. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> --- hidtest/Makefile.am | 6 +- hidtest/hidtest.c | 194 ++++++++++++++++++++++++++++++++++++++++++++++++++++ hidtest/hidtest.cpp | 194 ---------------------------------------------------- 3 files changed, 197 insertions(+), 197 deletions(-) create mode 100644 hidtest/hidtest.c delete mode 100644 hidtest/hidtest.cpp diff --git a/hidtest/Makefile.am b/hidtest/Makefile.am index d278644..5f52c3f 100644 --- a/hidtest/Makefile.am +++ b/hidtest/Makefile.am @@ -4,17 +4,17 @@ AM_CPPFLAGS = -I$(top_srcdir)/hidapi/ if OS_LINUX noinst_PROGRAMS = hidtest-libusb hidtest-hidraw -hidtest_hidraw_SOURCES = hidtest.cpp +hidtest_hidraw_SOURCES = hidtest.c hidtest_hidraw_LDADD = $(top_builddir)/linux/libhidapi-hidraw.la -hidtest_libusb_SOURCES = hidtest.cpp +hidtest_libusb_SOURCES = hidtest.c hidtest_libusb_LDADD = $(top_builddir)/libusb/libhidapi-libusb.la else # Other OS's noinst_PROGRAMS = hidtest -hidtest_SOURCES = hidtest.cpp +hidtest_SOURCES = hidtest.c hidtest_LDADD = $(top_builddir)/$(backend)/libhidapi.la endif diff --git a/hidtest/hidtest.c b/hidtest/hidtest.c new file mode 100644 index 0000000..94f0a5c --- /dev/null +++ b/hidtest/hidtest.c @@ -0,0 +1,194 @@ +/******************************************************* + Windows HID simplification + + Alan Ott + Signal 11 Software + + 8/22/2009 + + Copyright 2009 + + This contents of this file may be used by anyone + for any reason without any conditions and may be + used as a starting point for your own applications + which use HIDAPI. +********************************************************/ + +#include <stdio.h> +#include <wchar.h> +#include <string.h> +#include <stdlib.h> +#include "hidapi.h" + +// Headers needed for sleeping. +#ifdef _WIN32 + #include <windows.h> +#else + #include <unistd.h> +#endif + +int main(int argc, char* argv[]) +{ + int res; + unsigned char buf[256]; + #define MAX_STR 255 + wchar_t wstr[MAX_STR]; + hid_device *handle; + int i; + +#ifdef WIN32 + UNREFERENCED_PARAMETER(argc); + UNREFERENCED_PARAMETER(argv); +#endif + + struct hid_device_info *devs, *cur_dev; + + if (hid_init()) + return -1; + + devs = hid_enumerate(0x0, 0x0); + cur_dev = devs; + while (cur_dev) { + printf("Device Found\n type: %04hx %04hx\n path: %s\n serial_number: %ls", cur_dev->vendor_id, cur_dev->product_id, cur_dev->path, cur_dev->serial_number); + printf("\n"); + printf(" Manufacturer: %ls\n", cur_dev->manufacturer_string); + printf(" Product: %ls\n", cur_dev->product_string); + printf(" Release: %hx\n", cur_dev->release_number); + printf(" Interface: %d\n", cur_dev->interface_number); + printf("\n"); + cur_dev = cur_dev->next; + } + hid_free_enumeration(devs); + + // Set up the command buffer. + memset(buf,0x00,sizeof(buf)); + buf[0] = 0x01; + buf[1] = 0x81; + + + // Open the device using the VID, PID, + // and optionally the Serial number. + ////handle = hid_open(0x4d8, 0x3f, L"12345"); + handle = hid_open(0x4d8, 0x3f, NULL); + if (!handle) { + printf("unable to open device\n"); + return 1; + } + + // Read the Manufacturer String + wstr[0] = 0x0000; + res = hid_get_manufacturer_string(handle, wstr, MAX_STR); + if (res < 0) + printf("Unable to read manufacturer string\n"); + printf("Manufacturer String: %ls\n", wstr); + + // Read the Product String + wstr[0] = 0x0000; + res = hid_get_product_string(handle, wstr, MAX_STR); + if (res < 0) + printf("Unable to read product string\n"); + printf("Product String: %ls\n", wstr); + + // Read the Serial Number String + wstr[0] = 0x0000; + res = hid_get_serial_number_string(handle, wstr, MAX_STR); + if (res < 0) + printf("Unable to read serial number string\n"); + printf("Serial Number String: (%d) %ls", wstr[0], wstr); + printf("\n"); + + // Read Indexed String 1 + wstr[0] = 0x0000; + res = hid_get_indexed_string(handle, 1, wstr, MAX_STR); + if (res < 0) + printf("Unable to read indexed string 1\n"); + printf("Indexed String 1: %ls\n", wstr); + + // Set the hid_read() function to be non-blocking. + hid_set_nonblocking(handle, 1); + + // Try to read from the device. There shoud be no + // data here, but execution should not block. + res = hid_read(handle, buf, 17); + + // Send a Feature Report to the device + buf[0] = 0x2; + buf[1] = 0xa0; + buf[2] = 0x0a; + buf[3] = 0x00; + buf[4] = 0x00; + res = hid_send_feature_report(handle, buf, 17); + if (res < 0) { + printf("Unable to send a feature report.\n"); + } + + memset(buf,0,sizeof(buf)); + + // Read a Feature Report from the device + buf[0] = 0x2; + res = hid_get_feature_report(handle, buf, sizeof(buf)); + if (res < 0) { + printf("Unable to get a feature report.\n"); + printf("%ls", hid_error(handle)); + } + else { + // Print out the returned buffer. + printf("Feature Report\n "); + for (i = 0; i < res; i++) + printf("%02hhx ", buf[i]); + printf("\n"); + } + + memset(buf,0,sizeof(buf)); + + // Toggle LED (cmd 0x80). The first byte is the report number (0x1). + buf[0] = 0x1; + buf[1] = 0x80; + res = hid_write(handle, buf, 17); + if (res < 0) { + printf("Unable to write()\n"); + printf("Error: %ls\n", hid_error(handle)); + } + + + // Request state (cmd 0x81). The first byte is the report number (0x1). + buf[0] = 0x1; + buf[1] = 0x81; + hid_write(handle, buf, 17); + if (res < 0) + printf("Unable to write() (2)\n"); + + // Read requested state. hid_read() has been set to be + // non-blocking by the call to hid_set_nonblocking() above. + // This loop demonstrates the non-blocking nature of hid_read(). + res = 0; + while (res == 0) { + res = hid_read(handle, buf, sizeof(buf)); + if (res == 0) + printf("waiting...\n"); + if (res < 0) + printf("Unable to read()\n"); + #ifdef WIN32 + Sleep(500); + #else + usleep(500*1000); + #endif + } + + printf("Data read:\n "); + // Print out the returned buffer. + for (i = 0; i < res; i++) + printf("%02hhx ", buf[i]); + printf("\n"); + + hid_close(handle); + + /* Free static HIDAPI objects. */ + hid_exit(); + +#ifdef WIN32 + system("pause"); +#endif + + return 0; +} diff --git a/hidtest/hidtest.cpp b/hidtest/hidtest.cpp deleted file mode 100644 index 94f0a5c..0000000 --- a/hidtest/hidtest.cpp +++ /dev/null @@ -1,194 +0,0 @@ -/******************************************************* - Windows HID simplification - - Alan Ott - Signal 11 Software - - 8/22/2009 - - Copyright 2009 - - This contents of this file may be used by anyone - for any reason without any conditions and may be - used as a starting point for your own applications - which use HIDAPI. -********************************************************/ - -#include <stdio.h> -#include <wchar.h> -#include <string.h> -#include <stdlib.h> -#include "hidapi.h" - -// Headers needed for sleeping. -#ifdef _WIN32 - #include <windows.h> -#else - #include <unistd.h> -#endif - -int main(int argc, char* argv[]) -{ - int res; - unsigned char buf[256]; - #define MAX_STR 255 - wchar_t wstr[MAX_STR]; - hid_device *handle; - int i; - -#ifdef WIN32 - UNREFERENCED_PARAMETER(argc); - UNREFERENCED_PARAMETER(argv); -#endif - - struct hid_device_info *devs, *cur_dev; - - if (hid_init()) - return -1; - - devs = hid_enumerate(0x0, 0x0); - cur_dev = devs; - while (cur_dev) { - printf("Device Found\n type: %04hx %04hx\n path: %s\n serial_number: %ls", cur_dev->vendor_id, cur_dev->product_id, cur_dev->path, cur_dev->serial_number); - printf("\n"); - printf(" Manufacturer: %ls\n", cur_dev->manufacturer_string); - printf(" Product: %ls\n", cur_dev->product_string); - printf(" Release: %hx\n", cur_dev->release_number); - printf(" Interface: %d\n", cur_dev->interface_number); - printf("\n"); - cur_dev = cur_dev->next; - } - hid_free_enumeration(devs); - - // Set up the command buffer. - memset(buf,0x00,sizeof(buf)); - buf[0] = 0x01; - buf[1] = 0x81; - - - // Open the device using the VID, PID, - // and optionally the Serial number. - ////handle = hid_open(0x4d8, 0x3f, L"12345"); - handle = hid_open(0x4d8, 0x3f, NULL); - if (!handle) { - printf("unable to open device\n"); - return 1; - } - - // Read the Manufacturer String - wstr[0] = 0x0000; - res = hid_get_manufacturer_string(handle, wstr, MAX_STR); - if (res < 0) - printf("Unable to read manufacturer string\n"); - printf("Manufacturer String: %ls\n", wstr); - - // Read the Product String - wstr[0] = 0x0000; - res = hid_get_product_string(handle, wstr, MAX_STR); - if (res < 0) - printf("Unable to read product string\n"); - printf("Product String: %ls\n", wstr); - - // Read the Serial Number String - wstr[0] = 0x0000; - res = hid_get_serial_number_string(handle, wstr, MAX_STR); - if (res < 0) - printf("Unable to read serial number string\n"); - printf("Serial Number String: (%d) %ls", wstr[0], wstr); - printf("\n"); - - // Read Indexed String 1 - wstr[0] = 0x0000; - res = hid_get_indexed_string(handle, 1, wstr, MAX_STR); - if (res < 0) - printf("Unable to read indexed string 1\n"); - printf("Indexed String 1: %ls\n", wstr); - - // Set the hid_read() function to be non-blocking. - hid_set_nonblocking(handle, 1); - - // Try to read from the device. There shoud be no - // data here, but execution should not block. - res = hid_read(handle, buf, 17); - - // Send a Feature Report to the device - buf[0] = 0x2; - buf[1] = 0xa0; - buf[2] = 0x0a; - buf[3] = 0x00; - buf[4] = 0x00; - res = hid_send_feature_report(handle, buf, 17); - if (res < 0) { - printf("Unable to send a feature report.\n"); - } - - memset(buf,0,sizeof(buf)); - - // Read a Feature Report from the device - buf[0] = 0x2; - res = hid_get_feature_report(handle, buf, sizeof(buf)); - if (res < 0) { - printf("Unable to get a feature report.\n"); - printf("%ls", hid_error(handle)); - } - else { - // Print out the returned buffer. - printf("Feature Report\n "); - for (i = 0; i < res; i++) - printf("%02hhx ", buf[i]); - printf("\n"); - } - - memset(buf,0,sizeof(buf)); - - // Toggle LED (cmd 0x80). The first byte is the report number (0x1). - buf[0] = 0x1; - buf[1] = 0x80; - res = hid_write(handle, buf, 17); - if (res < 0) { - printf("Unable to write()\n"); - printf("Error: %ls\n", hid_error(handle)); - } - - - // Request state (cmd 0x81). The first byte is the report number (0x1). - buf[0] = 0x1; - buf[1] = 0x81; - hid_write(handle, buf, 17); - if (res < 0) - printf("Unable to write() (2)\n"); - - // Read requested state. hid_read() has been set to be - // non-blocking by the call to hid_set_nonblocking() above. - // This loop demonstrates the non-blocking nature of hid_read(). - res = 0; - while (res == 0) { - res = hid_read(handle, buf, sizeof(buf)); - if (res == 0) - printf("waiting...\n"); - if (res < 0) - printf("Unable to read()\n"); - #ifdef WIN32 - Sleep(500); - #else - usleep(500*1000); - #endif - } - - printf("Data read:\n "); - // Print out the returned buffer. - for (i = 0; i < res; i++) - printf("%02hhx ", buf[i]); - printf("\n"); - - hid_close(handle); - - /* Free static HIDAPI objects. */ - hid_exit(); - -#ifdef WIN32 - system("pause"); -#endif - - return 0; -} -- 2.7.4
shibajee/buildroot
package/hidapi/0001-hidtest-dont-use-a-C-source-file-since-it-s-pure-C.patch
patch
mit
11,439
config BR2_PACKAGE_HIDAPI bool "hidapi" depends on BR2_PACKAGE_HAS_UDEV depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL select BR2_PACKAGE_LIBUSB select BR2_PACKAGE_LIBGUDEV select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE help HIDAPI is a multi-platform library which allows an application to interface with USB and Bluetooth HID-Class devices on Windows, Linux, and Mac OS X. http://www.signal11.us/oss/hidapi/ comment "hidapi needs udev /dev management and a toolchain w/ NPTL threads" depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL || !BR2_PACKAGE_HAS_UDEV
shibajee/buildroot
package/hidapi/Config.in
in
mit
574
# Locally calculated sha256 f2ffe5dbba12dfa0a647ae71b1ec5612fed4c20322ef6f6fd46f6f9713ed1a8e hidapi-b5b2e1779b6cd2edda3066bbbf0921a2d6b1c3c0.tar.gz
shibajee/buildroot
package/hidapi/hidapi.hash
hash
mit
149
################################################################################ # # hidapi # ################################################################################ # Use master version as the current stable is very old and some bugs # have been fixed since then. HIDAPI_VERSION = b5b2e1779b6cd2edda3066bbbf0921a2d6b1c3c0 HIDAPI_SITE = $(call github,signal11,hidapi,$(HIDAPI_VERSION)) HIDAPI_INSTALL_STAGING = YES # No configure provided, so we need to autoreconf. HIDAPI_AUTORECONF = YES HIDAPI_LICENSE = GPLv3 or BSD-3c or HIDAPI license HIDAPI_LICENSE_FILES = LICENSE.txt LICENSE-gpl3.txt LICENSE-bsd.txt LICENSE-orig.txt HIDAPI_DEPENDENCIES = libusb libgudev ifeq ($(BR2_PACKAGE_LIBICONV),y) HIDAPI_DEPENDENCIES += libiconv HIDAPI_CONF_ENV += LIBS="-liconv" endif $(eval $(autotools-package))
shibajee/buildroot
package/hidapi/hidapi.mk
mk
mit
811
From 8057821706784608b828e769ccefbced95591e50 Mon Sep 17 00:00:00 2001 From: Jouni Malinen <j@w1.fi> Date: Sun, 1 Nov 2015 18:18:17 +0200 Subject: [PATCH] EAP-pwd peer: Fix last fragment length validation All but the last fragment had their length checked against the remaining room in the reassembly buffer. This allowed a suitably constructed last fragment frame to try to add extra data that would go beyond the buffer. The length validation code in wpabuf_put_data() prevents an actual buffer write overflow from occurring, but this results in process termination. (CVE-2015-5315) Signed-off-by: Jouni Malinen <j@w1.fi> --- src/eap_peer/eap_pwd.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/eap_peer/eap_pwd.c b/src/eap_peer/eap_pwd.c index 1f78544..75ceef1 100644 --- a/src/eap_peer/eap_pwd.c +++ b/src/eap_peer/eap_pwd.c @@ -903,7 +903,7 @@ eap_pwd_process(struct eap_sm *sm, void *priv, struct eap_method_ret *ret, /* * buffer and ACK the fragment */ - if (EAP_PWD_GET_MORE_BIT(lm_exch)) { + if (EAP_PWD_GET_MORE_BIT(lm_exch) || data->in_frag_pos) { data->in_frag_pos += len; if (data->in_frag_pos > wpabuf_size(data->inbuf)) { wpa_printf(MSG_INFO, "EAP-pwd: Buffer overflow attack " @@ -916,7 +916,8 @@ eap_pwd_process(struct eap_sm *sm, void *priv, struct eap_method_ret *ret, return NULL; } wpabuf_put_data(data->inbuf, pos, len); - + } + if (EAP_PWD_GET_MORE_BIT(lm_exch)) { resp = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_PWD, EAP_PWD_HDR_SIZE, EAP_CODE_RESPONSE, eap_get_id(reqData)); @@ -930,10 +931,8 @@ eap_pwd_process(struct eap_sm *sm, void *priv, struct eap_method_ret *ret, * we're buffering and this is the last fragment */ if (data->in_frag_pos) { - wpabuf_put_data(data->inbuf, pos, len); wpa_printf(MSG_DEBUG, "EAP-pwd: Last fragment, %d bytes", (int) len); - data->in_frag_pos += len; pos = wpabuf_head_u8(data->inbuf); len = data->in_frag_pos; } -- 1.9.1
shibajee/buildroot
package/hostapd/0001-EAP-pwd-peer-Fix-last-fragment-length-validation.patch
patch
mit
1,999
From bef802ece03f9ae9d52a21f0cf4f1bc2c5a1f8aa Mon Sep 17 00:00:00 2001 From: Jouni Malinen <j@w1.fi> Date: Sun, 1 Nov 2015 18:24:16 +0200 Subject: [PATCH] EAP-pwd server: Fix last fragment length validation All but the last fragment had their length checked against the remaining room in the reassembly buffer. This allowed a suitably constructed last fragment frame to try to add extra data that would go beyond the buffer. The length validation code in wpabuf_put_data() prevents an actual buffer write overflow from occurring, but this results in process termination. (CVE-2015-5314) Signed-off-by: Jouni Malinen <j@w1.fi> --- src/eap_server/eap_server_pwd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/eap_server/eap_server_pwd.c b/src/eap_server/eap_server_pwd.c index cb83ff7..9f787ab 100644 --- a/src/eap_server/eap_server_pwd.c +++ b/src/eap_server/eap_server_pwd.c @@ -970,7 +970,7 @@ static void eap_pwd_process(struct eap_sm *sm, void *priv, /* * the first and all intermediate fragments have the M bit set */ - if (EAP_PWD_GET_MORE_BIT(lm_exch)) { + if (EAP_PWD_GET_MORE_BIT(lm_exch) || data->in_frag_pos) { if ((data->in_frag_pos + len) > wpabuf_size(data->inbuf)) { wpa_printf(MSG_DEBUG, "EAP-pwd: Buffer overflow " "attack detected! (%d+%d > %d)", @@ -981,6 +981,8 @@ static void eap_pwd_process(struct eap_sm *sm, void *priv, } wpabuf_put_data(data->inbuf, pos, len); data->in_frag_pos += len; + } + if (EAP_PWD_GET_MORE_BIT(lm_exch)) { wpa_printf(MSG_DEBUG, "EAP-pwd: Got a %d byte fragment", (int) len); return; @@ -990,8 +992,6 @@ static void eap_pwd_process(struct eap_sm *sm, void *priv, * buffering fragments so that's how we know it's the last) */ if (data->in_frag_pos) { - wpabuf_put_data(data->inbuf, pos, len); - data->in_frag_pos += len; pos = wpabuf_head_u8(data->inbuf); len = data->in_frag_pos; wpa_printf(MSG_DEBUG, "EAP-pwd: Last fragment, %d bytes", -- 1.9.1
shibajee/buildroot
package/hostapd/0002-EAP-pwd-server-Fix-last-fragment-length-validation.patch
patch
mit
1,996
From 67ba6ed9871b2cab16eeee93818f05d9c49ccbab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Krause?= <joerg.krause@embedded.rocks> Date: Tue, 8 Mar 2016 12:05:01 +0100 Subject: [PATCH] vlan: fix musl build error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit caddr_t is legacy BSD and should be avoided [1]. This fixes compile errors with the musl libc: ../src/ap/vlan_init.c: In function 'br_delif': ../src/ap/vlan_init.c:218:18: error: '__caddr_t' undeclared (first use in this function) ifr.ifr_data = (__caddr_t) args; Upstream status: Pending [2] [1] http://stackoverflow.com/questions/6381526/what-is-the-significance-of-caddr-t-and-when-is-it-used [2] http://lists.infradead.org/pipermail/hostap/2016-March/035350.html Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks> --- src/ap/vlan_init.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ap/vlan_init.c b/src/ap/vlan_init.c index fd1c8dd..1670c0d 100644 --- a/src/ap/vlan_init.c +++ b/src/ap/vlan_init.c @@ -215,7 +215,7 @@ static int br_delif(const char *br_name, const char *if_name) args[1] = if_index; os_strlcpy(ifr.ifr_name, br_name, sizeof(ifr.ifr_name)); - ifr.ifr_data = (__caddr_t) args; + ifr.ifr_data = (void *) args; if (ioctl(fd, SIOCDEVPRIVATE, &ifr) < 0 && errno != EINVAL) { /* No error if interface already removed. */ @@ -266,7 +266,7 @@ static int br_addif(const char *br_name, const char *if_name) args[1] = if_index; os_strlcpy(ifr.ifr_name, br_name, sizeof(ifr.ifr_name)); - ifr.ifr_data = (__caddr_t) args; + ifr.ifr_data = (void *) args; if (ioctl(fd, SIOCDEVPRIVATE, &ifr) < 0) { if (errno == EBUSY) { @@ -394,7 +394,7 @@ static int br_getnumports(const char *br_name) os_memset(ifindices, 0, sizeof(ifindices)); os_strlcpy(ifr.ifr_name, br_name, sizeof(ifr.ifr_name)); - ifr.ifr_data = (__caddr_t) arg; + ifr.ifr_data = (void *) arg; if (ioctl(fd, SIOCDEVPRIVATE, &ifr) < 0) { wpa_printf(MSG_ERROR, "VLAN: %s: BRCTL_GET_PORT_LIST " -- 2.7.2
shibajee/buildroot
package/hostapd/0003-vlan-fix-musl-build-error.patch
patch
mit
2,065
From 71a517e922c91e2c6cad28d339a081b5f6de0932 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Krause?= <joerg.krause@embedded.rocks> Date: Tue, 8 Mar 2016 21:07:12 +0100 Subject: [PATCH] vlan: fix musl libc conflict with Linux kernel headers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Due to both <netinet/in.h> (in "utils/includes.h") and <linux/in6.h> (in <linux/if_bridge.h>) being included, the in6_addr is being redefined: once from the C library headers and once from the Linux kernel headers. This causes some build failures with for example the musl C library: In file included from /usr/include/linux/if_bridge.h:18, from ../src/ap/vlan_init.c:17: /usr/include/linux/in6.h:32: error: redefinition of 'struct in6_addr' /usr/include/linux/in6.h:49: error: redefinition of 'struct sockaddr_in6' /usr/include/linux/in6.h:59: error: redefinition of 'struct ipv6_mreq' Mixing C library and Linux kernel headers is a bit problematic [1] and should be avoided if possible [2]. In order to fix this, define just the macros needed from <linux/if_bridge.h> as done in Busybox for the brctl applet [3]. Upstream status: Pending [4] [1] https://sourceware.org/bugzilla/show_bug.cgi?id=15850 [2] http://www.openwall.com/lists/musl/2015/10/06/1 [3] https://git.busybox.net/busybox/commit/?id=5fa6d1a632505789409a2ba6cf8e112529f9db18 [4] http://lists.infradead.org/pipermail/hostap/2016-March/035357.html Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks> --- src/ap/vlan_init.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/ap/vlan_init.c b/src/ap/vlan_init.c index 1670c0d..f2e3da0 100644 --- a/src/ap/vlan_init.c +++ b/src/ap/vlan_init.c @@ -14,7 +14,16 @@ #include <sys/ioctl.h> #include <linux/sockios.h> #include <linux/if_vlan.h> -#include <linux/if_bridge.h> +/* From <linux/if_bridge.h> */ +#define BRCTL_GET_VERSION 0 +#define BRCTL_GET_BRIDGES 1 +#define BRCTL_ADD_BRIDGE 2 +#define BRCTL_DEL_BRIDGE 3 +#define BRCTL_ADD_IF 4 +#define BRCTL_DEL_IF 5 +#define BRCTL_GET_BRIDGE_INFO 6 +#define BRCTL_GET_PORT_LIST 7 +#define BRCTL_SET_BRIDGE_FORWARD_DELAY 8 #endif /* CONFIG_FULL_DYNAMIC_VLAN */ #include "utils/common.h" -- 2.7.2
shibajee/buildroot
package/hostapd/0004-vlan-fix-musl-libc-conflict-with-Linux-kernel-header.patch
patch
mit
2,263
From ecbb0b3dc122b0d290987cf9c84010bbe53e1022 Mon Sep 17 00:00:00 2001 From: Jouni Malinen <jouni@qca.qualcomm.com> Date: Fri, 4 Mar 2016 17:20:18 +0200 Subject: [PATCH] WPS: Reject a Credential with invalid passphrase WPA/WPA2-Personal passphrase is not allowed to include control characters. Reject a Credential received from a WPS Registrar both as STA (Credential) and AP (AP Settings) if the credential is for WPAPSK or WPA2PSK authentication type and includes an invalid passphrase. This fixes an issue where hostapd or wpa_supplicant could have updated the configuration file PSK/passphrase parameter with arbitrary data from an external device (Registrar) that may not be fully trusted. Should such data include a newline character, the resulting configuration file could become invalid and fail to be parsed. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com> Signed-off-by: Baruch Siach <baruch@tkos.co.il> --- Patch status: upstream (ecbb0b3dc122b0d290987cf9c84010bbe53e1022) src/utils/common.c | 12 ++++++++++++ src/utils/common.h | 1 + src/wps/wps_attr_process.c | 10 ++++++++++ 3 files changed, 23 insertions(+) diff --git a/src/utils/common.c b/src/utils/common.c index 450e2c6519ba..27b7c02de10b 100644 --- a/src/utils/common.c +++ b/src/utils/common.c @@ -697,6 +697,18 @@ int is_hex(const u8 *data, size_t len) } +int has_ctrl_char(const u8 *data, size_t len) +{ + size_t i; + + for (i = 0; i < len; i++) { + if (data[i] < 32 || data[i] == 127) + return 1; + } + return 0; +} + + size_t merge_byte_arrays(u8 *res, size_t res_len, const u8 *src1, size_t src1_len, const u8 *src2, size_t src2_len) diff --git a/src/utils/common.h b/src/utils/common.h index 701dbb236ed5..a97224070385 100644 --- a/src/utils/common.h +++ b/src/utils/common.h @@ -488,6 +488,7 @@ const char * wpa_ssid_txt(const u8 *ssid, size_t ssid_len); char * wpa_config_parse_string(const char *value, size_t *len); int is_hex(const u8 *data, size_t len); +int has_ctrl_char(const u8 *data, size_t len); size_t merge_byte_arrays(u8 *res, size_t res_len, const u8 *src1, size_t src1_len, const u8 *src2, size_t src2_len); diff --git a/src/wps/wps_attr_process.c b/src/wps/wps_attr_process.c index eadb22fe2e78..e8c4579309ab 100644 --- a/src/wps/wps_attr_process.c +++ b/src/wps/wps_attr_process.c @@ -229,6 +229,16 @@ static int wps_workaround_cred_key(struct wps_credential *cred) cred->key_len--; #endif /* CONFIG_WPS_STRICT */ } + + + if (cred->auth_type & (WPS_AUTH_WPAPSK | WPS_AUTH_WPA2PSK) && + (cred->key_len < 8 || has_ctrl_char(cred->key, cred->key_len))) { + wpa_printf(MSG_INFO, "WPS: Reject credential with invalid WPA/WPA2-Personal passphrase"); + wpa_hexdump_ascii_key(MSG_INFO, "WPS: Network Key", + cred->key, cred->key_len); + return -1; + } + return 0; } -- 2.8.1
shibajee/buildroot
package/hostapd/0005-WPS-Reject-a-Credential-with-invalid-passphrase.patch
patch
mit
2,859
config BR2_PACKAGE_HOSTAPD bool "hostapd" depends on BR2_TOOLCHAIN_HAS_THREADS # libnl depends on BR2_USE_MMU # fork() select BR2_PACKAGE_LIBNL help User space daemon for wireless access points. It implements IEEE 802.11 access point management, IEEE 802.1X/WPA/WPA2/EAP authenticators, RADIUS client, EAP server and RADIUS authentication server. http://hostap.epitest.fi/ if BR2_PACKAGE_HOSTAPD config BR2_PACKAGE_HOSTAPD_ACS bool "Enable ACS" default y help Enable support for standard ACS (Automatic Channel Selection). Some propietary drivers use a custom algorithm which requires channel to be set to '0' (which enables ACS in the config), causing hostapd to use the standard one which doesn't work for those cases. config BR2_PACKAGE_HOSTAPD_EAP bool "Enable EAP" depends on !BR2_STATIC_LIBS help Enable support for EAP and RADIUS. comment "hostapd EAP needs a toolchain w/ dynamic library" depends on BR2_STATIC_LIBS config BR2_PACKAGE_HOSTAPD_WPS bool "Enable WPS" help Enable support for Wi-Fi Protected Setup. endif comment "hostapd needs a toolchain w/ threads" depends on !BR2_TOOLCHAIN_HAS_THREADS depends on BR2_USE_MMU
shibajee/buildroot
package/hostapd/Config.in
in
mit
1,195
# Locally calculated sha256 8e272d954dc0d7026c264b79b15389ec2b2c555b32970de39f506b9f463ec74a hostapd-2.5.tar.gz
shibajee/buildroot
package/hostapd/hostapd.hash
hash
mit
113
################################################################################ # # hostapd # ################################################################################ HOSTAPD_VERSION = 2.5 HOSTAPD_SITE = http://hostap.epitest.fi/releases HOSTAPD_SUBDIR = hostapd HOSTAPD_CONFIG = $(HOSTAPD_DIR)/$(HOSTAPD_SUBDIR)/.config HOSTAPD_DEPENDENCIES = host-pkgconf libnl HOSTAPD_CFLAGS = $(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include/libnl3/ HOSTAPD_LICENSE = BSD-3c HOSTAPD_LICENSE_FILES = README HOSTAPD_CONFIG_SET = HOSTAPD_CONFIG_ENABLE = \ CONFIG_FULL_DYNAMIC_VLAN \ CONFIG_HS20 \ CONFIG_IEEE80211AC \ CONFIG_IEEE80211N \ CONFIG_IEEE80211R \ CONFIG_INTERNAL_LIBTOMMATH \ CONFIG_INTERWORKING \ CONFIG_LIBNL32 \ CONFIG_VLAN_NETLINK HOSTAPD_CONFIG_DISABLE = # libnl-3 needs -lm (for rint) and -lpthread if linking statically # And library order matters hence stick -lnl-3 first since it's appended # in the hostapd Makefiles as in LIBS+=-lnl-3 ... thus failing ifeq ($(BR2_STATIC_LIBS),y) HOSTAPD_LIBS += -lnl-3 -lm -lpthread endif # Try to use openssl if it's already available ifeq ($(BR2_PACKAGE_OPENSSL),y) HOSTAPD_DEPENDENCIES += openssl HOSTAPD_LIBS += $(if $(BR2_STATIC_LIBS),-lcrypto -lz) HOSTAPD_CONFIG_EDITS += 's/\#\(CONFIG_TLS=openssl\)/\1/' else HOSTAPD_CONFIG_DISABLE += CONFIG_EAP_PWD HOSTAPD_CONFIG_EDITS += 's/\#\(CONFIG_TLS=\).*/\1internal/' endif ifeq ($(BR2_PACKAGE_HOSTAPD_ACS),y) HOSTAPD_CONFIG_ENABLE += CONFIG_ACS endif ifeq ($(BR2_PACKAGE_HOSTAPD_EAP),y) HOSTAPD_CONFIG_ENABLE += \ CONFIG_EAP \ CONFIG_RADIUS_SERVER \ # Enable both TLS v1.1 (CONFIG_TLSV11) and v1.2 (CONFIG_TLSV12) HOSTAPD_CONFIG_ENABLE += CONFIG_TLSV1 else HOSTAPD_CONFIG_DISABLE += CONFIG_EAP HOSTAPD_CONFIG_ENABLE += \ CONFIG_NO_ACCOUNTING \ CONFIG_NO_RADIUS endif ifeq ($(BR2_PACKAGE_HOSTAPD_WPS),y) HOSTAPD_CONFIG_ENABLE += CONFIG_WPS endif define HOSTAPD_CONFIGURE_CMDS cp $(@D)/hostapd/defconfig $(HOSTAPD_CONFIG) sed -i $(patsubst %,-e 's/^#\(%\)/\1/',$(HOSTAPD_CONFIG_ENABLE)) \ $(patsubst %,-e 's/^\(%\)/#\1/',$(HOSTAPD_CONFIG_DISABLE)) \ $(patsubst %,-e '1i%=y',$(HOSTAPD_CONFIG_SET)) \ $(patsubst %,-e %,$(HOSTAPD_CONFIG_EDITS)) \ $(HOSTAPD_CONFIG) endef define HOSTAPD_BUILD_CMDS $(TARGET_MAKE_ENV) CFLAGS="$(HOSTAPD_CFLAGS)" \ LDFLAGS="$(TARGET_LDFLAGS)" LIBS="$(HOSTAPD_LIBS)" \ $(MAKE) CC="$(TARGET_CC)" -C $(@D)/$(HOSTAPD_SUBDIR) endef define HOSTAPD_INSTALL_TARGET_CMDS $(INSTALL) -m 0755 -D $(@D)/$(HOSTAPD_SUBDIR)/hostapd \ $(TARGET_DIR)/usr/sbin/hostapd $(INSTALL) -m 0755 -D $(@D)/$(HOSTAPD_SUBDIR)/hostapd_cli \ $(TARGET_DIR)/usr/bin/hostapd_cli $(INSTALL) -m 0644 -D $(@D)/$(HOSTAPD_SUBDIR)/hostapd.conf \ $(TARGET_DIR)/etc/hostapd.conf endef $(eval $(generic-package))
shibajee/buildroot
package/hostapd/hostapd.mk
mk
mit
2,739
From 1eed2b65eff4c66b80eab0ec46c6705de19bdb9d Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Date: Thu, 21 Jan 2016 23:54:03 +0100 Subject: [PATCH] build: use pkg-config to discover libusb This allows to remove hardcoded paths to libusb headers. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> --- Makefile.am | 4 ++-- configure.in | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Makefile.am b/Makefile.am index 73fed2e..3a4e899 100644 --- a/Makefile.am +++ b/Makefile.am @@ -92,8 +92,8 @@ libhpmud_la_SOURCES += io/hpmud/musb_libusb01.c libhpmud_la_LDFLAGS += -lusb else libhpmud_la_SOURCES += io/hpmud/musb.c -libhpmud_la_CFLAGS += -I/usr/include/libusb-1.0 -libhpmud_la_LDFLAGS += -lusb-1.0 +libhpmud_la_CFLAGS += $(LIBUSB_CFLAGS) +libhpmud_la_LDFLAGS += $(LIBUSB_LIBS) endif if NETWORK_BUILD diff --git a/configure.in b/configure.in index 3706645..8b06428 100755 --- a/configure.in +++ b/configure.in @@ -542,8 +542,7 @@ if test "$hpijs_only_build" = "no" && test "$hpcups_only_build" = "no"; then AC_CHECK_LIB([usb], [usb_init], [LIBS="$LIBS"], [AC_MSG_ERROR([cannot find libusb support], 2)]) AC_CHECK_HEADERS(usb.h, ,[AC_MSG_ERROR([cannot find libusb-devel support], 11)]) else - AC_CHECK_LIB([usb-1.0], [libusb_init], [LIBS="$LIBS"], [AC_MSG_ERROR([cannot find libusb 1.0 support], 2)]) - AC_CHECK_HEADERS(libusb-1.0/libusb.h, ,[AC_MSG_ERROR([cannot find libusb-1.0-devel support], 11)]) + PKG_CHECK_MODULES([LIBUSB], [libusb-1.0]) fi fi -- 2.6.4
shibajee/buildroot
package/hplip/0001-build-use-pkg-config-to-discover-libusb.patch
patch
mit
1,597
From a2de7e834417de68db10dc6f09d5810b06e6cbc8 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Date: Thu, 21 Jan 2016 23:54:50 +0100 Subject: [PATCH] configure.in: fix AM_INIT_AUTOMAKE call Uncomment the appropriate call to AM_INIT_AUTOMAKE so that the "foreign" option is passed, which avoids the need for creating various unneeded files when autoreconfiguring. Add the subdir-objects options since the main Makefile.am references files in subdirectories. This allows to silence a huge amount of warning when autoreconfiguring. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> --- configure.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/configure.in b/configure.in index 8b06428..680cad5 100755 --- a/configure.in +++ b/configure.in @@ -27,8 +27,7 @@ #AC_PREREQ(2.59) AC_INIT([HP Linux Imaging and Printing], [3.15.11], [3.15.11], [hplip]) -#AM_INIT_AUTOMAKE([1.9 foreign]) -AM_INIT_AUTOMAKE +AM_INIT_AUTOMAKE([1.9 foreign subdir-objects]) AC_DISABLE_STATIC # Checks for programs. -- 2.6.4
shibajee/buildroot
package/hplip/0002-configure.in-fix-AM_INIT_AUTOMAKE-call.patch
patch
mit
1,090
config BR2_PACKAGE_HPLIP bool "hplip" depends on BR2_INSTALL_LIBSTDCPP depends on BR2_PACKAGE_CUPS depends on BR2_TOOLCHAIN_HAS_THREADS # libusb depends on !BR2_STATIC_LIBS # libdl select BR2_PACKAGE_LIBUSB select BR2_PACKAGE_JPEG help HP Linux Imaging and Printing (HPLIP) HPLIP is an HP-developed solution for printing, scanning, and faxing with HP inkjet and laser based printers in Linux. The HPLIP project provides printing support for 2,211 printer models, including Deskjet, Officejet, Photosmart, PSC (Print Scan Copy), Business Inkjet, LaserJet, Edgeline MFP, and LaserJet MFP. http://hplipopensource.com/ comment "hplip needs a toolchain w/ C++, threads, dynamic library" depends on BR2_PACKAGE_CUPS depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS || \ BR2_STATIC_LIBS
shibajee/buildroot
package/hplip/Config.in
in
mit
830
# Locally computed: sha256 33c4711bde04a34b81f3f70e6277a0375dded171469e5aa8b9cef1a14a407c6d hplip-3.15.11.tar.gz
shibajee/buildroot
package/hplip/hplip.hash
hash
mit
115
################################################################################ # # hplip # ################################################################################ HPLIP_VERSION = 3.15.11 HPLIP_SITE = http://downloads.sourceforge.net/hplip/hplip HPLIP_AUTORECONF = YES HPLIP_DEPENDENCIES = cups libusb jpeg host-pkgconf HPLIP_LICENSE = GPLv2 BSD-3c MIT HPLIP_LICENSE_FILES = COPYING HPLIP_CONF_OPTS = \ --disable-qt4 \ --disable-scan-build \ --disable-gui-build \ --disable-doc-build \ --disable-network-build \ --enable-hpcups-install \ --disable-hpijs-install \ --enable-cups-ppd-install \ --enable-cups-drv-install \ --disable-foomatic-ppd-install \ --disable-foomatic-drv-install \ --disable-foomatic-rip-hplip-install \ --enable-new-hpcups \ --enable-lite-build # build system does not support cups-config HPLIP_CONF_ENV = LIBS=`$(STAGING_DIR)/usr/bin/cups-config --libs` ifeq ($(BR2_PACKAGE_DBUS),y) HPLIP_CONF_OPTS += --enable-dbus-build HPLIP_DEPENDENCIES += dbus else HPLIP_CONF_OPTS += --disable-dbus-build endif define HPLIP_POST_INSTALL_TARGET_FIXUP mkdir -p $(TARGET_DIR)/usr/share/hplip/data/models cp $(@D)/data/models/* $(TARGET_DIR)/usr/share/hplip/data/models endef HPLIP_POST_INSTALL_TARGET_HOOKS += HPLIP_POST_INSTALL_TARGET_FIXUP $(eval $(autotools-package))
shibajee/buildroot
package/hplip/hplip.mk
mk
mit
1,312
config BR2_PACKAGE_HTOP bool "htop" depends on BR2_USE_MMU # fork() select BR2_PACKAGE_NCURSES help htop is an interactive text-mode process viewer for Linux. It aims to be a better top. http://hisham.hm/htop/
shibajee/buildroot
package/htop/Config.in
in
mit
224
# Hashes from: http://www.freelists.org/post/htop/ANN-htop-202 md5 7d354d904bad591a931ad57e99fea84a htop-2.0.2.tar.gz sha1 201f793f13dce2448e36047079875b9bd5bba75a htop-2.0.2.tar.gz
shibajee/buildroot
package/htop/htop.hash
hash
mit
182
################################################################################ # # htop # ################################################################################ HTOP_VERSION = 2.0.2 HTOP_SITE = http://hisham.hm/htop/releases/$(HTOP_VERSION) HTOP_DEPENDENCIES = ncurses HTOP_CONF_OPTS = --disable-unicode # Prevent htop build system from searching the host paths HTOP_CONF_ENV = HTOP_NCURSES_CONFIG_SCRIPT=$(STAGING_DIR)/usr/bin/ncurses5-config HTOP_LICENSE = GPLv2 HTOP_LICENSE_FILES = COPYING $(eval $(autotools-package))
shibajee/buildroot
package/htop/htop.mk
mk
mit
537
Move LDFLAGS+=-lm option to the end. The order of the math library directive '-lm' matters. Signed-off-by: Yuvaraj Patil <yuvaraj.patil@wipro.com> --- diff -Nurp httping-2.3.4_orig/Makefile httping-2.3.4/Makefile --- httping-2.3.4_orig/Makefile 2014-07-23 16:16:36.495546288 +0530 +++ httping-2.3.4/Makefile 2014-07-23 16:18:42.547541002 +0530 @@ -37,7 +37,6 @@ DEBUG=yes WFLAGS=-Wall -W OFLAGS= CFLAGS+=$(WFLAGS) $(OFLAGS) -DVERSION=\"$(VERSION)\" -DLOCALEDIR=\"$(LOCALEDIR)\" -LDFLAGS+=-lm PACKAGE=$(TARGET)-$(VERSION) PREFIX?=/usr @@ -97,6 +96,8 @@ ifeq ($(ARM),yes) CC=arm-linux-gcc endif +LDFLAGS+=-lm + all: $(TARGET) $(TRANSLATIONS) $(TARGET): $(OBJS)
shibajee/buildroot
package/httping/0001-fix-math-library-linking.patch
patch
mit
675
comment "httping needs a toolchain w/ wchar" depends on !BR2_USE_WCHAR config BR2_PACKAGE_HTTPING bool "httping" depends on BR2_USE_WCHAR select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT help Httping is like 'ping' but for http-requests. Give it an url, and it'll show you how long it takes to connect, send a request and retrieve the reply (only the headers). Be aware that the transmission across the network also takes time! So it measures the latency of the webserver + network. http://www.vanheusden.com/httping/ if BR2_PACKAGE_HTTPING config BR2_PACKAGE_HTTPING_TFO bool "TCP Fast Open (TFO) support" endif
shibajee/buildroot
package/httping/Config.in
in
mit
641
# Locally calculated sha256 dab59f02b08bfbbc978c005bb16d2db6fe21e1fc841fde96af3d497ddfc82084 httping-2.4.tgz
shibajee/buildroot
package/httping/httping.hash
hash
mit
109
################################################################################ # # httping # ################################################################################ HTTPING_VERSION = 2.4 HTTPING_SOURCE = httping-$(HTTPING_VERSION).tgz HTTPING_SITE = http://www.vanheusden.com/httping HTTPING_LICENSE = GPLv2 HTTPING_LICENSE_FILES = license.txt HTTPING_LDFLAGS = $(TARGET_LDFLAGS) \ $(if $(BR2_NEEDS_GETTEXT),-lintl) \ $(if $(BR2_PACKAGE_LIBICONV),-liconv) HTTPING_DEPENDENCIES = host-gettext \ $(if $(BR2_NEEDS_GETTEXT),gettext) \ $(if $(BR2_PACKAGE_LIBICONV),libiconv) \ $(if $(BR2_PACKAGE_NCURSES_WCHAR),ncurses) \ $(if $(BR2_PACKAGE_OPENSSL),openssl) \ $(if $(BR2_PACKAGE_FFTW),fftw) HTTPING_MAKE_OPTS = $(TARGET_CONFIGURE_OPTS) \ FW=$(if $(BR2_PACKAGE_FFTW),yes,no) \ NC=$(if $(BR2_PACKAGE_NCURSES_WCHAR),yes,no) \ SSL=$(if $(BR2_PACKAGE_OPENSSL),yes,no) \ TFO=$(if $(BR2_PACKAGE_HTTPING_TFO),yes,no) define HTTPING_BUILD_CMDS $(HTTPING_MAKE_OPTS) LDFLAGS="$(HTTPING_LDFLAGS)" \ $(MAKE) DEBUG=no -C $(@D) endef define HTTPING_INSTALL_TARGET_CMDS $(HTTPING_MAKE_OPTS) $(MAKE) DESTDIR=$(TARGET_DIR) -C $(@D) install endef $(eval $(generic-package))
shibajee/buildroot
package/httping/httping.mk
mk
mit
1,181
config BR2_PACKAGE_HWDATA bool "hwdata" help Various hardware identification and configuration data, such as the pci.ids database, or the XFree86/xorg Cards database.
shibajee/buildroot
package/hwdata/Config.in
in
mit
175
# From http://snapshot.debian.org/archive/debian/20141023T043132Z/pool/main/h/hwdata/hwdata_0.267-1.dsc sha256 d77f2b3f3d6e278be669141ffa5dac01b64cab02f7b2c744bbabc500a45263f4 hwdata_0.267.orig.tar.gz sha256 055d2f168de9333562a04f6a230c43dc19c4975882935d8b2f0ab17f64f57275 hwdata_0.267-1.diff.gz
shibajee/buildroot
package/hwdata/hwdata.hash
hash
mit
296
################################################################################ # # hwdata # ################################################################################ HWDATA_VERSION = 0.267 HWDATA_SOURCE = hwdata_$(HWDATA_VERSION).orig.tar.gz HWDATA_PATCH = hwdata_$(HWDATA_VERSION)-1.diff.gz HWDATA_SITE = http://snapshot.debian.org/archive/debian/20141023T043132Z/pool/main/h/hwdata HWDATA_LICENSE = GPLv2+ or XFree86 1.0 license HWDATA_LICENSE_FILES = COPYING LICENSE define HWDATA_INSTALL_TARGET_CMDS $(INSTALL) -D -m 644 $(@D)/pci.ids $(TARGET_DIR)/usr/share/hwdata/pci.ids $(INSTALL) -D -m 644 $(@D)/usb.ids $(TARGET_DIR)/usr/share/hwdata/usb.ids endef $(eval $(generic-package))
shibajee/buildroot
package/hwdata/hwdata.mk
mk
mit
699
From d5e802c9c2ed8dbe5c937e84bc3ab440218aa8de Mon Sep 17 00:00:00 2001 From: Peter Korsgaard <peter@korsgaard.com> Date: Tue, 12 May 2015 16:03:14 +0200 Subject: [PATCH] utils/hwloc/Makefile.am: fix install-man race condition Make install contains a race condition in utils/hwloc, as both install-exec-hook (through intall-exec) and install-data trigger install-man: http://autobuild.buildroot.net/results/414/41403f8ce4751a27dd1bb9c43f5a97895dea3980/build-end.log The install-exec-hook target doesn't do anything with the manual pages, so fix the race condition by dropping the dependency. Signed-off-by: Peter Korsgaard <peter@korsgaard.com> --- utils/hwloc/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/hwloc/Makefile.am b/utils/hwloc/Makefile.am index 7ca8027..8bbee86 100644 --- a/utils/hwloc/Makefile.am +++ b/utils/hwloc/Makefile.am @@ -108,7 +108,7 @@ endif HWLOC_HAVE_LINUX -e 's/#HWLOC_DATE#/@HWLOC_RELEASE_DATE@/g' \ > $@ < $< -install-exec-hook: install-man +install-exec-hook: $(SED) -e 's/HWLOC_top_builddir\/utils\/hwloc/bindir/' -e 's/HWLOC_top_builddir\/utils\/lstopo/bindir/' -e '/HWLOC_top_builddir/d' $(DESTDIR)$(bindir)/hwloc-assembler-remote > $(DESTDIR)$(bindir)/hwloc-assembler-remote.tmp && mv -f $(DESTDIR)$(bindir)/hwloc-assembler-remote.tmp $(DESTDIR)$(bindir)/hwloc-assembler-remote $(SED) -e 's/HWLOC_top_builddir\/utils\/hwloc/bindir/' -e 's/HWLOC_top_builddir\/utils\/lstopo/bindir/' -e '/HWLOC_top_builddir/d' $(DESTDIR)$(bindir)/hwloc-compress-dir > $(DESTDIR)$(bindir)/hwloc-compress-dir.tmp && mv -f $(DESTDIR)$(bindir)/hwloc-compress-dir.tmp $(DESTDIR)$(bindir)/hwloc-compress-dir chmod +x $(DESTDIR)$(bindir)/hwloc-assembler-remote $(DESTDIR)$(bindir)/hwloc-compress-dir -- 2.1.4
shibajee/buildroot
package/hwloc/0001-utils-hwloc-Makefile.am-fix-install-man-race-conditi.patch
patch
mit
1,781
config BR2_PACKAGE_HWLOC bool "hwloc" depends on BR2_TOOLCHAIN_HAS_THREADS help Portable Hardware Locality Provides a portable abstraction (across OS, versions, architectures, ...) of the hierarchical topology of modern architectures, including NUMA memory nodes, sockets, shared caches, cores and simultaneous multithreading. http://www.open-mpi.org/projects/hwloc/ comment "hwloc needs a toolchain w/ threads" depends on !BR2_TOOLCHAIN_HAS_THREADS
shibajee/buildroot
package/hwloc/Config.in
in
mit
476
# From http://www.open-mpi.org/software/hwloc/v1.10/ sha1 76291124e4638b2fbd4deb4cc3cd680e153077b5 hwloc-1.10.1.tar.bz2
shibajee/buildroot
package/hwloc/hwloc.hash
hash
mit
120
################################################################################ # # hwloc # ################################################################################ HWLOC_VERSION_MAJOR = 1.10 HWLOC_VERSION = $(HWLOC_VERSION_MAJOR).1 HWLOC_SOURCE = hwloc-$(HWLOC_VERSION).tar.bz2 HWLOC_SITE = http://www.open-mpi.org/software/hwloc/v$(HWLOC_VERSION_MAJOR)/downloads HWLOC_LICENSE = BSD-3c HWLOC_LICENSE_FILES = COPYING HWLOC_DEPENDENCIES = host-pkgconf # 0001-utils-hwloc-Makefile.am-fix-install-man-race-conditi.patch touches Makefile.am HWLOC_AUTORECONF = YES HWLOC_CONF_OPTS = \ --disable-opencl \ --disable-cuda \ --disable-nvml \ --disable-gl \ --disable-cairo \ --disable-libxml2 \ --disable-doxygen ifeq ($(BR2_PACKAGE_LIBPCIACCESS),y) HWLOC_CONF_OPTS += --enable-pci HWLOC_DEPENDENCIES += libpciaccess else HWLOC_CONF_OPTS += --disable-pci endif ifeq ($(BR2_PACKAGE_NUMACTL),y) HWLOC_CONF_OPTS += --enable-libnuma HWLOC_DEPENDENCIES += numactl else HWLOC_CONF_OPTS += --disable-libnuma endif $(eval $(autotools-package))
shibajee/buildroot
package/hwloc/hwloc.mk
mk
mit
1,049
config BR2_PACKAGE_I2C_TOOLS bool "i2c-tools" depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS help Heterogeneous set of I2C tools for Linux This package contains a heterogeneous set of I2C tools for Linux: a bus probing tool, a chip dumper, register-level access helpers, EEPROM decoding scripts, and more. http://www.lm-sensors.org/wiki/I2CTools
shibajee/buildroot
package/i2c-tools/Config.in
in
mit
362
################################################################################ # # i2c-tools # ################################################################################ I2C_TOOLS_VERSION = v3.1.2 I2C_TOOLS_SITE = git://git.kernel.org/pub/scm/utils/i2c-tools/i2c-tools.git I2C_TOOLS_LICENSE = GPLv2+, GPLv2 (py-smbus) I2C_TOOLS_LICENSE_FILES = COPYING ifeq ($(BR2_PACKAGE_PYTHON),y) I2C_TOOLS_DEPENDENCIES += python endif ifeq ($(BR2_PACKAGE_PYTHON3),y) I2C_TOOLS_DEPENDENCIES += python3 endif ifeq ($(BR2_PACKAGE_BUSYBOX),y) I2C_TOOLS_DEPENDENCIES += busybox endif # Build/install steps mirror the distutil python package type in the python package # infrastructure ifeq ($(BR2_PACKAGE_PYTHON)$(BR2_PACKAGE_PYTHON3),y) # BASE_ENV taken from PKG_PYTHON_DISTUTILS_ENV in package/pkg-python.mk I2C_TOOLS_PYTHON_BASE_ENV = \ $(PKG_PYTHON_DISTUTILS_ENV) \ CFLAGS="$(TARGET_CFLAGS) -I../include" define I2C_TOOLS_BUILD_PYSMBUS (cd $(@D)/py-smbus; \ $(I2C_TOOLS_PYTHON_BASE_ENV) \ $(HOST_DIR)/usr/bin/python setup.py build \ $(PKG_PYTHON_DISTUTILS_BUILD_OPTS)) endef define I2C_TOOLS_INSTALL_PYSMBUS (cd $(@D)/py-smbus; \ $(I2C_TOOLS_PYTHON_BASE_ENV) \ $(HOST_DIR)/usr/bin/python setup.py install \ $(PKG_PYTHON_DISTUTILS_INSTALL_TARGET_OPTS)) endef endif # BR2_PACKAGE_PYTHON define I2C_TOOLS_BUILD_CMDS $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) $(I2C_TOOLS_BUILD_PYSMBUS) endef define I2C_TOOLS_INSTALL_TARGET_CMDS for i in i2cdump i2cget i2cset i2cdetect; \ do \ $(INSTALL) -m 755 -D $(@D)/tools/$$i $(TARGET_DIR)/usr/sbin/$$i; \ done $(I2C_TOOLS_INSTALL_PYSMBUS) endef $(eval $(generic-package))
shibajee/buildroot
package/i2c-tools/i2c-tools.mk
mk
mit
1,636
config BR2_PACKAGE_I7Z bool "i7z" depends on BR2_i386 || BR2_x86_64 depends on BR2_TOOLCHAIN_HAS_THREADS select BR2_PACKAGE_NCURSES help "A better i7 (and now i3, i5) reporting tool for Linux." i7z can print out the C-states and temperature for i3, i5 and i7 based Core processors from Intel (including Nehalems, Sandy Bridge and Ivy Bridge). https://github.com/ajaiantilal/i7z comment "i7z needs a toolchain w/ threads" depends on BR2_i386 || BR2_x86_64 depends on !BR2_TOOLCHAIN_HAS_THREADS
shibajee/buildroot
package/i7z/Config.in
in
mit
518
# Locally computed: sha256 e127bddf850e7febd39cef2d2b13dca5fe19cc2a1bb1099d72b683be5d8bd1c0 i7z-5023138d7c35c4667c938b853e5ea89737334e92.tar.gz
shibajee/buildroot
package/i7z/i7z.hash
hash
mit
144
################################################################################ # # i7z # ################################################################################ I7Z_VERSION = 5023138d7c35c4667c938b853e5ea89737334e92 I7Z_SITE = $(call github,ajaiantilal,i7z,$(I7Z_VERSION)) I7Z_LICENSE = GPLv2 I7Z_LICENSE_FILES = COPYING I7Z_DEPENDENCIES = ncurses define I7Z_BUILD_CMDS $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) endef define I7Z_INSTALL_TARGET_CMDS $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) install \ DESTDIR="$(TARGET_DIR)" endef $(eval $(generic-package))
shibajee/buildroot
package/i7z/i7z.mk
mk
mit
615
From d667b13a87cf3207599a19eb981a893a1d7a67ee Mon Sep 17 00:00:00 2001 From: Brendan Heading <brendanheading@gmail.com> Date: Mon, 14 Sep 2015 23:25:52 +0100 Subject: [PATCH 1/1] ibrcommon/data/File.cpp: support POSIX basename call Firstly, and somewhat strangely, musl chooses not to provide a basename(3) prototype within <string.h> whenever __cplusplus is defined. This can be solved by including the <libgen.h> header defined by POSIX 1003.1 whenever __GLIBC__ is not defined. However, this leads to a second problem. POSIX defines the function as char* basename(char*) and this is the only version supported by musl. However, the std::string.cstr() method returns a const char*. POSIX says that the string parameter can be modified. However the GNU implementation never modifies it. glibc therefore supports an extension when compiling under C++ by also supplying const char* basename(const char*). This extension is not present on musl which is the cause of the failure. The solution is reasonably straightforward; test if __GLIBC__ is defined before calling basename. If not, use the fallback already provided for other platforms whereby basename() is called on a temporary copy. Signed-off-by: Brendan Heading <brendanheading@gmail.com> Upstream-status: pending --- ibrcommon/data/File.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ibrcommon/data/File.cpp b/ibrcommon/data/File.cpp index 31af4ae..68e9b4f 100644 --- a/ibrcommon/data/File.cpp +++ b/ibrcommon/data/File.cpp @@ -35,7 +35,7 @@ #include <cerrno> #include <fstream> -#if !defined(HAVE_FEATURES_H) || defined(ANDROID) +#if !defined(HAVE_FEATURES_H) || !defined(__GLIBC__) || defined(ANDROID) #include <libgen.h> #endif @@ -225,7 +225,7 @@ namespace ibrcommon std::string File::getBasename() const { -#if !defined(ANDROID) && defined(HAVE_FEATURES_H) +#if !defined(ANDROID) && defined(HAVE_FEATURES_H) && defined(__GLIBC__) return std::string(basename(_path.c_str())); #else char path[_path.length()+1]; -- 2.4.3
shibajee/buildroot
package/ibrcommon/0001-ibrcommon-data-File.cpp-support-POSIX-basename-call.patch
patch
mit
2,039
config BR2_PACKAGE_IBRCOMMON bool "ibrcommon" depends on BR2_INSTALL_LIBSTDCPP depends on BR2_TOOLCHAIN_HAS_THREADS help IBR-DTN is a small dtn application that supports: Bundle Protocol RFC 5050 Bundle Security Protocol RFC 6257 http://trac.ibr.cs.tu-bs.de/project-cm-2012-ibrdtn comment "ibrcommon needs a toolchain w/ C++, threads" depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
shibajee/buildroot
package/ibrcommon/Config.in
in
mit
418
# Locally calculated sha256 9c457c1ebc01e6216524636628c647bef34ab11bd96f0e0788be8749374fdc20 ibrcommon-1.0.1.tar.gz
shibajee/buildroot
package/ibrcommon/ibrcommon.hash
hash
mit
118
################################################################################ # # ibrcommon # ################################################################################ IBRCOMMON_VERSION = 1.0.1 IBRCOMMON_SOURCE = ibrcommon-$(IBRCOMMON_VERSION).tar.gz IBRCOMMON_SITE = https://www.ibr.cs.tu-bs.de/projects/ibr-dtn/releases IBRCOMMON_INSTALL_STAGING = YES IBRCOMMON_LICENSE = Apache-2.0 IBRCOMMON_LICENSE_FILES = COPYING README IBRCOMMON_DEPENDENCIES = host-pkgconf ifeq ($(BR2_PACKAGE_OPENSSL),y) IBRCOMMON_DEPENDENCIES += openssl IBRCOMMON_CONF_OPTS += --with-openssl else IBRCOMMON_CONF_OPTS += --without-openssl endif ifeq ($(BR2_PACKAGE_LIBNL),y) IBRCOMMON_DEPENDENCIES += libnl IBRCOMMON_CONF_OPTS += --with-lowpan else IBRCOMMON_CONF_OPTS += --without-lowpan endif ifeq ($(BR2_PACKAGE_LIBXML2),y) IBRCOMMON_DEPENDENCIES += libxml2 IBRCOMMON_CONF_OPTS += --with-xml else IBRCOMMON_CONF_OPTS += --without-xml endif $(eval $(autotools-package))
shibajee/buildroot
package/ibrcommon/ibrcommon.mk
mk
mit
962
config BR2_PACKAGE_IBRDTN_TOOLS bool "ibrdtn-tools" depends on BR2_INSTALL_LIBSTDCPP depends on BR2_TOOLCHAIN_HAS_THREADS select BR2_PACKAGE_IBRCOMMON select BR2_PACKAGE_IBRDTN help IBR-DTN is a small dtn application that supports: Bundle Protocol RFC 5050 Bundle Security Protocol RFC 6257 http://trac.ibr.cs.tu-bs.de/project-cm-2012-ibrdtn comment "ibrdtn-tools needs a toolchain w/ C++, threads" depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
shibajee/buildroot
package/ibrdtn-tools/Config.in
in
mit
484
# Locally calculated sha256 eab066cf15f9c322d769c6c9c58adfb474cba7d446fd12e8de5ff6344376795b ibrdtn-tools-1.0.1.tar.gz
shibajee/buildroot
package/ibrdtn-tools/ibrdtn-tools.hash
hash
mit
119
################################################################################ # # ibrdtn-tools # ################################################################################ IBRDTN_TOOLS_VERSION = 1.0.1 IBRDTN_TOOLS_SITE = https://www.ibr.cs.tu-bs.de/projects/ibr-dtn/releases IBRDTN_TOOLS_LICENSE = Apache-2.0 IBRDTN_TOOLS_LICENSE_FILES = COPYING IBRDTN_TOOLS_DEPENDENCIES = ibrcommon ibrdtn host-pkgconf ifeq ($(BR2_STATIC_LIBS),y) IBRDTN_TOOLS_CONF_ENV += LDFLAGS="$(TARGET_LDFLAGS) -pthread" endif ifeq ($(BR2_PACKAGE_LIBDAEMON),y) IBRDTN_TOOLS_CONF_OPTS += --with-libdaemon IBRDTN_TOOLS_DEPENDENCIES += libdaemon else IBRDTN_TOOLS_CONF_OPTS += --without-libdaemon endif ifeq ($(BR2_PACKAGE_LIBARCHIVE),y) IBRDTN_TOOLS_CONF_OPTS += --with-libarchive IBRDTN_TOOLS_DEPENDENCIES += libarchive else IBRDTN_TOOLS_CONF_OPTS += --without-libarchive endif $(eval $(autotools-package))
shibajee/buildroot
package/ibrdtn-tools/ibrdtn-tools.mk
mk
mit
893
config BR2_PACKAGE_IBRDTN bool "ibrdtn" depends on BR2_INSTALL_LIBSTDCPP depends on BR2_TOOLCHAIN_HAS_THREADS select BR2_PACKAGE_IBRCOMMON help IBR-DTN is a small dtn application that supports: Bundle Protocol RFC 5050 Bundle Security Protocol RFC 6257 This package contains the ibrdtn library. http://trac.ibr.cs.tu-bs.de/project-cm-2012-ibrdtn comment "ibrdtn needs a toolchain w/ C++, threads" depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
shibajee/buildroot
package/ibrdtn/Config.in
in
mit
485
# Locally calculated sha256 288b14ccbaefb5e3234065c2778c247797ccb3c7afbb6746bb37dc12c620d360 ibrdtn-1.0.1.tar.gz
shibajee/buildroot
package/ibrdtn/ibrdtn.hash
hash
mit
115
################################################################################ # # ibrdtn # ################################################################################ IBRDTN_VERSION = 1.0.1 IBRDTN_SOURCE = ibrdtn-$(IBRDTN_VERSION).tar.gz IBRDTN_SITE = https://www.ibr.cs.tu-bs.de/projects/ibr-dtn/releases IBRDTN_INSTALL_STAGING = YES IBRDTN_LICENSE = Apache-2.0 IBRDTN_LICENSE_FILES = COPYING IBRDTN_DEPENDENCIES = ibrcommon host-pkgconf ifeq ($(BR2_PACKAGE_ZLIB),y) IBRDTN_CONF_OPTS += --with-compression IBRDTN_DEPENDENCIES += zlib else IBRDTN_CONF_OPTS += --without-compression endif ifeq ($(BR2_PACKAGE_LIBGLIB2),y) IBRDTN_CONF_OPTS += --with-glib IBRDTN_DEPENDENCIES += libglib2 else IBRDTN_CONF_OPTS += --without-glib endif $(eval $(autotools-package))
shibajee/buildroot
package/ibrdtn/ibrdtn.mk
mk
mit
772
config BR2_PACKAGE_IBRDTND bool "ibrdtnd" depends on BR2_INSTALL_LIBSTDCPP depends on BR2_TOOLCHAIN_HAS_THREADS select BR2_PACKAGE_IBRDTN select BR2_PACKAGE_IBRCOMMON help IBR-DTN is a small dtn application that supports: Bundle Protocol RFC 5050 Bundle Security Protocol RFC 6257 http://trac.ibr.cs.tu-bs.de/project-cm-2012-ibrdtn comment "ibrdtnd needs a toolchain w/ C++, threads" depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
shibajee/buildroot
package/ibrdtnd/Config.in
in
mit
469
# Locally calculated sha256 9bd79636154093ab6bf4fd10d6c62d67c6db45141460847b19def327c93771ed ibrdtnd-1.0.1.tar.gz
shibajee/buildroot
package/ibrdtnd/ibrdtnd.hash
hash
mit
116
################################################################################ # # ibrdtnd # ################################################################################ IBRDTND_VERSION = 1.0.1 IBRDTND_SOURCE = ibrdtnd-$(IBRDTND_VERSION).tar.gz IBRDTND_SITE = https://www.ibr.cs.tu-bs.de/projects/ibr-dtn/releases IBRDTND_LICENSE = Apache-2.0 IBRDTND_LICENSE_FILES = COPYING IBRDTND_DEPENDENCIES = ibrdtn ibrcommon host-pkgconf # Disable features that don't have the necessary dependencies in # Buildroot IBRDTND_CONF_OPTS = \ --disable-dtndht \ --without-wifip2p \ --without-vmime # don't build documentation IBRDTND_CONF_ENV = PDFLATEX='no' ifeq ($(BR2_PACKAGE_LIBDAEMON),y) IBRDTND_CONF_OPTS += --enable-libdaemon IBRDTND_DEPENDENCIES += libdaemon else IBRDTND_CONF_OPTS += --disable-libdaemon endif ifeq ($(BR2_PACKAGE_LIBCURL),y) IBRDTND_CONF_OPTS += --with-curl IBRDTND_DEPENDENCIES += libcurl else IBRDTND_CONF_OPTS += --without-curl endif ifeq ($(BR2_PACKAGE_SQLITE),y) IBRDTND_CONF_OPTS += --with-sqlite IBRDTND_DEPENDENCIES += sqlite else IBRDTND_CONF_OPTS += --without-sqlite endif ifeq ($(BR2_PACKAGE_OPENSSL),y) IBRDTND_CONF_OPTS += --with-tls IBRDTND_DEPENDENCIES += openssl else IBRDTND_CONF_OPTS += --without-tls endif $(eval $(autotools-package))
shibajee/buildroot
package/ibrdtnd/ibrdtnd.mk
mk
mit
1,281
Don't build object files twice When passed --enable-static and --enable-shared, icu will generate both a shared and a static version of its libraries. However, in order to do so, it builds each and every object file twice: once with -fPIC (for the shared library), and once without -fPIC (for the static library). While admittedly building -fPIC for a static library generates a slightly suboptimal code, this is what all the autotools-based project are doing. They build each object file once, and they use it for both the static and shared libraries. icu builds the object files for the shared library as .o files, and the object files for static library as .ao files. By simply changing the suffix of object files used for static libraries to ".o", we tell icu to use the ones built for the shared library (i.e, with -fPIC), and avoid the double build of icu. On a fast build server, this brings the target icu build from 3m41.302s down to 1m43.926s (approximate numbers: some other builds are running on the system at the same time). Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Index: b/source/config/mh-linux =================================================================== --- a/source/config/mh-linux +++ b/source/config/mh-linux @@ -35,7 +35,7 @@ ## Shared object suffix SO = so ## Non-shared intermediate object suffix -STATIC_O = ao +STATIC_O = o ## Compilation rules %.$(STATIC_O): $(srcdir)/%.c
shibajee/buildroot
package/icu/0001-dont-build-static-dynamic-twice.patch
patch
mit
1,449
Workaround toolchain bugs Many of ARM Sourcery CodeBench toolchain have a bug when compiling icu's translit.cpp source file. The bug is trigerred when there is a combination of "-W -Wall" and "-Os", and causes an internal compiler error. The bug has been reported to Mentor Graphics. Even though it is clearly a toolchain bug, having a workaround for it is trivial in this case. So it will avoid our users falling into this internal compiler error, and allow our autobuilders to test more packages using this Sourcery CodeBench toolchain.qq [Gustavo: update for ICU4C 54.1] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> diff -Nura icu.orig/source/configure icu/source/configure --- icu.orig/source/configure 2014-12-18 15:49:43.038628644 -0300 +++ icu/source/configure 2014-12-18 15:51:23.183083232 -0300 @@ -4323,7 +4323,7 @@ ;; esac - CFLAGS="$CFLAGS -Wall -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings" + CFLAGS="$CFLAGS -pedantic -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings" else case "${host}" in *-*-cygwin) @@ -4337,7 +4337,7 @@ fi if test "$GXX" = yes then - CXXFLAGS="$CXXFLAGS -W -Wall -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long" + CXXFLAGS="$CXXFLAGS -pedantic -Wpointer-arith -Wwrite-strings -Wno-long-long" else case "${host}" in *-*-cygwin)
shibajee/buildroot
package/icu/0002-workaround-toolchain-bugs.patch
patch
mit
1,572
detect and add compiler symbol prefix to the assembly code Some compiler, such as Blackfin GNU compiler, prefix a charater to any C symbol in generated assembly code. If any assembly symbol is invoked from C code, it needs to be prefixed as well. Note: since autoreconf doesn't work with this package because automake isn't support [Ryan: add information about why patching configure is ok] [Gustavo: update for ICU4C 54.1] Signed-off-by: Sonic Zhang <sonic.zhang@analog.com> Signed-off-by: Ryan Barnett <rjbarnet@rockwellcollins.com> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> diff -Nura icu.orig/source/configure icu/source/configure --- icu.orig/source/configure 2014-12-18 15:49:43.038628644 -0300 +++ icu/source/configure 2014-12-18 15:56:05.793832186 -0300 @@ -637,6 +637,7 @@ ICUDATA_CHAR SAMPLES_TRUE TESTS_TRUE +SYMBOL_PREFIX ICULIBSUFFIXCNAME U_HAVE_LIB_SUFFIX ICULIBSUFFIX @@ -7414,6 +7415,17 @@ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_UTF16_STRING_RESULT" >&5 $as_echo "$CHECK_UTF16_STRING_RESULT" >&6; } +# Check compiler generated symbol profix +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for symbol prefix" >&5 +$as_echo "checking for symbol prefix... " >&6; } + SYMBOL_PREFIX=`echo "PREFIX=__USER_LABEL_PREFIX__" \ + | ${CPP-${CC-gcc} -E} - 2>&1 \ + | ${EGREP-grep} "^PREFIX=" \ + | sed -e "s:^PREFIX=::" -e "s:__USER_LABEL_PREFIX__::"` + + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYMBOL_PREFIX" >&5 +$as_echo "$SYMBOL_PREFIX" >&6; } + # Enable/disable extras # Check whether --enable-extras was given. if test "${enable_extras+set}" = set; then : diff -Nura icu.orig/source/data/Makefile.in icu/source/data/Makefile.in --- icu.orig/source/data/Makefile.in 2014-12-18 15:49:42.908624160 -0300 +++ icu/source/data/Makefile.in 2014-12-18 16:01:32.751110913 -0300 @@ -182,11 +182,11 @@ packagedata: icupkg.inc $(PKGDATA_LIST) build-local ifneq ($(ENABLE_STATIC),) ifeq ($(PKGDATA_MODE),dll) - $(PKGDATA_INVOKE) $(PKGDATA) -e $(ICUDATA_ENTRY_POINT) -T $(OUTTMPDIR) -p $(ICUDATA_NAME) $(PKGDATA_LIBSTATICNAME) -m static $(PKGDATA_VERSIONING) $(PKGDATA_LIST) + $(PKGDATA_INVOKE) $(PKGDATA) -e @SYMBOL_PREFIX@$(ICUDATA_ENTRY_POINT) -T $(OUTTMPDIR) -p $(ICUDATA_NAME) $(PKGDATA_LIBSTATICNAME) -m static $(PKGDATA_VERSIONING) $(PKGDATA_LIST) endif endif ifneq ($(ICUDATA_SOURCE_IS_NATIVE_TARGET),YES) - $(PKGDATA_INVOKE) $(PKGDATA) -e $(ICUDATA_ENTRY_POINT) -T $(OUTTMPDIR) -p $(ICUDATA_NAME) -m $(PKGDATA_MODE) $(PKGDATA_VERSIONING) $(PKGDATA_LIBNAME) $(PKGDATA_LIST) + $(PKGDATA_INVOKE) $(PKGDATA) -e @SYMBOL_PREFIX@$(ICUDATA_ENTRY_POINT) -T $(OUTTMPDIR) -p $(ICUDATA_NAME) -m $(PKGDATA_MODE) $(PKGDATA_VERSIONING) $(PKGDATA_LIBNAME) $(PKGDATA_LIST) else $(INSTALL_DATA) $(ICUDATA_SOURCE_ARCHIVE) $(OUTDIR) endif @@ -209,11 +209,11 @@ endif ifneq ($(ENABLE_STATIC),) ifeq ($(PKGDATA_MODE),dll) - $(PKGDATA_INVOKE) $(PKGDATA) -m static -e $(ICUDATA_ENTRY_POINT) -T $(OUTTMPDIR) -s $(BUILDDIR) -p $(ICUDATA_NAME) $(PKGDATA_LIBSTATICNAME) $(PKGDATA_LIST) -I $(ICUPKGDATA_INSTALL_LIBDIR) + $(PKGDATA_INVOKE) $(PKGDATA) -m static -e @SYMBOL_PREFIX@$(ICUDATA_ENTRY_POINT) -T $(OUTTMPDIR) -s $(BUILDDIR) -p $(ICUDATA_NAME) $(PKGDATA_LIBSTATICNAME) $(PKGDATA_LIST) -I $(ICUPKGDATA_INSTALL_LIBDIR) endif endif ifneq ($(ICUDATA_SOURCE_IS_NATIVE_TARGET),YES) - $(PKGDATA_INVOKE) $(PKGDATA) -m $(PKGDATA_MODE) $(PKGDATA_VERSIONING) -e $(ICUDATA_ENTRY_POINT) -T $(OUTTMPDIR) -s $(BUILDDIR) -p $(ICUDATA_NAME) $(PKGDATA_LIBNAME) $(PKGDATA_LIST) -I $(ICUPKGDATA_INSTALL_DIR) + $(PKGDATA_INVOKE) $(PKGDATA) -m $(PKGDATA_MODE) $(PKGDATA_VERSIONING) -e @SYMBOL_PREFIX@$(ICUDATA_ENTRY_POINT) -T $(OUTTMPDIR) -s $(BUILDDIR) -p $(ICUDATA_NAME) $(PKGDATA_LIBNAME) $(PKGDATA_LIST) -I $(ICUPKGDATA_INSTALL_DIR) else $(INSTALL_DATA) $(ICUDATA_SOURCE_ARCHIVE) $(DESTDIR)$(ICUPKGDATA_DIR) endif @@ -224,7 +224,7 @@ #### 390 support install390: package390 $(MKINSTALLDIRS) $(TMPDATADIR) $(DESTDIR)$(libdir) - $(INVOKE) $(PKGDATA) -s $(BUILDDIR)$(STUB_SUFFIX) -T $(OUTTMPDIR_390STUB) -p $(ICUDATA_NAME)$(STUB_SUFFIX) $(PKGDATA_LIBNAME)$(STUB_SUFFIX) -e $(ICUDATA_ENTRY_POINT) $(OS390LIST) -m dll $(PKGDATA_VERSIONING) -I $(DESTDIR)$(ICUPKGDATA_DIR) + $(INVOKE) $(PKGDATA) -s $(BUILDDIR)$(STUB_SUFFIX) -T $(OUTTMPDIR_390STUB) -p $(ICUDATA_NAME)$(STUB_SUFFIX) $(PKGDATA_LIBNAME)$(STUB_SUFFIX) -e @SYMBOL_PREFIX@$(ICUDATA_ENTRY_POINT) $(OS390LIST) -m dll $(PKGDATA_VERSIONING) -I $(DESTDIR)$(ICUPKGDATA_DIR) ifeq ($(PKGDATA_MODE),dll) $(INSTALL-L) $(ICUPKGDATA_OUTDIR)/$(FINAL_IMPORT_LIB) $(DESTDIR)$(ICUPKGDATA_DIR)/$(FINAL_IMPORT_LIB) endif @@ -232,7 +232,7 @@ #### $(LIB_ICUDATA_NAME)$(STUB_SUFFIX) is the subset data for batch mode package390: $(OUTTMPDIR)/icudata390.lst $(PKGDATA_LIST) ./icupkg.inc packagedata ln -s $(ICUDATA_NAME) $(OUTDIR)/build/$(ICUDATA_NAME)$(STUB_SUFFIX) - $(INVOKE) $(PKGDATA) -s $(BUILDDIR)$(STUB_SUFFIX) -T $(OUTTMPDIR_390STUB) -p $(ICUDATA_NAME)$(STUB_SUFFIX) $(PKGDATA_LIBNAME)$(STUB_SUFFIX) -e $(ICUDATA_ENTRY_POINT) $(OS390LIST) -m dll $(PKGDATA_VERSIONING) + $(INVOKE) $(PKGDATA) -s $(BUILDDIR)$(STUB_SUFFIX) -T $(OUTTMPDIR_390STUB) -p $(ICUDATA_NAME)$(STUB_SUFFIX) $(PKGDATA_LIBNAME)$(STUB_SUFFIX) -e @SYMBOL_PREFIX@$(ICUDATA_ENTRY_POINT) $(OS390LIST) -m dll $(PKGDATA_VERSIONING) cp $(ICUPKGDATA_OUTDIR)/$(LIB_ICUDATA_NAME)$(STUB_SUFFIX).$(SO) $(top_builddir)/stubdata/$(LIB_ICUDATA_NAME)$(STUB_SUFFIX).$(SO) diff -Nura icu.orig/source/extra/uconv/Makefile.in icu/source/extra/uconv/Makefile.in --- icu.orig/source/extra/uconv/Makefile.in 2014-12-18 15:49:42.986626850 -0300 +++ icu/source/extra/uconv/Makefile.in 2014-12-18 15:57:40.558101179 -0300 @@ -58,7 +58,8 @@ ## Static mode ifeq ($(UCONVMSG_MODE),static) DEFS += -DUCONVMSG_LINK=$(MSGNAME) -UCONVMSG_LIB = $(RESDIR)/$(LIBPREFIX)$(STATIC_PREFIX_WHEN_USED)$(MSGNAME).$(A) +UCONVMSG_LIB = $(RESDIR)/$(LIBPREFIX)$(STATIC_PREFIX_WHEN_USED)@SYMBOL_PREFIX@$(MSGNAME).$(A) + LIBS += $(UCONVMSG_LIB) PKGMODE=static INSTALLTO=$(libdir) @@ -152,7 +153,7 @@ endif $(UCONVMSG_LIB): $(RESFILES) $(RESDIR)/$(RESDIR).lst pkgdata.inc - $(INVOKE) $(PKGDATA_INVOKE_OPTS) $(TOOLBINDIR)/pkgdata -p $(MSGNAME) $(PKGDATA_OPTS) -m $(PKGMODE) -s $(RESDIR) -d $(RESDIR) -T $(RESDIR) $(RESDIR)/$(RESDIR).lst + $(INVOKE) $(PKGDATA_INVOKE_OPTS) $(TOOLBINDIR)/pkgdata -p @SYMBOL_PREFIX@$(MSGNAME) $(PKGDATA_OPTS) -m $(PKGMODE) -s $(RESDIR) -d $(RESDIR) -T $(RESDIR) $(RESDIR)/$(RESDIR).lst $(RESDIR)/$(RESDIR).lst: Makefile $(srcdir)/resfiles.mk @-$(RMV) $@
shibajee/buildroot
package/icu/0003-detect-compiler-symbol-prefix.patch
patch
mit
6,579
From d5d0c4bb7cc9aa4a132ec0bea13255aee50c1cf9 Mon Sep 17 00:00:00 2001 From: Maxime Hadjinlian <maxime.hadjinlian@devialet.com> Date: Fri, 6 Jun 2014 14:55:58 +0200 Subject: [PATCH] Don't link icudata as a data only library This patch cames straight from Debian. It fixes an issue when libicudata would not have some flags indicating it's EABIhf, causing applications linked against libicudata to not start on EABIhf systems. Getting rid of the -nodefaultlibs -nostdlib flags solves the problem, and is the solution that is used by Debian, see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=653457. Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@devialet.com> --- source/config/mh-linux | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/config/mh-linux b/source/config/mh-linux index 531a3b2..5a2a7c4 100644 --- a/source/config/mh-linux +++ b/source/config/mh-linux @@ -21,7 +21,9 @@ LD_RPATH= -Wl,-zorigin,-rpath,'$$'ORIGIN LD_RPATH_PRE = -Wl,-rpath, ## These are the library specific LDFLAGS -LDFLAGSICUDT=-nodefaultlibs -nostdlib +#LDFLAGSICUDT=-nodefaultlibs -nostdlib +# Debian change: linking icudata as data only causes too many problems. +LDFLAGSICUDT= ## Compiler switch to embed a library name # The initial tab in the next line is to prevent icu-config from reading it. -- 2.0.0.rc2
shibajee/buildroot
package/icu/0004-link-icudata-as-data-only.patch
patch
mit
1,340
From ffff12fd321c7a056e796e74cc508726b0626ae0 Mon Sep 17 00:00:00 2001 From: Romain Naour <romain.naour@openwide.fr> Date: Wed, 22 Jul 2015 22:43:25 +0200 Subject: [PATCH] fix static linking with icu-uc During static linking with a C application and libicuuc.a, -lstdc++ is required. Add -lstdc++ in Libs.private of icu-uc.pc. Fixes: http://autobuild.buildroot.net/results/210/2107f9dfb39eeb6559fb4271c7af8b39aef521ca/ Signed-off-by: Romain Naour <romain.naour@openwide.fr> --- source/Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Makefile.in b/source/Makefile.in index 9db6c52..ca48e16 100644 --- a/source/Makefile.in +++ b/source/Makefile.in @@ -264,7 +264,7 @@ config/icu-uc.pc: config/icu.pc Makefile icudefs.mk @echo "Description: $(PACKAGE_ICU_DESCRIPTION): Common and Data libraries" >> $@ @echo "Name: $(PACKAGE)-uc" >> $@ @echo "Libs:" '-L$${libdir}' "${ICULIBS_UC}" "${ICULIBS_DT}" >> $@ - @echo "Libs.private:" '$${baselibs}' >> $@ + @echo "Libs.private:" '$${baselibs}' -lstdc++ >> $@ @echo $@ updated. config/icu-i18n.pc: config/icu.pc Makefile icudefs.mk -- 2.4.3
shibajee/buildroot
package/icu/0005-fix-static-linking-with-icu-uc.patch
patch
mit
1,137
config BR2_PACKAGE_ICU bool "icu" depends on BR2_INSTALL_LIBSTDCPP depends on BR2_USE_WCHAR depends on BR2_TOOLCHAIN_HAS_THREADS # icu does some funky things by generating by itself an ELF # file, and it cannot easily be changed to generate FLAT # format. depends on !BR2_BINFMT_FLAT help International Components for Unicode. http://site.icu-project.org/ if BR2_PACKAGE_ICU config BR2_PACKAGE_ICU_CUSTOM_DATA_PATH string "Path to custom data library file" help This option allows to define the path to a custom data library generated with http://apps.icu-project.org/datacustom/ Make sure you select the appropiate version to match the one provided by buildroot. Leave empty to not use this functionality. endif comment "icu needs a toolchain w/ C++, wchar, threads" depends on !BR2_BINFMT_FLAT depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR || \ !BR2_TOOLCHAIN_HAS_THREADS
shibajee/buildroot
package/icu/Config.in
in
mit
921
# From https://ssl.icu-project.org/files/icu4c/57.1/icu4c-src-57_1.md5 md5 976734806026a4ef8bdd17937c8898b9 icu4c-57_1-src.tgz # Calculated based on the hash above sha256 ff8c67cb65949b1e7808f2359f2b80f722697048e90e7cfc382ec1fe229e9581 icu4c-57_1-src.tgz
shibajee/buildroot
package/icu/icu.hash
hash
mit
255
################################################################################ # # icu # ################################################################################ ICU_VERSION = 57.1 ICU_SOURCE = icu4c-$(subst .,_,$(ICU_VERSION))-src.tgz ICU_SITE = http://download.icu-project.org/files/icu4c/$(ICU_VERSION) ICU_LICENSE = ICU License ICU_LICENSE_FILES = license.html ICU_DEPENDENCIES = host-icu ICU_INSTALL_STAGING = YES ICU_CONFIG_SCRIPTS = icu-config ICU_CONF_OPTS = \ --with-cross-build=$(HOST_ICU_DIR)/source \ --disable-samples \ --disable-tests # When available, icu prefers to use C++11 atomics, which rely on the # __atomic builtins. On certain architectures, this requires linking # with libatomic starting from gcc 4.8. ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y) ICU_CONF_ENV += LIBS="-latomic" endif HOST_ICU_CONF_OPTS = \ --disable-samples \ --disable-tests \ --disable-extras \ --disable-icuio \ --disable-layout \ --disable-renaming ICU_SUBDIR = source HOST_ICU_SUBDIR = source ICU_CUSTOM_DATA_PATH = $(call qstrip,$(BR2_PACKAGE_ICU_CUSTOM_DATA_PATH)) ifneq ($(ICU_CUSTOM_DATA_PATH),) define ICU_COPY_CUSTOM_DATA cp $(ICU_CUSTOM_DATA_PATH) $(@D)/source/data/in/ endef ICU_POST_PATCH_HOOKS += ICU_COPY_CUSTOM_DATA endif define ICU_REMOVE_DEV_FILES rm -f $(addprefix $(TARGET_DIR)/usr/bin/,derb genbrk gencfu gencnval gendict genrb icuinfo makeconv uconv) rm -f $(addprefix $(TARGET_DIR)/usr/sbin/,genccode gencmn gennorm2 gensprep icupkg) rm -rf $(TARGET_DIR)/usr/share/icu endef ICU_POST_INSTALL_TARGET_HOOKS += ICU_REMOVE_DEV_FILES $(eval $(autotools-package)) $(eval $(host-autotools-package))
shibajee/buildroot
package/icu/icu.mk
mk
mit
1,636
--- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: ifplugd-0.28/configure =================================================================== --- ifplugd-0.28.orig/configure +++ ifplugd-0.28/configure @@ -5430,7 +5430,7 @@ echo $ECHO_N "(cached) $ECHO_C" >&6 else if test "$cross_compiling" = yes; then - ac_cv_func_malloc_0_nonnull=no + ac_cv_func_malloc_0_nonnull=yes else cat >conftest.$ac_ext <<_ACEOF /* confdefs.h. */
shibajee/buildroot
package/ifplugd/0001-cross.patch
patch
mit
468
--- src/interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: ifplugd-0.28/src/interface.c =================================================================== --- ifplugd-0.28.orig/src/interface.c +++ ifplugd-0.28/src/interface.c @@ -23,7 +23,6 @@ #endif #include <linux/sockios.h> -#include <linux/if_ether.h> #include <sys/types.h> #include <sys/socket.h> #include <sys/ioctl.h> @@ -32,6 +31,7 @@ #include <string.h> #include <errno.h> #include <netinet/in.h> +#include <netinet/if_ether.h> #include <stdio.h> #include <ctype.h> #include <stdlib.h>
shibajee/buildroot
package/ifplugd/0002-fix-headers.patch
patch
mit
588
[PATCH] ifplugd: configure: don't check for C++ compiler The configure script was checking for a C++ compiler (and erroring out if not found), even though it isn't used for anything. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk> diff -urpN ifplugd-0.28/configure.ac ifplugd-0.28.new/configure.ac --- ifplugd-0.28/configure.ac 2005-06-04 21:21:51.000000000 +0200 +++ ifplugd-0.28.new/configure.ac 2008-12-13 20:31:13.000000000 +0100 @@ -33,7 +33,6 @@ if type -p stow > /dev/null && test -d / fi # Checks for programs. -AC_PROG_CXX AC_PROG_CC AC_PROG_CPP AC_PROG_INSTALL
shibajee/buildroot
package/ifplugd/0003-no-cxx.patch
patch
mit
583
The musl C library does not define type names such as `__uint32_t`. Instead we use the integer types declared in the ISO C standard header file <stdint.h>. Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks> diff -purN ifplugd-0.28.orig/src/ethtool-local.h ifplugd-0.28/src/ethtool-local.h --- ifplugd-0.28.orig/src/ethtool-local.h 2015-08-01 18:43:47.360916834 +0200 +++ ifplugd-0.28/src/ethtool-local.h 2015-08-01 18:44:24.256037746 +0200 @@ -21,10 +21,12 @@ * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ +#include <stdint.h> + typedef unsigned long long u64; -typedef __uint32_t u32; -typedef __uint16_t u16; -typedef __uint8_t u8; +typedef uint32_t u32; +typedef uint16_t u16; +typedef uint8_t u8; #include "ethtool-kernel.h"
shibajee/buildroot
package/ifplugd/0004-musl-fix-types.patch
patch
mit
796
config BR2_PACKAGE_IFPLUGD bool "ifplugd" # libdaemon uses fork() depends on BR2_USE_MMU depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS select BR2_PACKAGE_LIBDAEMON help Ifplugd is a daemon which will automatically configure your ethernet device when a cable is plugged in and automatically de-configure it if the cable is pulled out. This is useful on laptops with onboard network adapters, since it will only configure the interface when a cable is really connected. http://0pointer.de/lennart/projects/ifplugd/
shibajee/buildroot
package/ifplugd/Config.in
in
mit
535
# Locally calculated sha256 474754ac4ab32d738cbf2a4a3e87ee0a2c71b9048a38bdcd7df1e4f9fd6541f0 ifplugd-0.28.tar.gz
shibajee/buildroot
package/ifplugd/ifplugd.hash
hash
mit
113
################################################################################ # # ifplugd # ################################################################################ IFPLUGD_VERSION = 0.28 IFPLUGD_SITE = http://0pointer.de/lennart/projects/ifplugd IFPLUGD_LICENSE = GPLv2 IFPLUGD_LICENSE_FILES = LICENSE IFPLUGD_AUTORECONF = YES # install-strip unconditionally overwrites $(TARGET_DIR)/etc/ifplugd/ifplugd.* IFPLUGD_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) install-exec IFPLUGD_CONF_OPTS = --disable-lynx --with-initdir=/etc/init.d/ IFPLUGD_DEPENDENCIES = libdaemon # Prefer big ifplugd ifeq ($(BR2_PACKAGE_BUSYBOX),y) IFPLUGD_DEPENDENCIES += busybox endif define IFPLUGD_INSTALL_FIXUP $(INSTALL) -D -m 0644 $(@D)/conf/ifplugd.conf $(TARGET_DIR)/etc/ifplugd/ifplugd.conf; \ $(SED) 's^\(ARGS=.*\)w^\1^' $(TARGET_DIR)/etc/ifplugd/ifplugd.conf; \ $(INSTALL) -D -m 0755 $(@D)/conf/ifplugd.action \ $(TARGET_DIR)/etc/ifplugd/ifplugd.action endef IFPLUGD_POST_INSTALL_TARGET_HOOKS += IFPLUGD_INSTALL_FIXUP define IFPLUGD_INSTALL_INIT_SYSV $(INSTALL) -D -m 0755 $(@D)/conf/ifplugd.init \ $(TARGET_DIR)/etc/init.d/S45ifplugd # don't use bash for init script $(SED) 's^/bin/bash^/bin/sh^g' $(TARGET_DIR)/etc/init.d/S45ifplugd endef $(eval $(autotools-package))
shibajee/buildroot
package/ifplugd/ifplugd.mk
mk
mit
1,282
config BR2_PACKAGE_IFTOP bool "iftop" select BR2_PACKAGE_NCURSES select BR2_PACKAGE_LIBPCAP depends on BR2_TOOLCHAIN_HAS_THREADS help iftop does for network usage what top(1) does for CPU usage. It listens to network traffic on a named interface and displays a table of current bandwidth usage by pairs of hosts. Handy for answering the question "why is our ADSL link so slow?". http://www.ex-parrot.com/pdw/iftop/ comment "iftop needs a toolchain w/ threads" depends on !BR2_TOOLCHAIN_HAS_THREADS
shibajee/buildroot
package/iftop/Config.in
in
mit
521
# Locally calculated sha256 f733eeea371a7577f8fe353d86dd88d16f5b2a2e702bd96f5ffb2c197d9b4f97 iftop-1.0pre4.tar.gz
shibajee/buildroot
package/iftop/iftop.hash
hash
mit
114
################################################################################ # # iftop # ################################################################################ IFTOP_VERSION = 1.0pre4 IFTOP_SITE = http://www.ex-parrot.com/pdw/iftop/download IFTOP_DEPENDENCIES = ncurses libpcap IFTOP_LICENSE = GPLv2+ IFTOP_LICENSE_FILES = COPYING IFTOP_LIBS = -lpcap ifeq ($(BR2_STATIC_LIBS),y) IFTOP_LIBS += `$(STAGING_DIR)/usr/bin/pcap-config --static --additional-libs` endif IFTOP_CONF_ENV += LIBS+="$(IFTOP_LIBS)" $(eval $(autotools-package))
shibajee/buildroot
package/iftop/iftop.mk
mk
mit
549
Drop the need for dpkg-architecture, we only build for linux. Thanks to Károly Kasza for catching this one. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> diff -Nura ifupdown.orig/defn2c.pl ifupdown/defn2c.pl --- ifupdown.orig/defn2c.pl 2014-11-18 16:39:28.878772655 -0300 +++ ifupdown/defn2c.pl 2014-11-18 16:43:41.120456676 -0300 @@ -2,7 +2,7 @@ use strict; -my $DEB_HOST_ARCH_OS = `dpkg-architecture -qDEB_HOST_ARCH_OS`; +my $DEB_HOST_ARCH_OS = "linux"; $DEB_HOST_ARCH_OS =~ s/\n//;
shibajee/buildroot
package/ifupdown/0001-dont-use-dpkg-architecture.patch
patch
mit
510
config BR2_PACKAGE_IFUPDOWN bool "ifupdown" depends on BR2_USE_MMU # fork() depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0 # iproute2 # Default/our uclibc lacks wordexp() depends on !BR2_TOOLCHAIN_USES_UCLIBC depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS # runtime for ip binary select BR2_PACKAGE_IPROUTE2 if !BR2_PACKAGE_BUSYBOX # runtime for run-parts select BR2_PACKAGE_DEBIANUTILS if !BR2_PACKAGE_BUSYBOX help High level tools to configure network interfaces. https://tracker.debian.org/pkg/ifupdown comment "ifupdown needs a glibc or musl toolchain w/ headers >= 3.0" depends on BR2_USE_MMU depends on BR2_TOOLCHAIN_USES_UCLIBC || \ !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0 depends on BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
shibajee/buildroot
package/ifupdown/Config.in
in
mit
738
# From http://ftp.de.debian.org/debian/pool/main/i/ifupdown/ifupdown_0.8.13.dsc sha256 90938bf6a2bb31b0ed4d8b2be71beb909c334af64c9284b3f50820cbaeff49b6 ifupdown_0.8.13.tar.xz
shibajee/buildroot
package/ifupdown/ifupdown.hash
hash
mit
175
################################################################################ # # ifupdown # ################################################################################ IFUPDOWN_VERSION = 0.8.13 IFUPDOWN_SOURCE = ifupdown_$(IFUPDOWN_VERSION).tar.xz IFUPDOWN_SITE = http://snapshot.debian.org/archive/debian/20160604T232714Z/pool/main/i/ifupdown IFUPDOWN_DEPENDENCIES = $(if $(BR2_PACKAGE_BUSYBOX),busybox) IFUPDOWN_LICENSE = GPLv2+ IFUPDOWN_LICENSE_FILES = COPYING define IFUPDOWN_BUILD_CMDS $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS) -std=gnu99 -D'IFUPDOWN_VERSION=\"$(IFUPDOWN_VERSION)\"'" \ -C $(@D) endef # install doesn't overwrite define IFUPDOWN_INSTALL_TARGET_CMDS $(RM) $(TARGET_DIR)/sbin/{ifdown,ifquery} $(TARGET_MAKE_ENV) $(MAKE) BASEDIR=$(TARGET_DIR) -C $(@D) install endef # We need to switch from /bin/ip to /sbin/ip IFUPDOWN_DEFN_FILES = can inet inet6 ipx link meta define IFUPDOWN_MAKE_IP_IN_SBIN for f in $(IFUPDOWN_DEFN_FILES) ; do \ $(SED) 's,/bin/ip,/sbin/ip,' $(@D)/$$f.defn ; \ done endef IFUPDOWN_POST_PATCH_HOOKS += IFUPDOWN_MAKE_IP_IN_SBIN $(eval $(generic-package))
shibajee/buildroot
package/ifupdown/ifupdown.mk
mk
mit
1,154
config BR2_PACKAGE_IGD2_FOR_LINUX bool "igd2-for-linux" depends on BR2_USE_MMU # fork() depends on BR2_TOOLCHAIN_HAS_THREADS depends on BR2_USE_WCHAR select BR2_PACKAGE_IPTABLES # runtime select BR2_PACKAGE_LIBUPNP help This is The Linux UPnP Internet Gateway Device 2. It is modified from the original Linux UPnP Internet Gateway Device [http://linux-igd.sourceforge.net/] according to UPnP InternetGatewayDevice:2 specifications. It implements the UPnP Internet Gateway Device version 2 specification (IGDv2) and allows UPnP aware clients, such as MSN Messenger, Azureus or Miranda to work properly from behind a NAT firewall. Please edit /etc/upnpd.conf before using upnpd! https://github.com/ffontaine/igd2-for-linux comment "igd2-for-linux needs a toolchain w/ threads, wchar" depends on BR2_USE_MMU depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR
shibajee/buildroot
package/igd2-for-linux/Config.in
in
mit
904
#!/bin/sh NAME=upnpd PIDFILE=/var/run/$NAME.pid DAEMON=/usr/sbin/$NAME CFGFILE=/etc/default/$NAME LAN=eth0 WAN=eth0 # For the UPnP library to function correctly, networking must be configured # properly for multicasting as described in # https://sourceforge.net/p/pupnp/code/ci/master/tree/README. # Without this addition, device advertisements and control point searches will # not function. # However, the route has to be configured once for all UPnP applications # (igd2-for-linux, ushare, ...) so do not manage UPnP route by default MANAGE_UPNP_MULTICAST_ROUTE_ON_LAN=0 # Read configuration variable file if it is present if [ -f $CFGFILE ]; then . $CFGFILE fi DAEMON_ARGS="-f $WAN $LAN" start() { if [ $MANAGE_UPNP_MULTICAST_ROUTE_ON_LAN != 0 ]; then printf "Add UPnP multicast route on $LAN\n" route add -net 239.0.0.0 netmask 255.0.0.0 $LAN fi printf "Starting $NAME: " start-stop-daemon -S -q -m -b -p $PIDFILE --exec $DAEMON -- $DAEMON_ARGS [ $? = 0 ] && echo "OK" || echo "FAIL" } stop() { printf "Stopping $NAME: " start-stop-daemon -K -q -p $PIDFILE [ $? = 0 ] && echo "OK" || echo "FAIL" if [ $MANAGE_UPNP_MULTICAST_ROUTE_ON_LAN != 0 ]; then printf "Remove UPnP multicast route on $LAN\n" route del -net 239.0.0.0 netmask 255.0.0.0 $LAN fi } restart() { stop start } case "$1" in start) start ;; stop) stop ;; restart|reload) restart ;; *) echo "Usage: $0 {start|stop|restart|reload}" exit 1 esac exit $?
shibajee/buildroot
package/igd2-for-linux/S99upnpd
none
mit
1,465
# Locally computed: sha256 523545a26b0d662e9f6913bec2518df6e70f4d497935d88983d994336a1b0ea9 igd2-for-linux-v1.2.tar.gz
shibajee/buildroot
package/igd2-for-linux/igd2-for-linux.hash
hash
mit
119
################################################################################ # # igd2-for-linux # ################################################################################ IGD2_FOR_LINUX_VERSION = v1.2 IGD2_FOR_LINUX_SITE = $(call github,ffontaine,igd2-for-linux,$(IGD2_FOR_LINUX_VERSION)) IGD2_FOR_LINUX_LICENSE = GPLv2 IGD2_FOR_LINUX_LICENSE_FILES = linuxigd2/doc/LICENSE IGD2_FOR_LINUX_DEPENDENCIES = libupnp IGD2_FOR_LINUX_BUILD_DIR = $(@D)/linuxigd2 IGD2_FOR_LINUX_CONF_DIR = $(IGD2_FOR_LINUX_BUILD_DIR)/configs define IGD2_FOR_LINUX_BUILD_CMDS $(TARGET_MAKE_ENV) $(MAKE) -C $(IGD2_FOR_LINUX_BUILD_DIR) \ $(TARGET_CONFIGURE_OPTS) \ LIBUPNP_PREFIX="$(STAGING_DIR)/usr" \ all endef define IGD2_FOR_LINUX_INSTALL_TARGET_CMDS $(INSTALL) -D -m 0755 $(IGD2_FOR_LINUX_BUILD_DIR)/bin/upnpd \ $(TARGET_DIR)/usr/sbin/upnpd $(INSTALL) -D -m 0644 $(IGD2_FOR_LINUX_CONF_DIR)/upnpd.conf \ $(TARGET_DIR)/etc/upnpd.conf mkdir -p $(TARGET_DIR)/etc/linuxigd/ cp -dpfr $(IGD2_FOR_LINUX_CONF_DIR)/*.{xml,png} \ $(TARGET_DIR)/etc/linuxigd/ endef define IGD2_FOR_LINUX_INSTALL_INIT_SYSV $(INSTALL) -D -m 0755 package/igd2-for-linux/S99upnpd \ $(TARGET_DIR)/etc/init.d/S99upnpd endef define IGD2_FOR_LINUX_INSTALL_INIT_SYSTEMD $(INSTALL) -D -m 0644 package/igd2-for-linux/upnpd.service \ $(TARGET_DIR)/usr/lib/systemd/system/upnpd.service mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants ln -sf ../../../../usr/lib/systemd/system/upnpd.service \ $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/upnpd.service endef $(eval $(generic-package))
shibajee/buildroot
package/igd2-for-linux/igd2-for-linux.mk
mk
mit
1,596
[Unit] Description=UPnP Internet Gateway Device version 2 daemon After=network.target [Service] Environment="LAN=eth0" Environment="WAN=eth0" EnvironmentFile=/etc/default/upnpd # For the UPnP library to function correctly, networking must be configured # properly for multicasting as described in # https://sourceforge.net/p/pupnp/code/ci/master/tree/README. # Without this addition, device advertisements and control point searches will # not function. # However, the route has to be configured once for all UPnP applications # (igd2-for-linux, ushare, ...) so do not manage UPnP route by default #ExecStartPre=/sbin/route add -net 239.0.0.0 netmask 255.0.0.0 $LAN #ExecStopPost=/sbin/route del -net 239.0.0.0 netmask 255.0.0.0 $LAN ExecStart=/usr/sbin/upnpd -f $WAN $LAN Restart=always [Install] WantedBy=multi-user.target
shibajee/buildroot
package/igd2-for-linux/upnpd.service
service
mit
828
comment "igh-ethercat needs a Linux kernel to be built" depends on !BR2_LINUX_KERNEL config BR2_PACKAGE_IGH_ETHERCAT bool "igh-ethercat" depends on BR2_LINUX_KERNEL help IgH EtherCAT Master for Linux. http://www.etherlab.org/en/ethercat/index.php if BR2_PACKAGE_IGH_ETHERCAT config BR2_PACKAGE_IGH_ETHERCAT_8139TOO bool "8139too driver" config BR2_PACKAGE_IGH_ETHERCAT_E100 bool "e100 driver" config BR2_PACKAGE_IGH_ETHERCAT_E1000 bool "e1000 driver" config BR2_PACKAGE_IGH_ETHERCAT_E1000E bool "e1000e driver" config BR2_PACKAGE_IGH_ETHERCAT_R8169 bool "r8169 driver" endif
shibajee/buildroot
package/igh-ethercat/Config.in
in
mit
599
# From http://etherlab.org/download/ethercat/ethercat-1.5.2.tar.bz2.md5 md5 6b4001f8d975865d74a0b108b3bdda3d ethercat-1.5.2.tar.bz2
shibajee/buildroot
package/igh-ethercat/igh-ethercat.hash
hash
mit
132
################################################################################ # # igh-ethercat # ################################################################################ IGH_ETHERCAT_VERSION = 1.5.2 IGH_ETHERCAT_SITE = http://etherlab.org/download/ethercat IGH_ETHERCAT_SOURCE = ethercat-$(IGH_ETHERCAT_VERSION).tar.bz2 IGH_ETHERCAT_LICENSE = GPLv2 (IgH EtherCAT master), LGPLv2.1 (libraries) IGH_ETHERCAT_LICENSE_FILES = COPYING COPYING.LESSER IGH_ETHERCAT_INSTALL_STAGING = YES IGH_ETHERCAT_CONF_OPTS = \ --with-linux-dir=$(LINUX_DIR) IGH_ETHERCAT_CONF_OPTS += $(if $(BR2_PACKAGE_IGH_ETHERCAT_8139TOO),--enable-8139too,--disable-8139too) IGH_ETHERCAT_CONF_OPTS += $(if $(BR2_PACKAGE_IGH_ETHERCAT_E100),--enable-e100,--disable-e100) IGH_ETHERCAT_CONF_OPTS += $(if $(BR2_PACKAGE_IGH_ETHERCAT_E1000),--enable-e1000,--disable-e1000) IGH_ETHERCAT_CONF_OPTS += $(if $(BR2_PACKAGE_IGH_ETHERCAT_E1000E),--enable-e1000e,--disable-e1000e) IGH_ETHERCAT_CONF_OPTS += $(if $(BR2_PACKAGE_IGH_ETHERCAT_R8169),--enable-r8169,--disable-r8169) $(eval $(kernel-module)) $(eval $(autotools-package))
shibajee/buildroot
package/igh-ethercat/igh-ethercat.mk
mk
mit
1,099
config BR2_PACKAGE_IGMPPROXY bool "igmpproxy" depends on BR2_USE_MMU # fork() depends on BR2_USE_WCHAR help A simple dynamic Multicast Routing Daemon using only IGMP signalling. It's intended for simple forwarding of Multicast traffic between networks. http://sourceforge.net/projects/igmpproxy/ comment "igmpproxy needs a toolchain w/ wchar" depends on BR2_USE_MMU depends on !BR2_USE_WCHAR
shibajee/buildroot
package/igmpproxy/Config.in
in
mit
415
# Locally computed: sha256 2be2171cf273678810283937f7752dc9b8402456d0a03ee55f06ca52fadf075f igmpproxy-a731683d1a65956fa05024b0597b105fe6a3a122.tar.gz
shibajee/buildroot
package/igmpproxy/igmpproxy.hash
hash
mit
152
################################################################################ # # igmpproxy # ################################################################################ IGMPPROXY_VERSION = a731683d1a65956fa05024b0597b105fe6a3a122 IGMPPROXY_SITE = $(call github,pali,igmpproxy,$(IGMPPROXY_VERSION)) IGMPPROXY_AUTORECONF = YES IGMPPROXY_LICENSE = GPLv2+ IGMPPROXY_LICENSE_FILES = COPYING $(eval $(autotools-package))
shibajee/buildroot
package/igmpproxy/igmpproxy.mk
mk
mit
426
config BR2_PACKAGE_IJS bool "ijs" depends on BR2_USE_MMU # fork() help The IJS package contains a library which implements a protocol for transmission of raster page images. http://www.openprinting.org/
shibajee/buildroot
package/ijs/Config.in
in
mit
216
# Locally computed: sha256 11a5f5084488c480f3ff5a24d64d7147bb64272bf60a0ba51330a56c5b50cab9 ijs-0.35.tar.bz2
shibajee/buildroot
package/ijs/ijs.hash
hash
mit
110
################################################################################ # # ijs # ################################################################################ IJS_VERSION = 0.35 IJS_SOURCE = ijs-$(IJS_VERSION).tar.bz2 IJS_SITE = http://www.openprinting.org/download/ijs/download IJS_LICENSE = MIT IJS_LICENSE_FILES = README # Buildroot libtool patch does not apply, so we autoreconf the # package. IJS_AUTORECONF = YES IJS_INSTALL_STAGING = YES $(eval $(autotools-package))
shibajee/buildroot
package/ijs/ijs.mk
mk
mit
489
config BR2_PACKAGE_IMAGEMAGICK bool "imagemagick" depends on BR2_USE_MMU # fork() depends on BR2_TOOLCHAIN_HAS_THREADS help ImageMagick(R) is a software suite to create, edit, and compose bitmap images. It can read, convert and write images in a variety of formats (about 100) including DPX, EXR, GIF, JPEG, JPEG-2000, PDF, PhotoCD, PNG, Postscript, SVG, and TIFF. Use ImageMagick to translate, flip, mirror, rotate, scale, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves. http://www.imagemagick.org/ comment "imagemagick needs a toolchain w/ threads" depends on BR2_USE_MMU depends on !BR2_TOOLCHAIN_HAS_THREADS
shibajee/buildroot
package/imagemagick/Config.in
in
mit
736
# From http://www.imagemagick.org/download/releases/digest.rdf sha256 22df4f197985f36f77b7b0d44de92ff44415885045f0191b3319540bdc82ff53 ImageMagick-7.0.2-9.tar.xz
shibajee/buildroot
package/imagemagick/imagemagick.hash
hash
mit
162
################################################################################ # # imagemagick # ################################################################################ IMAGEMAGICK_VERSION = 7.0.2-9 IMAGEMAGICK_SOURCE = ImageMagick-$(IMAGEMAGICK_VERSION).tar.xz IMAGEMAGICK_SITE = http://www.imagemagick.org/download/releases IMAGEMAGICK_LICENSE = Apache-2.0 IMAGEMAGICK_LICENSE_FILES = LICENSE IMAGEMAGICK_INSTALL_STAGING = YES IMAGEMAGICK_CONFIG_SCRIPTS = \ $(addsuffix -config,MagickCore MagickWand) ifeq ($(BR2_INSTALL_LIBSTDCPP)$(BR2_USE_WCHAR),yy) IMAGEMAGICK_CONFIG_SCRIPTS += Magick++-config endif IMAGEMAGICK_CONF_ENV = ac_cv_sys_file_offset_bits=64 IMAGEMAGICK_CONF_OPTS = \ --program-transform-name='s,,,' \ --disable-openmp \ --without-djvu \ --without-dps \ --without-flif \ --without-fpx \ --without-gslib \ --without-gvc \ --without-jbig \ --without-lqr \ --without-openexr \ --without-perl \ --without-raqm \ --without-wmf \ --without-x \ --with-gs-font-dir=/usr/share/fonts/gs IMAGEMAGICK_DEPENDENCIES = host-pkgconf ifeq ($(BR2_PACKAGE_FONTCONFIG),y) IMAGEMAGICK_CONF_OPTS += --with-fontconfig IMAGEMAGICK_DEPENDENCIES += fontconfig else IMAGEMAGICK_CONF_OPTS += --without-fontconfig endif ifeq ($(BR2_PACKAGE_FREETYPE),y) IMAGEMAGICK_CONF_OPTS += --with-freetype IMAGEMAGICK_CONF_ENV += \ ac_cv_path_freetype_config=$(STAGING_DIR)/usr/bin/freetype-config IMAGEMAGICK_DEPENDENCIES += freetype else IMAGEMAGICK_CONF_OPTS += --without-freetype endif ifeq ($(BR2_PACKAGE_JPEG),y) IMAGEMAGICK_CONF_OPTS += --with-jpeg IMAGEMAGICK_DEPENDENCIES += jpeg else IMAGEMAGICK_CONF_OPTS += --without-jpeg endif ifeq ($(BR2_PACKAGE_LCMS2),y) IMAGEMAGICK_CONF_OPTS += --with-lcms IMAGEMAGICK_DEPENDENCIES += lcms2 else IMAGEMAGICK_CONF_OPTS += --without-lcms endif ifeq ($(BR2_PACKAGE_LIBPNG),y) IMAGEMAGICK_CONF_OPTS += --with-png IMAGEMAGICK_DEPENDENCIES += libpng else IMAGEMAGICK_CONF_OPTS += --without-png endif ifeq ($(BR2_PACKAGE_LIBRSVG),y) IMAGEMAGICK_CONF_OPTS += --with-rsvg IMAGEMAGICK_DEPENDENCIES += librsvg else IMAGEMAGICK_CONF_OPTS += --without-rsvg endif ifeq ($(BR2_PACKAGE_LIBXML2),y) IMAGEMAGICK_CONF_OPTS += --with-xml IMAGEMAGICK_CONF_ENV += ac_cv_path_xml2_config=$(STAGING_DIR)/usr/bin/xml2-config IMAGEMAGICK_DEPENDENCIES += libxml2 else IMAGEMAGICK_CONF_OPTS += --without-xml endif ifeq ($(BR2_PACKAGE_PANGO),y) IMAGEMAGICK_CONF_OPTS += --with-pango IMAGEMAGICK_DEPENDENCIES += pango else IMAGEMAGICK_CONF_OPTS += --without-pango endif ifeq ($(BR2_PACKAGE_TIFF),y) IMAGEMAGICK_CONF_OPTS += --with-tiff IMAGEMAGICK_DEPENDENCIES += tiff else IMAGEMAGICK_CONF_OPTS += --without-tiff endif ifeq ($(BR2_PACKAGE_XZ),y) IMAGEMAGICK_CONF_OPTS += --with-lzma IMAGEMAGICK_DEPENDENCIES += xz else IMAGEMAGICK_CONF_OPTS += --without-lzma endif ifeq ($(BR2_PACKAGE_FFTW),y) # configure script misdetects these leading to build errors IMAGEMAGICK_CONF_ENV += ac_cv_func_creal=yes ac_cv_func_cimag=yes IMAGEMAGICK_CONF_OPTS += --with-fftw IMAGEMAGICK_DEPENDENCIES += fftw else IMAGEMAGICK_CONF_OPTS += --without-fftw endif ifeq ($(BR2_PACKAGE_WEBP),y) IMAGEMAGICK_CONF_OPTS += --with-webp IMAGEMAGICK_DEPENDENCIES += webp else IMAGEMAGICK_CONF_OPTS += --without-webp endif ifeq ($(BR2_PACKAGE_ZLIB),y) IMAGEMAGICK_CONF_OPTS += --with-zlib IMAGEMAGICK_DEPENDENCIES += zlib else IMAGEMAGICK_CONF_OPTS += --without-zlib endif ifeq ($(BR2_PACKAGE_BZIP2),y) IMAGEMAGICK_CONF_OPTS += --with-bzlib IMAGEMAGICK_DEPENDENCIES += bzip2 else IMAGEMAGICK_CONF_OPTS += --without-bzlib endif $(eval $(autotools-package))
shibajee/buildroot
package/imagemagick/imagemagick.mk
mk
mit
3,571
comment "imlib2 needs a toolchain w/ dynamic library" depends on BR2_STATIC_LIBS config BR2_PACKAGE_IMLIB2 bool "imlib2" select BR2_PACKAGE_FREETYPE depends on !BR2_STATIC_LIBS # dlopen() help Imlib 2 is the successor to Imlib. This library provides routines to load, save and render images in various formats. http://freshmeat.net/projects/imlib2/ if BR2_PACKAGE_IMLIB2 config BR2_PACKAGE_IMLIB2_JPEG bool "JPEG support" select BR2_PACKAGE_JPEG config BR2_PACKAGE_IMLIB2_PNG bool "PNG support" select BR2_PACKAGE_LIBPNG config BR2_PACKAGE_IMLIB2_GIF bool "GIF support" select BR2_PACKAGE_GIFLIB config BR2_PACKAGE_IMLIB2_TIFF bool "TIFF support" select BR2_PACKAGE_TIFF config BR2_PACKAGE_IMLIB2_ID3 bool "ID3 support" select BR2_PACKAGE_LIBID3TAG config BR2_PACKAGE_IMLIB2_X bool "X support" default y depends on BR2_PACKAGE_XORG7 select BR2_PACKAGE_XLIB_LIBXEXT select BR2_PACKAGE_XLIB_LIBX11 endif
shibajee/buildroot
package/imlib2/Config.in
in
mit
940
# From https://sourceforge.net/projects/enlightenment/files/imlib2-src/1.4.9/ md5 23ef8b49f2793bc63b16839a2062298b imlib2-1.4.9.tar.bz2 sha1 f389d67c337b604a365e620b0083b2d342dd724e imlib2-1.4.9.tar.bz2
shibajee/buildroot
package/imlib2/imlib2.hash
hash
mit
203
################################################################################ # # imlib2 # ################################################################################ IMLIB2_VERSION = 1.4.9 IMLIB2_SOURCE = imlib2-$(IMLIB2_VERSION).tar.bz2 IMLIB2_SITE = http://downloads.sourceforge.net/project/enlightenment/imlib2-src/$(IMLIB2_VERSION) IMLIB2_LICENSE = imlib2 license IMLIB2_LICENSE_FILES = COPYING IMLIB2_INSTALL_STAGING = YES IMLIB2_DEPENDENCIES = host-pkgconf freetype IMLIB2_CONF_OPTS = --with-freetype-config=$(STAGING_DIR)/usr/bin/freetype-config IMLIB2_CONFIG_SCRIPTS = imlib2-config ifeq ($(BR2_PACKAGE_IMLIB2_X),y) IMLIB2_CONF_OPTS += --with-x IMLIB2_DEPENDENCIES += xlib_libX11 xlib_libXext else IMLIB2_CONF_OPTS += --without-x endif ifeq ($(BR2_PACKAGE_IMLIB2_JPEG),y) IMLIB2_CONF_OPTS += --with-jpeg IMLIB2_DEPENDENCIES += jpeg else IMLIB2_CONF_OPTS += --without-jpeg endif ifeq ($(BR2_PACKAGE_IMLIB2_PNG),y) IMLIB2_CONF_OPTS += --with-png IMLIB2_DEPENDENCIES += libpng else IMLIB2_CONF_OPTS += --without-png endif ifeq ($(BR2_PACKAGE_IMLIB2_GIF),y) IMLIB2_CONF_OPTS += --with-gif IMLIB2_DEPENDENCIES += giflib else IMLIB2_CONF_OPTS += --without-gif endif ifeq ($(BR2_PACKAGE_IMLIB2_TIFF),y) IMLIB2_CONF_OPTS += --with-tiff IMLIB2_DEPENDENCIES += tiff else IMLIB2_CONF_OPTS += --without-tiff endif ifeq ($(BR2_PACKAGE_IMLIB2_ID3),y) IMLIB2_CONF_OPTS += --with-id3 IMLIB2_DEPENDENCIES += libid3tag else IMLIB2_CONF_OPTS += --without-id3 endif # drop -L<dir> from linker flags define IMLIB2_FIXUP_IMLIB2_CONFIG $(SED) 's/-L[^ ]*//g' $(STAGING_DIR)/usr/bin/imlib2-config endef IMLIB2_POST_INSTALL_STAGING_HOOKS += IMLIB2_FIXUP_IMLIB2_CONFIG $(eval $(autotools-package))
shibajee/buildroot
package/imlib2/imlib2.mk
mk
mit
1,700
config BR2_PACKAGE_HOST_IMX_USB_LOADER bool "host imx-usb-loader" depends on BR2_arm help This package contains tools to download and execute code on Freescale i.MX5/i.MX6 and Vybrid SoCs through the Serial Download Protocol. https://github.com/boundarydevices/imx_usb_loader
shibajee/buildroot
package/imx-usb-loader/Config.in.host
host
mit
292
# locally computed sha256 1e7ee8af34e7d0a3b9761c25a4edfc7140d23132129818d288c74fc0d58796e5 imx-usb-loader-f96aee286ea17c832b7ec922dd76842deb5ce299.tar.gz
shibajee/buildroot
package/imx-usb-loader/imx-usb-loader.hash
hash
mit
156
################################################################################ # # imx-usb-loader # ################################################################################ IMX_USB_LOADER_VERSION = f96aee286ea17c832b7ec922dd76842deb5ce299 IMX_USB_LOADER_SITE = $(call github,boundarydevices,imx_usb_loader,$(IMX_USB_LOADER_VERSION)) IMX_USB_LOADER_LICENSE = LGPLv2.1+ IMX_USB_LOADER_LICENSE_FILES = COPYING HOST_IMX_USB_LOADER_DEPENDENCIES = host-libusb host-pkgconf define HOST_IMX_USB_LOADER_BUILD_CMDS $(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D) endef define HOST_IMX_USB_LOADER_INSTALL_CMDS $(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D) \ DESTDIR=$(HOST_DIR) sysconfdir=/etc install endef $(eval $(host-generic-package))
shibajee/buildroot
package/imx-usb-loader/imx-usb-loader.mk
mk
mit
733
config BR2_PACKAGE_INADYN bool "inadyn" depends on BR2_USE_MMU # Uses fork() depends on !BR2_STATIC_LIBS # dlopen() help INADYN is a free DynDNS client. It gives the possibility to have your own fixed hostname registered on the internet, although your IP might be changing. https://github.com/troglobit/inadyn comment "inadyn needs a toolchain w/ dynamic library" depends on BR2_STATIC_LIBS depends on BR2_USE_MMU
shibajee/buildroot
package/inadyn/Config.in
in
mit
434
#!/bin/sh # # Start & stop the inadyn client # CONFIG=/etc/inadyn.conf # check if CONFIG exists, print message & exit if it doesn't [ ! -f $CONFIG ] && ( echo "The config file "$CONFIG" is missing...exiting now." && exit 2 ) # Allow a few customizations from a config file. Especially inadyn # must be explicitly enabled by adding ENABLED="yes" in this file. test -r /etc/default/inadyn && . /etc/default/inadyn case "$1" in start) printf "Starting inadyn: " if test "${ENABLED}" != "yes" ; then echo "SKIPPED" exit 0 fi start-stop-daemon -b -q -S -p /var/run/inadyn.pid -x /usr/sbin/inadyn [ $? = 0 ] && echo "OK" || echo "FAIL" ;; stop) printf "Stopping inadyn: " if test "${ENABLED}" != "yes" ; then echo "SKIPPED" exit 0 fi start-stop-daemon -q -K -p /var/run/inadyn.pid -x /usr/sbin/inadyn [ $? = 0 ] && echo "OK" || echo "FAIL" rm -f /var/run/inadyn.pid ;; restart) "$0" stop "$0" start ;; *) echo "Usage: $0 {start|stop|restart}" exit 1 esac exit $?
shibajee/buildroot
package/inadyn/S70inadyn
none
mit
1,027
# Basic configuration file for inadyn # # /etc/inadyn.conf pidfile /var/run/inadyn.pid update_period_sec 600 # Check for a new IP every 600 seconds username test # replace 'test' with your username password test # replace 'test' with your password dyndns_system default@dyndns.org # replace w/ your provider alias test.homeip.net # replace 'test.homeip.net' with yourdomainname for actual (non-test) use
shibajee/buildroot
package/inadyn/inadyn.conf
INI
mit
409
# From https://github.com/troglobit/inadyn/releases/download/1.99.12/inadyn-1.99.12.tar.xz.md5 md5 a620c9eab9cd31c8923e7264b08376f3 inadyn-1.99.12.tar.xz
shibajee/buildroot
package/inadyn/inadyn.hash
hash
mit
154
################################################################################ # # inadyn # ################################################################################ INADYN_VERSION = 1.99.12 INADYN_SITE = https://github.com/troglobit/inadyn/releases/download/$(INADYN_VERSION) INADYN_SOURCE = inadyn-$(INADYN_VERSION).tar.xz INADYN_LICENSE = GPLv2+ INADYN_LICENSE_FILES = COPYING ifeq ($(BR2_PACKAGE_OPENSSL),y) INADYN_CONF_OPTS += --enable-openssl INADYN_DEPENDENCIES += openssl else ifeq ($(BR2_PACKAGE_GNUTLS),y) INADYN_DEPENDENCIES += gnutls else INADYN_CONF_OPTS += --disable-ssl endif define INADYN_INSTALL_SAMPLE_CONFIG $(INSTALL) -D -m 0600 package/inadyn/inadyn.conf \ $(TARGET_DIR)/etc/inadyn.conf endef INADYN_POST_INSTALL_TARGET_HOOKS += INADYN_INSTALL_SAMPLE_CONFIG define INADYN_INSTALL_INIT_SYSV $(INSTALL) -D -m 0755 package/inadyn/S70inadyn \ $(TARGET_DIR)/etc/init.d/S70inadyn endef define INADYN_INSTALL_INIT_SYSTEMD $(INSTALL) -D -m 644 package/inadyn/inadyn.service \ $(TARGET_DIR)/usr/lib/systemd/system/inadyn.service mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants ln -sf ../../../../usr/lib/systemd/system/inadyn.service \ $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/inadyn.service endef $(eval $(autotools-package))
shibajee/buildroot
package/inadyn/inadyn.mk
mk
mit
1,301
[Unit] Description=DDNS client After=syslog.target network.target [Service] ExecStart=/usr/bin/inadyn Restart=always [Install] WantedBy=multi-user.target
shibajee/buildroot
package/inadyn/inadyn.service
service
mit
156