Merge branch 'master' into x-updates
This commit is contained in:
@@ -1,4 +1,20 @@
|
||||
{stdenv, fetchurl, libedit, icu
|
||||
{stdenv, fetchurl, libedit, ncurses, automake, autoconf, libtool
|
||||
,
|
||||
# icu = null: use icu which comes with firebird
|
||||
|
||||
# icu = pkgs.icu => you may have trouble sharing database files with windows
|
||||
# users if "Collation unicode" columns are being used
|
||||
# windows icu version is *30.dll, however neither the icu 3.0 nor the 3.6
|
||||
# sources look close to what ships with this package.
|
||||
# Thus I think its best to trust firebird devs and use their version
|
||||
|
||||
# icu version missmatch may cause such error when selecting from a table:
|
||||
# "Collation unicode for character set utf8 is not installed"
|
||||
|
||||
# icu 3.0 can still be build easily by nix (by dropping the #elif case and
|
||||
# make | make)
|
||||
icu ? null
|
||||
|
||||
, superServer ? false
|
||||
, port ? 3050
|
||||
, serviceName ? "gds_db"
|
||||
@@ -6,9 +22,9 @@
|
||||
|
||||
/*
|
||||
there are 3 ways to use firebird:
|
||||
a) superserver
|
||||
a) superserver
|
||||
- one process, one thread for each connection
|
||||
b) classic
|
||||
b) classic
|
||||
- is built by default
|
||||
- one process for each connection
|
||||
- on linux direct io operations (?)
|
||||
@@ -22,23 +38,38 @@
|
||||
*/
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "2.5.2.26539-0";
|
||||
version = "2.5.2.26540-0";
|
||||
name = "firebird-${version}";
|
||||
|
||||
# enableParallelBuilding = false; build fails
|
||||
|
||||
# http://tracker.firebirdsql.org/browse/CORE-3246
|
||||
preConfigure = ''
|
||||
makeFlags="$makeFlags CPU=$NIX_BUILD_CORES"
|
||||
'';
|
||||
|
||||
configureFlags =
|
||||
[ "--with-serivec-port=${builtins.toString port}"
|
||||
"--with-service-name=${serviceName}"
|
||||
# "--with-system-icu"
|
||||
# "--with-system-editline"
|
||||
# "--disable-static"
|
||||
"--with-system-editline"
|
||||
"--with-fblog=/var/log/firebird"
|
||||
"--with-fbconf=/etc/firebird"
|
||||
"--with-fbsecure-db=/var/db/firebird/system"
|
||||
]
|
||||
++ (stdenv.lib.optional superServer "--enable-superserver=true");
|
||||
++ (stdenv.lib.optional (icu != null) "--with-system-icu")
|
||||
++ (stdenv.lib.optional superServer "--enable-superserver");
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/firebird/Firebird-${version}.tar.bz2";
|
||||
sha256 = "1j5bcfl35hr6i4lcd08zls19bal2js3ar16gnwkzbhwxkxbyb43b";
|
||||
sha256 = "0887a813wffp44hnc2gmwbc4ylpqw3fh3hz3bf6q3648344a9fdv";
|
||||
};
|
||||
|
||||
buildInputs = [libedit icu];
|
||||
# configurePhase = ''
|
||||
# sed -i 's@cp /usr/share/automake-.*@@' autogen.sh
|
||||
# sh autogen.sh $configureFlags --prefix=$out
|
||||
# '';
|
||||
buildInputs = [libedit icu automake autoconf libtool];
|
||||
|
||||
# TODO: Probably this hase to be tidied up..
|
||||
# make install requires beeing. disabling the root checks
|
||||
|
||||
@@ -68,8 +68,13 @@ stdenv.mkDerivation rec {
|
||||
ln -sv ../../../bin/smbspool $out/lib/cups/backend/smb
|
||||
mkdir -pv $out/etc/openldap/schema
|
||||
cp ../examples/LDAP/samba.schema $out/etc/openldap/schema
|
||||
|
||||
# For nsswitch. Glibc >= 2.1 looks for libnss_<name>.so.2 (see man
|
||||
# nsswitch.conf), so provide that too.
|
||||
cp -v ../nsswitch/libnss_wins.so "$out/lib"
|
||||
cp -v ../nsswitch/libnss_winbind.so "$out/lib"
|
||||
(cd "$out/lib" && ln -s libnss_winbind.so libnss_winbind.so.2)
|
||||
(cd "$out/lib" && ln -s libnss_wins.so libnss_wins.so.2)
|
||||
'' # */
|
||||
+ stdenv.lib.optionalString (configDir == "") "touch $out/lib/smb.conf";
|
||||
|
||||
|
||||
@@ -1,17 +1,30 @@
|
||||
{ stdenv, fetchurl }:
|
||||
{ stdenv, fetchurl, makeWrapper, jre, utillinux }:
|
||||
stdenv.mkDerivation rec {
|
||||
name = "elasticsearch-0.20.5";
|
||||
name = "elasticsearch-0.90.3";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://download.elasticsearch.org/elasticsearch/elasticsearch/${name}.tar.gz";
|
||||
sha256 = "0r0h9znyflajps1k8hl9naixhg1gqmhz7glc009pzzv94ncdzrq1";
|
||||
sha256 = "1l6rnp4yvlz4z6z4v3af08yd4sl91c4zz20a8yyif2p234lh3n2s";
|
||||
};
|
||||
|
||||
patches = [ ./es-home.patch ];
|
||||
|
||||
buildInputs = [ makeWrapper jre utillinux ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
cp -R bin config lib $out
|
||||
|
||||
# don't want to have binary with name plugin
|
||||
mv $out/bin/plugin $out/bin/elasticsearch-plugin
|
||||
|
||||
# set ES_CLASSPATH and JAVA_HOME
|
||||
wrapProgram $out/bin/elasticsearch \
|
||||
--prefix ES_CLASSPATH : "$out/lib/${name}.jar":"$out/lib/*":"$out/lib/sigar/*" \
|
||||
--prefix PATH : "${utillinux}/bin/" \
|
||||
--set JAVA_HOME "${jre}"
|
||||
wrapProgram $out/bin/elasticsearch-plugin \
|
||||
--prefix ES_CLASSPATH : "$out/lib/${name}.jar":"$out/lib/*":"$out/lib/sigar/*" --set JAVA_HOME "${jre}"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
diff -rc elasticsearch-0.20.5/bin/elasticsearch elasticsearch-0.20.5-new/bin/elasticsearch
|
||||
*** elasticsearch-0.20.5/bin/elasticsearch 2013-03-07 12:16:31.152494626 +0100
|
||||
--- elasticsearch-0.20.5-new/bin/elasticsearch 2013-03-07 12:24:41.076081272 +0100
|
||||
diff -rc elasticsearch-0.90.3/bin/elasticsearch elasticsearch-0.90.3-new/bin/elasticsearch
|
||||
*** elasticsearch-0.90.3/bin/elasticsearch 2013-08-06 15:19:22.000000000 +0200
|
||||
--- elasticsearch-0.90.3-new/bin/elasticsearch 2013-08-27 16:42:00.935880011 +0200
|
||||
***************
|
||||
*** 62,68 ****
|
||||
done
|
||||
@@ -10,11 +10,50 @@ diff -rc elasticsearch-0.20.5/bin/elasticsearch elasticsearch-0.20.5-new/bin/ela
|
||||
|
||||
# make ELASTICSEARCH_HOME absolute
|
||||
ES_HOME=`cd "$ES_HOME"; pwd`
|
||||
--- 62,68 ----
|
||||
--- 62,71 ----
|
||||
done
|
||||
|
||||
# determine elasticsearch home
|
||||
! ES_HOME=${ES_HOME:=`dirname "$SCRIPT"`/..}
|
||||
! if [ -z "$ES_HOME" ]; then
|
||||
! echo "You must set the ES_HOME var" >&2
|
||||
! exit 1
|
||||
! fi
|
||||
|
||||
# make ELASTICSEARCH_HOME absolute
|
||||
ES_HOME=`cd "$ES_HOME"; pwd`
|
||||
diff -rc elasticsearch-0.90.3/bin/plugin elasticsearch-0.90.3-new/bin/plugin
|
||||
*** elasticsearch-0.90.3/bin/plugin 2013-08-06 15:19:22.000000000 +0200
|
||||
--- elasticsearch-0.90.3-new/bin/plugin 2013-08-27 16:49:01.024160295 +0200
|
||||
***************
|
||||
*** 16,22 ****
|
||||
done
|
||||
|
||||
# determine elasticsearch home
|
||||
! ES_HOME=`dirname "$SCRIPT"`/..
|
||||
|
||||
# make ELASTICSEARCH_HOME absolute
|
||||
ES_HOME=`cd "$ES_HOME"; pwd`
|
||||
--- 16,25 ----
|
||||
done
|
||||
|
||||
# determine elasticsearch home
|
||||
! if [ -z "$ES_HOME" ]; then
|
||||
! echo "You must set the ES_HOME var" >&2
|
||||
! exit 1
|
||||
! fi
|
||||
|
||||
# make ELASTICSEARCH_HOME absolute
|
||||
ES_HOME=`cd "$ES_HOME"; pwd`
|
||||
***************
|
||||
*** 46,50 ****
|
||||
shift
|
||||
done
|
||||
|
||||
! exec $JAVA $JAVA_OPTS -Xmx64m -Xms16m -Delasticsearch -Des.path.home="$ES_HOME" $properties -cp "$ES_HOME/lib/*" org.elasticsearch.plugins.PluginManager $args
|
||||
|
||||
--- 49,53 ----
|
||||
shift
|
||||
done
|
||||
|
||||
! exec $JAVA $JAVA_OPTS -Xmx64m -Xms16m -Delasticsearch -Des.path.home="$ES_HOME" $properties -cp "$ES_CLASSPATH/lib/*" org.elasticsearch.plugins.PluginManager $args
|
||||
|
||||
|
||||
Reference in New Issue
Block a user