code
string | repo_name
string | path
string | language
string | license
string | size
int64 |
---|---|---|---|---|---|
config BR2_PACKAGE_LZO
bool "lzo"
help
Portable lossless data compression library written in ANSI C.
http://www.oberhumer.com/opensource/lzo/
|
shibajee/buildroot
|
package/lzo/Config.in
|
in
|
mit
| 151 |
# From http://www.oberhumer.com/opensource/lzo/
sha1 e2a60aca818836181e7e6f8c4f2c323aca6ac057 lzo-2.09.tar.gz
|
shibajee/buildroot
|
package/lzo/lzo.hash
|
hash
|
mit
| 110 |
################################################################################
#
# lzo
#
################################################################################
LZO_VERSION = 2.09
LZO_SITE = http://www.oberhumer.com/opensource/lzo/download
LZO_LICENSE = GPLv2+
LZO_LICENSE_FILES = COPYING
LZO_INSTALL_STAGING = YES
# Ships a beta libtool version hence our patch doesn't apply.
# Run autoreconf to regenerate ltmain.sh.
LZO_AUTORECONF = YES
$(eval $(autotools-package))
$(eval $(host-autotools-package))
|
shibajee/buildroot
|
package/lzo/lzo.mk
|
mk
|
mit
| 516 |
From: Jaap Crezee <jaap@jcz.nl>
Date: Sat, 25 june 2016 13:13:00 +0200
Subject: [PATCH 1/1] fix compilation host-lzop with gcc-6
This patch allows host-lzop to be compiled with host systems containing gcc-6
Upstream patch found here:
https://build.opensuse.org/package/view_file/Archiving/lzop/lzop-1.03-gcc6.patch?expand=1
Signed-off-by: Jaap Crezee <jaap@jcz.nl>
--- a/src/miniacc.h.orig 2016-02-10 16:09:23.247315866 +0100
+++ b/src/miniacc.h 2016-02-10 16:12:14.973297054 +0100
@@ -4469,12 +4469,12 @@
#if defined(__MSDOS__) && defined(__TURBOC__) && (__TURBOC__ < 0x0150)
#elif 1 && (ACC_CC_SUNPROC) && !defined(ACCCHK_CFG_PEDANTIC)
#else
- ACCCHK_ASSERT((1 << (8*SIZEOF_INT-1)) < 0)
+ ACCCHK_ASSERT((int)(1u << (8*SIZEOF_INT-1)) < 0)
#endif
ACCCHK_ASSERT((1u << (8*SIZEOF_INT-1)) > 0)
#if 1 && (ACC_CC_SUNPROC) && !defined(ACCCHK_CFG_PEDANTIC)
#else
- ACCCHK_ASSERT((1l << (8*SIZEOF_LONG-1)) < 0)
+ ACCCHK_ASSERT((long)(1ul << (8*SIZEOF_LONG-1)) < 0)
#endif
ACCCHK_ASSERT((1ul << (8*SIZEOF_LONG-1)) > 0)
#if defined(acc_int16e_t)
@@ -4703,7 +4703,7 @@
#elif 1 && (ACC_CC_LCC || ACC_CC_LCCWIN32) && !defined(ACCCHK_CFG_PEDANTIC)
#elif 1 && (ACC_CC_SUNPROC) && !defined(ACCCHK_CFG_PEDANTIC)
#elif !(ACC_BROKEN_INTEGRAL_PROMOTION) && (SIZEOF_INT > 1)
- ACCCHK_ASSERT( (((unsigned char)128) << (int)(8*sizeof(int)-8)) < 0)
+ ACCCHK_ASSERT( (int)((unsigned int)((unsigned char)128) << (int)(8*sizeof(int)-8)) < 0)
#endif
#if (ACC_CC_BORLANDC && (__BORLANDC__ >= 0x0530) && (__BORLANDC__ < 0x0560))
# pragma option pop
|
shibajee/buildroot
|
package/lzop/0001-build-with-gcc6.patch
|
patch
|
mit
| 1,577 |
config BR2_PACKAGE_LZOP
bool "lzop"
select BR2_PACKAGE_LZO
help
lzop is a file compressor which is very similar to gzip.
lzop uses the LZO data compression library for compression services.
http://www.lzop.org/
|
shibajee/buildroot
|
package/lzop/Config.in
|
in
|
mit
| 224 |
# Locally calculated
sha256 c1425b8c77d49f5a679d5a126c90ea6ad99585a55e335a613cae59e909dbb2c9 lzop-1.03.tar.gz
|
shibajee/buildroot
|
package/lzop/lzop.hash
|
hash
|
mit
| 110 |
################################################################################
#
# lzop
#
################################################################################
LZOP_VERSION = 1.03
LZOP_SITE = http://www.lzop.org/download
LZOP_LICENSE = GPLv2+
LZOP_LICENSE_FILES = COPYING
LZOP_DEPENDENCIES = lzo
HOST_LZOP_DEPENDENCIES = host-lzo
$(eval $(autotools-package))
$(eval $(host-autotools-package))
LZOP = $(HOST_DIR)/usr/bin/lzop
|
shibajee/buildroot
|
package/lzop/lzop.mk
|
mk
|
mit
| 441 |
# Locally calculated after checking pgp signature
sha256 f0543c3beb51fa6b3337d8025331591e0e18d8ec2886ed391f1aade43477d508 m4-1.4.17.tar.xz
|
shibajee/buildroot
|
package/m4/m4.hash
|
hash
|
mit
| 139 |
################################################################################
#
# m4
#
################################################################################
M4_VERSION = 1.4.17
M4_SOURCE = m4-$(M4_VERSION).tar.xz
M4_SITE = $(BR2_GNU_MIRROR)/m4
M4_LICENSE = GPLv3+
M4_LICENSE_FILES = COPYING
HOST_M4_CONF_OPTS = --disable-static
$(eval $(host-autotools-package))
|
shibajee/buildroot
|
package/m4/m4.mk
|
mk
|
mit
| 378 |
From 4eeb901b7aadb167e44f476fd665f7fedf491e51 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=B6rg=20Krause?= <joerg.krause@embedded.rocks>
Date: Fri, 6 May 2016 09:28:36 +0200
Subject: [PATCH] Fix missing include for caddr_t
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
caddr_t is defined in <sys/types.h>. This header file must be included to fix
build with the musl C library:
netinfo.c: In function 'mc_net_info_get_permanent_mac':
netinfo.c:116:28: error: 'caddr_t' undeclared (first use in this function)
req.ifr_data = (caddr_t)epa;
Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
---
src/netinfo.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/netinfo.c b/src/netinfo.c
index 3525123..1aa3293 100644
--- a/src/netinfo.c
+++ b/src/netinfo.c
@@ -28,6 +28,7 @@
#include <string.h>
#include <unistd.h>
#include <sys/ioctl.h>
+#include <sys/types.h>
#include <linux/ethtool.h>
#include <linux/sockios.h>
--
2.8.2
|
shibajee/buildroot
|
package/macchanger/0001-Fix-missing-include-for-caddr_t.patch
|
patch
|
mit
| 994 |
config BR2_PACKAGE_MACCHANGER
bool "macchanger"
help
A GNU/Linux utility for viewing/manipulating the MAC address of
network interfaces
http://www.gnu.org/software/macchanger
|
shibajee/buildroot
|
package/macchanger/Config.in
|
in
|
mit
| 187 |
# Locally calculated after checking pgp signature
sha256 dae2717c270fd5f62d790dbf80c19793c651b1b26b62c101b82d5fdf25a845bf macchanger-1.7.0.tar.gz
|
shibajee/buildroot
|
package/macchanger/macchanger.hash
|
hash
|
mit
| 148 |
################################################################################
#
# macchanger
#
################################################################################
MACCHANGER_VERSION = 1.7.0
MACCHANGER_SITE = https://github.com/alobbs/macchanger/releases/download/$(MACCHANGER_VERSION)
MACCHANGER_LICENSE = GPLv2+
MACCHANGER_LICENSE_FILES = COPYING
$(eval $(autotools-package))
|
shibajee/buildroot
|
package/macchanger/macchanger.mk
|
mk
|
mit
| 395 |
Switch madplay to the new API. This is done thanks to a patch written
by Micha Nelissen <micha@neli.hopto.org> and available at
http://article.gmane.org/gmane.comp.audio.mad.devel/729.
--- madplay-0.15.2b/audio_alsa.c 2008-10-18 15:10:16.000000000 +0200
+++ madplay-0.15.2b/audio_alsa.c.new 2008-10-18 15:03:27.000000000 +0200
@@ -28,31 +28,30 @@
#include <errno.h>
-#define ALSA_PCM_OLD_HW_PARAMS_API
-#define ALSA_PCM_OLD_SW_PARAMS_API
#include <alsa/asoundlib.h>
#include <mad.h>
#include "audio.h"
-char *buf = NULL;
-int paused = 0;
+#define BUFFER_TIME_MAX 500000
-int rate = -1;
-int channels = -1;
-int bitdepth = -1;
-int sample_size = -1;
-
-int buffer_time = 500000;
-int period_time = 100000;
-char *defaultdev = "plughw:0,0";
+unsigned char *buf = NULL;
+int paused = 0;
+
+unsigned int rate = 0;
+unsigned int channels = -1;
+unsigned int bitdepth = -1;
+unsigned int sample_size = -1;
+
+unsigned int buffer_time;
+unsigned int period_time;
+char *defaultdev = "plughw:0,0";
snd_pcm_hw_params_t *alsa_hwparams;
snd_pcm_sw_params_t *alsa_swparams;
-snd_pcm_sframes_t buffer_size;
-snd_pcm_sframes_t period_size;
+snd_pcm_uframes_t buffer_size;
snd_pcm_format_t alsa_format = -1;
snd_pcm_access_t alsa_access = SND_PCM_ACCESS_MMAP_INTERLEAVED;
@@ -66,14 +65,20 @@
snd_pcm_hw_params_t *params,
snd_pcm_access_t access)
{
- int err, dir;
-
+ int err;
+
/* choose all parameters */
err = snd_pcm_hw_params_any(handle,params);
if (err < 0) {
printf("Access type not available for playback: %s\n", snd_strerror(err));
return err;
}
+ /* set the access type */
+ err = snd_pcm_hw_params_set_access(handle, params, alsa_access);
+ if (err < 0) {
+ printf("Sample format not available for playback: %s\n", snd_strerror(err));
+ return err;
+ }
/* set the sample format */
err = snd_pcm_hw_params_set_format(handle, params, alsa_format);
if (err < 0) {
@@ -87,29 +92,38 @@
return err;
}
/* set the stream rate */
- err = snd_pcm_hw_params_set_rate_near(handle, params, rate, 0);
+ err = snd_pcm_hw_params_set_rate(handle, params, rate, 0);
if (err < 0) {
printf("Rate %iHz not available for playback: %s\n", rate, snd_strerror(err));
return err;
}
- if (err != rate) {
- printf("Rate doesn't match (requested %iHz, get %iHz)\n", rate, err);
- return -EINVAL;
- }
+ err = snd_pcm_hw_params_get_buffer_time_max(params, &buffer_time, NULL);
+ if (err < 0) {
+ printf("Unable to retrieve buffer time: %s\n", snd_strerror(err));
+ return err;
+ }
+ if (buffer_time > BUFFER_TIME_MAX)
+ buffer_time = BUFFER_TIME_MAX;
/* set buffer time */
- err = snd_pcm_hw_params_set_buffer_time_near(handle, params, buffer_time, &dir);
+ err = snd_pcm_hw_params_set_buffer_time_near(handle, params, &buffer_time, 0);
if (err < 0) {
printf("Unable to set buffer time %i for playback: %s\n", buffer_time, snd_strerror(err));
return err;
}
- buffer_size = snd_pcm_hw_params_get_buffer_size(params);
+ if (period_time * 4 > buffer_time)
+ period_time = buffer_time / 4;
/* set period time */
- err = snd_pcm_hw_params_set_period_time_near(handle, params, period_time, &dir);
+ err = snd_pcm_hw_params_set_period_time_near(handle, params, &period_time, NULL);
if (err < 0) {
printf("Unable to set period time %i for playback: %s\n", period_time, snd_strerror(err));
return err;
}
- period_size = snd_pcm_hw_params_get_period_size(params, &dir);
+ /* retrieve buffer size */
+ err = snd_pcm_hw_params_get_buffer_size(params, &buffer_size);
+ if (err < 0) {
+ printf("Unable to retrieve buffer size: %s\n", snd_strerror(err));
+ return err;
+ }
/* write the parameters to device */
err = snd_pcm_hw_params(handle, params);
if (err < 0) {
@@ -123,6 +137,7 @@
int set_swparams(snd_pcm_t *handle,
snd_pcm_sw_params_t *params)
{
+ unsigned int start_threshold;
int err;
/* get current swparams */
@@ -136,13 +151,7 @@
if (err < 0) {
printf("Unable to set start threshold mode for playback: %s\n", snd_strerror(err));
return err;
- }
- /* allow transfer when at least period_size samples can be processed */
- err = snd_pcm_sw_params_set_avail_min(handle, params, period_size);
- if (err < 0) {
- printf("Unable to set avail min for playback: %s\n", snd_strerror(err));
- return err;
- }
+ }
/* align all transfers to 1 samples */
err = snd_pcm_sw_params_set_xfer_align(handle, params, 1);
if (err < 0) {
@@ -190,7 +199,7 @@
rate = config->speed;
if ( bitdepth == 0 )
- config->precision = bitdepth = 32;
+ config->precision = bitdepth = 16;
switch (bitdepth)
{
@@ -241,7 +250,7 @@
return -1;
}
- buf = malloc(buffer_size);
+ buf = malloc(buffer_size * sample_size);
if (buf == NULL) {
audio_error="unable to allocate output buffer table";
return -1;
@@ -279,7 +288,7 @@
int play(struct audio_play *play)
{
int err, len;
- char *ptr;
+ unsigned char *ptr;
ptr = buf;
len = play->nsamples;
|
shibajee/buildroot
|
package/madplay/0001-switch-to-new-alsa-api.patch
|
patch
|
mit
| 5,257 |
config BR2_PACKAGE_MADPLAY
bool "madplay"
select BR2_PACKAGE_LIBMAD
select BR2_PACKAGE_LIBID3TAG
select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE
help
Command-line front-end to libmad, a high-quality MPEG audio decoder.
It currently supports MPEG-1 and the MPEG-2 extension to lower
sampling frequencies, as well as the de facto MPEG 2.5 format. All
three audio layers — Layer I, Layer II, and Layer III (i.e. MP3) —
are fully implemented.
http://www.underbit.com/products/mad/
if BR2_PACKAGE_MADPLAY
config BR2_PACKAGE_MADPLAY_ALSA
bool
default y
depends on BR2_PACKAGE_ALSA_LIB
endif
|
shibajee/buildroot
|
package/madplay/Config.in
|
in
|
mit
| 629 |
# Locally computed:
sha256 5a79c7516ff7560dffc6a14399a389432bc619c905b13d3b73da22fa65acede0 madplay-0.15.2b.tar.gz
|
shibajee/buildroot
|
package/madplay/madplay.hash
|
hash
|
mit
| 117 |
################################################################################
#
# madplay
#
################################################################################
MADPLAY_VERSION = 0.15.2b
MADPLAY_SITE = http://downloads.sourceforge.net/project/mad/madplay/$(MADPLAY_VERSION)
MADPLAY_LICENSE = GPLv2+
MADPLAY_LICENSE_FILES = COPYING COPYRIGHT
MADPLAY_LIBTOOL_PATCH = NO
MADPLAY_DEPENDENCIES = libmad libid3tag $(if $(BR2_PACKAGE_GETTEXT),gettext)
# Check if ALSA is built, then we should configure after alsa-lib so
# ./configure can find alsa-lib.
ifeq ($(BR2_PACKAGE_MADPLAY_ALSA),y)
MADPLAY_CONF_OPTS += --with-alsa
MADPLAY_DEPENDENCIES += host-pkgconf alsa-lib
MADPLAY_CONF_ENV += LIBS="`$(PKG_CONFIG_HOST_BINARY) --libs alsa`"
endif
$(eval $(autotools-package))
|
shibajee/buildroot
|
package/madplay/madplay.mk
|
mk
|
mit
| 783 |
config BR2_PACKAGE_MAKE
bool "make"
depends on BR2_USE_MMU # fork()
select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE
help
A tool which controls the generation of executables and other
non-source files of a program from the program's source files.
While Buildroot no longer supports building a toolchain for
the target, we keep a make package that is for example
useful to run the uClibc test suite on the target.
http://www.gnu.org/software/make/
|
shibajee/buildroot
|
package/make/Config.in
|
in
|
mit
| 480 |
# From http://lists.gnu.org/archive/html/info-gnu/2016-06/msg00005.html
md5 15b012617e7c44c0ed482721629577ac make-4.2.1.tar.bz2
# Locally calculated after checking signature
sha256 d6e262bf3601b42d2b1e4ef8310029e1dcf20083c5446b4b7aa67081fdffc589 make-4.2.1.tar.bz2
|
shibajee/buildroot
|
package/make/make.hash
|
hash
|
mit
| 267 |
################################################################################
#
# make
#
################################################################################
MAKE_VERSION = 4.2.1
MAKE_SOURCE = make-$(MAKE_VERSION).tar.bz2
MAKE_SITE = $(BR2_GNU_MIRROR)/make
MAKE_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext)
MAKE_LICENSE = GPLv3+
MAKE_LICENSE_FILES = COPYING
MAKE_CONF_OPTS = --without-guile
# Disable the 'load' operation for static builds since it needs dlopen
ifeq ($(BR2_STATIC_LIBS),y)
MAKE_CONF_OPTS += --disable-load
endif
$(eval $(autotools-package))
|
shibajee/buildroot
|
package/make/make.mk
|
mk
|
mit
| 592 |
config BR2_PACKAGE_MAKEDEVS
bool "makedevs"
help
The makedevs utility allows to create a set of device files
according to a configuration file.
|
shibajee/buildroot
|
package/makedevs/Config.in
|
in
|
mit
| 152 |
When building a target filesystem, it is desirable to not have to
become root and then run 'mknod' a thousand times. Using a device
table you can create device nodes and directories "on the fly".
You can do all sorts of interesting things with a device table file.
For example, if you want to adjust the permissions on a particular
file you can just add an entry like:
/sbin/foobar f 2755 0 0 - - - - -
and (assuming the file /sbin/foobar exists) it will be made setuid
root (regardless of what its permissions are on the host filesystem.
Furthermore, you can use a single table entry to create a many device
minors. For example, if I wanted to create /dev/hda and
/dev/hda[0-15] I could just use the following two table entries:
/dev/hda b 640 0 0 3 0 0 0 -
/dev/hda b 640 0 0 3 1 1 1 15
Device table entries take the form of:
<name> <type> <mode> <uid> <gid> <major> <minor> <start> <inc> <count>
where name is the file name, type can be one of:
f: A regular file
d: Directory
c: Character special device file
b: Block special device file
p: Fifo (named pipe)
uid is the user id for the target file, gid is the group id for the
target file. The rest of the entries (major, minor, etc) apply only
to device special files.
|
shibajee/buildroot
|
package/makedevs/README
|
none
|
mit
| 1,273 |
/* vi: set sw=4 ts=4: */
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Library General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*/
#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <getopt.h>
#include <time.h>
#include <pwd.h>
#include <grp.h>
#include <unistd.h>
#include <ctype.h>
#include <errno.h>
#include <libgen.h>
#include <stdarg.h>
#include <sys/stat.h>
#include <sys/types.h>
#ifndef __APPLE__
#include <sys/sysmacros.h> /* major() and minor() */
#endif
#include <ftw.h>
#ifdef EXTENDED_ATTRIBUTES
#include <sys/capability.h>
#endif /* EXTENDED_ATTRIBUTES */
const char *bb_applet_name;
uid_t recursive_uid;
gid_t recursive_gid;
unsigned int recursive_mode;
#define PASSWD_PATH "etc/passwd" /* MUST be relative */
#define GROUP_PATH "etc/group" /* MUST be relative */
void bb_verror_msg(const char *s, va_list p)
{
fflush(stdout);
fprintf(stderr, "%s: ", bb_applet_name);
vfprintf(stderr, s, p);
}
void bb_error_msg(const char *s, ...)
{
va_list p;
va_start(p, s);
bb_verror_msg(s, p);
va_end(p);
putc('\n', stderr);
}
void bb_error_msg_and_die(const char *s, ...)
{
va_list p;
va_start(p, s);
bb_verror_msg(s, p);
va_end(p);
putc('\n', stderr);
exit(1);
}
void bb_vperror_msg(const char *s, va_list p)
{
int err=errno;
if(s == 0) s = "";
bb_verror_msg(s, p);
if (*s) s = ": ";
fprintf(stderr, "%s%s\n", s, strerror(err));
}
void bb_perror_msg(const char *s, ...)
{
va_list p;
va_start(p, s);
bb_vperror_msg(s, p);
va_end(p);
}
void bb_perror_msg_and_die(const char *s, ...)
{
va_list p;
va_start(p, s);
bb_vperror_msg(s, p);
va_end(p);
exit(1);
}
FILE *bb_xfopen(const char *path, const char *mode)
{
FILE *fp;
if ((fp = fopen(path, mode)) == NULL)
bb_perror_msg_and_die("%s", path);
return fp;
}
enum {
FILEUTILS_PRESERVE_STATUS = 1,
FILEUTILS_DEREFERENCE = 2,
FILEUTILS_RECUR = 4,
FILEUTILS_FORCE = 8,
FILEUTILS_INTERACTIVE = 16
};
int bb_make_directory (char *path, long mode, int flags)
{
mode_t mask;
const char *fail_msg;
char *s = path;
char c;
struct stat st;
mask = umask(0);
if (mode == -1) {
umask(mask);
mode = (S_IXUSR | S_IXGRP | S_IXOTH |
S_IWUSR | S_IWGRP | S_IWOTH |
S_IRUSR | S_IRGRP | S_IROTH) & ~mask;
} else {
umask(mask & ~0300);
}
do {
c = 0;
if (flags & FILEUTILS_RECUR) { /* Get the parent. */
/* Bypass leading non-'/'s and then subsequent '/'s. */
while (*s) {
if (*s == '/') {
do {
++s;
} while (*s == '/');
c = *s; /* Save the current char */
*s = 0; /* and replace it with nul. */
break;
}
++s;
}
}
if (mkdir(path, 0777) < 0) {
/* If we failed for any other reason than the directory
* already exists, output a diagnostic and return -1.*/
if ((errno != EEXIST && errno != EISDIR)
|| !(flags & FILEUTILS_RECUR)
|| (stat(path, &st) < 0 || !S_ISDIR(st.st_mode))) {
fail_msg = "create";
umask(mask);
break;
}
/* Since the directory exists, don't attempt to change
* permissions if it was the full target. Note that
* this is not an error conditon. */
if (!c) {
umask(mask);
return 0;
}
}
if (!c) {
/* Done. If necessary, updated perms on the newly
* created directory. Failure to update here _is_
* an error.*/
umask(mask);
if ((mode != -1) && (chmod(path, mode) < 0)){
fail_msg = "set permissions of";
break;
}
return 0;
}
/* Remove any inserted nul from the path (recursive mode). */
*s = c;
} while (1);
bb_perror_msg ("Cannot %s directory `%s'", fail_msg, path);
return -1;
}
const char * const bb_msg_memory_exhausted = "memory exhausted";
void *xmalloc(size_t size)
{
void *ptr = malloc(size);
if (ptr == NULL && size != 0)
bb_error_msg_and_die(bb_msg_memory_exhausted);
return ptr;
}
void *xcalloc(size_t nmemb, size_t size)
{
void *ptr = calloc(nmemb, size);
if (ptr == NULL && nmemb != 0 && size != 0)
bb_error_msg_and_die(bb_msg_memory_exhausted);
return ptr;
}
void *xrealloc(void *ptr, size_t size)
{
ptr = realloc(ptr, size);
if (ptr == NULL && size != 0)
bb_error_msg_and_die(bb_msg_memory_exhausted);
return ptr;
}
char *private_get_line_from_file(FILE *file, int c)
{
#define GROWBY (80) /* how large we will grow strings by */
int ch;
int idx = 0;
char *linebuf = NULL;
int linebufsz = 0;
while ((ch = getc(file)) != EOF) {
/* grow the line buffer as necessary */
if (idx > linebufsz - 2) {
linebuf = xrealloc(linebuf, linebufsz += GROWBY);
}
linebuf[idx++] = (char)ch;
if (!ch) return linebuf;
if (c<2 && ch == '\n') {
if (c) {
--idx;
}
break;
}
}
if (linebuf) {
if (ferror(file)) {
free(linebuf);
return NULL;
}
linebuf[idx] = 0;
}
return linebuf;
}
char *bb_get_chomped_line_from_file(FILE *file)
{
return private_get_line_from_file(file, 1);
}
long my_getpwnam(const char *name)
{
struct passwd *myuser;
FILE *stream;
stream = bb_xfopen(PASSWD_PATH, "r");
while(1) {
errno = 0;
myuser = fgetpwent(stream);
if (myuser == NULL)
bb_error_msg_and_die("unknown user name: %s", name);
if (errno)
bb_perror_msg_and_die("fgetpwent");
if (!strcmp(name, myuser->pw_name))
break;
}
fclose(stream);
return myuser->pw_uid;
}
long my_getgrnam(const char *name)
{
struct group *mygroup;
FILE *stream;
stream = bb_xfopen(GROUP_PATH, "r");
while(1) {
errno = 0;
mygroup = fgetgrent(stream);
if (mygroup == NULL)
bb_error_msg_and_die("unknown group name: %s", name);
if (errno)
bb_perror_msg_and_die("fgetgrent");
if (!strcmp(name, mygroup->gr_name))
break;
}
fclose(stream);
return mygroup->gr_gid;
}
unsigned long get_ug_id(const char *s, long (*my_getxxnam)(const char *))
{
unsigned long r;
char *p;
r = strtoul(s, &p, 10);
if (*p || (s == p)) {
r = my_getxxnam(s);
}
return r;
}
char * last_char_is(const char *s, int c)
{
char *sret = (char *)s;
if (sret) {
sret = strrchr(sret, c);
if(sret != NULL && *(sret+1) != 0)
sret = NULL;
}
return sret;
}
void bb_xasprintf(char **string_ptr, const char *format, ...)
{
va_list p;
int r;
va_start(p, format);
r = vasprintf(string_ptr, format, p);
va_end(p);
if (r < 0) {
bb_perror_msg_and_die("bb_xasprintf");
}
}
char *concat_path_file(const char *path, const char *filename)
{
char *outbuf;
char *lc;
if (!path)
path = "";
lc = last_char_is(path, '/');
while (*filename == '/')
filename++;
bb_xasprintf(&outbuf, "%s%s%s", path, (lc==NULL ? "/" : ""), filename);
return outbuf;
}
#ifdef EXTENDED_ATTRIBUTES
int bb_set_xattr(const char *fpath, const char *xattr)
{
cap_t cap, cap_file, cap_new;
char *cap_file_text, *cap_new_text;
ssize_t length;
cap = cap_from_text(xattr);
if (cap == NULL)
bb_perror_msg_and_die("cap_from_text failed for %s", xattr);
cap_file = cap_get_file(fpath);
if (cap_file == NULL) {
/* if no capability was set before, we initialize cap_file */
if (errno != ENODATA)
bb_perror_msg_and_die("cap_get_file failed on %s", fpath);
cap_file = cap_init();
if (!cap_file)
bb_perror_msg_and_die("cap_init failed");
}
if ((cap_file_text = cap_to_text(cap_file, &length)) == NULL)
bb_perror_msg_and_die("cap_to_name failed on %s", fpath);
bb_xasprintf(&cap_new_text, "%s %s", cap_file_text, xattr);
if ((cap_new = cap_from_text(cap_new_text)) == NULL)
bb_perror_msg_and_die("cap_from_text failed on %s", cap_new_text);
if (cap_set_file(fpath, cap_new) == -1)
bb_perror_msg_and_die("cap_set_file failed for %s (xattr = %s)", fpath, xattr);
cap_free(cap);
cap_free(cap_file);
cap_free(cap_file_text);
cap_free(cap_new);
cap_free(cap_new_text);
return 0;
}
#endif /* EXTENDED_ATTRIBUTES */
void bb_show_usage(void)
{
fprintf(stderr, "%s: [-d device_table] rootdir\n\n", bb_applet_name);
fprintf(stderr, "Creates a batch of special files as specified in a device table.\n");
fprintf(stderr, "Device table entries take the form of:\n");
fprintf(stderr, "name type mode user group major minor start increment count\n\n");
fprintf(stderr, "Where name is the file name, type can be one of:\n");
fprintf(stderr, " f A regular file\n");
fprintf(stderr, " d Directory\n");
fprintf(stderr, " r Directory recursively\n");
fprintf(stderr, " c Character special device file\n");
fprintf(stderr, " b Block special device file\n");
fprintf(stderr, " p Fifo (named pipe)\n");
fprintf(stderr, "uid is the user id for the target file, gid is the group id for the\n");
fprintf(stderr, "target file. The rest of the entries (major, minor, etc) apply to\n");
fprintf(stderr, "to device special files. A '-' may be used for blank entries.\n\n");
fprintf(stderr, "For example:\n");
fprintf(stderr, "<name> <type> <mode> <uid> <gid> <major> <minor> <start> <inc> <count>\n");
fprintf(stderr, "/dev d 755 0 0 - - - - -\n");
fprintf(stderr, "/dev/console c 666 0 0 5 1 - - -\n");
fprintf(stderr, "/dev/null c 666 0 0 1 3 0 0 -\n");
fprintf(stderr, "/dev/zero c 666 0 0 1 5 0 0 -\n");
fprintf(stderr, "/dev/hda b 640 0 0 3 0 0 0 -\n");
fprintf(stderr, "/dev/hda b 640 0 0 3 1 1 1 15\n");
fprintf(stderr, "/dev/rtp b 640 0 0 250 0 0 1 5\n");
fprintf(stderr, "/dev/gps b 640 0 0 251 0 1 1 5\n");
fprintf(stderr, "/dev/uio b 640 0 0 252 0 1 2 5\n");
fprintf(stderr, "/dev/uio b 640 0 0 252 1 6 2 5\n\n");
fprintf(stderr, "Will Produce:\n");
fprintf(stderr, "/dev\n");
fprintf(stderr, "/dev/console\n");
fprintf(stderr, "/dev/null\n");
fprintf(stderr, "/dev/zero\n");
fprintf(stderr, "/dev/hda\n");
fprintf(stderr, "/dev/hda[1-15] with minor numbers [1-15]\n");
fprintf(stderr, "/dev/rtp[0-4] with minor numbers [0-4]\n");
fprintf(stderr, "/dev/gps[1-5] with minor numbers [0-4]\n");
fprintf(stderr, "/dev/uio[1-5] with minor numbers 0,2,4,6,8\n");
fprintf(stderr, "/dev/uio[6-10] with minor numbers 1,3,5,7,9\n");
exit(1);
}
int bb_recursive(const char *fpath, const struct stat *sb,
int tflag, struct FTW *ftwbuf){
if (chown(fpath, recursive_uid, recursive_gid) == -1) {
bb_perror_msg("chown failed for %s", fpath);
return -1;
}
if (recursive_mode != -1) {
if (chmod(fpath, recursive_mode) < 0) {
bb_perror_msg("chmod failed for %s", fpath);
return -1;
}
}
return 0;
}
int main(int argc, char **argv)
{
int opt;
FILE *table = stdin;
char *rootdir = NULL;
char *full_name = NULL;
char *line = NULL;
int linenum = 0;
int ret = EXIT_SUCCESS;
bb_applet_name = basename(argv[0]);
while ((opt = getopt(argc, argv, "d:")) != -1) {
switch(opt) {
case 'd':
table = bb_xfopen((line=optarg), "r");
break;
default:
bb_show_usage();
}
}
if (optind >= argc || (rootdir=argv[optind])==NULL) {
bb_error_msg_and_die("root directory not speficied");
}
if (chdir(rootdir) != 0) {
bb_perror_msg_and_die("Couldnt chdir to %s", rootdir);
}
umask(0);
printf("rootdir=%s\n", rootdir);
if (line) {
printf("table='%s'\n", line);
} else {
printf("table=<stdin>\n");
}
while ((line = bb_get_chomped_line_from_file(table))) {
char type;
unsigned int mode = 0755;
unsigned int major = 0;
unsigned int minor = 0;
unsigned int count = 0;
unsigned int increment = 0;
unsigned int start = 0;
char xattr[255];
char name[4096];
char user[41];
char group[41];
uid_t uid;
gid_t gid;
linenum++;
if (1 == sscanf(line, "|xattr %254s", xattr)) {
#ifdef EXTENDED_ATTRIBUTES
if (!full_name)
bb_error_msg_and_die("line %d should be after a file\n", linenum);
if (bb_set_xattr(full_name, xattr) < 0)
bb_error_msg_and_die("can't set cap %s on file %s\n", xattr, full_name);
#else
bb_error_msg_and_die("line %d not supported: '%s'\nDid you forget to enable "
"BR2_ROOTFS_DEVICE_TABLE_SUPPORTS_EXTENDED_ATTRIBUTES?\n",
linenum, line);
#endif /* EXTENDED_ATTRIBUTES */
continue;
}
if ((2 > sscanf(line, "%4095s %c %o %40s %40s %u %u %u %u %u", name,
&type, &mode, user, group, &major,
&minor, &start, &increment, &count)) ||
((major | minor | start | count | increment) > 0xfffff))
{
if (*line=='\0' || *line=='#' || isspace(*line))
continue;
bb_error_msg("line %d invalid: '%s'\n", linenum, line);
ret = EXIT_FAILURE;
continue;
}
if (name[0] == '#') {
continue;
}
if (*group) {
gid = get_ug_id(group, my_getgrnam);
} else {
gid = getgid();
}
if (*user) {
uid = get_ug_id(user, my_getpwnam);
} else {
uid = getuid();
}
/*
* free previous full name
* we don't de-allocate full_name at the end of the parsing,
* because we may need it if the next line is an xattr.
*/
free(full_name);
full_name = concat_path_file(rootdir, name);
if (type == 'd') {
bb_make_directory(full_name, mode | S_IFDIR, FILEUTILS_RECUR);
if (chown(full_name, uid, gid) == -1) {
bb_perror_msg("line %d: chown failed for %s", linenum, full_name);
ret = EXIT_FAILURE;
goto loop;
}
if ((mode != -1) && (chmod(full_name, mode) < 0)){
bb_perror_msg("line %d: chmod failed for %s", linenum, full_name);
ret = EXIT_FAILURE;
goto loop;
}
} else if (type == 'f') {
struct stat st;
if ((stat(full_name, &st) < 0 || !S_ISREG(st.st_mode))) {
bb_perror_msg("line %d: regular file '%s' does not exist", linenum, full_name);
ret = EXIT_FAILURE;
goto loop;
}
if (chown(full_name, uid, gid) == -1) {
bb_perror_msg("line %d: chown failed for %s", linenum, full_name);
ret = EXIT_FAILURE;
goto loop;
}
if ((mode != -1) && (chmod(full_name, mode) < 0)){
bb_perror_msg("line %d: chmod failed for %s", linenum, full_name);
ret = EXIT_FAILURE;
goto loop;
}
} else if (type == 'r') {
recursive_uid = uid;
recursive_gid = gid;
recursive_mode = mode;
if (nftw(full_name, bb_recursive, 20, FTW_MOUNT | FTW_PHYS) < 0) {
bb_perror_msg("line %d: recursive failed for %s", linenum, full_name);
ret = EXIT_FAILURE;
goto loop;
}
} else
{
dev_t rdev;
if (type == 'p') {
mode |= S_IFIFO;
}
else if (type == 'c') {
mode |= S_IFCHR;
}
else if (type == 'b') {
mode |= S_IFBLK;
} else {
bb_error_msg("line %d: Unsupported file type %c", linenum, type);
ret = EXIT_FAILURE;
goto loop;
}
if (count > 0) {
int i;
char *full_name_inc;
full_name_inc = xmalloc(strlen(full_name) + 8);
for (i = 0; i < count; i++) {
sprintf(full_name_inc, "%s%d", full_name, start + i);
rdev = makedev(major, minor + i * increment);
if (mknod(full_name_inc, mode, rdev) == -1) {
bb_perror_msg("line %d: Couldnt create node %s", linenum, full_name_inc);
ret = EXIT_FAILURE;
}
else if (chown(full_name_inc, uid, gid) == -1) {
bb_perror_msg("line %d: chown failed for %s", linenum, full_name_inc);
ret = EXIT_FAILURE;
}
if ((mode != -1) && (chmod(full_name_inc, mode) < 0)){
bb_perror_msg("line %d: chmod failed for %s", linenum, full_name_inc);
ret = EXIT_FAILURE;
}
}
free(full_name_inc);
} else {
rdev = makedev(major, minor);
if (mknod(full_name, mode, rdev) == -1) {
bb_perror_msg("line %d: Couldnt create node %s", linenum, full_name);
ret = EXIT_FAILURE;
}
else if (chown(full_name, uid, gid) == -1) {
bb_perror_msg("line %d: chown failed for %s", linenum, full_name);
ret = EXIT_FAILURE;
}
if ((mode != -1) && (chmod(full_name, mode) < 0)){
bb_perror_msg("line %d: chmod failed for %s", linenum, full_name);
ret = EXIT_FAILURE;
}
}
}
loop:
free(line);
}
fclose(table);
return ret;
}
|
shibajee/buildroot
|
package/makedevs/makedevs.c
|
C++
|
mit
| 16,639 |
################################################################################
#
# makedevs
#
################################################################################
MAKEDEVS_LICENSE = GPLv2
HOST_MAKEDEVS_CFLAGS = $(HOST_CFLAGS)
HOST_MAKEDEVS_LDFLAGS = $(HOST_LDFLAGS)
ifeq ($(BR2_ROOTFS_DEVICE_TABLE_SUPPORTS_EXTENDED_ATTRIBUTES),y)
HOST_MAKEDEVS_DEPENDENCIES += host-libcap
HOST_MAKEDEVS_CFLAGS += -DEXTENDED_ATTRIBUTES
HOST_MAKEDEVS_LDFLAGS += -lcap
endif
define MAKEDEVS_BUILD_CMDS
$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) \
package/makedevs/makedevs.c -o $(@D)/makedevs
endef
define MAKEDEVS_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 755 $(@D)/makedevs $(TARGET_DIR)/usr/sbin/makedevs
endef
define HOST_MAKEDEVS_BUILD_CMDS
$(HOSTCC) $(HOST_MAKEDEVS_CFLAGS) package/makedevs/makedevs.c \
-o $(@D)/makedevs $(HOST_MAKEDEVS_LDFLAGS)
endef
define HOST_MAKEDEVS_INSTALL_CMDS
$(INSTALL) -D -m 755 $(@D)/makedevs $(HOST_DIR)/usr/bin/makedevs
endef
$(eval $(generic-package))
$(eval $(host-generic-package))
|
shibajee/buildroot
|
package/makedevs/makedevs.mk
|
mk
|
mit
| 1,034 |
config BR2_PACKAGE_MALI_T76X
bool "mali-t76x"
select BR2_PACKAGE_MESA3D_HEADERS
select BR2_PACKAGE_HAS_LIBEGL
select BR2_PACKAGE_HAS_LIBGLES
depends on BR2_TOOLCHAIN_USES_GLIBC
depends on BR2_ARM_EABIHF
depends on BR2_arm
help
Install the binary user-space components for the ARM Mali Midgard
T76X GPU. This package requires a kernel with the ARM Mali Midgard
GPU Kernel Drivers enabled.
Source: http://malideveloper.arm.com/resources/drivers/
if BR2_PACKAGE_MALI_T76X
config BR2_PACKAGE_PROVIDES_LIBEGL
default "mali-t76x"
config BR2_PACKAGE_PROVIDES_LIBGLES
default "mali-t76x"
endif
comment "mali-t76x needs a glibc toolchain with armhf enabled"
depends on BR2_arm
depends on !BR2_TOOLCHAIN_USES_GLIBC || !BR2_ARM_EABIHF
|
shibajee/buildroot
|
package/mali-t76x/Config.in
|
in
|
mit
| 754 |
prefix=/usr/
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: egl
Description: ARM Mali implementation of EGL
Version: 1.5
Requires:
Libs: -L${libdir} -lEGL -lGLESv2
Cflags: -I${includedir} -DMESA_EGL_NO_X11_HEADERS
|
shibajee/buildroot
|
package/mali-t76x/egl.pc
|
pc
|
mit
| 251 |
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: glesv2
Description: ARM Mali implementation of OpenGL ESv2
Version: 2.0
Requires:
Libs: -L${libdir} -lGLESv2 -lGLESv1_CM
Cflags: -I${includedir} -DMESA_EGL_NO_X11_HEADERS
|
shibajee/buildroot
|
package/mali-t76x/glesv2.pc
|
pc
|
mit
| 267 |
# Locally computed:
sha256 5a0b00438edc8066b374481d3332a43c07ec2bd3bc73265983a968970f754902 mali-t76x_r5p0-06rel0_linux_1+fbdev.tar.gz
|
shibajee/buildroot
|
package/mali-t76x/mali-t76x.hash
|
hash
|
mit
| 137 |
################################################################################
#
# mali-t76x
#
################################################################################
MALI_T76X_VERSION = r5p0-06rel0
MALI_T76X_SOURCE = mali-t76x_$(MALI_T76X_VERSION)_linux_1+fbdev.tar.gz
MALI_T76X_SITE = http://malideveloper.arm.com/downloads/drivers/binary/$(MALI_T76X_VERSION)
MALI_T76X_DEPENDENCIES = mesa3d-headers
MALI_T76X_INSTALL_STAGING = YES
MALI_T76X_PROVIDES = libegl libgles
define MALI_T76X_INSTALL_STAGING_CMDS
$(INSTALL) -m 755 $(@D)/*.so $(STAGING_DIR)/usr/lib/
$(INSTALL) -D -m 0644 package/mali-t76x/egl.pc \
$(STAGING_DIR)/usr/lib/pkgconfig/egl.pc
$(INSTALL) -D -m 0644 package/mali-t76x/glesv2.pc \
$(STAGING_DIR)/usr/lib/pkgconfig/glesv2.pc
endef
define MALI_T76X_INSTALL_TARGET_CMDS
$(INSTALL) -m 755 $(@D)/*.so $(TARGET_DIR)/usr/lib/
endef
$(eval $(generic-package))
|
shibajee/buildroot
|
package/mali-t76x/mali-t76x.mk
|
mk
|
mit
| 897 |
config BR2_PACKAGE_MATCHBOX_COMMON
bool "matchbox-common"
select BR2_PACKAGE_MATCHBOX_LIB
depends on BR2_PACKAGE_MATCHBOX_PANEL || BR2_PACKAGE_MATCHBOX_DESKTOP
help
Common desktop folders and matchbox-session script.
config BR2_PACKAGE_MATCHBOX_COMMON_PDA
bool "PDA style app folder"
depends on BR2_PACKAGE_MATCHBOX_COMMON
|
shibajee/buildroot
|
package/matchbox-common/Config.in
|
in
|
mit
| 333 |
# From http://downloads.yoctoproject.org/releases/matchbox/matchbox-common/0.9/matchbox-common-0.9.1.tar.bz2.md5
md5 8e8ba0ee170a9ac78fdc583b00ccf76b matchbox-common-0.9.1.tar.bz2
|
shibajee/buildroot
|
package/matchbox-common/matchbox-common.hash
|
hash
|
mit
| 180 |
################################################################################
#
# matchbox-common
#
################################################################################
MATCHBOX_COMMON_VERSION_MAJOR = 0.9
MATCHBOX_COMMON_VERSION = $(MATCHBOX_COMMON_VERSION_MAJOR).1
MATCHBOX_COMMON_SOURCE = matchbox-common-$(MATCHBOX_COMMON_VERSION).tar.bz2
MATCHBOX_COMMON_SITE = http://downloads.yoctoproject.org/releases/matchbox/matchbox-common/$(MATCHBOX_COMMON_VERSION_MAJOR)
MATCHBOX_COMMON_LICENSE = GPLv2+
MATCHBOX_COMMON_LICENSE_FILES = COPYING
MATCHBOX_COMMON_DEPENDENCIES = matchbox-lib
ifeq ($(strip $(BR2_PACKAGE_MATCHBOX_COMMON_PDA)),y)
MATCHBOX_COMMON_CONF_OPTS += --enable-pda-folders
else
MATCHBOX_COMMON_CONF_OPTS += --disable-pda-folders
endif
$(eval $(autotools-package))
|
shibajee/buildroot
|
package/matchbox-common/matchbox-common.mk
|
mk
|
mit
| 795 |
config BR2_PACKAGE_MATCHBOX_DESKTOP
bool "matchbox-desktop"
select BR2_PACKAGE_MATCHBOX_LIB
select BR2_PACKAGE_ZLIB
help
A PDA style application launcher or 'item browser'.
|
shibajee/buildroot
|
package/matchbox-desktop/Config.in
|
in
|
mit
| 180 |
# From http://downloads.yoctoproject.org/releases/matchbox/matchbox-desktop/0.9/matchbox-desktop-0.9.1.tar.bz2.md5
md5 3335a30b1a1aacfb39f23b505254765c matchbox-desktop-0.9.1.tar.bz2
|
shibajee/buildroot
|
package/matchbox-desktop/matchbox-desktop.hash
|
hash
|
mit
| 183 |
################################################################################
#
# matchbox-desktop
#
################################################################################
MATCHBOX_DESKTOP_VERSION_MAJOR = 0.9
MATCHBOX_DESKTOP_VERSION = $(MATCHBOX_DESKTOP_VERSION_MAJOR).1
MATCHBOX_DESKTOP_SOURCE = matchbox-desktop-$(MATCHBOX_DESKTOP_VERSION).tar.bz2
MATCHBOX_DESKTOP_SITE = http://downloads.yoctoproject.org/releases/matchbox/matchbox-desktop/$(MATCHBOX_DESKTOP_VERSION_MAJOR)
MATCHBOX_DESKTOP_LICENSE = GPLv2+
MATCHBOX_DESKTOP_LICENSE_FILES = COPYING
MATCHBOX_DESKTOP_DEPENDENCIES = matchbox-lib zlib
MATCHBOX_DESKTOP_CONF_OPTS = --enable-expat
# The bundled configure script does not properly replace LIBADD_DL, so
# we force an autoreconf even if we don't have any patches touching
# configure.ac/Makefile.am.
MATCHBOX_DESKTOP_AUTORECONF = YES
ifeq ($(BR2_PACKAGE_STARTUP_NOTIFICATION),y)
MATCHBOX_DESKTOP_CONF_OPTS += --enable-startup-notification
MATCHBOX_DESKTOP_DEPENDENCIES += startup-notification
else
MATCHBOX_DESKTOP_CONF_OPTS += --disable-startup-notification
endif
$(eval $(autotools-package))
|
shibajee/buildroot
|
package/matchbox-desktop/matchbox-desktop.mk
|
mk
|
mit
| 1,125 |
config BR2_PACKAGE_MATCHBOX_FAKEKEY
bool "matchbox-fakekey"
select BR2_PACKAGE_MATCHBOX_LIB
select BR2_PACKAGE_XLIB_LIBXTST
help
Library for simulating key press events under X11.
|
shibajee/buildroot
|
package/matchbox-fakekey/Config.in
|
in
|
mit
| 187 |
# From http://downloads.yoctoproject.org/releases/matchbox/libfakekey/0.1/libfakekey-0.1.tar.bz2.md5
md5 83dbde4d77e8baf0176fe4291d8a2303 libfakekey-0.1.tar.bz2
|
shibajee/buildroot
|
package/matchbox-fakekey/matchbox-fakekey.hash
|
hash
|
mit
| 161 |
################################################################################
#
# matchbox-fakekey
#
################################################################################
MATCHBOX_FAKEKEY_VERSION = 0.1
MATCHBOX_FAKEKEY_SOURCE = libfakekey-$(MATCHBOX_FAKEKEY_VERSION).tar.bz2
MATCHBOX_FAKEKEY_SITE = http://downloads.yoctoproject.org/releases/matchbox/libfakekey/$(MATCHBOX_FAKEKEY_VERSION)
MATCHBOX_FAKEKEY_LICENSE = GPLv2+
MATCHBOX_FAKEKEY_LICENSE_FILES = COPYING
MATCHBOX_FAKEKEY_INSTALL_STAGING = YES
MATCHBOX_FAKEKEY_DEPENDENCIES = matchbox-lib xlib_libXtst
MATCHBOX_FAKEKEY_CONF_OPTS = --enable-expat
define MATCHBOX_FAKEKEY_POST_CONFIGURE_FIXES
$(SED) 's:-I[^$$].*/usr/include/freetype2:-I/usr/include/freetype2:' $(STAGING_DIR)/usr/lib/pkgconfig/libmb.pc
$(SED) 's:^SUBDIRS = fakekey src tests.*:SUBDIRS = fakekey src:g' $(MATCHBOX_FAKEKEY_DIR)/Makefile
endef
MATCHBOX_FAKEKEY_POST_CONFIGURE_HOOKS += MATCHBOX_FAKEKEY_POST_CONFIGURE_FIXES
$(eval $(autotools-package))
|
shibajee/buildroot
|
package/matchbox-fakekey/matchbox-fakekey.mk
|
mk
|
mit
| 995 |
config BR2_PACKAGE_MATCHBOX_KEYBOARD
bool "matchbox-keyboard"
select BR2_PACKAGE_XLIB_LIBXTST
select BR2_PACKAGE_XLIB_LIBXFT if !BR2_PACKAGE_CAIRO
select BR2_PACKAGE_MATCHBOX_FAKEKEY
select BR2_PACKAGE_MATCHBOX_LIB
help
Virtual Keyboard
|
shibajee/buildroot
|
package/matchbox-keyboard/Config.in
|
in
|
mit
| 246 |
# From http://downloads.yoctoproject.org/releases/matchbox/matchbox-keyboard/0.1/matchbox-keyboard-0.1.tar.bz2.md5
md5 50940321d59fee23b38a4941100abf25 matchbox-keyboard-0.1.tar.bz2
|
shibajee/buildroot
|
package/matchbox-keyboard/matchbox-keyboard.hash
|
hash
|
mit
| 182 |
################################################################################
#
# matchbox-keyboard
#
################################################################################
MATCHBOX_KEYBOARD_VERSION = 0.1
MATCHBOX_KEYBOARD_SOURCE = matchbox-keyboard-$(MATCHBOX_KEYBOARD_VERSION).tar.bz2
MATCHBOX_KEYBOARD_SITE = http://downloads.yoctoproject.org/releases/matchbox/matchbox-keyboard/$(MATCHBOX_KEYBOARD_VERSION)
MATCHBOX_KEYBOARD_LICENSE = GPLv2+
MATCHBOX_KEYBOARD_LICENSE_FILES = COPYING
MATCHBOX_KEYBOARD_DEPENDENCIES = host-pkgconf matchbox-lib matchbox-fakekey expat
# Workaround bug in configure script
MATCHBOX_KEYBOARD_CONF_ENV = expat=yes
define MATCHBOX_KEYBOARD_POST_INSTALL_FIXES
$(INSTALL) -D -m 0755 package/matchbox-keyboard/mb-applet-kbd-wrapper.sh \
$(TARGET_DIR)/usr/bin/mb-applet-kbd-wrapper.sh
endef
MATCHBOX_KEYBOARD_POST_INSTALL_TARGET_HOOKS += MATCHBOX_KEYBOARD_POST_INSTALL_FIXES
ifeq ($(BR2_PACKAGE_CAIRO),y)
MATCHBOX_KEYBOARD_CONF_OPTS += --enable-cairo
MATCHBOX_KEYBOARD_DEPENDENCIES += cairo
else
MATCHBOX_KEYBOARD_CONF_OPTS += --disable-cairo
MATCHBOX_KEYBOARD_DEPENDENCIES += xlib_libXft
endif
$(eval $(autotools-package))
|
shibajee/buildroot
|
package/matchbox-keyboard/matchbox-keyboard.mk
|
mk
|
mit
| 1,173 |
#!/bin/sh
#
killall matchbox-keyboard
if [ ! $? -eq 0 ]
then
matchbox-keyboard &
fi
|
shibajee/buildroot
|
package/matchbox-keyboard/mb-applet-kbd-wrapper.sh
|
Shell
|
mit
| 90 |
index() is a legacy function, not implemented in some uClibc
configurations.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
libmb/mbexp.c | 2 +-
libmb/mbmenu.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
Index: libmatchbox-1.9/libmb/mbexp.c
===================================================================
--- libmatchbox-1.9.orig/libmb/mbexp.c
+++ libmatchbox-1.9/libmb/mbexp.c
@@ -492,7 +492,7 @@
/* get the family */
- if (index(spec, ',') != NULL || index(spec, '-') != NULL)
+ if (strchr(spec, ',') != NULL || strchr(spec, '-') != NULL)
has_comma_delim = True;
while (!got_family) {
Index: libmatchbox-1.9/libmb/mbmenu.c
===================================================================
--- libmatchbox-1.9.orig/libmb/mbmenu.c
+++ libmatchbox-1.9/libmb/mbmenu.c
@@ -433,7 +433,7 @@
{
s = p;
found = NULL;
- while(index("/\0", *p) == NULL) p++;
+ while(strchr("/\0", *p) == NULL) p++;
if (*p != '\0') { *p = '\0'; p++; };
item = current->items;
|
shibajee/buildroot
|
package/matchbox-lib/0001-index-is-legacy.patch
|
patch
|
mit
| 1,072 |
Support for libpng 1.5+ shamelessly taken from Gentoo.
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
--- a/libmb/mbpixbuf.c
+++ b/libmb/mbpixbuf.c
@@ -247,7 +247,7 @@
return NULL;
}
- if ( setjmp( png_ptr->jmpbuf ) ) {
+ if ( setjmp( png_jmpbuf(png_ptr) ) ) {
png_destroy_read_struct( &png_ptr, &info_ptr, NULL);
fclose(fd);
return NULL;
@@ -269,8 +269,8 @@
( color_type == PNG_COLOR_TYPE_GRAY_ALPHA ))
png_set_gray_to_rgb(png_ptr);
- if ( info_ptr->color_type == PNG_COLOR_TYPE_RGB_ALPHA
- || info_ptr->color_type == PNG_COLOR_TYPE_GRAY_ALPHA
+ if ( color_type == PNG_COLOR_TYPE_RGB_ALPHA
+ || color_type == PNG_COLOR_TYPE_GRAY_ALPHA
)
*has_alpha = 1;
else
|
shibajee/buildroot
|
package/matchbox-lib/0002-libpng15.patch
|
patch
|
mit
| 746 |
matchbox-lib: include setjmp.h
Based on this upstream patch:
http://git.yoctoproject.org/cgit/cgit.cgi/libmatchbox/commit/?id=9315bcce1f01e7d6c00161442d61d3c676794d9d
Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
--- libmatchbox-1.9/libmb/mbpixbuf.c.orig 2014-02-21 12:45:46.867035956 +0000
+++ libmatchbox-1.9/libmb/mbpixbuf.c 2014-02-21 12:46:43.482949583 +0000
@@ -22,6 +22,7 @@
#include <strings.h>
#include "mbpixbuf.h"
+#include <setjmp.h>
#define BYTE_ORD_24_RGB 0
#define BYTE_ORD_24_RBG 1
|
shibajee/buildroot
|
package/matchbox-lib/0003-include-setjmp-h.patch
|
patch
|
mit
| 532 |
config BR2_PACKAGE_MATCHBOX_LIB
bool "matchbox-lib"
help
Matchbox common functionality library.
|
shibajee/buildroot
|
package/matchbox-lib/Config.in
|
in
|
mit
| 101 |
# From http://downloads.yoctoproject.org/releases/matchbox/libmatchbox/1.9/libmatchbox-1.9.tar.bz2.md5
md5 9f73e7515cc4679171a5db180dc1343b libmatchbox-1.9.tar.bz2
|
shibajee/buildroot
|
package/matchbox-lib/matchbox-lib.hash
|
hash
|
mit
| 164 |
################################################################################
#
# matchbox-lib
#
################################################################################
MATCHBOX_LIB_VERSION = 1.9
MATCHBOX_LIB_SOURCE = libmatchbox-$(MATCHBOX_LIB_VERSION).tar.bz2
MATCHBOX_LIB_SITE = http://downloads.yoctoproject.org/releases/matchbox/libmatchbox/$(MATCHBOX_LIB_VERSION)
MATCHBOX_LIB_LICENSE = LGPLv2.1+
MATCHBOX_LIB_LICENSE_FILES = COPYING
MATCHBOX_LIB_INSTALL_STAGING = YES
MATCHBOX_LIB_DEPENDENCIES = host-pkgconf expat xlib_libXext
MATCHBOX_LIB_CONF_OPTS = --enable-expat --disable-doxygen-docs
MATCHBOX_LIB_CONF_ENV = LIBS="-lX11"
define MATCHBOX_LIB_POST_INSTALL_FIXES
$(SED) 's:-I[^$$].*/usr/include/freetype2:-I/usr/include/freetype2:' \
$(STAGING_DIR)/usr/lib/pkgconfig/libmb.pc
endef
MATCHBOX_LIB_POST_INSTALL_STAGING_HOOKS += MATCHBOX_LIB_POST_INSTALL_FIXES
ifeq ($(BR2_PACKAGE_X11R7_LIBXCOMPOSITE),y)
ifeq ($(BR2_PACKAGE_X11R7_LIBXPM),y)
MATCHBOX_LIB_DEPENDENCIES += xlib_libXpm
endif
endif
ifeq ($(BR2_PACKAGE_JPEG),y)
MATCHBOX_LIB_CONF_OPTS += --enable-jpeg
MATCHBOX_LIB_DEPENDENCIES += jpeg
else
MATCHBOX_LIB_CONF_OPTS += --disable-jpeg
endif
ifeq ($(BR2_PACKAGE_LIBPNG),y)
MATCHBOX_LIB_CONF_OPTS += --enable-png
MATCHBOX_LIB_DEPENDENCIES += libpng
else
MATCHBOX_LIB_CONF_OPTS += --disable-png
endif
ifeq ($(BR2_PACKAGE_PANGO)$(BR2_PACKAGE_XLIB_LIBXFT)$(BR2_PACKAGE_XLIB_LIBXRENDER),yyy)
MATCHBOX_LIB_CONF_OPTS += --enable-pango
MATCHBOX_LIB_DEPENDENCIES += pango
else
MATCHBOX_LIB_CONF_OPTS += --disable-pango
endif
ifeq ($(BR2_PACKAGE_XLIB_LIBXFT),y)
MATCHBOX_LIB_CONF_OPTS += --enable-xft
MATCHBOX_LIB_DEPENDENCIES += xlib_libXft
else
MATCHBOX_LIB_CONF_OPTS += --disable-xft
endif
$(eval $(autotools-package))
|
shibajee/buildroot
|
package/matchbox-lib/matchbox-lib.mk
|
mk
|
mit
| 1,751 |
Replace the legacy index() with strchr()
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
applets/mb-applet-menu-launcher.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: matchbox-panel-0.9.3/applets/mb-applet-menu-launcher.c
===================================================================
--- matchbox-panel-0.9.3.orig/applets/mb-applet-menu-launcher.c
+++ matchbox-panel-0.9.3/applets/mb-applet-menu-launcher.c
@@ -280,7 +280,7 @@
DBG("\tkey %s ", key);
if (*(++p) == '"') { p++; tc = sc; } /* skip "'s */
val = p;
- while(index(tc,*p) == NULL)
+ while(strchr(tc,*p) == NULL)
{
if (*p == '\\' && *(p+1) == '"') p++; /* skip \" */
p++;
|
shibajee/buildroot
|
package/matchbox-panel/0001-index-is-legacy.patch
|
patch
|
mit
| 720 |
mb-applet-wireless: fix undefined reference to `log' and `lrint'
mb-applet-wireless.o: In function `update_wireless':
.. matchbox-panel-0.9.3/applets/mb-applet-wireless.c:143: undefined reference to `log'
.. matchbox-panel-0.9.3/applets/mb-applet-wireless.c:143: undefined reference to `lrint'
Signed-off-by: Jean-Paul Etienne <fractalclone@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
[arnout: add description and Signed-off-by]
---
diff -rup matchbox-panel-0.9.3.orig/applets/Makefile.in matchbox-panel-0.9.3/applets/Makefile.in
--- matchbox-panel-0.9.3.orig/applets/Makefile.in 2015-01-23 00:16:47.594850985 +0100
+++ matchbox-panel-0.9.3/applets/Makefile.in 2015-01-23 00:15:18.458694947 +0100
@@ -198,7 +198,7 @@ WANT_SMALL_ICONS_FALSE = @WANT_SMALL_ICO
WANT_SMALL_ICONS_TRUE = @WANT_SMALL_ICONS_TRUE@
WANT_WIFI_FALSE = @WANT_WIFI_FALSE@
WANT_WIFI_TRUE = @WANT_WIFI_TRUE@
-WIRELESS_LIBS = @WIRELESS_LIBS@
+WIRELESS_LIBS = @WIRELESS_LIBS@ -lm
XGETTEXT = @XGETTEXT@
ac_ct_CC = @ac_ct_CC@
ac_ct_STRIP = @ac_ct_STRIP@
diff -rup matchbox-panel-0.9.3.orig/applets/mb-applet-wireless.c matchbox-panel-0.9.3/applets/mb-applet-wireless.c
--- matchbox-panel-0.9.3.orig/applets/mb-applet-wireless.c 2015-01-23 00:16:31.531822865 +0100
+++ matchbox-panel-0.9.3/applets/mb-applet-wireless.c 2015-01-23 00:03:43.067563827 +0100
@@ -50,6 +50,8 @@
#endif
+#include <math.h>
+
#ifdef MB_HAVE_PNG
#define IMG_EXT "png"
#else
|
shibajee/buildroot
|
package/matchbox-panel/0002-mb-applet-wireless.patch
|
patch
|
mit
| 1,464 |
mb-applet-battery: don't declare line_parse as static
Fix this build failure:
mb-applet-battery.c: In function 'read_apm':
mb-applet-battery.c:181:2: error: invalid storage class for function 'line_parse'
Reported-by: Arnout Vandecappelle <arnout@mind.be>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
diff -durN matchbox-panel-0.9.3.orig/applets/mb-applet-battery.c matchbox-panel-0.9.3/applets/mb-applet-battery.c
--- matchbox-panel-0.9.3.orig/applets/mb-applet-battery.c 2006-02-07 23:27:24.000000000 +0100
+++ matchbox-panel-0.9.3/applets/mb-applet-battery.c 2015-05-02 17:13:00.843578796 +0200
@@ -177,7 +177,7 @@
unsigned long present_rate;
};
- static int
+ int
line_parse(char *line, struct entry *e)
{
char *ptr;
|
shibajee/buildroot
|
package/matchbox-panel/0003-mb-applet-battery.patch
|
patch
|
mit
| 758 |
config BR2_PACKAGE_MATCHBOX_PANEL
bool "matchbox-panel"
select BR2_PACKAGE_MATCHBOX_LIB
help
A flexible always present 'window bar' for holding
application launchers.
|
shibajee/buildroot
|
package/matchbox-panel/Config.in
|
in
|
mit
| 176 |
# From http://downloads.yoctoproject.org/releases/matchbox/matchbox-panel/0.9/matchbox-panel-0.9.3.tar.bz2.md5
md5 56d1807636f3919e22e51896ab7ccd2e matchbox-panel-0.9.3.tar.bz2
|
shibajee/buildroot
|
package/matchbox-panel/matchbox-panel.hash
|
hash
|
mit
| 177 |
################################################################################
#
# matchbox-panel
#
################################################################################
MATCHBOX_PANEL_VERSION_MAJOR = 0.9
MATCHBOX_PANEL_VERSION = $(MATCHBOX_PANEL_VERSION_MAJOR).3
MATCHBOX_PANEL_SOURCE = matchbox-panel-$(MATCHBOX_PANEL_VERSION).tar.bz2
MATCHBOX_PANEL_SITE = http://downloads.yoctoproject.org/releases/matchbox/matchbox-panel/$(MATCHBOX_PANEL_VERSION_MAJOR)
MATCHBOX_PANEL_LICENSE = GPLv2+
MATCHBOX_PANEL_LICENSE_FILES = COPYING
MATCHBOX_PANEL_DEPENDENCIES = matchbox-lib
MATCHBOX_PANEL_CONF_OPTS = --enable-expat --enable-dnotify
ifeq ($(BR2_PACKAGE_MATCHBOX_STARTUP_MONITOR),y)
MATCHBOX_PANEL_CONF_OPTS += --enable-startup-notification
MATCHBOX_PANEL_DEPENDENCIES += matchbox-startup-monitor
else
MATCHBOX_PANEL_CONF_OPTS += --disable-startup-notification
endif
# Using ACPI is only possible on x86 (32- or 64-bit) or AArch64
ifeq ($(BR2_aarch64)$(BR2_i386)$(BR2_x86_64),y)
MATCHBOX_PANEL_CONF_OPTS += --enable-acpi-linux
else
MATCHBOX_PANEL_CONF_OPTS += --disable-acpi-linux
endif
ifeq ($(BR2_PACKAGE_WIRELESS_TOOLS_LIB),y)
MATCHBOX_PANEL_DEPENDENCIES += wireless_tools
endif
$(eval $(autotools-package))
|
shibajee/buildroot
|
package/matchbox-panel/matchbox-panel.mk
|
mk
|
mit
| 1,226 |
mbmonitor uses TRUE / FALSE without defining them
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
---
mbmonitor.c | 3 +++
1 file changed, 3 insertions(+)
Index: mb-applet-startup-monitor-0.1/mbmonitor.c
===================================================================
--- mb-applet-startup-monitor-0.1.orig/mbmonitor.c
+++ mb-applet-startup-monitor-0.1/mbmonitor.c
@@ -43,6 +43,9 @@
#define POLLTIME 10
#define HOURGLASS_N_FRAMES 8
+#define FALSE 0
+#define TRUE 1
+
typedef struct LaunchList LaunchList;
struct LaunchList
|
shibajee/buildroot
|
package/matchbox-startup-monitor/0001-true-false.patch
|
patch
|
mit
| 556 |
config BR2_PACKAGE_MATCHBOX_STARTUP_MONITOR
bool "matchbox-startup-monitor"
select BR2_PACKAGE_MATCHBOX_LIB
select BR2_PACKAGE_STARTUP_NOTIFICATION
help
Matchbox Panel Startup Monitor Applet.
|
shibajee/buildroot
|
package/matchbox-startup-monitor/Config.in
|
in
|
mit
| 199 |
# From http://downloads.yoctoproject.org/releases/matchbox/mb-applet-startup-monitor/0.1/mb-applet-startup-monitor-0.1.tar.bz2.md5
md5 ea4b3c1ebee3f731b77a2d4bf8e9aa3c mb-applet-startup-monitor-0.1.tar.bz2
|
shibajee/buildroot
|
package/matchbox-startup-monitor/matchbox-startup-monitor.hash
|
hash
|
mit
| 206 |
################################################################################
#
# matchbox-startup-monitor
#
################################################################################
MATCHBOX_STARTUP_MONITOR_VERSION = 0.1
MATCHBOX_STARTUP_MONITOR_SOURCE = mb-applet-startup-monitor-$(MATCHBOX_STARTUP_MONITOR_VERSION).tar.bz2
MATCHBOX_STARTUP_MONITOR_SITE = http://downloads.yoctoproject.org/releases/matchbox/mb-applet-startup-monitor/$(MATCHBOX_STARTUP_MONITOR_VERSION)
MATCHBOX_STARTUP_MONITOR_LICENSE = GPLv2+
MATCHBOX_STARTUP_MONITOR_LICENSE_FILES = COPYING
MATCHBOX_STARTUP_MONITOR_DEPENDENCIES = matchbox-lib startup-notification
$(eval $(autotools-package))
|
shibajee/buildroot
|
package/matchbox-startup-monitor/matchbox-startup-monitor.mk
|
mk
|
mit
| 678 |
[PATCH] fix mbtheme build issue when png support is disabled
DEFAULTTHEME{,NAME} is not defined when png support is disabled, leading
to compile errors in mbtheme.c:
mbtheme.c: In function 'show_parse_error':
mbtheme.c:2422:28: error: 'DEFAULTTHEME' undeclared (first use in this function)
mbtheme.c:2422:28: note: each undeclared identifier is reported only once for each function it appears in
mbtheme.c: In function 'mbtheme_init':
mbtheme.c:2448:30: error: 'DEFAULTTHEME' undeclared (first use in this function)
mbtheme.c:2470:25: error: 'DEFAULTTHEMENAME' undeclared (first use in this function)
Fix it by unconditionally defining them as the values used are the same
in png / !png cases anyway.
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
---
src/structs.h | 9 ---------
1 file changed, 9 deletions(-)
Index: matchbox-window-manager-1.2/src/structs.h
===================================================================
--- matchbox-window-manager-1.2.orig/src/structs.h
+++ matchbox-window-manager-1.2/src/structs.h
@@ -81,8 +81,6 @@
#define GENERIC_ICON PKGDATADIR "/mbnoapp.xpm"
-#ifdef MB_HAVE_PNG
-
#define DEFAULT_THEME DATADIR "/themes/Default/matchbox/theme.xml"
#define DEFAULTTHEME DATADIR "/themes/Default/matchbox/theme.xml"
@@ -91,13 +89,6 @@
#define DEFAULTTHEMENAME "Default"
-#else
-
-#define DEFAULT_THEME DATADIR "/themes/Default/matchbox/theme.xml"
-#define DEFAULT_THEME_NAME "Default"
-
-#endif
-
#define CONFDEFAULTS PKGDATADIR "/defaults"
/* Simple Macros */
|
shibajee/buildroot
|
package/matchbox/0001-defaulttheme.patch
|
patch
|
mit
| 1,556 |
menuconfig BR2_PACKAGE_MATCHBOX
bool "matchbox"
depends on BR2_PACKAGE_XORG7
depends on BR2_USE_MMU # fork()
select BR2_PACKAGE_FONTCONFIG
select BR2_PACKAGE_EXPAT
select BR2_PACKAGE_MATCHBOX_LIB
help
Matchbox is an Open Source base environment for the X Window
System running on non-desktop embedded platforms such as
handhelds, set-top boxes, kiosks and anything else for which
screen space, input mechanisms or system resources are limited.
https://www.yoctoproject.org/tools-resources/projects/matchbox
if BR2_PACKAGE_MATCHBOX
config BR2_PACKAGE_MATCHBOX_SM
bool "session manager"
select BR2_PACKAGE_XLIB_LIBSM
help
Enable support for the Session Manager.
comment "matchbox utilities"
source "package/matchbox-common/Config.in"
source "package/matchbox-desktop/Config.in"
source "package/matchbox-fakekey/Config.in"
source "package/matchbox-keyboard/Config.in"
source "package/matchbox-lib/Config.in"
source "package/matchbox-panel/Config.in"
source "package/matchbox-startup-monitor/Config.in"
endif
|
shibajee/buildroot
|
package/matchbox/Config.in
|
in
|
mit
| 1,039 |
# From http://downloads.yoctoproject.org/releases/matchbox/matchbox-window-manager/1.2/matchbox-window-manager-1.2.tar.bz2.md5
md5 3e158dcf57823b55c926d95b245500fb matchbox-window-manager-1.2.tar.bz2
|
shibajee/buildroot
|
package/matchbox/matchbox.hash
|
hash
|
mit
| 200 |
################################################################################
#
# matchbox
#
################################################################################
MATCHBOX_VERSION = 1.2
MATCHBOX_SOURCE = matchbox-window-manager-$(MATCHBOX_VERSION).tar.bz2
MATCHBOX_SITE = http://downloads.yoctoproject.org/releases/matchbox/matchbox-window-manager/$(MATCHBOX_VERSION)
MATCHBOX_LICENSE = GPLv2+
MATCHBOX_LICENSE_FILES = COPYING
MATCHBOX_DEPENDENCIES = matchbox-lib
MATCHBOX_CONF_OPTS = \
--enable-expat \
--disable-gconf \
--disable-composite \
--disable-standalone \
--disable-standalone-xft
# Workaround bug in configure script
MATCHBOX_CONF_ENV = expat=yes
ifeq ($(BR2_PACKAGE_STARTUP_NOTIFICATION),y)
MATCHBOX_CONF_OPTS += --enable-startup-notification
MATCHBOX_DEPENDENCIES += startup-notification
else
MATCHBOX_CONF_OPTS += --disable-startup-notification
endif
ifeq ($(BR2_PACKAGE_MATCHBOX_SM),y)
MATCHBOX_CONF_OPTS += --enable-session
MATCHBOX_DEPENDENCIES += xlib_libSM
else
MATCHBOX_CONF_OPTS += --disable-session
endif
ifeq ($(BR2_PACKAGE_XLIB_LIBXCURSOR),y)
MATCHBOX_DEPENDENCIES += xlib_libXcursor
endif
ifeq ($(BR2_PACKAGE_XLIB_LIBXFIXES),y)
MATCHBOX_DEPENDENCIES += xlib_libXfixes
endif
$(eval $(autotools-package))
|
shibajee/buildroot
|
package/matchbox/matchbox.mk
|
mk
|
mit
| 1,256 |
config BR2_PACKAGE_MBEDTLS
bool "mbedtls"
help
mbed TLS (formerly known as PolarSSL) makes it trivially easy
for developers to include cryptographic and SSL/TLS
capabilities in their (embedded) products, facilitating this
functionality with a minimal coding footprint.
https://tls.mbed.org/
if BR2_PACKAGE_MBEDTLS
config BR2_PACKAGE_MBEDTLS_PROGRAMS
bool "mbedtls programs"
depends on BR2_USE_MMU # fork()
help
This option enables the installation and the build of
mbed TLS companion programs.
endif
|
shibajee/buildroot
|
package/mbedtls/Config.in
|
in
|
mit
| 530 |
# From https://tls.mbed.org/tech-updates/releases/mbedtls-2.2.1-2.1.4-1.3.16-and-polarssl.1.2.19-released
sha256 6ddd5ca2e7dfb43d2fd750400856246fc1c98344dabf01b1594eb2f9880ef7ce mbedtls-2.2.1-apache.tgz
|
shibajee/buildroot
|
package/mbedtls/mbedtls.hash
|
hash
|
mit
| 203 |
################################################################################
#
# mbedtls
#
################################################################################
MBEDTLS_SITE = https://tls.mbed.org/code/releases
MBEDTLS_VERSION = 2.2.1
MBEDTLS_SOURCE = mbedtls-$(MBEDTLS_VERSION)-apache.tgz
MBEDTLS_CONF_OPTS = \
-DENABLE_PROGRAMS=$(if $(BR2_PACKAGE_MBEDTLS_PROGRAMS),ON,OFF) \
-DENABLE_TESTING=OFF
MBEDTLS_INSTALL_STAGING = YES
MBEDTLS_LICENSE = Apache-2.0
MBEDTLS_LICENSE_FILES = apache-2.0.txt
# This is mandatory for hiawatha
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
define MBEDTLS_ENABLE_THREADING
$(SED) "s://#define MBEDTLS_THREADING_C:#define MBEDTLS_THREADING_C:" \
$(@D)/include/mbedtls/config.h
$(SED) "s://#define MBEDTLS_THREADING_PTHREAD:#define MBEDTLS_THREADING_PTHREAD:" \
$(@D)/include/mbedtls/config.h
endef
MBEDTLS_POST_PATCH_HOOKS += MBEDTLS_ENABLE_THREADING
ifeq ($(BR2_STATIC_LIBS),y)
MBEDTLS_CONF_OPTS += -DLINK_WITH_PTHREAD=ON
endif
endif
ifeq ($(BR2_STATIC_LIBS),y)
MBEDTLS_CONF_OPTS += \
-DUSE_SHARED_MBEDTLS_LIBRARY=OFF -DUSE_STATIC_MBEDTLS_LIBRARY=ON
else ifeq ($(BR2_SHARED_STATIC_LIBS),y)
MBEDTLS_CONF_OPTS += \
-DUSE_SHARED_MBEDTLS_LIBRARY=ON -DUSE_STATIC_MBEDTLS_LIBRARY=ON
else ifeq ($(BR2_SHARED_LIBS),y)
MBEDTLS_CONF_OPTS += \
-DUSE_SHARED_MBEDTLS_LIBRARY=ON -DUSE_STATIC_MBEDTLS_LIBRARY=OFF
endif
ifeq ($(BR2_PACKAGE_ZLIB),y)
MBEDTLS_CONF_OPTS += -DENABLE_ZLIB_SUPPORT=ON
MBEDTLS_DEPENDENCIES += zlib
else
MBEDTLS_CONF_OPTS += -DENABLE_ZLIB_SUPPORT=OFF
endif
define MBEDTLS_DISABLE_ASM
$(SED) '/^#define MBEDTLS_AESNI_C/d' \
$(@D)/include/mbedtls/config.h
$(SED) '/^#define MBEDTLS_HAVE_ASM/d' \
$(@D)/include/mbedtls/config.h
$(SED) '/^#define MBEDTLS_PADLOCK_C/d' \
$(@D)/include/mbedtls/config.h
endef
# ARM in thumb mode breaks debugging with asm optimizations
# Microblaze asm optimizations are broken in general
# MIPS R6 asm is not yet supported
ifeq ($(BR2_ENABLE_DEBUG)$(BR2_ARM_INSTRUCTIONS_THUMB)$(BR2_ARM_INSTRUCTIONS_THUMB2),yy)
MBEDTLS_POST_CONFIGURE_HOOKS += MBEDTLS_DISABLE_ASM
else ifeq ($(BR2_microblaze)$(BR2_mips_32r6)$(BR2_mips_64r6),y)
MBEDTLS_POST_CONFIGURE_HOOKS += MBEDTLS_DISABLE_ASM
endif
$(eval $(cmake-package))
|
shibajee/buildroot
|
package/mbedtls/mbedtls.mk
|
mk
|
mit
| 2,216 |
config BR2_PACKAGE_MC
bool "mc"
depends on BR2_USE_WCHAR # libglib2
depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2
depends on BR2_USE_MMU # libglib2, slang
select BR2_PACKAGE_LIBGLIB2
# mc prefers slang, but can use ncurses too
select BR2_PACKAGE_SLANG if !BR2_PACKAGE_NCURSES
help
GNU Midnight Commander is a visual file manager, licensed under
GNU General Public License. It can use either SLang (preferred)
or ncurses for screen handling; if neither is enabled SLang
will be automatically chosen.
https://www.midnight-commander.org
comment "mc needs a toolchain w/ threads, wchar"
depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR
depends on BR2_USE_MMU
|
shibajee/buildroot
|
package/mc/Config.in
|
in
|
mit
| 691 |
# Hash from http://ftp.midnight-commander.org/mc-4.8.17.sha256:
sha256 0447bdddc0baa81866e66f50f9a545d29d6eebb68b0ab46c98d8fddd2bf4e44d mc-4.8.17.tar.xz
|
shibajee/buildroot
|
package/mc/mc.hash
|
hash
|
mit
| 154 |
################################################################################
#
# mc
#
################################################################################
MC_VERSION = 4.8.17
MC_SOURCE = mc-$(MC_VERSION).tar.xz
MC_SITE = http://ftp.midnight-commander.org
MC_LICENSE = GPLv3+
MC_LICENSE_FILES = COPYING
MC_DEPENDENCIES = libglib2 host-pkgconf
ifeq ($(BR2_PACKAGE_LIBSSH2),y)
MC_CONF_OPTS += --enable-vfs-sftp
MC_DEPENDENCIES += libssh2
else
MC_CONF_OPTS += --disable-vfs-sftp
endif
# mc prefers slang, so use that if enabled, otherwise
# fallback to using ncurses.
# Either or both will be enabled, but we prefer slang.
ifeq ($(BR2_PACKAGE_SLANG),y)
MC_DEPENDENCIES += slang
MC_CONF_OPTS += --with-screen=slang
else
MC_DEPENDENCIES += ncurses
MC_CONF_OPTS += --with-screen=ncurses
endif
ifeq ($(BR2_PACKAGE_XLIB_LIBX11),y)
MC_CONF_OPTS += --with-x
MC_DEPENDENCIES += xlib_libX11
else
MC_CONF_OPTS += --without-x
endif
$(eval $(autotools-package))
|
shibajee/buildroot
|
package/mc/mc.mk
|
mk
|
mit
| 967 |
config BR2_PACKAGE_MCELOG
bool "mcelog"
depends on BR2_i386 || BR2_x86_64
depends on BR2_USE_MMU # fork()
help
mcelog processes machine checks (in particular memory and CPU hardware
errors) on modern x86 Linux systems.
http://www.mcelog.org/
|
shibajee/buildroot
|
package/mcelog/Config.in
|
in
|
mit
| 256 |
################################################################################
#
# mcelog
#
################################################################################
MCELOG_VERSION = v111
MCELOG_SITE = $(BR2_KERNEL_MIRROR)/scm/utils/cpu/mce/mcelog.git
MCELOG_SITE_METHOD = git
MCELOG_LICENSE = GPLv2
MCELOG_LICENSE_FILES = README
define MCELOG_BUILD_CMDS
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) all
endef
define MCELOG_INSTALL_TARGET_CMDS
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) DESTDIR=$(TARGET_DIR) install
endef
$(eval $(generic-package))
|
shibajee/buildroot
|
package/mcelog/mcelog.mk
|
mk
|
mit
| 561 |
From 3efb40e17ce4f76717ae17a1ce1e1f747ddf59fd Mon Sep 17 00:00:00 2001
From: Alon Bar-Lev <alon.barlev@gmail.com>
Date: Sat, 22 Dec 2012 22:37:06 +0200
Subject: [PATCH] cleanup: buffer overflow
---
src/extra.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/extra.c b/src/extra.c
index 3082f82..c7a1ac0 100644
--- a/src/extra.c
+++ b/src/extra.c
@@ -241,6 +241,8 @@ int check_file_head(FILE * fstream, char *algorithm, char *mode,
if (m_getbit(6, flags) == 1) { /* if the salt bit is set */
if (m_getbit(0, sflag) != 0) { /* if the first bit is set */
*salt_size = m_setbit(0, sflag, 0);
+ if (*salt_size > sizeof(tmp_buf))
+ err_quit(_("Salt is too long\n"));
if (*salt_size > 0) {
fread(tmp_buf, 1, *salt_size,
fstream);
--
1.7.8.6
|
shibajee/buildroot
|
package/mcrypt/0001-CVE-2012-4409.patch
|
patch
|
mit
| 810 |
Patch taken from gentoo.
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
--- a/src/errors.c
+++ b/src/errors.c
@@ -25,24 +25,24 @@
void err_quit(char *errmsg)
{
- fprintf(stderr, errmsg);
+ fprintf(stderr, "%s", errmsg);
exit(-1);
}
void err_warn(char *errmsg)
{
if (quiet <= 1)
- fprintf(stderr, errmsg);
+ fprintf(stderr, "%s", errmsg);
}
void err_info(char *errmsg)
{
if (quiet == 0)
- fprintf(stderr, errmsg);
+ fprintf(stderr, "%s", errmsg);
}
void err_crit(char *errmsg)
{
if (quiet <= 2)
- fprintf(stderr, errmsg);
+ fprintf(stderr, "%s", errmsg);
}
|
shibajee/buildroot
|
package/mcrypt/0002-CVE-2012-4426.patch
|
patch
|
mit
| 603 |
Fix for CVE-2012-4527.
Authored by Attila Bogar and Jean-Michel Vourgère <jmv_deb@nirgal.com>
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
diff -Nura mcrypt-2.6.8.orig/src/mcrypt.c mcrypt-2.6.8/src/mcrypt.c
--- mcrypt-2.6.8.orig/src/mcrypt.c 2013-01-14 19:15:49.465925072 -0300
+++ mcrypt-2.6.8/src/mcrypt.c 2013-01-14 19:28:13.711478000 -0300
@@ -44,7 +44,9 @@
static char rcsid[] =
"$Id: mcrypt.c,v 1.2 2007/11/07 17:10:21 nmav Exp $";
-char tmperr[128];
+/* Temporary error message can contain one file name and 1k of text */
+#define ERRWIDTH ((PATH_MAX)+1024)
+char tmperr[ERRWIDTH];
unsigned int stream_flag = FALSE;
char *keymode = NULL;
char *mode = NULL;
@@ -482,7 +484,7 @@
#ifdef HAVE_STAT
if (stream_flag == FALSE) {
if (is_normal_file(file[i]) == FALSE) {
- sprintf(tmperr,
+ snprintf(tmperr, ERRWIDTH,
_
("%s: %s is not a regular file. Skipping...\n"),
program_name, file[i]);
@@ -501,7 +503,7 @@
dinfile = file[i];
if ((isatty(fileno((FILE *) (stdin))) == 1)
&& (stream_flag == TRUE) && (force == 0)) { /* not a tty */
- sprintf(tmperr,
+ snprintf(tmperr, ERRWIDTH,
_
("%s: Encrypted data will not be read from a terminal.\n"),
program_name);
@@ -520,7 +522,7 @@
einfile = file[i];
if ((isatty(fileno((FILE *) (stdout))) == 1)
&& (stream_flag == TRUE) && (force == 0)) { /* not a tty */
- sprintf(tmperr,
+ snprintf(tmperr, ERRWIDTH,
_
("%s: Encrypted data will not be written to a terminal.\n"),
program_name);
@@ -544,7 +546,7 @@
strcpy(outfile, einfile);
/* if file has already the .nc ignore it */
if (strstr(outfile, ".nc") != NULL) {
- sprintf(tmperr,
+ snprintf(tmperr, ERRWIDTH,
_
("%s: file %s has the .nc suffix... skipping...\n"),
program_name, outfile);
@@ -590,10 +592,10 @@
if (x == 0) {
if (stream_flag == FALSE) {
- sprintf(tmperr, _("File %s was decrypted.\n"), dinfile);
+ snprintf(tmperr, ERRWIDTH, _("File %s was decrypted.\n"), dinfile);
err_warn(tmperr);
} else {
- sprintf(tmperr, _("Stdin was decrypted.\n"));
+ snprintf(tmperr, ERRWIDTH, _("Stdin was decrypted.\n"));
err_warn(tmperr);
}
#ifdef HAVE_STAT
@@ -610,7 +612,7 @@
} else {
if (stream_flag == FALSE) {
- sprintf(tmperr,
+ snprintf(tmperr, ERRWIDTH,
_
("File %s was NOT decrypted successfully.\n"),
dinfile);
@@ -636,10 +638,10 @@
if (x == 0) {
if (stream_flag == FALSE) {
- sprintf(tmperr, _("File %s was encrypted.\n"), einfile);
+ snprintf(tmperr, ERRWIDTH, _("File %s was encrypted.\n"), einfile);
err_warn(tmperr);
} else {
- sprintf(tmperr, _("Stdin was encrypted.\n"));
+ snprintf(tmperr, ERRWIDTH, _("Stdin was encrypted.\n"));
err_warn(tmperr);
}
#ifdef HAVE_STAT
@@ -655,7 +657,7 @@
} else {
if (stream_flag == FALSE) {
- sprintf(tmperr,
+ snprintf(tmperr, ERRWIDTH,
_
("File %s was NOT encrypted successfully.\n"),
einfile);
|
shibajee/buildroot
|
package/mcrypt/0003-CVE-2012-4527.patch
|
patch
|
mit
| 3,204 |
Patch out rpath hardcoding since it completely ignores --disable-rpath
and other configure ways.
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
diff -Nura mcrypt-2.6.8.orig/config.rpath mcrypt-2.6.8/config.rpath
--- mcrypt-2.6.8.orig/config.rpath 2013-01-07 13:05:22.626883480 -0300
+++ mcrypt-2.6.8/config.rpath 2013-01-07 13:12:47.196090608 -0300
@@ -153,7 +153,7 @@
# here allows them to be overridden if necessary.
# Unlike libtool, we use -rpath here, not --rpath, since the documented
# option of GNU ld is called -rpath, not --rpath.
- hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
+ hardcode_libdir_flag_spec=
case "$host_os" in
aix3* | aix4* | aix5*)
# On AIX/PPC, the GNU linker is very broken
|
shibajee/buildroot
|
package/mcrypt/0004-no-rpath.patch
|
patch
|
mit
| 750 |
config BR2_PACKAGE_MCRYPT
bool "mcrypt"
depends on BR2_USE_MMU # fork()
select BR2_PACKAGE_LIBMCRYPT
select BR2_PACKAGE_LIBMHASH
select BR2_PACKAGE_GETTEXT if BR2_NEEDS_GETTEXT_IF_LOCALE
help
MCrypt is a replacement for the old crypt() package and crypt(1)
command, with extensions.
It allows developers to use a wide range of encryption functions,
without making drastic changes to their code.
http://mcrypt.sourceforge.net/
|
shibajee/buildroot
|
package/mcrypt/Config.in
|
in
|
mit
| 448 |
# Locally computed:
sha256 5145aa844e54cca89ddab6fb7dd9e5952811d8d787c4f4bf27eb261e6c182098 mcrypt-2.6.8.tar.gz
|
shibajee/buildroot
|
package/mcrypt/mcrypt.hash
|
hash
|
mit
| 114 |
################################################################################
#
# mcrypt
#
################################################################################
MCRYPT_VERSION = 2.6.8
MCRYPT_SITE = http://downloads.sourceforge.net/project/mcrypt/MCrypt/$(MCRYPT_VERSION)
MCRYPT_DEPENDENCIES = libmcrypt libmhash \
$(if $(BR2_PACKAGE_ZLIB),zlib) \
$(if $(BR2_PACKAGE_LIBICONV),libiconv) \
$(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext)
MCRYPT_CONF_OPTS = --with-libmcrypt-prefix=$(STAGING_DIR)/usr
MCRYPT_LICENSE = GPLv3
MCRYPT_LICENSE_FILES = COPYING
$(eval $(autotools-package))
|
shibajee/buildroot
|
package/mcrypt/mcrypt.mk
|
mk
|
mit
| 597 |
From a1a9243671b1e23123f57e879890325154b8e00d Mon Sep 17 00:00:00 2001
From: Christophe Vu-Brugier <cvubrugier@lacie.com>
Date: Wed, 6 Mar 2013 16:03:14 +0100
Subject: [PATCH] Add install targets for mdadm and mdmon
Signed-off-by: Christophe Vu-Brugier <cvubrugier@lacie.com>
---
Makefile | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 315455b..27d8eeb 100644
--- a/Makefile
+++ b/Makefile
@@ -231,8 +231,12 @@ $(MON_OBJS) : $(INCL) mdmon.h
sha1.o : sha1.c sha1.h md5.h
$(CC) $(CFLAGS) -DHAVE_STDINT_H -o sha1.o -c sha1.c
-install : mdadm mdmon install-man install-udev
+install : install-mdadm install-mdmon install-man install-udev
+
+install-mdadm :
$(INSTALL) -D $(STRIP) -m 755 mdadm $(DESTDIR)$(BINDIR)/mdadm
+
+install-mdmon :
$(INSTALL) -D $(STRIP) -m 755 mdmon $(DESTDIR)$(BINDIR)/mdmon
install-static : mdadm.static install-man
--
1.7.10.4
|
shibajee/buildroot
|
package/mdadm/0010-add-install-targets-for-mdadm-and-mdmon.patch
|
patch
|
mit
| 922 |
config BR2_PACKAGE_MDADM
bool "mdadm"
depends on BR2_USE_MMU # fork()
help
Utility for managing Linux Software RAID arrays.
http://neil.brown.name/blog/mdadm
|
shibajee/buildroot
|
package/mdadm/Config.in
|
in
|
mit
| 168 |
# From https://www.kernel.org/pub/linux/utils/raid/mdadm/sha256sums.asc
sha256 8ae5f45306b873190e91f410709b00e51997b633c072b33f8efd9f7df022ca68 mdadm-3.3.4.tar.xz
|
shibajee/buildroot
|
package/mdadm/mdadm.hash
|
hash
|
mit
| 163 |
################################################################################
#
# mdadm
#
################################################################################
MDADM_VERSION = 3.3.4
MDADM_SOURCE = mdadm-$(MDADM_VERSION).tar.xz
MDADM_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/raid/mdadm
MDADM_LICENSE = GPLv2+
MDADM_LICENSE_FILES = COPYING
MDADM_MAKE_OPTS = \
CFLAGS="$(TARGET_CFLAGS)" CC="$(TARGET_CC)" CHECK_RUN_DIR=0 -C $(MDADM_DIR) mdadm
MDADM_INSTALL_TARGET_OPTS = \
DESTDIR=$(TARGET_DIR)/usr -C $(MDADM_DIR) install-mdadm
define MDADM_CONFIGURE_CMDS
# Do nothing
endef
$(eval $(autotools-package))
|
shibajee/buildroot
|
package/mdadm/mdadm.mk
|
mk
|
mit
| 623 |
config BR2_PACKAGE_MEDIASTREAMER
bool "mediastreamer"
select BR2_PACKAGE_ORTP
depends on BR2_INSTALL_LIBSTDCPP # until fixed
depends on BR2_TOOLCHAIN_HAS_THREADS # ortp
help
Mediastreamer is a powerful and lightweighted streaming
engine specialized for voice/video telephony applications.
It is the library that is responsible for all the receiving
and sending of multimedia streams in linphone, including
voice/video capture, encoding and decoding, and rendering.
http://www.linphone.org/eng/documentation/dev/mediastreamer2.html
comment "mediastreamer needs a toolchain w/ threads, C++"
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
|
shibajee/buildroot
|
package/mediastreamer/Config.in
|
in
|
mit
| 680 |
# Locally calculated
sha256 0dbf8d4f721a04db9ec0982e98a4e852ad2d3acbcbd25edd96a66164a980f2e7 mediastreamer-2.12.1.tar.gz
|
shibajee/buildroot
|
package/mediastreamer/mediastreamer.hash
|
hash
|
mit
| 121 |
################################################################################
#
# mediastreamer
#
################################################################################
MEDIASTREAMER_VERSION = 2.12.1
MEDIASTREAMER_SITE = http://download.savannah.nongnu.org/releases/linphone/mediastreamer
MEDIASTREAMER_INSTALL_STAGING = YES
MEDIASTREAMER_DEPENDENCIES = host-intltool host-pkgconf ortp host-gettext
# tests fail linking on some architectures, so disable them
MEDIASTREAMER_CONF_OPTS = --disable-tests --disable-glx --disable-strict
MEDIASTREAMER_LICENSE = GPLv2+
MEDIASTREAMER_LICENSE_FILES = COPYING
ifeq ($(BR2_PACKAGE_ALSA_LIB_MIXER)$(BR2_PACKAGE_ALSA_LIB_PCM),yy)
MEDIASTREAMER_CONF_OPTS += --enable-alsa
MEDIASTREAMER_DEPENDENCIES += alsa-lib
else
MEDIASTREAMER_CONF_OPTS += --disable-alsa
endif
ifeq ($(BR2_PACKAGE_LIBUPNP),y)
MEDIASTREAMER_CONF_OPTS += --enable-upnp
MEDIASTREAMER_DEPENDENCIES += libupnp
else
MEDIASTREAMER_CONF_OPTS += --disable-upnp
endif
ifeq ($(BR2_PACKAGE_LIBVPX),y)
MEDIASTREAMER_CONF_OPTS += --enable-vp8
MEDIASTREAMER_DEPENDENCIES += libvpx
else
MEDIASTREAMER_CONF_OPTS += --disable-vp8
endif
ifeq ($(BR2_PACKAGE_OPUS),y)
MEDIASTREAMER_CONF_OPTS += --enable-opus
MEDIASTREAMER_DEPENDENCIES += opus
else
MEDIASTREAMER_CONF_OPTS += --disable-opus
endif
# portaudio backend needs speex as well
ifeq ($(BR2_PACKAGE_PORTAUDIO)$(BR2_PACKAGE_SPEEX),yy)
MEDIASTREAMER_CONF_OPTS += --enable-portaudio
MEDIASTREAMER_DEPENDENCIES += portaudio speex
else
MEDIASTREAMER_CONF_OPTS += --disable-portaudio
endif
ifeq ($(BR2_PACKAGE_PULSEAUDIO),y)
MEDIASTREAMER_CONF_OPTS += --enable-pulseaudio
MEDIASTREAMER_DEPENDENCIES += pulseaudio
else
MEDIASTREAMER_CONF_OPTS += --disable-pulseaudio
endif
ifeq ($(BR2_PACKAGE_SPEEX),y)
MEDIASTREAMER_CONF_OPTS += --enable-speex
MEDIASTREAMER_DEPENDENCIES += speex
else
MEDIASTREAMER_CONF_OPTS += --disable-speex
endif
ifeq ($(BR2_PACKAGE_FFMPEG_SWSCALE),y)
MEDIASTREAMER_CONF_OPTS += --enable-ffmpeg
MEDIASTREAMER_DEPENDENCIES += ffmpeg
else
MEDIASTREAMER_CONF_OPTS += --disable-ffmpeg
endif
ifeq ($(BR2_PACKAGE_SDL),y)
MEDIASTREAMER_CONF_OPTS += --enable-sdl
MEDIASTREAMER_DEPENDENCIES += sdl
else
MEDIASTREAMER_CONF_OPTS += --disable-sdl
endif
# mediastreamer assumes SDL has X11 support if --enable-x11 (and X11 support
# is only used for SDL output)
ifeq ($(BR2_PACKAGE_SDL_X11),y)
MEDIASTREAMER_CONF_OPTS += --enable-x11
else
MEDIASTREAMER_CONF_OPTS += --disable-x11
endif
ifeq ($(BR2_PACKAGE_XLIB_LIBXV),y)
MEDIASTREAMER_CONF_OPTS += --enable-xv
MEDIASTREAMER_DEPENDENCIES += xlib_libXv
else
MEDIASTREAMER_CONF_OPTS += --disable-xv
endif
ifeq ($(BR2_PACKAGE_LIBTHEORA),y)
MEDIASTREAMER_CONF_OPTS += --enable-theora
MEDIASTREAMER_DEPENDENCIES += libtheora
else
MEDIASTREAMER_CONF_OPTS += --disable-theora
endif
ifeq ($(BR2_PACKAGE_LIBV4L),y)
MEDIASTREAMER_CONF_OPTS += --enable-libv4l1 --enable-libv4l2
MEDIASTREAMER_DEPENDENCIES += libv4l
else
MEDIASTREAMER_CONF_OPTS += --disable-libv4l1 --disable-libv4l2
endif
$(eval $(autotools-package))
|
shibajee/buildroot
|
package/mediastreamer/mediastreamer.mk
|
mk
|
mit
| 3,030 |
config BR2_PACKAGE_MEMCACHED
bool "memcached"
depends on BR2_TOOLCHAIN_HAS_THREADS
depends on BR2_USE_MMU # fork()
select BR2_PACKAGE_LIBEVENT
help
Memcached is an in-memory key-value store for small chunks
of arbitrary data (strings, objects) from results of database calls,
API calls, or page rendering.
http://www.memcached.org/
comment "memcached needs a toolchain w/ threads"
depends on !BR2_TOOLCHAIN_HAS_THREADS
depends on BR2_USE_MMU
|
shibajee/buildroot
|
package/memcached/Config.in
|
in
|
mit
| 463 |
# From http://www.memcached.org/files/memcached-1.4.29.tar.gz.sha1
sha1 8994b4d0dbcc8d536f3d6cd4763489a3c51ca44b memcached-1.4.29.tar.gz
# Calculated based on the hash above
sha256 c61a3a7f9c82e574559797bbf4bb01ad8b79e436ca80b8e46f5b51ae39b03d0b memcached-1.4.29.tar.gz
|
shibajee/buildroot
|
package/memcached/memcached.hash
|
hash
|
mit
| 270 |
################################################################################
#
# memcached
#
################################################################################
MEMCACHED_VERSION = 1.4.29
MEMCACHED_SITE = http://www.memcached.org/files
MEMCACHED_DEPENDENCIES = libevent
MEMCACHED_CONF_ENV = ac_cv_prog_cc_c99='-std=gnu99'
MEMCACHED_CONF_OPTS = --disable-coverage
MEMCACHED_LICENSE = BSD-3c
MEMCACHED_LICENSE_FILES = COPYING
ifeq ($(BR2_ENDIAN),"BIG")
MEMCACHED_CONF_ENV += ac_cv_c_endian=big
else
MEMCACHED_CONF_ENV += ac_cv_c_endian=little
endif
$(eval $(autotools-package))
|
shibajee/buildroot
|
package/memcached/memcached.mk
|
mk
|
mit
| 596 |
Add missing #include for PATH_MAX
Signed-off-by: Maarten ter Huurne <maarten@treewalker.org>
--- memstat-0.8.org/memstat.c 2009-06-08 14:38:05.000000000 +0200
+++ memstat-0.8/memstat.c 2014-09-12 03:55:43.096035374 +0200
@@ -19,6 +19,7 @@
#include <unistd.h>
#include <getopt.h>
#include <errno.h>
+#include <limits.h>
/* blacklist devices that just map physical memory */
char *blacklist[] = { "/dev/mem",
|
shibajee/buildroot
|
package/memstat/0001-PATH_MAX.patch
|
patch
|
mit
| 416 |
config BR2_PACKAGE_MEMSTAT
bool "memstat"
help
Memstat lists all the processes, executables, and shared
libraries that are using up virtual memory. It's helpful to
see how the shared memory is used and which 'old' libs are
loaded.
http://sourceforge.net/projects/memstattool
|
shibajee/buildroot
|
package/memstat/Config.in
|
in
|
mit
| 293 |
# From http://sourceforge.net/projects/memstattool/files/
sha1 26071dbc30a2796c0503c7d8060a548ca36f8df9 memstat_1.0.tar.gz
|
shibajee/buildroot
|
package/memstat/memstat.hash
|
hash
|
mit
| 123 |
################################################################################
#
# memstat
#
################################################################################
MEMSTAT_VERSION = 1.0
MEMSTAT_SITE = http://downloads.sourceforge.net/project/memstattool
MEMSTAT_SOURCE = memstat_$(MEMSTAT_VERSION).tar.gz
MEMSTAT_LICENSE = GPL
MEMSTAT_LICENSE_FILES = debian/copyright
define MEMSTAT_BUILD_CMDS
$(MAKE) CC="$(TARGET_CC)" LD="$(TARGET_LD)" CFLAGS="$(TARGET_CFLAGS)" \
-C $(@D) memstat
endef
define MEMSTAT_INSTALL_TARGET_CMDS
$(INSTALL) -D $(@D)/memstat.conf -m 0644 \
$(TARGET_DIR)/etc/memstat.conf
$(INSTALL) -D $(@D)/memstat $(TARGET_DIR)/usr/bin/memstat
endef
$(eval $(generic-package))
|
shibajee/buildroot
|
package/memstat/memstat.mk
|
mk
|
mit
| 712 |
config BR2_PACKAGE_MEMTEST86
bool "memtest86"
depends on BR2_i386 || BR2_x86_64
help
Memtest86+ is a bootable standalone memory test program.
Buildroot does not support packages with a '+' sign in their
name, which explains why it is named memtest86 and not
memtest86+.
Memtest86+ is a utility designed to test whether your memory
is in working order. It repeatedly writes an enormous amount
of different patterns to all memory locations and reads them
back again and verifies whether the result of the read is the
same as what was written to memory.
Memtest86+ will only work on 32-bit or 64-bit x86 targets.
It boots as an i486 program and autodetects hardware. It can
be added to the grub2 boot menu by adding the following lines
to the bottom of /boot/grub/grub.cfg - note the use of linux16.
menuentry "Memtest86+" {
linux16 /boot/memtest86+.bin
}
Other boot loaders will have similar requirements.
http://www.memtest.org
|
shibajee/buildroot
|
package/memtest86/Config.in
|
in
|
mit
| 990 |
# locally computed using sha256sum
sha256 142127b7953fbd829b1057fb64a78d3340c2b771484230a7347e94530a0d9039 memtest86+-5.01.tar.gz
|
shibajee/buildroot
|
package/memtest86/memtest86.hash
|
hash
|
mit
| 130 |
################################################################################
#
# memtest86
#
################################################################################
MEMTEST86_VERSION = 5.01
MEMTEST86_SOURCE = memtest86+-$(MEMTEST86_VERSION).tar.gz
MEMTEST86_SITE = http://www.memtest.org/download/$(MEMTEST86_VERSION)
MEMTEST86_LICENSE = GPLv2
MEMTEST86_LICENSE_FILES = README
# memtest86+ is sensitive to toolchain changes, use the shipped binary version
define MEMTEST86_INSTALL_TARGET_CMDS
$(INSTALL) -m 0755 -D $(@D)/precomp.bin $(TARGET_DIR)/boot/memtest86+.bin
endef
$(eval $(generic-package))
|
shibajee/buildroot
|
package/memtest86/memtest86.mk
|
mk
|
mit
| 617 |
The a/{b,c} construct doesn't work within make, so let's split the
creation of the installation directories in two commands.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
Makefile | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Index: memtester-4.2.1/Makefile
===================================================================
--- memtester-4.2.1.orig/Makefile
+++ memtester-4.2.1/Makefile
@@ -25,8 +25,9 @@
all: memtester
install: all
- mkdir -m 755 -p $(INSTALLPATH)/{bin,man/man8}
+ mkdir -m 755 -p $(INSTALLPATH)/bin
install -m 755 memtester $(INSTALLPATH)/bin/
+ mkdir -m 755 -p $(INSTALLPATH)/man/man8
gzip -c memtester.8 >memtester.8.gz ; install -m 644 memtester.8.gz $(INSTALLPATH)/man/man8/
auto-ccld.sh: \
|
shibajee/buildroot
|
package/memtester/0001-makefile-fix.patch
|
patch
|
mit
| 771 |
config BR2_PACKAGE_MEMTESTER
bool "memtester"
help
A userspace utility for testing the memory subsystem for faults.
http://pyropus.ca/software/memtester/
|
shibajee/buildroot
|
package/memtester/Config.in
|
in
|
mit
| 163 |
# Locally computed
sha256 f9dfe2fd737c38fad6535bbab327da9a21f7ce4ea6f18c7b3339adef6bf5fd88 memtester-4.3.0.tar.gz
|
shibajee/buildroot
|
package/memtester/memtester.hash
|
hash
|
mit
| 114 |
################################################################################
#
# memtester
#
################################################################################
MEMTESTER_VERSION = 4.3.0
MEMTESTER_SITE = http://pyropus.ca/software/memtester/old-versions
MEMTESTER_LICENSE = GPLv2
MEMTESTER_LICENSE_FILES = COPYING
MEMTESTER_TARGET_INSTALL_OPTS = INSTALLPATH=$(TARGET_DIR)/usr
define MEMTESTER_BUILD_CMDS
$(SED) "s,^cc,$(TARGET_CC)," $(@D)/conf-*
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
endef
define MEMTESTER_INSTALL_TARGET_CMDS
$(MAKE) $(MEMTESTER_TARGET_INSTALL_OPTS) -C $(@D) install
endef
$(eval $(generic-package))
|
shibajee/buildroot
|
package/memtester/memtester.mk
|
mk
|
mit
| 647 |
config BR2_PACKAGE_MENU_CACHE
bool "menu-cache"
select BR2_PACKAGE_LIBGLIB2
select BR2_PACKAGE_LIBFM_EXTRA
depends on BR2_USE_WCHAR # libglib2
depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2
depends on BR2_USE_MMU # libglib2
help
Small library from LXDE project used for application menu
integration
http://wiki.lxde.org/
comment "menu-cache needs a toolchain w/ wchar, threads"
depends on BR2_USE_MMU
depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
|
shibajee/buildroot
|
package/menu-cache/Config.in
|
in
|
mit
| 478 |
# From https://sourceforge.net/projects/lxde/files/menu-cache/1.0/
md5 a856ba860b16fdc8c69ee784bc4ade36 menu-cache-1.0.1.tar.xz
sha1 58862c665f2ae56870a9937cdcd643674b2ac8ba menu-cache-1.0.1.tar.xz
|
shibajee/buildroot
|
package/menu-cache/menu-cache.hash
|
hash
|
mit
| 198 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.