postgresql: new package

Based on suggested new package by Marco Trapanese ([1]).

[1] http://lists.busybox.net/pipermail/buildroot/2014-February/090661.html

[Thomas: make it only available with glibc toolchains.]

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
pkg-utils: introduce a make-based LOWERCASE function

Until now, our UPPERCASE function was implemented purely in make for
performance reasons, but our LOWERCASE function was implemented by
calling "tr", which was reasonable due to the fact that LOWERCASE was
rarely used, but future changes might make a more heavy usage of the
LOWERCASE macro.

We want this LOWERCASE function to turn a "_" into a "-" and not a
".", so we slightly adjust the existing FROM and TO lists to make this
possible. This doesn't change the behavior of the UPPERCASE macro
because both "-" and "." are converted into "_" by this function.

This change takes advantage of suggestions made by Arnout
Vandecappelle, who said they further improve the performance of
UPPERCASE and LOWERCASE by 30%/40%.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Revert "host-nodejs: use g++ as linker"

This reverts commit ea737fb100785b3b5756dad320db04062261fd04, which in
the end didn't fix the autobuilder problem. Since then,
fb80d283412b610fc0f5e4baf1c5bcdf093dadc2 ('nodejs: add a patch forcing
link command to use CXX') was added, and was successfully tested.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
cppcms: does not build on static library only, needs dlopen()

Fixes:

  http://autobuild.buildroot.org/results/5ee/5ee69eb7492fbd462124d7a23b5b79003fc1dd64/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
jack2: needs C++ support

Fixes:

  http://autobuild.buildroot.org/results/ede/ede17f2fdb9b5cd4b974ef820d95b0eba863c420/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
libstrophe: fix detection of libxml2

This commit adds a patch to libstrophe to fix a typo that prevented a
proper detection of libxml2. This patch has been submitted upstream,
see https://github.com/metajack/libstrophe/pull/46.

Fixes:

 http://autobuild.buildroot.org/results/499/499ffd50ec58b54343d6606c0f1bf7cd04f14e1c/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
sunxi-boards: bump version

Signed-off-by: Brian Beattie <beattie@beattie-home.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
sunxi-tools: bump version

Signed-off-by: Brian Beattie <beattie@beattie-home.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
vo-aacenc: pass -marm to build non-Thumb2 compatible assembly

vo-aacenc has some hand-written assembly that cannot build in Thumb2,
so we have to explicitly pass -marm to make sure this particular
package is always built with full-length ARM instructions.

Fixes:

  http://autobuild.buildroot.org/results/680/680b29cd824624eb8e4ec71187b9a6576444e72b/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
e2tools: new package

E2tools is a simple set of GPL'ed utilities to read, write, and
manipulate files in an ext2/ext3 filesystem.  These utilities access a
filesystem directly using the ext2fs library.

[Thomas: add toolchain dependencies as needed, use full Git hash, use
github helper, add support for host version.]

Signed-off-by: Daniel Nyström <daniel.nystrom@timeterminal.se>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
util-linux: do not install bash completion files

In most embedded systems, there is not much point in installing bash
completion files, especially since bash may not necessarily be present
on the target.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
mplayer: fix ARM floating point related build failures

This commit fixes two separate, but related build failures:

 * A failure that was happening when the ARM CPU supports NEON,
   floating point is enabled, but not with the NEON FPU. In this case,
   the NEON ARM assembly is rejected by the assembler, with messages
   like "Error: selected FPU does not support instruction -- `vmul.f32
   q0,q0,q1'". To fix this, we pass -mfpu=neon when we build mplayer
   with NEON support.

   Fixes:

     http://autobuild.buildroot.org/results/257/257a10e9cb5022bb09e0c6a03844be5b5b3e0bd4/

 * A failure that was happening when the ARM CPU supports NEON, but
   the configuration is anyway using soft-float. In this case, mplayer
   attempts to compile NEON floating point instructions, but this
   obviously fail in a soft-float context, with errors such as 'Error:
   selected processor does not support ARM mode `vmov d0,r7,r8''. To
   fix this, we do not allow NEON to be enabled when we are in a
   soft-float configuration.

   Fixes:

     http://autobuild.buildroot.org/results/7b3/7b3c89fcd496c0bc80063f63ecd58c827e8077ea/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
util-linux: fix chfn/chsh missing dependencies

chfn/chsh utilities need linux-pam.

Fixes:
  http://autobuild.buildroot.org/results/cfc/cfc5fd00b9db21b60efe8b74e9966b6192b1da17/

Signed-off-by: Samuel Martin <s.martin49@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
postgresql: change readline and zlib to be real optional selections

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
postgresql: bump version to 9.3.4

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
libcap: add menu entry to install tools.

libcap provides a set of tools to manipulate capabilities, among which
`setcap(8)` and `getcap(8)`. A new menu entry has been added to install them.

[Thomas: mark the new option as requiring MMU support, because the
programs use fork(), and completely rework the new .mk logic as it
wasn't taking into account the BR2_PREFER_STATIC_LIB case.]

Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
smack: new package.

SMACK stands for Simplified Mandatory Access Control Kernel. It is a Linux
Security Module which provides a Mandatory Access Control mechanism,
like SELinux, but aiming towards simplicity.

This package provides the tools to load/unload the policy from the
kernel as well as a library allowing applications to interact with
SMACK. The proper kernel options are also set.

[Thomas:
- fixed license to be LGPLv2.1 instead of LGPLv2.1+. Even though the
  debian/copyright file has the "or later" indication, none of the .c
  source files carry it, so I suppose LGPLv2.1 is more correct.
- added !BR2_PREFER_STATIC_LIB dependency.
- added dependency on host-pkgconf, since Smack configure.ac uses
  PKG_CHECK_MODULES.]

Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
system: add ability to pass additional users tables.

A new entry has been added to the "System Configuration" menu to allow
the user to set the location of additional user tables (besides the ones
defined in packages).

A user table is a text file, formatted using the mkusers syntax, which
describes the users on the target system, with their UID/GID, home
directory, password, etc.

The target root file system will be populated according the content of
these files.

Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr>
[yann.morin.1998@free.fr: use plural TABLES; we need to remove the
    intermediate users_table file, as it is no longer generated in
    one shot, in case a previous run failed and did not remove it]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
mysql: disable maintainer mode

The maintainer mode enables additional gcc warnings, including
-Werror, which causes build failures with certain toolchains. Since we
generally don't enable -Werror in Buildroot, it doesn't make much
sense to have it enabled for MySQL.

Fixes:

  http://autobuild.buildroot.net/results/6b6/6b61f90d1a36ba43ff568933bb74975128380516/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
qt5base: fix no-opengl build with egl

Fixes:

  http://autobuild.buildroot.net/results/8ed/8eddd934bd80fdbcdf7a9dbf5d9f8b7ba69634d4/

Signed-off-by: Fatih Aşıcı <fatih.asici@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>