lsyncd: init at 2.1.5

This commit is contained in:
Bob van der Linden 2015-09-21 15:55:17 +02:00
parent 1e5415dbc5
commit edd64c1d99
3 changed files with 62 additions and 0 deletions

View file

@ -0,0 +1,18 @@
diff -aur lsyncd-release-2.1.5.orig/configure.ac lsyncd-release-2.1.5/configure.ac
--- lsyncd-release-2.1.5.orig/configure.ac 2013-06-07 18:24:02.000000000 +0600
+++ lsyncd-release-2.1.5/configure.ac 2014-03-04 13:24:15.390350812 +0600
@@ -15,10 +15,10 @@
AC_PROG_INSTALL
AC_PROG_MAKE_SET
-#AC_PATH_PROG([A2X], [a2x], [no])
-#if test x${A2X} = xno ; then
-# AC_MSG_ERROR([Program 'a2x' (package asciidoc) is required])
-#fi
+AC_PATH_PROG([A2X], [a2x], [no])
+if test x${A2X} = xno ; then
+ AC_MSG_ERROR([Program 'a2x' (package asciidoc) is required])
+fi
###
# Checks for Lua

View file

@ -0,0 +1,40 @@
{ stdenv, fetchFromGitHub, automake, autoconf, lua, pkgconfig, rsync,
asciidoc, libxml2, docbook_xml_dtd_45, docbook_xml_xslt, libxslt }:
stdenv.mkDerivation rec {
name = "lsyncd-${version}";
version = "2.1.5";
src = fetchFromGitHub {
owner = "axkibe";
repo = "lsyncd";
rev = "release-${version}";
sha256 = "0jvr2rv34jyjrv7188vdv1z8vgvm4wydqwsp9x5ksfzh9drbq5gn";
};
patches = [ ./configure-a2x-fix.patch ];
preConfigurePhase = ''
substituteInPlace default-rsync.lua \
--replace "binary = '/usr/bin/rsync'," "binary = '${rsync}/bin/rsync',"
'';
configurePhase = ''
./autogen.sh --prefix=$out
./configure --prefix=$out
'';
buildInputs = [
rsync
automake autoconf lua pkgconfig
asciidoc libxml2 docbook_xml_dtd_45 docbook_xml_xslt libxslt
];
meta = with stdenv.lib; {
homepage = https://github.com/axkibe/lsyncd;
description = "A utility that synchronizes local directories with remote targets";
license = licenses.gpl2;
platforms = platforms.unix;
maintainers = with maintainers; [ bobvanderlinden ];
};
}

View file

@ -2003,6 +2003,10 @@ let
lsdvd = callPackage ../tools/cd-dvd/lsdvd {};
lsyncd = callPackage ../applications/networking/sync/lsyncd {
lua = lua5_2_compat;
};
kippo = callPackage ../servers/kippo { };
klavaro = callPackage ../games/klavaro {};