code
string
repo_name
string
path
string
language
string
license
string
size
int64
config BR2_PACKAGE_INCONSOLATA bool "inconsolata" help Inconsolata is a monospace font, designed for code listings and the like. http://www.google.com/fonts/specimen/Inconsolata
shibajee/buildroot
package/inconsolata/Config.in
in
mit
190
# From http://snapshot.debian.org/archive/debian/20091207T044352Z/pool/main/t/ttf-inconsolata/ttf-inconsolata_001.010-2.dsc sha256 ecf8ba44911fcb3c9683aef1ca2b3cfbafa119a3e93c682f448850e1ae08ce93 ttf-inconsolata_001.010.orig.tar.gz
shibajee/buildroot
package/inconsolata/inconsolata.hash
hash
mit
232
################################################################################ # # inconsolata # ################################################################################ INCONSOLATA_VERSION = 001.010 INCONSOLATA_SITE = http://snapshot.debian.org/archive/debian/20090524T155154Z/pool/main/t/ttf-inconsolata INCONSOLATA_SOURCE = ttf-inconsolata_$(INCONSOLATA_VERSION).orig.tar.gz INCONSOLATA_TARGET_DIR = $(TARGET_DIR)/usr/share/fonts/inconsolata INCONSOLATA_LICENSE = OFLv1.0 INCONSOLATA_LICENSE_FILES = OFL.txt define INCONSOLATA_INSTALL_TARGET_CMDS mkdir -p $(INCONSOLATA_TARGET_DIR) $(INSTALL) -m 644 $(@D)/*.otf $(INCONSOLATA_TARGET_DIR) endef $(eval $(generic-package))
shibajee/buildroot
package/inconsolata/inconsolata.mk
mk
mit
689
config BR2_PACKAGE_INITSCRIPTS bool help The basics startup scripts for both SysV and Busybox
shibajee/buildroot
package/initscripts/Config.in
in
mit
99
#! /bin/sh # # urandom This script saves the random seed between reboots. # It is called from the boot, halt and reboot scripts. # # Version: @(#)urandom 1.33 22-Jun-1998 miquels@cistron.nl # [ -c /dev/urandom ] || exit 0 #. /etc/default/rcS case "$1" in start|"") # check for read only file system if ! touch /etc/random-seed 2>/dev/null then echo "read-only file system detected...done" exit fi if [ "$VERBOSE" != no ] then printf "Initializing random number generator... " fi # Load and then save 512 bytes, # which is the size of the entropy pool cat /etc/random-seed >/dev/urandom rm -f /etc/random-seed umask 077 dd if=/dev/urandom of=/etc/random-seed count=1 \ >/dev/null 2>&1 || echo "urandom start: failed." umask 022 [ "$VERBOSE" != no ] && echo "done." ;; stop) if ! touch /etc/random-seed 2>/dev/null then exit fi # Carry a random seed from shut-down to start-up; # see documentation in linux/drivers/char/random.c [ "$VERBOSE" != no ] && printf "Saving random seed... " umask 077 dd if=/dev/urandom of=/etc/random-seed count=1 \ >/dev/null 2>&1 || echo "urandom stop: failed." [ "$VERBOSE" != no ] && echo "done." ;; *) echo "Usage: urandom {start|stop}" >&2 exit 1 ;; esac
shibajee/buildroot
package/initscripts/init.d/S20urandom
none
mit
1,321
#!/bin/sh # # Start the network.... # # Debian ifupdown needs the /run/network lock directory mkdir -p /run/network case "$1" in start) printf "Starting network: " /sbin/ifup -a [ $? = 0 ] && echo "OK" || echo "FAIL" ;; stop) printf "Stopping network: " /sbin/ifdown -a [ $? = 0 ] && echo "OK" || echo "FAIL" ;; restart|reload) "$0" stop "$0" start ;; *) echo "Usage: $0 {start|stop|restart}" exit 1 esac exit $?
shibajee/buildroot
package/initscripts/init.d/S40network
none
mit
438
#!/bin/sh # Stop all init scripts in /etc/init.d # executing them in reversed numerical order. # for i in $(ls -r /etc/init.d/S??*) ;do # Ignore dangling symlinks (if any). [ ! -f "$i" ] && continue case "$i" in *.sh) # Source shell script for speed. ( trap - INT QUIT TSTP set stop . $i ) ;; *) # No sh extension, so fork subprocess. $i stop ;; esac done
shibajee/buildroot
package/initscripts/init.d/rcK
none
mit
423
#!/bin/sh # Start all init scripts in /etc/init.d # executing them in numerical order. # for i in /etc/init.d/S??* ;do # Ignore dangling symlinks (if any). [ ! -f "$i" ] && continue case "$i" in *.sh) # Source shell script for speed. ( trap - INT QUIT TSTP set start . $i ) ;; *) # No sh extension, so fork subprocess. $i start ;; esac done
shibajee/buildroot
package/initscripts/init.d/rcS
none
mit
408
################################################################################ # # initscripts # ################################################################################ define INITSCRIPTS_INSTALL_TARGET_CMDS mkdir -p $(TARGET_DIR)/etc/init.d $(INSTALL) -D -m 0755 package/initscripts/init.d/* $(TARGET_DIR)/etc/init.d/ endef $(eval $(generic-package))
shibajee/buildroot
package/initscripts/initscripts.mk
mk
mit
368
From 5fe3ba82134d8b85adc69cf1d6c5742b4bde20b4 Mon Sep 17 00:00:00 2001 From: James Knight <james.d.knight@live.com> Date: Thu, 16 Jun 2016 00:00:57 -0400 Subject: [PATCH] correct code alignment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The following replaces the indented section of code from spaces to tabs. No functional changes. Aside from consistency, this resolves a GCC 6 build issue with the flag `-Werror=misleading-indentation` enabled: inotifywait.c: In function ‘output_event_csv’: inotifywait.c:126:5: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation] if (filename != NULL) ^~ inotifywait.c:129:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’ printf("%s,", csv_escape( inotifytools_event_to_str( event->mask ) ) ); ^~~~~~ Signed-off-by: James Knight <james.d.knight@live.com> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> (downloaded from upstream pull request https://github.com/rvoicilas/inotify-tools/pull/65) --- src/inotifywait.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/inotifywait.c b/src/inotifywait.c index c5ce5e3..404a85b 100644 --- a/src/inotifywait.c +++ b/src/inotifywait.c @@ -122,9 +122,9 @@ void validate_format( char * fmt ) { void output_event_csv( struct inotify_event * event ) { - char *filename = csv_escape(inotifytools_filename_from_wd(event->wd)); - if (filename != NULL) - printf("%s,", filename); + char *filename = csv_escape(inotifytools_filename_from_wd(event->wd)); + if (filename != NULL) + printf("%s,", filename); printf("%s,", csv_escape( inotifytools_event_to_str( event->mask ) ) ); if ( event->len > 0 )
shibajee/buildroot
package/inotify-tools/0001-gcc6.patch
patch
mit
1,970
config BR2_PACKAGE_INOTIFY_TOOLS bool "inotify-tools" depends on BR2_USE_MMU # fork() help inotify-tools is a C library and a set of command-line programs for Linux providing a simple interface to inotify. These programs can be used to monitor and act upon filesystem events. Provides the 'inotifywait' and 'inotifywatch' binaries. https://github.com/rvoicilas/inotify-tools
shibajee/buildroot
package/inotify-tools/Config.in
in
mit
397
# Locally computed sha256 628b8efabb65a739dd747fe43b73b29a609b5cfa9628caa127764ed77766a6e1 inotify-tools-1df9af4d6cd0f4af4b1b19254bcf056aed4ae395.tar.gz
shibajee/buildroot
package/inotify-tools/inotify-tools.hash
hash
mit
153
################################################################################ # # inotify-tools # ################################################################################ INOTIFY_TOOLS_VERSION = 1df9af4d6cd0f4af4b1b19254bcf056aed4ae395 INOTIFY_TOOLS_SITE = $(call github,rvoicilas,inotify-tools,$(INOTIFY_TOOLS_VERSION)) INOTIFY_TOOLS_LICENSE = GPL INOTIFY_TOOLS_LICENSE_FILES = COPYING INOTIFY_TOOLS_INSTALL_STAGING = YES INOTIFY_TOOLS_AUTORECONF = YES $(eval $(autotools-package))
shibajee/buildroot
package/inotify-tools/inotify-tools.mk
mk
mit
496
config BR2_PACKAGE_INPUT_EVENT_DAEMON bool "input-event-daemon" # Uses fork() depends on BR2_USE_MMU help input-event-daemon is a daemon which executes a user-defined command on input events, such as keys, mouse buttons and switches. http://github.com/gandro/input-event-daemon
shibajee/buildroot
package/input-event-daemon/Config.in
in
mit
295
#! /bin/sh [ -f /usr/bin/input-event-daemon ] || exit 0 start() { printf "Starting input-event-daemon: " input-event-daemon echo "done" } stop() { printf "Stopping input-event-daemon: " killall input-event-daemon echo "done" } restart() { stop start } # See how we were called. case "$1" in start) start ;; stop) stop ;; restart|reload) restart ;; *) echo "Usage: $0 {start|stop|reload|restart}" exit 1 esac exit $?
shibajee/buildroot
package/input-event-daemon/S99input-event-daemon
none
mit
447
# Locally calculated sha256 1d9a44160aead88080093f74be9d709fbbc2637f982958e2673d80aedacd0a65 input-event-daemon-v0.1.3.tar.gz
shibajee/buildroot
package/input-event-daemon/input-event-daemon.hash
hash
mit
127
################################################################################ # # input-event-daemon # ################################################################################ INPUT_EVENT_DAEMON_VERSION = v0.1.3 INPUT_EVENT_DAEMON_SITE = $(call github,gandro,input-event-daemon,$(INPUT_EVENT_DAEMON_VERSION)) INPUT_EVENT_DAEMON_LICENSE = input-event-daemon license INPUT_EVENT_DAEMON_LICENSE_FILES = README define INPUT_EVENT_DAEMON_BUILD_CMDS touch $(@D)/input-event-table.h $(MAKE) CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)" \ LDFLAGS="$(TARGET_LDFLAGS)" -C $(@D) endef define INPUT_EVENT_DAEMON_INSTALL_TARGET_CMDS $(INSTALL) -m 755 -D $(@D)/input-event-daemon \ $(TARGET_DIR)/usr/bin/input-event-daemon $(INSTALL) -m 644 -D $(@D)/docs/sample.conf \ $(TARGET_DIR)/etc/input-event-daemon.conf endef define INPUT_EVENT_DAEMON_INSTALL_INIT_SYSV $(INSTALL) -m 0755 -D package/input-event-daemon/S99input-event-daemon \ $(TARGET_DIR)/etc/init.d/S99input-event-daemon endef define INPUT_EVENT_DAEMON_INSTALL_INIT_SYSTEMD $(INSTALL) -D -m 644 package/input-event-daemon/input-event-daemon.service \ $(TARGET_DIR)/usr/lib/systemd/system/input-event-daemon.service mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants ln -sf /usr/lib/systemd/system/input-event-daemon.service \ $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/input-event-daemon.service endef $(eval $(generic-package))
shibajee/buildroot
package/input-event-daemon/input-event-daemon.mk
mk
mit
1,441
[Unit] Description=Input Event Daemon [Service] ExecStart=/usr/bin/input-event-daemon --no-daemon Restart=always [Install] WantedBy=multi-user.target
shibajee/buildroot
package/input-event-daemon/input-event-daemon.service
service
mit
152
diff -urN joystick-20051019.orig/utils/jscal.c joystick-20051019/utils/jscal.c --- joystick-20051019.orig/utils/jscal.c 2004-10-19 09:51:52.000000000 +0200 +++ joystick-20051019/utils/jscal.c 2009-01-18 10:48:50.000000000 +0100 @@ -141,10 +141,10 @@ c = 32767.0 / (inputs.cmin[1] - inputs.cmax[0]); d = 32767.0 / (inputs.cmin[2] - inputs.cmax[1]); - results[0] = rint(a); - results[1] = rint(b); - results[2] = rint(c*16384.0); - results[3] = rint(d*16384.0); + results[0] = (int) (a + 0.5); + results[1] = (int) (b + 0.5); + results[2] = (int) (c*16384.0 + 0.5); + results[3] = (int) (d*16384.0 + 0.5); return 1; }
shibajee/buildroot
package/input-tools/0001-rint.patch
patch
mit
627
config BR2_PACKAGE_INPUT_TOOLS bool "input-tools" help Tools for the Linux kernel input layer. http://linuxconsole.sourceforge.net/ if BR2_PACKAGE_INPUT_TOOLS config BR2_PACKAGE_INPUT_TOOLS_INPUTATTACH bool "inputattach" default y help Inputattach is used for attaching a serial line to the input layer. config BR2_PACKAGE_INPUT_TOOLS_JSCAL bool "jscal" default y help Joystick calibration program. config BR2_PACKAGE_INPUT_TOOLS_JSTEST bool "jstest" default y help Joystick test program. endif
shibajee/buildroot
package/input-tools/Config.in
in
mit
526
# From http://snapshot.debian.org/archive/debian/20141023T043132Z/pool/main/j/joystick/joystick_20051019-12.dsc sha256 cb60cb62093f1889a91fcef1cc36546aba406f451941e8d057f095639e6afb89 joystick_20051019.orig.tar.gz # From http://snapshot.debian.org/archive/debian/20090630T220234Z/pool/main/j/joystick/joystick_20051019-5.dsc sha256 01e9d14a656d594a3e261751233200f740a09c2a538ac71447c104ffe89ec10c joystick_20051019-5.diff.gz
shibajee/buildroot
package/input-tools/input-tools.hash
hash
mit
425
################################################################################ # # input-tools # ################################################################################ INPUT_TOOLS_VERSION = 20051019 INPUT_TOOLS_SOURCE = joystick_$(INPUT_TOOLS_VERSION).orig.tar.gz INPUT_TOOLS_PATCH = joystick_$(INPUT_TOOLS_VERSION)-5.diff.gz INPUT_TOOLS_SITE = http://snapshot.debian.org/archive/debian/20101023T043132Z/pool/main/j/joystick INPUT_TOOLS_LICENSE = GPLv2+ INPUT_TOOLS_LICENSE_FILES = utils/Makefile INPUT_TOOLS_TARGETS_$(BR2_PACKAGE_INPUT_TOOLS_INPUTATTACH) += inputattach INPUT_TOOLS_TARGETS_$(BR2_PACKAGE_INPUT_TOOLS_JSCAL) += jscal INPUT_TOOLS_TARGETS_$(BR2_PACKAGE_INPUT_TOOLS_JSTEST) += jstest define INPUT_TOOLS_DEBIAN_PATCHES if [ -d $(@D)/debian/patches ]; then \ $(APPLY_PATCHES) $(@D) $(@D)/debian/patches \*.patch; \ fi endef INPUT_TOOLS_POST_PATCH_HOOKS = INPUT_TOOLS_DEBIAN_PATCHES # jscal needs -lm define INPUT_TOOLS_BUILD_CMDS for i in $(filter-out jscal,$(INPUT_TOOLS_TARGETS_y)); do \ $(TARGET_CC) $(TARGET_CFLAGS) -o $(@D)/$$i $(@D)/utils/$$i.c \ $(TARGET_LDFLAGS); \ done for i in $(filter jscal,$(INPUT_TOOLS_TARGETS_y)); do \ $(TARGET_CC) $(TARGET_CFLAGS) -o $(@D)/$$i $(@D)/utils/$$i.c \ $(TARGET_LDFLAGS) -lm; \ done endef define INPUT_TOOLS_INSTALL_TARGET_CMDS for i in $(INPUT_TOOLS_TARGETS_y); do \ $(INSTALL) -m 755 -D $(@D)/$$i $(TARGET_DIR)/usr/bin/$$i; \ done endef $(eval $(generic-package))
shibajee/buildroot
package/input-tools/input-tools.mk
mk
mit
1,474
config BR2_PACKAGE_INTEL_MICROCODE bool "intel-microcode" depends on BR2_x86_64 || BR2_i386 help This package provides an Intel microcode data file that can be used to correct processor errors. The iucode-tool package and proper kernel support are required to upload the microcode.
shibajee/buildroot
package/intel-microcode/Config.in
in
mit
294
# Locally computed sha256 096e39489eef67666be652e81fa372a06b74f39ea3d565dc0287242c668717e7 microcode-20151106.tgz
shibajee/buildroot
package/intel-microcode/intel-microcode.hash
hash
mit
114
################################################################################ # # intel-microcode # ################################################################################ INTEL_MICROCODE_VERSION = 20151106 INTEL_MICROCODE_SOURCE = microcode-$(INTEL_MICROCODE_VERSION).tgz INTEL_MICROCODE_SITE = http://downloadmirror.intel.com/25512/eng INTEL_MICROCODE_STRIP_COMPONENTS = 0 INTEL_MICROCODE_LICENSE = PROPRIETARY INTEL_MICROCODE_LICENSE_FILES = license.txt INTEL_MICROCODE_REDISTRIBUTE = NO define INTEL_MICROCODE_EXTRACT_LICENSE head -n 33 $(@D)/microcode.dat > $(@D)/license.txt endef INTEL_MICROCODE_POST_EXTRACT_HOOKS += INTEL_MICROCODE_EXTRACT_LICENSE define INTEL_MICROCODE_INSTALL_TARGET_CMDS $(INSTALL) -D -m 0644 $(@D)/microcode.dat \ $(TARGET_DIR)/usr/share/misc/intel-microcode.dat endef $(eval $(generic-package))
shibajee/buildroot
package/intel-microcode/intel-microcode.mk
mk
mit
847
config BR2_PACKAGE_INTLTOOL bool "intltool" # Hide from configuration as we only support the host package # for the moment depends on BR2_HOST_ONLY help Utility scripts for internationalizing XML http://www.freedesktop.org/wiki/Software/intltool
shibajee/buildroot
package/intltool/Config.in
in
mit
258
# From https://launchpad.net/intltool/trunk/0.51.0/+download/intltool-0.51.0.tar.gz/+md5 md5 12e517cac2b57a0121cda351570f1e63 intltool-0.51.0.tar.gz # Locally calculated sha256 67c74d94196b153b774ab9f89b2fa6c6ba79352407037c8c14d5aeb334e959cd intltool-0.51.0.tar.gz
shibajee/buildroot
package/intltool/intltool.hash
hash
mit
267
################################################################################ # # intltool # ################################################################################ INTLTOOL_VERSION = 0.51.0 INTLTOOL_SITE = https://launchpad.net/intltool/trunk/$(INTLTOOL_VERSION)/+download INTLTOOL_LICENSE = GPLv2+ INTLTOOL_LICENSE_FILES = COPYING HOST_INTLTOOL_DEPENDENCIES = host-gettext host-libxml-parser-perl $(eval $(autotools-package)) $(eval $(host-autotools-package))
shibajee/buildroot
package/intltool/intltool.mk
mk
mit
477
Disable selinux and systemd support since they check for host headers. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> diff -Nura iodine-0.7.0.orig/src/osflags iodine-0.7.0/src/osflags --- iodine-0.7.0.orig/src/osflags 2015-02-20 14:59:00.799958145 -0300 +++ iodine-0.7.0/src/osflags 2015-02-20 15:05:54.791135141 -0300 @@ -18,8 +18,8 @@ ;; Linux) FLAGS=""; - [ -e /usr/include/selinux/selinux.h ] && FLAGS="$FLAGS -lselinux"; - [ -e /usr/include/systemd/sd-daemon.h ] && FLAGS="$FLAGS -lsystemd-daemon"; + #[ -e /usr/include/selinux/selinux.h ] && FLAGS="$FLAGS -lselinux"; + #[ -e /usr/include/systemd/sd-daemon.h ] && FLAGS="$FLAGS -lsystemd-daemon"; echo $FLAGS; ;; esac @@ -34,8 +34,8 @@ ;; Linux) FLAGS="-D_GNU_SOURCE" - [ -e /usr/include/selinux/selinux.h ] && FLAGS="$FLAGS -DHAVE_SETCON"; - [ -e /usr/include/systemd/sd-daemon.h ] && FLAGS="$FLAGS -DHAVE_SYSTEMD"; + #[ -e /usr/include/selinux/selinux.h ] && FLAGS="$FLAGS -DHAVE_SETCON"; + #[ -e /usr/include/systemd/sd-daemon.h ] && FLAGS="$FLAGS -DHAVE_SYSTEMD"; echo $FLAGS; ;; esac
shibajee/buildroot
package/iodine/0001-disable-systemd-and-selinux.patch
patch
mit
1,112
config BR2_PACKAGE_IODINE bool "iodine" select BR2_PACKAGE_ZLIB help iodine lets you tunnel IPv4 data through a DNS server. This can be usable in different situations where internet access is firewalled, but DNS queries are allowed. http://code.kryo.se/iodine/
shibajee/buildroot
package/iodine/Config.in
in
mit
277
# From http://code.kryo.se/iodine/ md5 fdbf3b81cd69caf5230d76a8b039fd99 iodine-0.7.0.tar.gz
shibajee/buildroot
package/iodine/iodine.hash
hash
mit
92
################################################################################ # # iodine # ################################################################################ IODINE_VERSION = 0.7.0 IODINE_SITE = http://code.kryo.se/iodine IODINE_DEPENDENCIES = zlib IODINE_LICENSE = MIT IODINE_LICENSE_FILES = README IODINE_CFLAGS = $(TARGET_CFLAGS) # iodine contains a local implementation of daemon(3) for older # systems, unless __GLIBC__ is defined. Musl does provide it, but # unlike uClibc it doesn't define __GLIBC__. Work around it by # pretending to be glibc as we otherwise end up with symbol conflicts. ifeq ($(BR2_TOOLCHAIN_USES_MUSL),y) IODINE_CFLAGS += -D__GLIBC__ endif define IODINE_BUILD_CMDS $(TARGET_CONFIGURE_OPTS) CFLAGS="$(IODINE_CFLAGS)" \ $(MAKE) ARCH=$(BR2_ARCH) -C $(@D) endef define IODINE_INSTALL_TARGET_CMDS $(MAKE) -C $(@D) install DESTDIR="$(TARGET_DIR)" prefix=/usr endef $(eval $(generic-package))
shibajee/buildroot
package/iodine/iodine.mk
mk
mit
941
From bf646965f75cdad77a45fa3b0046e093b202b2ce Mon Sep 17 00:00:00 2001 From: Gustavo Zacarias <gustavo@zacarias.com.ar> Date: Thu, 22 Jul 2010 12:42:10 -0300 Subject: [PATCH] Make cpu number counter more reliable Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> --- iostat.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/iostat.c b/iostat.c index 13e2af7..5d74085 100644 --- a/iostat.c +++ b/iostat.c @@ -140,7 +140,7 @@ void get_number_of_cpus() handle_error("Can't open /proc/cpuinfo", !ncpufp); while (fgets(buffer, sizeof(buffer), ncpufp)) { - if (!strncmp(buffer, "processor\t:", 11)) + if (!strncasecmp(buffer, "processor\t", 10)) ncpu++; } fclose(ncpufp); -- 1.7.1
shibajee/buildroot
package/iostat/0001-cpunum.patch
patch
mit
730
config BR2_PACKAGE_IOSTAT bool "iostat" help An I/O performance monitoring utility. http://www.linuxinsight.com/iostat_utility.html
shibajee/buildroot
package/iostat/Config.in
in
mit
141
# Locally calculated sha256 edc5aa73f43bd6c7d49f2c1d5906a0a68c0b28bc4dfdaf1f2aa5ae4a2449c58e iostat-2.2.tar.gz
shibajee/buildroot
package/iostat/iostat.hash
hash
mit
111
################################################################################ # # iostat # ################################################################################ IOSTAT_VERSION = 2.2 IOSTAT_SITE = http://www.linuxinsight.com/files IOSTAT_LICENSE = GPL IOSTAT_LICENSE_FILES = LICENSE define IOSTAT_BUILD_CMDS $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) \ CFLAGS="$(TARGET_CFLAGS) -DHZ=100" endef define IOSTAT_INSTALL_TARGET_CMDS $(INSTALL) -D -m 0755 $(IOSTAT_DIR)/iostat $(TARGET_DIR)/usr/bin/iostat endef $(eval $(generic-package))
shibajee/buildroot
package/iostat/iostat.mk
mk
mit
553
Status: upstream http://repo.or.cz/w/iotop.git/commit/99c8d7cedce81f17b851954d94bfa73787300599 Signed-off-by: Christophe Vu-Brugier <cvubrugier@fastmail.fm> From 99c8d7cedce81f17b851954d94bfa73787300599 Mon Sep 17 00:00:00 2001 From: Christophe Vu-Brugier <cvubrugier@fastmail.fm> Date: Fri, 17 Oct 2014 13:49:31 +0200 Subject: [PATCH] Fix build error with Python 3 caused by itervalues() in setup.py The itervalues() method is not available in Python 3. As a consequence, this patch replaces the call to itervalues() in setup.py with a call to values() which works on both Python 2 and Python 3. Signed-off-by: Christophe Vu-Brugier <cvubrugier@fastmail.fm> Signed-off-by: Paul Wise <pabs3@bonedaddy.net> --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 7150102..9de6068 100755 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ from iotop.version import VERSION # Dirty hack to make setup.py install the iotop script to sbin/ instead of bin/ # while still honoring the choice of installing into local/ or not. if hasattr(distutils_install, 'INSTALL_SCHEMES'): - for d in distutils_install.INSTALL_SCHEMES.itervalues(): + for d in distutils_install.INSTALL_SCHEMES.values(): if d.get('scripts', '').endswith('/bin'): d['scripts'] = d['scripts'][:-len('/bin')] + '/sbin' -- 2.1.4
shibajee/buildroot
package/iotop/0001-Fix-build-error-with-Python-3.patch
patch
mit
1,374
comment "iotop depends on python or python3" depends on !BR2_PACKAGE_PYTHON && !BR2_PACKAGE_PYTHON3 config BR2_PACKAGE_IOTOP bool "iotop" depends on BR2_PACKAGE_PYTHON || BR2_PACKAGE_PYTHON3 select BR2_PACKAGE_PYTHON_CURSES if BR2_PACKAGE_PYTHON select BR2_PACKAGE_PYTHON3_CURSES if BR2_PACKAGE_PYTHON3 help iotop does for I/O usage what top does for CPU usage. http://guichaz.free.fr/iotop/
shibajee/buildroot
package/iotop/Config.in
in
mit
406
# Locally calculated sha256 1a7c02fd3758bb048d8af861c5f8735eb3ee9abadeaa787f27b8af2b1eaee8ce iotop-0.6.tar.gz
shibajee/buildroot
package/iotop/iotop.hash
hash
mit
110
################################################################################ # # iotop # ################################################################################ IOTOP_VERSION = 0.6 IOTOP_SITE = http://guichaz.free.fr/iotop/files IOTOP_LICENSE = GPLv2+ IOTOP_LICENSE_FILES = COPYING IOTOP_SETUP_TYPE = distutils $(eval $(python-package))
shibajee/buildroot
package/iotop/iotop.mk
mk
mit
352
Add new targets for iozone: linux-noaio is for linux targets without AIO (use case: uClibc) linux-noth is for linux target without threads or AIO And make largefile support optional via CFLAGS. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> diff -Nura iozone3_414.orig/src/current/makefile iozone3_414/src/current/makefile --- iozone3_414.orig/src/current/makefile 2013-06-11 09:48:18.257837091 -0300 +++ iozone3_414/src/current/makefile 2013-06-11 13:05:56.338162144 -0300 @@ -166,10 +166,28 @@ # GNU 'C' compiler Linux build with threads, largefiles, async I/O # linux: iozone_linux.o libasync.o libbif.o fileop_linux.o pit_server.o - $(CC) -O3 $(LDFLAGS) iozone_linux.o libasync.o libbif.o -lpthread \ + $(CC) $(CFLAGS) $(LDFLAGS) iozone_linux.o libasync.o libbif.o \ + -lpthread -lrt -o iozone + $(CC) $(CFLAGS) -Dlinux fileop_linux.o -o fileop + $(CC) $(CFLAGS) -Dlinux pit_server.o -o pit_server + +# +# GNU 'C' compiler Linux build with threads, largefiles +# +linux-noaio: iozone_linux-noaio.o libbif.o fileop_linux.o pit_server.o + $(CC) $(CFLAGS) $(LDFLAGS) iozone_linux-noaio.o libbif.o \ + -lpthread -lrt -o iozone + $(CC) $(CFLAGS) -Dlinux fileop_linux.o -o fileop + $(CC) $(CFLAGS) -Dlinux pit_server.o -o pit_server + +# +# GNU 'C' compiler Linux build with largefiles +# +linux-noth: iozone_linux-noth.o libbif.o fileop_linux.o pit_server.o + $(CC) $(CFLAGS) $(LDFLAGS) iozone_linux-noth.o libbif.o \ -lrt -o iozone - $(CC) -O3 -Dlinux fileop_linux.o -o fileop - $(CC) -O3 -Dlinux pit_server.o -o pit_server + $(CC) $(CFLAGS) -Dlinux fileop_linux.o -o fileop + $(CC) $(CFLAGS) -Dlinux pit_server.o -o pit_server # # GNU 'C' compiler Linux build for powerpc chip with threads, largefiles, async I/O @@ -795,13 +813,33 @@ @echo "" @echo "Building iozone for Linux" @echo "" - $(CC) -Wall -c -O3 -Dunix -DHAVE_ANSIC_C -DASYNC_IO -DHAVE_PREAD \ - -DSHARED_MEM -Dlinux -D_LARGEFILE64_SOURCE $(CFLAGS) iozone.c \ + $(CC) -Wall -c -Dunix -DHAVE_ANSIC_C -DASYNC_IO -DHAVE_PREAD \ + -DSHARED_MEM -Dlinux $(CFLAGS) iozone.c \ -DNAME='"linux"' -o iozone_linux.o - $(CC) -Wall -c -O3 -Dunix -DHAVE_ANSIC_C -DASYNC_IO -D_LARGEFILE64_SOURCE \ + $(CC) -Wall -c -Dunix -DHAVE_ANSIC_C -DASYNC_IO \ + -DSHARED_MEM -Dlinux $(CFLAGS) libbif.c -o libbif.o + $(CC) -Wall -c -Dunix -Dlinux -DHAVE_ANSIC_C -DASYNC_IO \ + $(CFLAGS) libasync.c -o libasync.o + +iozone_linux-noaio.o: iozone.c libbif.c + @echo "" + @echo "Building iozone for Linux no AIO" + @echo "" + $(CC) -Wall -c -Dunix -DHAVE_ANSIC_C -DHAVE_PREAD \ + -DSHARED_MEM -Dlinux $(CFLAGS) iozone.c \ + -DNAME='"linux"' -o iozone_linux-noaio.o + $(CC) -Wall -c -Dunix -DHAVE_ANSIC_C \ + -DSHARED_MEM -Dlinux $(CFLAGS) libbif.c -o libbif.o + +iozone_linux-noth.o: iozone.c libbif.c + @echo "" + @echo "Building iozone for Linux with no threads" + @echo "" + $(CC) -Wall -c -Dunix -DHAVE_ANSIC_C -DNO_THREADS -DHAVE_PREAD \ + -DSHARED_MEM -Dlinux $(CFLAGS) iozone.c \ + -DNAME='"linux"' -o iozone_linux-noth.o + $(CC) -Wall -c -Dunix -DHAVE_ANSIC_C -DNO_THREADS \ -DSHARED_MEM -Dlinux $(CFLAGS) libbif.c -o libbif.o - $(CC) -Wall -c -O3 -Dunix -Dlinux -DHAVE_ANSIC_C -DASYNC_IO \ - -D_LARGEFILE64_SOURCE $(CFLAGS) libasync.c -o libasync.o fileop_AIX.o: fileop.c @echo "" @@ -893,7 +931,7 @@ @echo "" @echo "Building fileop for Linux" @echo "" - $(CC) -Wall -c -O3 $(CFLAGS) fileop.c -o fileop_linux.o + $(CC) -Wall -c $(CFLAGS) fileop.c -o fileop_linux.o fileop_openbsd.o: fileop.c @echo ""
shibajee/buildroot
package/iozone/0001-targets.patch
patch
mit
3,525
config BR2_PACKAGE_IOZONE bool "iozone" depends on BR2_USE_MMU # fork() depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL help IOzone is a filesystem benchmark tool. The benchmark generates and measures a variety of file operations http://www.iozone.org/ comment "iozone needs a toolchain w/ NPTL" depends on BR2_USE_MMU depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL
shibajee/buildroot
package/iozone/Config.in
in
mit
380
# Locally calculated sha256 bbbda98d7c052d8654ea23fb2187d831107ab4ac89842fa21509276d9a6915f0 iozone3_446.tar
shibajee/buildroot
package/iozone/iozone.hash
hash
mit
109
################################################################################ # # iozone # ################################################################################ IOZONE_VERSION = 3_446 IOZONE_SOURCE = iozone$(IOZONE_VERSION).tar IOZONE_SITE = http://www.iozone.org/src/current IOZONE_LICENSE = IOzone license (NO DERIVED WORKS ALLOWED) # IOzone license details can be found at: # http://www.iozone.org/docs/Iozone_License.txt # AIO support not available on uClibc, use the linux (non-aio) target. ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y) IOZONE_TARGET = linux-noaio else IOZONE_TARGET = linux endif define IOZONE_BUILD_CMDS $(MAKE) $(TARGET_CONFIGURE_OPTS) $(IOZONE_TARGET) -C $(@D)/src/current endef define IOZONE_INSTALL_TARGET_CMDS $(INSTALL) -D -m 755 $(@D)/src/current/iozone \ $(TARGET_DIR)/usr/bin/iozone endef $(eval $(generic-package))
shibajee/buildroot
package/iozone/iozone.mk
mk
mit
864
From babf9a5c2bbce4725963b21e47f413962e33ea88 Mon Sep 17 00:00:00 2001 From: Baruch Siach <baruch@tkos.co.il> Date: Sat, 30 Jul 2016 14:24:33 +0200 Subject: [PATCH] util.h: add missing stdbool header MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit C requires the stdbool.h header for the 'bool' type. Fixes the following build failure under uClibc-ng C library: .../arm-linux-gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../include -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wall -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -c delay.c In file included from delay.c:55:0: ../include/util.h:73:1: error: unknown type name ‘bool’ bool setsock_blocking(int fd, bool blocking); ^ Signed-off-by: Baruch Siach <baruch@tkos.co.il> [Thomas: add AC_PROG_CC_C99, since C99 is needed for the bool type.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> --- configure.ac | 1 + include/util.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index d59107a..ba30cb7 100644 --- a/configure.ac +++ b/configure.ac @@ -46,6 +46,7 @@ dnl =================================================================== AC_PROG_CXX CXXFLAGS=`echo " $CXXFLAGS " | sed -e "s/ -g / /"` # do not want it implicitly AC_PROG_CC +AC_PROG_CC_C99 CFLAGS=`echo " $CFLAGS " | sed -e "s/ -g / /"` # do not want it implicitly AC_ISC_POSIX AC_PROG_INSTALL diff --git a/include/util.h b/include/util.h index f4ae3d8..91540a9 100644 --- a/include/util.h +++ b/include/util.h @@ -57,6 +57,8 @@ #include "config.h" #endif +#include <stdbool.h> + #ifdef __cplusplus extern "C" { #endif -- 2.7.4
shibajee/buildroot
package/iperf/0001-util.h-add-missing-stdbool-header.patch
patch
mit
1,723
From f035e70b72d4285dcdbd393e680777a927cb9da4 Mon Sep 17 00:00:00 2001 From: Matt Weber <matthew.weber@rockwellcollins.com> Date: Thu, 28 Jul 2016 19:04:01 -0500 Subject: [PATCH] perf: fix "speed" display in csv report Some parameters displayed in the CSV reports are declared as uint64_t, but the printf format doesn't reflect this. Submitted bug: https://sourceforge.net/p/iperf/bugs/66/ Signed-off-by: Matt Poduska <matt.poduska@rockwellcollins.com> Signed-off-by: Atul Singh <atul.singh.mandla@gmail.com> Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com> --- src/Locale.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Locale.c b/src/Locale.c index b5d42b1..7b924fa 100644 --- a/src/Locale.c +++ b/src/Locale.c @@ -260,11 +260,12 @@ const char reportCSV_bw_format[] = const char reportCSV_bw_jitter_loss_format[] = "%s,%s,%d,%.1f-%.1f,%I64d,%I64d,%.3f,%d,%d,%.3f,%d\n"; #else +#include "inttypes.h" const char reportCSV_bw_format[] = -"%s,%s,%d,%.1f-%.1f,%d,%d\n"; +"%s,%s,%d,%.1f-%.1f,%" PRId64 ",%" PRId64 "\n"; const char reportCSV_bw_jitter_loss_format[] = -"%s,%s,%d,%.1f-%.1f,%d,%d,%.3f,%d,%d,%.3f,%d\n"; +"%s,%s,%d,%.1f-%.1f,%" PRId64 ",%" PRId64 ",%.3f,%d,%d,%.3f,%d\n"; #endif //WIN32 #endif //HAVE_QUAD_SUPPORT /* ------------------------------------------------------------------- -- 1.9.1
shibajee/buildroot
package/iperf/0002-fix-speed-display-in-csv-report.patch
patch
mit
1,366
config BR2_PACKAGE_IPERF bool "iperf" depends on BR2_INSTALL_LIBSTDCPP # uses fork() depends on BR2_USE_MMU help Internet Protocol bandwidth measuring tool for measuring TCP/UDP performance. https://sourceforge.net/projects/iperf2/ comment "iperf needs a toolchain w/ C++" depends on BR2_USE_MMU depends on !BR2_INSTALL_LIBSTDCPP
shibajee/buildroot
package/iperf/Config.in
in
mit
348
# From https://sourceforge.net/projects/iperf2/files/ sha1 9e215f6af8edd97f947f2b0207ff5487845d83d4 iperf-2.0.9.tar.gz # Locally computed: sha256 a5350777b191e910334d3a107b5e5219b72ffa393da4186da1e0a4552aeeded6 iperf-2.0.9.tar.gz
shibajee/buildroot
package/iperf/iperf.hash
hash
mit
232
################################################################################ # # iperf # ################################################################################ IPERF_VERSION = 2.0.9 IPERF_SITE = http://downloads.sourceforge.net/project/iperf2 IPERF_LICENSE = MIT-like IPERF_LICENSE_FILES = COPYING # patching configure.ac IPERF_AUTORECONF = YES IPERF_CONF_ENV = \ ac_cv_func_malloc_0_nonnull=yes IPERF_CONF_OPTS = \ --disable-web100 $(eval $(autotools-package))
shibajee/buildroot
package/iperf/iperf.mk
mk
mit
482
This should be an option, but it's not. Don't force profiled builds, it breaks on many toolchains. Patch Makefile.in to avoid AUTORECONFing since it needs dummy files that are missing to succeed (ChangeLog, COPYING, NEWS, README) and it's simple enough so avoid pulling in dependencies and delays. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> diff -Nura iperf-3.0.10.orig/src/Makefile.in iperf-3.0.10/src/Makefile.in --- iperf-3.0.10.orig/src/Makefile.in 2014-12-17 07:30:46.878310789 -0300 +++ iperf-3.0.10/src/Makefile.in 2014-12-17 07:33:41.879356643 -0300 @@ -82,7 +82,7 @@ host_triplet = @host@ bin_PROGRAMS = iperf3$(EXEEXT) noinst_PROGRAMS = t_timer$(EXEEXT) t_units$(EXEEXT) t_uuid$(EXEEXT) \ - iperf3_profile$(EXEEXT) + iperf3$(EXEEXT) TESTS = t_timer$(EXEEXT) t_units$(EXEEXT) t_uuid$(EXEEXT) subdir = src DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \
shibajee/buildroot
package/iperf3/0001-disable-profiling.patch
patch
mit
897
From 1fe02385b60c9dcd8a04b8bd3ff5cff120ec35a6 Mon Sep 17 00:00:00 2001 From: Bernd Kuhls <bernd.kuhls@t-online.de> Date: Sat, 30 Jan 2016 19:23:20 +0100 Subject: [PATCH 1/1] Fix build using musl libc Fixes https://github.com/esnet/iperf/issues/331 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> --- Patch sent upstream: https://github.com/esnet/iperf/pull/344 src/cjson.h | 2 ++ src/timer.h | 1 + 2 files changed, 3 insertions(+) diff --git a/src/cjson.h b/src/cjson.h index d4449e6..7af19a9 100644 --- a/src/cjson.h +++ b/src/cjson.h @@ -23,6 +23,8 @@ #ifndef cJSON__h #define cJSON__h +#include <stdint.h> + #ifdef __cplusplus extern "C" { diff --git a/src/timer.h b/src/timer.h index 0f9c5eb..9b22b7f 100644 --- a/src/timer.h +++ b/src/timer.h @@ -30,6 +30,7 @@ #ifndef __TIMER_H #define __TIMER_H +#include <stdint.h> #include <sys/time.h> /* TimerClientData is an opaque value that tags along with a timer. The -- 2.7.0.rc3
shibajee/buildroot
package/iperf3/0002-Fix-build-using-musl-libc.patch
patch
mit
960
config BR2_PACKAGE_IPERF3 bool "iperf3" depends on BR2_TOOLCHAIN_HAS_THREADS help iperf is a tool for active measurements of the maximum achievable bandwidth on IP networks. It supports tuning of various parameters related to timing, protocols, and buffers. For each test it reports the bandwidth, loss, and other parameters. It's a redesign of the NLANR/DAST iperf(2) and is not backward compatible. http://software.es.net/iperf/index.html comment "iperf3 needs a toolchain w/ threads" depends on !BR2_TOOLCHAIN_HAS_THREADS
shibajee/buildroot
package/iperf3/Config.in
in
mit
555
# From http://software.es.net/iperf/news.html#security-issue-iperf-3-1-3-iperf-3-0-12-released sha256 60d8db69b1d74a64d78566c2317c373a85fef691b8d277737ee5d29f448595bf iperf-3.1.3.tar.gz
shibajee/buildroot
package/iperf3/iperf3.hash
hash
mit
188
################################################################################ # # iperf3 # ################################################################################ IPERF3_VERSION = 3.1.3 IPERF3_SITE = http://downloads.es.net/pub/iperf IPERF3_SOURCE = iperf-$(IPERF3_VERSION).tar.gz IPERF3_LICENSE = BSD-3c, BSD-2c, MIT IPERF3_LICENSE_FILES = LICENSE IPERF3_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE" $(eval $(autotools-package))
shibajee/buildroot
package/iperf3/iperf3.mk
mk
mit
452
Remove __P macro usage to fix musl build __P() is used for compatibility with old K&R C compilers. With ANSI C this macro has no effect. This fixes a compilation error with musl libc because of undeclared __P. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Index: b/md5.c =================================================================== --- a/md5.c +++ b/md5.c @@ -97,21 +97,21 @@ /* Initialize structure containing state of computation. (RFC 1321, 3.3: Step 3) */ -static void md5_init_ctx __P ((struct md5_ctx *ctx)); +static void md5_init_ctx (struct md5_ctx *ctx); /* Starting with the result of former calls of this function (or the initialization function update the context for the next LEN bytes starting at BUFFER. It is necessary that LEN is a multiple of 64!!! */ -static void md5_process_block __P ((const void *buffer, size_t len, - struct md5_ctx *ctx)); +static void md5_process_block (const void *buffer, size_t len, + struct md5_ctx *ctx); /* Starting with the result of former calls of this function (or the initialization function update the context for the next LEN bytes starting at BUFFER. It is NOT required that LEN is a multiple of 64. */ -static void md5_process_bytes __P ((const void *buffer, size_t len, - struct md5_ctx *ctx)); +static void md5_process_bytes (const void *buffer, size_t len, + struct md5_ctx *ctx); /* Process the remaining bytes in the buffer and put result from CTX in first 16 bytes following RESBUF. The result is always in little @@ -120,7 +120,7 @@ IMPORTANT: On some systems it is required that RESBUF is correctly aligned for a 32 bits value. */ -static void *md5_finish_ctx __P ((struct md5_ctx *ctx, void *resbuf)); +static void *md5_finish_ctx (struct md5_ctx *ctx, void *resbuf); //---------------------------------------------------------------------------- //--------end of md5.h
shibajee/buildroot
package/ipkg/0001-fix-musl-build.patch
patch
mit
1,961
libbb: fix no MMU build uClibc-ng defines __ARCH_HAS_MMU__ for ARM or m68k because these architectures may potentially have MMU. The code should test for __ARCH_USE_MMU__, which indicates if the MMU is really in use. But since the configure script detects the presence of fork(), using HAVE_FORK directly is a better solution. Signed-off-by: Baruch Siach <baruch@tkos.co.il> --- Patch status: no active upstream diff -Nuar ipkg-0.99.163-orig/libbb/libbb.h ipkg-0.99.163/libbb/libbb.h --- ipkg-0.99.163-orig/libbb/libbb.h 2006-02-06 10:13:02.000000000 +0200 +++ ipkg-0.99.163/libbb/libbb.h 2016-07-26 13:50:09.296988855 +0300 @@ -341,7 +341,7 @@ #define CONSOLE_DEV "/dev/console" /* Cope with mmu-less systems somewhat gracefully */ -#if defined(__UCLIBC__) && !defined(__ARCH_HAS_MMU__) +#if !defined(HAVE_FORK) #define fork vfork #endif
shibajee/buildroot
package/ipkg/0002-fix-nommu.patch
patch
mit
850
config BR2_PACKAGE_IPKG bool "ipkg" depends on BR2_DEPRECATED_SINCE_2016_08 help The Itsy Package Installer from handhelds.org http://www.handhelds.org
shibajee/buildroot
package/ipkg/Config.in
in
mit
162
#!/bin/sh # ipkg-build -- construct a .ipk from a directory # Carl Worth <cworth@east.isi.edu> # based on a script by Steve Redler IV, steve@sr-tech.com 5-21-2001 set -e ipkg_extract_value() { sed -e "s/^[^:]*:[[:space:]]*//" } required_field() { field=$1 value=`grep "^$field:" < $CONTROL/control | ipkg_extract_value` if [ -z "$value" ]; then echo "ipkg-build: Error: $CONTROL/control is missing field $field" ; PKG_ERROR=1 fi echo $value } pkg_appears_sane() { local pkg_dir=$1 local owd=`pwd` cd $pkg_dir PKG_ERROR=0 if [ ! -f "$CONTROL/control" ]; then echo "ipkg-build: Error: Control file $pkg_dir/$CONTROL/control not found." cd $owd return 1 fi pkg=`required_field Package` version=`required_field Version` arch=`required_field Architecture` required_field Maintainer >/dev/null required_field Description >/dev/null if echo $pkg | grep '[^a-z0-9.+-]'; then echo "ipkg-build: Error: Package name $name contains illegal characters, (other than [a-z0-9.+-])" PKG_ERROR=1; fi local bad_fields=`sed -ne 's/^\([^[:space:]][^:[:space:]]\+[[:space:]]\+\)[^:].*/\1/p' < $CONTROL/control | sed -e 's/\\n//'` if [ -n "$bad_fields" ]; then bad_fields=`echo $bad_fields` echo "ipkg-build: Error: The following fields in $CONTROL/control are missing a ':'" echo " $bad_fields" echo "ipkg-build: This may be due to a missing initial space for a multi-line field value" PKG_ERROR=1 fi for script in $CONTROL/preinst $CONTROL/postinst $CONTROL/prerm $CONTROL/postrm; do if [ -f $script -a ! -x $script ]; then echo "ipkg-build: Error: package script $script is not executable" PKG_ERROR=1 fi done if [ -f $CONTROL/conffiles ]; then for cf in `cat $CONTROL/conffiles`; do if [ ! -f ./$cf ]; then echo "ipkg-build: Error: $CONTROL/conffiles mentions conffile $cf which does not exist" PKG_ERROR=1 fi done fi cd $owd return $PKG_ERROR } ### # ipkg-build "main" ### case $# in 1) dest_dir=. ;; 2) dest_dir=$2 ;; *) echo "Usage: ipkg-build <pkg_directory> [<destination_directory>]" ; exit 1 ;; esac pkg_dir=$1 if [ ! -d $pkg_dir ]; then echo "ipkg-build: Error: Directory $pkg_dir does not exist" exit 1 fi # CONTROL is second so that it takes precedence CONTROL= [ -d $pkg_dir/DEBIAN ] && CONTROL=DEBIAN [ -d $pkg_dir/CONTROL ] && CONTROL=CONTROL if [ -z "$CONTROL" ]; then echo "ipkg-build: Error: Directory $pkg_dir has no CONTROL subdirectory." exit 1 fi if ! pkg_appears_sane $pkg_dir; then echo "Please fix the above errors and try again." exit 1 fi tmp_dir=$dest_dir/IPKG_BUILD.$$ mkdir $tmp_dir tar -C $pkg_dir -czf $tmp_dir/data.tar.gz . --exclude=$CONTROL tar -C $pkg_dir/$CONTROL -czf $tmp_dir/control.tar.gz . echo "2.0" > $tmp_dir/debian-binary pkg_file=$dest_dir/${pkg}_${version}_${arch}.ipk tar -C $tmp_dir -czf $pkg_file debian-binary data.tar.gz control.tar.gz rm $tmp_dir/debian-binary $tmp_dir/data.tar.gz $tmp_dir/control.tar.gz rmdir $tmp_dir echo "Packaged contents of $pkg_dir into $pkg_file"
shibajee/buildroot
package/ipkg/ipkg-build
none
mit
3,024
# locally computed sha256 405743e1ba320ed6095d42a898f1486e3af1d745cae2bd45dfe1d8403a4d8995 ipkg-0.99.163.tar.gz
shibajee/buildroot
package/ipkg/ipkg.hash
hash
mit
114
################################################################################ # # ipkg # ################################################################################ IPKG_VERSION = 0.99.163 IPKG_SITE = http://www.handhelds.org/download/packages/ipkg IPKG_INSTALL_STAGING = YES IPKG_LICENSE = GPLv2+ IPKG_LICENSE_FILES = COPYING $(eval $(autotools-package))
shibajee/buildroot
package/ipkg/ipkg.mk
mk
mit
366
From 0d4b9d5d547b4a6e79108ac8c455e01f72a9aefa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Krause?= <joerg.krause@embedded.rocks> Date: Sun, 10 Apr 2016 11:47:14 +0200 Subject: [PATCH 1/3] Make the package autoreconfigurable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ipmitool is not a compliant GNU package as it does not provide some necessary files, like NEWS, AUTHORS, etc. Therefor set the Automake strictness to foreign to make the package autoreconfigurable. Upstream status: Pending https://sourceforge.net/p/ipmitool/mailman/message/35004711/ Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks> --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 94e267a..9f3f7e1 100644 --- a/Makefile.am +++ b/Makefile.am @@ -33,7 +33,7 @@ DOCLIST = $(top_srcdir)/README $(top_srcdir)/COPYING $(top_srcdir)/AUTHORS $(top EXTRA_DIST = $(DOCLIST) -AUTOMAKE_OPTIONS = dist-bzip2 +AUTOMAKE_OPTIONS = dist-bzip2 foreign MAINTAINERCLEANFILES = Makefile.in aclocal.m4 configure configure-stamp \ config.guess config.sub depcomp install-sh ltmain.sh missing \ -- 2.8.0
shibajee/buildroot
package/ipmitool/0001-Make-the-package-autoreconfigurable.patch
patch
mit
1,197
From 7d1863b47877129376f37613d29d3a5ba084af66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Krause?= <joerg.krause@embedded.rocks> Date: Sat, 2 Apr 2016 19:45:14 +0200 Subject: [PATCH 2/3] Avoid wchar_t redefinition MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The musl C library does not define _WCHAR_T. Use autoconf to check for wchar_t. Upstream status: Pending https://sourceforge.net/p/ipmitool/mailman/message/35007331/ Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks> --- configure.ac | 2 ++ src/plugins/imb/imbapi.h | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 1d74fcf..c2ba1eb 100644 --- a/configure.ac +++ b/configure.ac @@ -22,6 +22,8 @@ AC_CHECK_HEADERS([stdlib.h string.h sys/ioctl.h sys/stat.h unistd.h paths.h]) AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h sys/socket.h]) AC_CHECK_HEADERS([sys/byteorder.h byteswap.h]) +AC_CHECK_TYPES([wchar_t]) + AC_C_CONST AC_C_INLINE AC_C_BIGENDIAN diff --git a/src/plugins/imb/imbapi.h b/src/plugins/imb/imbapi.h index 74975c6..ead8956 100644 --- a/src/plugins/imb/imbapi.h +++ b/src/plugins/imb/imbapi.h @@ -35,6 +35,11 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. *----------------------------------------------------------------------*/ #ifndef _WINDEFS_H #define _WINDEFS_H + +#if HAVE_CONFIG_H +# include <config.h> +#endif + #ifndef FALSE #define FALSE 0 #endif @@ -46,7 +51,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #endif #ifndef WIN32 /* WIN32 defines this in stdio.h */ -#ifndef _WCHAR_T +#if !defined(HAVE_WCHAR_T) #define _WCHAR_T typedef long wchar_t; #endif -- 2.8.0
shibajee/buildroot
package/ipmitool/0002-Avoid-wchar_t-redefinition.patch
patch
mit
1,764
From 661095378b74df564bc621ced4db72b688d87399 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Krause?= <joerg.krause@embedded.rocks> Date: Sat, 2 Apr 2016 19:47:21 +0200 Subject: [PATCH 3/3] Add missing linux/param.h header include MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes the following build failure under musl: imbapi.c: In function 'MapPhysicalMemory': imbapi.c:109:19: error: 'EXEC_PAGESIZE' undeclared (first use in this function) # define PAGESIZE EXEC_PAGESIZE Upstream status: Pending https://sourceforge.net/p/ipmitool/mailman/message/35007330/ Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks> --- src/plugins/imb/imbapi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/imb/imbapi.c b/src/plugins/imb/imbapi.c index 899c47a..8a6421d 100644 --- a/src/plugins/imb/imbapi.c +++ b/src/plugins/imb/imbapi.c @@ -95,6 +95,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include <stdlib.h> #include <fcntl.h> #include <string.h> +#ifdef __linux__ +#include <linux/param.h> +#endif #endif #include "imbapi.h" #include <asm/socket.h> -- 2.8.0
shibajee/buildroot
package/ipmitool/0003-Add-missing-linux-param.h-header-include.patch
patch
mit
1,164
From 2b149f7723fbd6153e6605ea8efb2c9f2940c8e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Krause?= <joerg.krause@embedded.rocks> Date: Mon, 18 Apr 2016 21:17:26 +0200 Subject: [PATCH] Fix missing stddef.h include MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Needed for wchar_t. Fixes build error: imbapi.h:140:9: error: unknown type name 'wchar_t' typedef wchar_t WCHAR; Upstream status: Pending https://sourceforge.net/p/ipmitool/mailman/message/35022779/ Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks> --- src/plugins/imb/imbapi.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/imb/imbapi.h b/src/plugins/imb/imbapi.h index ead8956..8d0c7ae 100644 --- a/src/plugins/imb/imbapi.h +++ b/src/plugins/imb/imbapi.h @@ -40,6 +40,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # include <config.h> #endif +#include <stddef.h> + #ifndef FALSE #define FALSE 0 #endif -- 2.8.0
shibajee/buildroot
package/ipmitool/0004-Fix-missing-stddef.h-include.patch
patch
mit
994
config BR2_PACKAGE_IPMITOOL bool "ipmitool" depends on BR2_USE_MMU # fork() help IPMItool provides a simple command-line interface to IPMI-enabled devices. http://sourceforge.net/projects/ipmitool/ if BR2_PACKAGE_IPMITOOL config BR2_PACKAGE_IPMITOOL_LANPLUS bool "enable lanplus interface" select BR2_PACKAGE_OPENSSL help Enables the IPMI v2.0 RMCP+ LAN interface typically used to send IPMI commands to the BMC of a remote server. Not needed if you only want to communicate with the local BMC of your device using the OpenIPMI ipmi_si kernel module, or if using the legacy IPMI v1.5 RMCP LAN interface. config BR2_PACKAGE_IPMITOOL_IPMIEVD bool "ipmievd" help IPMI event daemon for sending events to syslog config BR2_PACKAGE_IPMITOOL_IPMISHELL bool "ipmishell" select BR2_PACKAGE_NCURSES select BR2_PACKAGE_READLINE help IPMI shell interface endif
shibajee/buildroot
package/ipmitool/Config.in
in
mit
894
# Locally computed: sha256 3c5da6b067abf475bc24685120ec79f6e4ef6b3ea606aaa267e462023861223e ipmitool-1.8.16.tar.bz2
shibajee/buildroot
package/ipmitool/ipmitool.hash
hash
mit
118
################################################################################ # # ipmitool # ################################################################################ IPMITOOL_VERSION = 1.8.16 IPMITOOL_SOURCE = ipmitool-$(IPMITOOL_VERSION).tar.bz2 IPMITOOL_SITE = http://downloads.sourceforge.net/project/ipmitool/ipmitool/$(IPMITOOL_VERSION) IPMITOOL_LICENSE = BSD-3c IPMITOOL_LICENSE_FILES = COPYING # Patching configure.ac IPMITOOL_AUTORECONF = YES ifeq ($(BR2_PACKAGE_IPMITOOL_LANPLUS),y) IPMITOOL_DEPENDENCIES += openssl IPMITOOL_CONF_OPTS += --enable-intf-lanplus else IPMITOOL_CONF_OPTS += --disable-intf-lanplus endif ifeq ($(BR2_PACKAGE_IPMITOOL_IPMISHELL),y) IPMITOOL_DEPENDENCIES += ncurses readline IPMITOOL_CONF_OPTS += --enable-ipmishell else IPMITOOL_CONF_OPTS += --disable-ipmishell endif ifeq ($(BR2_PACKAGE_IPMITOOL_IPMIEVD),) define IPMITOOL_REMOVE_IPMIEVD $(RM) -f $(TARGET_DIR)/usr/sbin/ipmievd endef IPMITOOL_POST_INSTALL_TARGET_HOOKS += IPMITOOL_REMOVE_IPMIEVD endif $(eval $(autotools-package))
shibajee/buildroot
package/ipmitool/ipmitool.mk
mk
mit
1,036
configure: do not build doc Fixes: http://autobuild.buildroot.org/results/2ec/2ecfb1143ba89ffa5cdc8096bb175b2c396c4670/ http://autobuild.buildroot.org/results/c49/c497fc446140694084922d51fe6be308ce5c1c1a/ http://autobuild.buildroot.org/results/434/434b156b5c9b5c7b65ffe6174cf4e029e7e3ffd8/ Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> diff --git a/configure.ac b/configure.ac index 344b27a71a35..41b6ea89167a 100644 --- a/configure.ac +++ b/configure.ac @@ -56,7 +56,7 @@ LIB_DIR="/usr/lib" isredhat=0 init_scripts="scripts/ipmi_port.sh scripts/ipmiutil_evt scripts/ipmiutil_asy scripts/ipmiutil_wdt" projdir=`pwd` -SUBDIR_S="doc scripts lib util" +SUBDIR_S="scripts lib util" os=Linux # ltmain.sh, config.sub, et al should have been created, but check to be sure. @@ -162,7 +162,7 @@ AC_ARG_ENABLE([standalone], LANPLUS_SAM="no" LD_SAMX="" CFLAGS="-O2" - SUBDIR_S="doc scripts util" + SUBDIR_S="scripts util" if test "x$cross_compiling" = "xyes"; then # cross-compiling, so link with -static (e.g. Android ARM) CROSS_LFLAGS="-static"
shibajee/buildroot
package/ipmiutil/0001-no-build-doc.patch
patch
mit
1,101
config BR2_PACKAGE_IPMIUTIL bool "ipmiutil" depends on BR2_USE_MMU depends on !BR2_STATIC_LIBS depends on BR2_TOOLCHAIN_HAS_THREADS depends on BR2_x86_64 || BR2_i386 help The ipmiutil package provides easy-to-use utilities to view the SEL, perform an IPMI chassis reset, set up the IPMI LAN and Platform Event Filter entries to allow SNMP alerts, Serial-Over-LAN console, event daemon, and other IPMI tasks. http://ipmiutil.sourceforge.net/ comment "ipmiutil needs a toolchain w/ threads, dynamic library" depends on BR2_USE_MMU depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS depends on BR2_x86_64 || BR2_i386
shibajee/buildroot
package/ipmiutil/Config.in
in
mit
646
# From http://sourceforge.net/projects/ipmiutil/files/?source=navbar sha1 f423a77a374b6a37a16496844f1e6e363e7d63fe ipmiutil-2.9.9.tar.gz # Locally computed sha256 beace08386a002c6a4bbbf894bda9899ea34fae4c2181c89f29fb1fa136925f6 ipmiutil-2.9.9.tar.gz
shibajee/buildroot
package/ipmiutil/ipmiutil.hash
hash
mit
250
################################################################################ # # ipmiutil # ################################################################################ IPMIUTIL_VERSION = 2.9.9 IPMIUTIL_SITE = http://sourceforge.net/projects/ipmiutil/files IPMIUTIL_LICENSE = BSD-3c IPMIUTIL_LICENSE_FILES = COPYING # We're patching configure.ac IPMIUTIL_AUTORECONF = YES IPMIUTIL_MAKE = $(MAKE1) # forgets to link against libcrypto dependencies breaking static link ifeq ($(BR2_PACKAGE_OPENSSL)x$(BR2_STATIC_LIBS),yx) # tests against distro libcrypto so it might get a false positive when # the openssl version is old, so force it off # SKIP_MD2 can be used only if ALLOW_GNU is defined. IPMIUTIL_CONF_OPTS += CPPFLAGS="$(TARGET_CPPFLAGS) -DALLOW_GNU -DSKIP_MD2" IPMIUTIL_DEPENDENCIES += openssl else IPMIUTIL_CONF_OPTS += --disable-lanplus endif $(eval $(autotools-package))
shibajee/buildroot
package/ipmiutil/ipmiutil.mk
mk
mit
889
From 48596709d8ab59727b79a5c6db33ebb251c36543 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Date: Thu, 19 Nov 2015 17:44:25 +0100 Subject: [PATCH] Avoid in6_addr redefinition MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Due to both <netinet/in.h> and <linux/in6.h> being included, the in6_addr is being redefined: once from the C library headers and once from the kernel headers. This causes some build failures with for example the musl C library: In file included from ../include/linux/xfrm.h:4:0, from xfrm.h:29, from ipxfrm.c:39: ../include/linux/in6.h:32:8: error: redefinition of ‘struct in6_addr’ struct in6_addr { ^ In file included from .../output/host/usr/x86_64-buildroot-linux-musl/sysroot/usr/include/netdb.h:9:0, from ipxfrm.c:34: .../output/host/usr/x86_64-buildroot-linux-musl/sysroot/usr/include/netinet/in.h:24:8: note: originally defined here struct in6_addr ^ In order to fix this, use just the C library header <netinet/in.h>. Original patch taken from http://git.alpinelinux.org/cgit/aports/tree/main/iproute2/musl-fixes.patch. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> [Gustavo: drop ipt_kernel_headers.h chunk since no longer necessary] Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> --- include/linux/if_bridge.h | 1 - include/linux/netfilter.h | 2 -- include/linux/xfrm.h | 1 - 3 files changed, 4 deletions(-) diff --git a/include/linux/if_bridge.h b/include/linux/if_bridge.h index ee197a3..f823aa4 100644 --- a/include/linux/if_bridge.h +++ b/include/linux/if_bridge.h @@ -15,7 +15,6 @@ #include <linux/types.h> #include <linux/if_ether.h> -#include <linux/in6.h> #define SYSFS_BRIDGE_ATTR "bridge" #define SYSFS_BRIDGE_FDB "brforward" diff --git a/include/linux/netfilter.h b/include/linux/netfilter.h index b71b4c9..3e4e6ae 100644 --- a/include/linux/netfilter.h +++ b/include/linux/netfilter.h @@ -4,8 +4,6 @@ #include <linux/types.h> #include <linux/sysctl.h> -#include <linux/in.h> -#include <linux/in6.h> /* Responses from hook functions. */ #define NF_DROP 0 diff --git a/include/linux/xfrm.h b/include/linux/xfrm.h index b8f5451..a9761a5 100644 --- a/include/linux/xfrm.h +++ b/include/linux/xfrm.h @@ -1,7 +1,6 @@ #ifndef _LINUX_XFRM_H #define _LINUX_XFRM_H -#include <linux/in6.h> #include <linux/types.h> /* All of the structures in this file may not change size as they are -- 2.6.3
shibajee/buildroot
package/iproute2/0001-Avoid-in6_addr-redefinition.patch
patch
mit
2,594
From 560dee4b4be54699c0c9679771c9e0d61e4db80a Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Date: Thu, 19 Nov 2015 17:48:55 +0100 Subject: [PATCH] Add missing <sys/types.h> include MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The u_intXX_t types are defined in <sys/types.h>, so it should be included before using those types. Otherwise, with certain C libraries, the build fails with: In file included from ../include/iptables.h:4:0, from m_ipt.c:18: ../include/iptables_common.h:47:16: error: unknown type name ‘u_int32_t’ #define __le32 u_int32_t Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> --- include/iptables_common.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/iptables_common.h b/include/iptables_common.h index 9099667..2c27a4b 100644 --- a/include/iptables_common.h +++ b/include/iptables_common.h @@ -43,6 +43,8 @@ extern char *lib_dir; extern void init_extensions(void); #endif +#include <sys/types.h> + #define __be32 u_int32_t #define __le32 u_int32_t #define __be16 u_int16_t -- 2.6.3
shibajee/buildroot
package/iproute2/0002-Add-missing-sys-types.h-include.patch
patch
mit
1,166
From 01b287582f25cc3a8a36caee5ce13e14b9233f49 Mon Sep 17 00:00:00 2001 From: Gustavo Zacarias <gustavo@zacarias.com.ar> Date: Fri, 8 Apr 2016 09:52:55 -0300 Subject: [PATCH] iproute2: tc_bpf.c: fix building with musl libc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We need limits.h for PATH_MAX, fixes: tc_bpf.c: In function ‘bpf_map_selfcheck_pinned’: tc_bpf.c:222:12: error: ‘PATH_MAX’ undeclared (first use in this function) char file[PATH_MAX], buff[4096]; Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> --- Patch status: submitted upstream tc/tc_bpf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tc/tc_bpf.c b/tc/tc_bpf.c index d94af82..042e76f 100644 --- a/tc/tc_bpf.c +++ b/tc/tc_bpf.c @@ -20,6 +20,7 @@ #include <errno.h> #include <fcntl.h> #include <stdarg.h> +#include <limits.h> #ifdef HAVE_ELF #include <libelf.h> -- 2.7.3
shibajee/buildroot
package/iproute2/0003-iproute2-tc_bpf.c-fix-building-with-musl-libc..patch
patch
mit
925
Fix build issues when there's no iptables present. Patch from Matt Whitlock See https://bugs.gentoo.org/show_bug.cgi?id=577464 Status: in theory submitted upstream by Lars Wendler. --- iproute2-4.5.0/configure~ 2016-03-14 23:02:31.000000000 +0000 +++ iproute2-4.5.0/configure 2016-03-17 13:24:17.634743197 +0000 @@ -169,10 +169,25 @@ check_ipt() { - if ! grep TC_CONFIG_XT Config > /dev/null + if grep -q TC_CONFIG_XT Config then + return + fi + + cat >$TMPDIR/ipttest.c <<EOF +#include <iptables.h> +int main() { return 0; } +EOF + + if $CC -std=c90 -I$INCLUDE $IPTC -o $TMPDIR/ipttest $TMPDIR/ipttest.c $IPTL \ + $(${PKG_CONFIG} libiptc --cflags --libs 2>/dev/null) -ldl >/dev/null 2>&1 + then + echo "TC_CONFIG_IPT:=y" >>Config echo "using iptables" + else + echo "no" fi + rm -f $TMPDIR/ipttest.c $TMPDIR/ipttest } check_ipt_lib_dir() --- iproute2-4.5.0/tc/Makefile~ 2016-03-14 23:02:31.000000000 +0000 +++ iproute2-4.5.0/tc/Makefile 2016-03-17 13:18:18.686689985 +0000 @@ -88,7 +88,9 @@ CFLAGS += -DTC_CONFIG_XT_H TCSO += m_xt_old.so else - TCMODULES += m_ipt.o + ifeq ($(TC_CONFIG_IPT),y) + TCMODULES += m_ipt.o + endif endif endif endif
shibajee/buildroot
package/iproute2/0004-iproute-no-iptables.patch
patch
mit
1,205
config BR2_PACKAGE_IPROUTE2 bool "iproute2" depends on BR2_USE_MMU # fork() depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0 # bpf, namespaces help Kernel routing and traffic control utilities. Provides things like ip and tc. http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2 comment "iproute2 needs a toolchain w/ headers >= 3.0" depends on BR2_USE_MMU depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0
shibajee/buildroot
package/iproute2/Config.in
in
mit
439
# From https://kernel.org/pub/linux/utils/net/iproute2/sha256sums.asc sha256 3f15292f53e465cb5bd6652961343ca64eb6936309ae75be5d5a541435bc494a iproute2-4.5.0.tar.xz
shibajee/buildroot
package/iproute2/iproute2.hash
hash
mit
164
################################################################################ # # iproute2 # ################################################################################ IPROUTE2_VERSION = 4.5.0 IPROUTE2_SOURCE = iproute2-$(IPROUTE2_VERSION).tar.xz IPROUTE2_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/net/iproute2 IPROUTE2_DEPENDENCIES = host-bison host-flex host-pkgconf \ $(if $(BR2_PACKAGE_LIBMNL),libmnl) IPROUTE2_LICENSE = GPLv2 IPROUTE2_LICENSE_FILES = COPYING # If both iproute2 and busybox are selected, make certain we win # the fight over who gets to have their utils actually installed. ifeq ($(BR2_PACKAGE_BUSYBOX),y) IPROUTE2_DEPENDENCIES += busybox endif ifeq ($(BR2_PACKAGE_ELFUTILS),y) IPROUTE2_DEPENDENCIES += elfutils endif # If we've got iptables enable xtables support for tc ifeq ($(BR2_PACKAGE_IPTABLES)x$(BR2_STATIC_LIBS),yx) IPROUTE2_DEPENDENCIES += iptables define IPROUTE2_WITH_IPTABLES # Makefile is busted so it never passes IPT_LIB_DIR properly $(SED) "s/-DIPT/-DXT/" $(@D)/tc/Makefile endef else define IPROUTE2_WITH_IPTABLES # em_ipset needs xtables, but configure misdetects it echo "TC_CONFIG_IPSET:=n" >>$(@D)/Config echo "TC_CONFIG_XT:=n" >>$(@D)/Config endef endif # arpd needs BerkeleyDB and links against pthread ifeq ($(BR2_PACKAGE_BERKELEYDB_COMPAT185)$(BR2_TOOLCHAIN_HAS_THREADS),yy) IPROUTE2_DEPENDENCIES += berkeleydb else define IPROUTE2_DISABLE_ARPD echo "HAVE_BERKELEY_DB:=n" >> $(@D)/Config endef endif # ifcfg needs bash ifeq ($(BR2_PACKAGE_BASH),) define IPROUTE2_REMOVE_IFCFG rm -f $(TARGET_DIR)/sbin/ifcfg endef endif define IPROUTE2_CONFIGURE_CMDS $(SED) 's/gcc/$$CC $$CFLAGS/g' $(@D)/configure cd $(@D) && $(TARGET_CONFIGURE_OPTS) ./configure $(IPROUTE2_DISABLE_ARPD) $(IPROUTE2_WITH_IPTABLES) endef define IPROUTE2_BUILD_CMDS $(SED) 's/$$(CCOPTS)//' $(@D)/netem/Makefile $(TARGET_MAKE_ENV) LDFLAGS="$(TARGET_LDFLAGS)" $(MAKE) \ DBM_INCLUDE="$(STAGING_DIR)/usr/include" \ CCOPTS="$(TARGET_CFLAGS) -D_GNU_SOURCE" \ SHARED_LIBS="$(if $(BR2_STATIC_LIBS),n,y)" -C $(@D) endef define IPROUTE2_INSTALL_TARGET_CMDS $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR="$(TARGET_DIR)" \ SBINDIR=/sbin \ DOCDIR=/usr/share/doc/iproute2-$(IPROUTE2_VERSION) \ MANDIR=/usr/share/man install $(IPROUTE2_REMOVE_IFCFG) endef $(eval $(generic-package))
shibajee/buildroot
package/iproute2/iproute2.mk
mk
mit
2,322
From 4ce3545b704588c5889b8dd7b100fcdb88ae2e1a Mon Sep 17 00:00:00 2001 From: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Date: Wed, 17 Sep 2014 17:48:54 +0100 Subject: [PATCH] iprutils: Don't use gettext ... since we don't have any translation. Based on the former patch by Jeremy Kerr. Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> [Thomas: adapt to the new autotools build system.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> --- configure.ac | 2 +- iprconfig.h | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index ee69bee..c1a4f70 100644 --- a/configure.ac +++ b/configure.ac @@ -137,7 +137,7 @@ AC_SUBST([IPRCONFIG_LIBS]) LIBS="$save_LIBS" # Checks for header files. -AC_CHECK_HEADERS([fcntl.h libintl.h locale.h netinet/in.h nl_types.h \ +AC_CHECK_HEADERS([fcntl.h locale.h netinet/in.h nl_types.h \ paths.h stddef.h stdint.h stdlib.h string.h sys/file.h \ sys/ioctl.h sys/mount.h sys/socket.h syslog.h \ unistd.h ncurses.h form.h menu.h], [], diff --git a/iprconfig.h b/iprconfig.h index 9bce950..751a737 100644 --- a/iprconfig.h +++ b/iprconfig.h @@ -11,9 +11,7 @@ * **/ -#include <libintl.h> - -#define _(string) gettext(string) +#define _(string) (string) #define __(string) (string) #define EXIT_FLAG 0x8000 /* stops at given screen on exit call */ #define CANCEL_FLAG 0x4000 /* stops at given screen on quit call */ -- 2.6.4
shibajee/buildroot
package/iprutils/0001-iprutils-Don-t-use-gettext.patch
patch
mit
1,474
From 62a41abffa028a3a4c4ae0803d48c559a14e97f1 Mon Sep 17 00:00:00 2001 From: Bernd Kuhls <bernd.kuhls@t-online.de> Date: Sun, 7 Feb 2016 13:54:10 +0100 Subject: [PATCH] configure.ac: use pow() instead of matherr() for libm check In certain configurations of uClibc, the matherr() function may not be provided by the C library, which makes the current configure.ac check for libm fail. However, iprutils does not use matherr(), so using this function for the test makes little sense. This patch adjusts configure.ac to test for pow() instead, which is actually used by iprutils, and more commonly available, including in uClibc. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index c1a4f70..e430554 100644 --- a/configure.ac +++ b/configure.ac @@ -129,7 +129,7 @@ save_LIBS="$LIBS" AC_CHECK_LIB([ncurses], [curses_version], [], [AC_ERROR("libncurses not found.")]) AC_CHECK_LIB([form], [free_form], [], [AC_ERROR("libform not found.")]) -AC_CHECK_LIB([m], [matherr], [], [AC_ERROR("libm not found.")]) +AC_CHECK_LIB([m], [pow], [], [AC_ERROR("libm not found.")]) AC_CHECK_LIB([menu], [new_menu], [], [AC_ERROR("libmenu not found.")]) AC_CHECK_LIB([panel], [show_panel], [], [AC_ERROR("libpanel not found.")]) IPRCONFIG_LIBS="$LIBS" -- 2.6.4
shibajee/buildroot
package/iprutils/0002-configure.ac-use-pow-instead-of-matherr-for-libm-che.patch
patch
mit
1,447
From df3b2b74ed7b49d74f5a5ec5687bcc3188d3b319 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Date: Sun, 7 Feb 2016 14:10:44 +0100 Subject: [PATCH] iprlib: fixes for compatibility with musl <bits/sockaddr.h> is an internal C library header, which is not guaranteed to be available in all C libraries, so it shouldn't be included, otherwise iprutils cannot be built with musl. <limits.h> is needed to get the definition of PATH_MAX. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> --- iprlib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iprlib.h b/iprlib.h index 16fe1e1..73aa1ce 100644 --- a/iprlib.h +++ b/iprlib.h @@ -46,9 +46,9 @@ #include <asm/byteorder.h> #include <sys/mman.h> #include <paths.h> -#include <bits/sockaddr.h> #include <linux/netlink.h> #include <time.h> +#include <limits.h> typedef uint8_t u8; typedef uint16_t u16; -- 2.6.4
shibajee/buildroot
package/iprutils/0003-iprlib-fixes-for-compatibility-with-musl.patch
patch
mit
947
config BR2_PACKAGE_IPRUTILS bool "iprutils" select BR2_PACKAGE_NCURSES select BR2_PACKAGE_NCURSES_TARGET_PANEL select BR2_PACKAGE_NCURSES_TARGET_FORM select BR2_PACKAGE_NCURSES_TARGET_MENU select BR2_PACKAGE_LIBSYSFS select BR2_PACKAGE_PCIUTILS depends on BR2_USE_MMU # fork() depends on !BR2_bfin # pciutils help System utilities for IBM Power RAID devices http://sourceforge.net/projects/iprdd/
shibajee/buildroot
package/iprutils/Config.in
in
mit
414
# Locally computed: sha256 99f28418fec505c4dfd532270569d4902a3792dcb2f08710b896f4e7bc0211e0 iprutils-2.4.10.1.tar.gz
shibajee/buildroot
package/iprutils/iprutils.hash
hash
mit
117
################################################################################ # # iprutils # ################################################################################ IPRUTILS_VERSION_MAJOR = 2.4.10 IPRUTILS_VERSION = $(IPRUTILS_VERSION_MAJOR).1 IPRUTILS_SITE = http://downloads.sourceforge.net/project/iprdd/iprutils%20for%202.6%20kernels/$(IPRUTILS_VERSION_MAJOR) IPRUTILS_DEPENDENCIES = ncurses libsysfs pciutils IPRUTILS_LICENSE = Common Public License Version 1.0 IPRUTILS_LICENSE_FILES = LICENSE # Patches touching configure.ac IPRUTILS_AUTORECONF = YES $(eval $(autotools-package))
shibajee/buildroot
package/iprutils/iprutils.mk
mk
mit
601
Replaces sysv3 legacy functions with modern equivalents. Signed-off-by: Julien Boibessot <julien.boibessot@armadeus.com> Index: ipsec-tools-0.7.3/src/racoon/pfkey.c =================================================================== --- ipsec-tools-0.7.3.orig/src/racoon/pfkey.c 2010-07-12 14:46:52.000000000 +0200 +++ ipsec-tools-0.7.3/src/racoon/pfkey.c 2010-07-12 15:01:39.000000000 +0200 @@ -3008,12 +3008,12 @@ struct sockaddr *paddr; paddr = (struct sockaddr *)(xisr + 1); - bcopy(paddr, &(*p_isr)->saidx.src, + memmove(&(*p_isr)->saidx.src, paddr, sysdep_sa_len(paddr)); paddr = (struct sockaddr *)((caddr_t)paddr + sysdep_sa_len(paddr)); - bcopy(paddr, &(*p_isr)->saidx.dst, + memmove(&(*p_isr)->saidx.dst, paddr, sysdep_sa_len(paddr)); } Index: ipsec-tools-0.7.3/src/racoon/racoonctl.c =================================================================== --- ipsec-tools-0.7.3.orig/src/racoon/racoonctl.c 2010-07-12 14:49:51.000000000 +0200 +++ ipsec-tools-0.7.3/src/racoon/racoonctl.c 2010-07-12 15:00:52.000000000 +0200 @@ -785,7 +785,7 @@ errx(1, "cannot read source address"); /* We get "ip[port]" strip the port */ - if ((idx = index(srcaddr, '[')) == NULL) + if ((idx = strchr(srcaddr, '[')) == NULL) errx(1, "unexpected source address format"); *idx = '\0';
shibajee/buildroot
package/ipsec-tools/0001-susv3-legacy.patch
patch
mit
1,346
config BR2_PACKAGE_IPSEC_TOOLS bool "ipsec-tools" depends on BR2_USE_MMU # fork() depends on !BR2_TOOLCHAIN_USES_MUSL # Use __P() macro all over the tree select BR2_PACKAGE_OPENSSL select BR2_PACKAGE_FLEX help This package is required to support IPSec for Linux 2.6+ http://ipsec-tools.sourceforge.net/ if BR2_PACKAGE_IPSEC_TOOLS config BR2_PACKAGE_IPSEC_TOOLS_ADMINPORT default y bool "Enable racoonctl(8)" help Lets racoon to listen to racoon admin port, which is to be contacted by racoonctl(8). config BR2_PACKAGE_IPSEC_TOOLS_NATT bool "Enable NAT-Traversal" help This needs kernel support, which is available on Linux. On NetBSD, NAT-Traversal kernel support has not been integrated yet, you can get it from here: http://ipsec-tools.sourceforge.net/netbsd_nat-t.diff If you live in a country where software patents are legal, using NAT-Traversal might infringe a patent. config BR2_PACKAGE_IPSEC_TOOLS_FRAG bool "Enable IKE fragmentation" help Enable IKE fragmentation, which is a workaround for broken routers that drop fragmented packets config BR2_PACKAGE_IPSEC_TOOLS_DPD bool "Enable DPD (Dead Peer Detection)" help Enable dead peer detection support config BR2_PACKAGE_IPSEC_TOOLS_STATS default y bool "Enable statistics logging function" config BR2_PACKAGE_IPSEC_TOOLS_READLINE select BR2_PACKAGE_READLINE bool "Enable readline input support" config BR2_PACKAGE_IPSEC_TOOLS_HYBRID bool "Enable hybrid, both mode-cfg and xauth support" help Hybrid mode is required for successful interoperability (e.g. Cisco VPN Client). choice prompt "Security context" default BR2_PACKAGE_IPSEC_SECCTX_DISABLE help Selects whether or not to enable security context support. config BR2_PACKAGE_IPSEC_SECCTX_DISABLE bool "Disable security context support" config BR2_PACKAGE_IPSEC_SECCTX_ENABLE bool "Enable SELinux security context support" config BR2_PACKAGE_IPSEC_SECCTX_KERNEL bool "Enable kernel security context" endchoice endif
shibajee/buildroot
package/ipsec-tools/Config.in
in
mit
2,021
# From http://sourceforge.net/projects/ipsec-tools/files/ipsec-tools/0.8.2/ md5 d53ec14a0a3ece64e09e5e34b3350b41 ipsec-tools-0.8.2.tar.bz2 sha1 7d92cae9fde59fb4f125636698c43b0a3df3d0f0 ipsec-tools-0.8.2.tar.bz2
shibajee/buildroot
package/ipsec-tools/ipsec-tools.hash
hash
mit
211
################################################################################ # # ipsec-tools # ################################################################################ IPSEC_TOOLS_VERSION = 0.8.2 IPSEC_TOOLS_SOURCE = ipsec-tools-$(IPSEC_TOOLS_VERSION).tar.bz2 IPSEC_TOOLS_SITE = http://sourceforge.net/projects/ipsec-tools/files/ipsec-tools/$(IPSEC_TOOLS_VERSION) IPSEC_TOOLS_INSTALL_STAGING = YES IPSEC_TOOLS_MAKE = $(MAKE1) IPSEC_TOOLS_DEPENDENCIES = openssl flex host-flex # configure hardcodes -Werror, so override CFLAGS on make invocation IPSEC_TOOLS_MAKE_OPTS = CFLAGS='$(TARGET_CFLAGS)' # openssl uses zlib, so we need to explicitly link with it when static ifeq ($(BR2_STATIC_LIBS),y) IPSEC_TOOLS_CONF_ENV += LIBS=-lz endif IPSEC_TOOLS_CONF_OPTS = \ --without-libpam \ --disable-gssapi \ --with-kernel-headers=$(STAGING_DIR)/usr/include ifeq ($(BR2_PACKAGE_IPSEC_TOOLS_ADMINPORT),y) IPSEC_TOOLS_CONF_OPTS += --enable-adminport else IPSEC_TOOLS_CONF_OPTS += --disable-adminport endif ifeq ($(BR2_PACKAGE_IPSEC_TOOLS_NATT),y) IPSEC_TOOLS_CONF_OPTS += --enable-natt else IPSEC_TOOLS_CONF_OPTS += --disable-natt endif ifeq ($(BR2_PACKAGE_IPSEC_TOOLS_FRAG),y) IPSEC_TOOLS_CONF_OPTS += --enable-frag else IPSEC_TOOLS_CONF_OPTS += --disable-frag endif ifeq ($(BR2_PACKAGE_IPSEC_TOOLS_DPD),y) IPSEC_TOOLS_CONF_OPTS += --enable-dpd else IPSEC_TOOLS_CONF_OPTS += --disable-dpd endif ifeq ($(BR2_PACKAGE_IPSEC_TOOLS_STATS),y) IPSEC_TOOLS_CONF_OPTS += --enable-stats else IPSEC_TOOLS_CONF_OPTS += --disable-stats endif ifneq ($(BR2_PACKAGE_IPSEC_TOOLS_READLINE),y) IPSEC_TOOLS_CONF_OPTS += --without-readline else IPSEC_DEPENDENCIES += readline endif ifeq ($(BR2_PACKAGE_IPSEC_TOOLS_HYBRID),y) IPSEC_TOOLS_CONF_OPTS += --enable-hybrid else IPSEC_TOOLS_CONF_OPTS += --disable-hybrid endif ifeq ($(BR2_PACKAGE_IPSEC_SECCTX_DISABLE),y) IPSEC_TOOLS_CONF_OPTS += --enable-security-context=no endif ifeq ($(BR2_PACKAGE_IPSEC_SECCTX_ENABLE),y) IPSEC_TOOLS_CONF_OPTS += --enable-security-context=yes endif ifeq ($(BR2_PACKAGE_IPSEC_SECCTX_KERNEL),y) IPSEC_TOOLS_CONF_OPTS += --enable-security-context=kernel endif $(eval $(autotools-package))
shibajee/buildroot
package/ipsec-tools/ipsec-tools.mk
mk
mit
2,166
From f31bb2561776ad2ce4b77339da6fbfc9e3b2ffbb Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Date: Sun, 26 Oct 2014 14:18:29 +0100 Subject: [PATCH] Do not pass -Werror when --enable-debug is used Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> --- Make_global.am | 2 +- configure.ac | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/Make_global.am b/Make_global.am index 7953451..25c4d64 100644 --- a/Make_global.am +++ b/Make_global.am @@ -77,7 +77,7 @@ AM_CPPFLAGS = $(kinclude_CFLAGS) $(all_includes) -I$(top_srcdir)/include \ AM_CFLAGS = -std=gnu99 if ENABLE_DEBUG -AM_CFLAGS += -g -g3 -ggdb -gdwarf-2 -DIPSET_DEBUG -Wall -Werror +AM_CFLAGS += -g -g3 -ggdb -gdwarf-2 -DIPSET_DEBUG -Wall else AM_CFLAGS += -O2 -DNDEBUG endif diff --git a/configure.ac b/configure.ac index 8fdac15..ee3b147 100644 --- a/configure.ac +++ b/configure.ac @@ -345,7 +345,6 @@ AX_CFLAGS_GCC_OPTION(-Waggregate-return) AX_CFLAGS_GCC_OPTION(-Wbad-function-cast) AX_CFLAGS_GCC_OPTION(-Wcast-align) AX_CFLAGS_GCC_OPTION(-Wcast-qual) -AX_CFLAGS_GCC_OPTION(-Werror) AX_CFLAGS_GCC_OPTION(-Wextra) AX_CFLAGS_GCC_OPTION(-Wfloat-equal) AX_CFLAGS_GCC_OPTION(-Wformat=2) -- 2.0.0
shibajee/buildroot
package/ipset/0001-Do-not-pass-Werror-when-enable-debug-is-used.patch
patch
mit
1,248
config BR2_PACKAGE_IPSET bool "ipset" select BR2_PACKAGE_LIBMNL help Utility to manage IP sets in the linux kernel. Requires a patched kernel or version >=2.6.39. http://ipset.netfilter.org/
shibajee/buildroot
package/ipset/Config.in
in
mit
204
# From ftp://ftp.netfilter.org/pub/ipset/ipset-6.27.tar.bz2.md5sum.txt md5 c39f8958908b1396e2c69f082b75d924 ipset-6.27.tar.bz2 # Calculated based on the hash above sha256 724897a80395534466142c3542184e5a480a5046140ca2a7d9097690b931b235 ipset-6.27.tar.bz2
shibajee/buildroot
package/ipset/ipset.hash
hash
mit
255
################################################################################ # # ipset # ################################################################################ IPSET_VERSION = 6.27 IPSET_SOURCE = ipset-$(IPSET_VERSION).tar.bz2 IPSET_SITE = http://ipset.netfilter.org IPSET_DEPENDENCIES = libmnl host-pkgconf IPSET_CONF_OPTS = --with-kmod=no # For 0001-Do-not-pass-Werror-when-enable-debug-is-used.patch IPSET_AUTORECONF = YES IPSET_LICENSE = GPLv2 IPSET_LICENSE_FILES = COPYING $(eval $(autotools-package))
shibajee/buildroot
package/ipset/ipset.mk
mk
mit
523
From 2f2fde48594ec34e93ab409cd83442efe58e10ad Mon Sep 17 00:00:00 2001 From: Brendan Heading <brendanheading@gmail.com> Date: Mon, 31 Aug 2015 15:24:44 +0100 Subject: [PATCH 3/3] fix build with musl Add needed headers they are just not needed for glibc6+ but also for musl Define additional TCOPTS if not there u_initX types are in sys/types.h be explicit about it Upstream-Status: Pending bh: this is a copy of the patch at the link below, modified to remove the changes to include/libiptc/ipt_kernel_headers.h as these are already integrated in the upstream tree. See : http://lists.openembedded.org/pipermail/openembedded-core/2015-April/103613.html Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Brendan Heading <brendanheading@gmail.com> --- extensions/libxt_TCPOPTSTRIP.c | 15 +++++++++++++++ include/linux/netfilter_ipv4/ip_tables.h | 1 + 2 files changed, 16 insertions(+) diff --git a/extensions/libxt_TCPOPTSTRIP.c b/extensions/libxt_TCPOPTSTRIP.c index 6897857..8a170b2 100644 --- a/extensions/libxt_TCPOPTSTRIP.c +++ b/extensions/libxt_TCPOPTSTRIP.c @@ -12,6 +12,21 @@ #ifndef TCPOPT_MD5SIG # define TCPOPT_MD5SIG 19 #endif +#ifndef TCPOPT_MAXSEG +# define TCPOPT_MAXSEG 2 +#endif +#ifndef TCPOPT_WINDOW +# define TCPOPT_WINDOW 3 +#endif +#ifndef TCPOPT_SACK_PERMITTED +# define TCPOPT_SACK_PERMITTED 4 +#endif +#ifndef TCPOPT_SACK +# define TCPOPT_SACK 5 +#endif +#ifndef TCPOPT_TIMESTAMP +# define TCPOPT_TIMESTAMP 8 +#endif enum { O_STRIP_OPTION = 0, diff --git a/include/linux/netfilter_ipv4/ip_tables.h b/include/linux/netfilter_ipv4/ip_tables.h index 57fd82a..4807246 100644 --- a/include/linux/netfilter_ipv4/ip_tables.h +++ b/include/linux/netfilter_ipv4/ip_tables.h @@ -15,6 +15,7 @@ #ifndef _IPTABLES_H #define _IPTABLES_H +#include <sys/types.h> #include <linux/types.h> #include <linux/netfilter_ipv4.h> -- 2.4.3
shibajee/buildroot
package/iptables/0001-fix-build-with-musl.patch
patch
mit
1,888
From 4dc8e2aa91bd4151f7e5cd56d88d3731b4c1525e Mon Sep 17 00:00:00 2001 From: Gustavo Zacarias <gustavo@zacarias.com.ar> Date: Wed, 30 Dec 2015 14:39:35 -0300 Subject: [PATCH] iptables: add xtables-config-parser.h to BUILT_SOURCES Otherwise other sources that use it might be built before it's ready leading to build failure, for example by iptables/nft.c Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> --- Status: sent upstream (mailing list, no link yet) iptables/Makefile.am | 3 +++ 1 file changed, 3 insertions(+) diff --git a/iptables/Makefile.am b/iptables/Makefile.am index 3c0faa5..c3eb8a8 100644 --- a/iptables/Makefile.am +++ b/iptables/Makefile.am @@ -4,6 +4,8 @@ AM_CFLAGS = ${regular_CFLAGS} AM_CPPFLAGS = ${regular_CPPFLAGS} -I${top_builddir}/include -I${top_srcdir}/include ${kinclude_CPPFLAGS} ${libmnl_CFLAGS} ${libnftnl_CFLAGS} ${libnetfilter_conntrack_CFLAGS} AM_YFLAGS = -d +BUILT_SOURCES = + xtables_multi_SOURCES = xtables-multi.c iptables-xml.c xtables_multi_CFLAGS = ${AM_CFLAGS} xtables_multi_LDADD = ../extensions/libext.a @@ -27,6 +29,7 @@ xtables_multi_LDADD += ../libxtables/libxtables.la -lm # nftables compatibility layer if ENABLE_NFTABLES +BUILT_SOURCES += xtables-config-parser.h xtables_compat_multi_SOURCES = xtables-compat-multi.c iptables-xml.c xtables_compat_multi_CFLAGS = ${AM_CFLAGS} xtables_compat_multi_LDADD = ../extensions/libext.a ../extensions/libext_ebt.a -- 2.4.10
shibajee/buildroot
package/iptables/0002-iptables-add-xtables-config-parser.h-to-BUILT_SOURCES.patch
patch
mit
1,473
From eca9b91b832dfc27d0e1a6d08e2ce4878f229373 Mon Sep 17 00:00:00 2001 From: Jordan Yelloz <jordan@yelloz.me> Date: Fri, 24 Jun 2016 12:18:45 -0700 Subject: [PATCH] extensions: added AR substitution This is to ensure that the correct AR is run in cross-compile jobs. Often a cross-compile build will succeed without this change but it fails on my Gentoo Linux system when I have binutils installed with the "multitarget" USE flag. This change substitues AR with the autotools-supplied AR for the extensions subdirectory. Signed-off-by: Jordan Yelloz <jordan@yelloz.me> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> --- extensions/GNUmakefile.in | 1 + 1 file changed, 1 insertion(+) diff --git a/extensions/GNUmakefile.in b/extensions/GNUmakefile.in index 53be2cd..33b06ef 100644 --- a/extensions/GNUmakefile.in +++ b/extensions/GNUmakefile.in @@ -11,6 +11,7 @@ libdir = @libdir@ libexecdir = @libexecdir@ xtlibdir = @xtlibdir@ +AR = @AR@ CC = @CC@ CCLD = ${CC} CFLAGS = @CFLAGS@ -- 2.7.4
shibajee/buildroot
package/iptables/0003-extensions-added-AR-substitution.patch
patch
mit
1,081
config BR2_PACKAGE_IPTABLES bool "iptables" help Linux kernel firewall, NAT, and packet mangling tools. http://www.netfilter.org/projects/iptables/index.html if BR2_PACKAGE_IPTABLES config BR2_PACKAGE_IPTABLES_BPF_NFSYNPROXY bool "bpfc and nfsynproxy" # this dependency can be removed when using a musl version # containing this commit: # http://git.musl-libc.org/cgit/musl/commit/?id=53f41fb568ae43034c9876cc9bd3961fd6d13671 depends on !BR2_TOOLCHAIN_USES_MUSL select BR2_PACKAGE_LIBPCAP help Build bpf compiler and nfsynproxy configuration tool. config BR2_PACKAGE_IPTABLES_NFTABLES bool "nftables compat" # uses dlfcn depends on !BR2_STATIC_LIBS depends on BR2_USE_WCHAR depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12 select BR2_PACKAGE_LIBMNL select BR2_PACKAGE_LIBNFTNL help Build nftables compat utilities. comment "nftables compat needs a toolchain w/ wchar, dynamic library, headers >= 3.12" depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12 || \ !BR2_USE_WCHAR || BR2_STATIC_LIBS endif
shibajee/buildroot
package/iptables/Config.in
in
mit
1,031
# From ftp://ftp.netfilter.org/pub/iptables/iptables-1.6.0.tar.bz2.{md5sum,sha1sum} md5 27ba3451cb622467fc9267a176f19a31 iptables-1.6.0.tar.bz2 sha1 21a694e75b0d6863cc001f85fb15915d12b8cc22 iptables-1.6.0.tar.bz2
shibajee/buildroot
package/iptables/iptables.hash
hash
mit
214
################################################################################ # # iptables # ################################################################################ IPTABLES_VERSION = 1.6.0 IPTABLES_SOURCE = iptables-$(IPTABLES_VERSION).tar.bz2 IPTABLES_SITE = http://ftp.netfilter.org/pub/iptables IPTABLES_INSTALL_STAGING = YES IPTABLES_DEPENDENCIES = host-pkgconf \ $(if $(BR2_PACKAGE_LIBNETFILTER_CONNTRACK),libnetfilter_conntrack) IPTABLES_LICENSE = GPLv2 IPTABLES_LICENSE_FILES = COPYING # Building static causes ugly warnings on some plugins IPTABLES_CONF_OPTS = --libexecdir=/usr/lib --with-kernel=$(STAGING_DIR)/usr \ $(if $(BR2_STATIC_LIBS),,--disable-static) # For 0002-iptables-add-xtables-config-parser.h-to-BUILT_SOURCES.patch # and 0003-extensions-added-AR-substitution.patch IPTABLES_AUTORECONF = YES # For connlabel match ifeq ($(BR2_PACKAGE_LIBNETFILTER_CONNTRACK),y) IPTABLES_DEPENDENCIES += libnetfilter_conntrack endif # For nfnl_osf ifeq ($(BR2_PACKAGE_LIBNFNETLINK),y) IPTABLES_DEPENDENCIES += libnfnetlink endif # For iptables-compat tools ifeq ($(BR2_PACKAGE_IPTABLES_NFTABLES),y) IPTABLES_CONF_OPTS += --enable-nftables IPTABLES_DEPENDENCIES += host-bison host-flex libmnl libnftnl else IPTABLES_CONF_OPTS += --disable-nftables endif # bpf compiler support and nfsynproxy tool ifeq ($(BR2_PACKAGE_IPTABLES_BPF_NFSYNPROXY),y) # libpcap is tricky for static-only builds and needs help ifeq ($(BR2_STATIC_LIBS),y) IPTABLES_LIBS_FOR_STATIC_LINK += `$(STAGING_DIR)/usr/bin/pcap-config --static --additional-libs` IPTABLES_CONF_OPTS += LIBS="$(IPTABLES_LIBS_FOR_STATIC_LINK)" endif IPTABLES_CONF_OPTS += --enable-bpf-compiler --enable-nfsynproxy IPTABLES_DEPENDENCIES += libpcap else IPTABLES_CONF_OPTS += --disable-bpf-compiler --disable-nfsynproxy endif $(eval $(autotools-package))
shibajee/buildroot
package/iptables/iptables.mk
mk
mit
1,825
config BR2_PACKAGE_IPTRAF_NG bool "iptraf-ng" depends on BR2_USE_MMU # fork() select BR2_PACKAGE_NCURSES select BR2_PACKAGE_NCURSES_TARGET_PANEL help IPTraf-ng is a ncurses-based network monitoring utility. It gathers data like TCP connection packet and byte counts, interface statistics and activity indicators. https://fedorahosted.org/iptraf-ng/ IPTraf-ng is a fork of original IPTraf v3.0.0 (http://iptraf.seul.org).
shibajee/buildroot
package/iptraf-ng/Config.in
in
mit
443
# From https://fedorahosted.org/releases/i/p/iptraf-ng/iptraf-ng-1.1.4.tar.gz.sum sha1 a2e51b0dd6b8c80583fc25d055850c96b3d2f544 iptraf-ng-1.1.4.tar.gz
shibajee/buildroot
package/iptraf-ng/iptraf-ng.hash
hash
mit
151