summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Olexa <darkside@gentoo.org>2011-07-26 15:41:16 +0000
committerJeremy Olexa <darkside@gentoo.org>2011-07-26 15:41:16 +0000
commit92fc7807f16ee0818fd5781c89c0137011840c94 (patch)
tree0cad4eb2cc79d9e45eb9b8e1b02b08b13a9559bb /app-admin/lsyncd
parentAdded PSF-2 to GPL and OSI approved (diff)
downloadgentoo-2-92fc7807f16ee0818fd5781c89c0137011840c94.tar.gz
gentoo-2-92fc7807f16ee0818fd5781c89c0137011840c94.tar.bz2
gentoo-2-92fc7807f16ee0818fd5781c89c0137011840c94.zip
Revision bump to fix EAPI value and add upstream'd patch for docdir/examples. Directly to stable due to only docs file location changing.
(Portage version: 2.1.10.4/cvs/Linux i686, RepoMan options: --force)
Diffstat (limited to 'app-admin/lsyncd')
-rw-r--r--app-admin/lsyncd/ChangeLog9
-rw-r--r--app-admin/lsyncd/files/lsyncd-2.0.4-examplesdir.patch68
-rw-r--r--app-admin/lsyncd/lsyncd-2.0.4-r1.ebuild (renamed from app-admin/lsyncd/lsyncd-2.0.4.ebuild)16
3 files changed, 88 insertions, 5 deletions
diff --git a/app-admin/lsyncd/ChangeLog b/app-admin/lsyncd/ChangeLog
index 79e29340c8fa..56c3e0adcca8 100644
--- a/app-admin/lsyncd/ChangeLog
+++ b/app-admin/lsyncd/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for app-admin/lsyncd
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/lsyncd/ChangeLog,v 1.16 2011/07/26 15:09:26 darkside Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/lsyncd/ChangeLog,v 1.17 2011/07/26 15:41:16 darkside Exp $
+
+*lsyncd-2.0.4-r1 (26 Jul 2011)
+
+ 26 Jul 2011; Jeremy Olexa <darkside@gentoo.org> -lsyncd-2.0.4.ebuild,
+ +lsyncd-2.0.4-r1.ebuild, +files/lsyncd-2.0.4-examplesdir.patch:
+ Revision bump to fix EAPI value and add upstream'd patch for docdir/examples.
+ Directly to stable due to only docs file location changing.
26 Jul 2011; Jeremy Olexa <darkside@gentoo.org> -lsyncd-2.0.3.ebuild:
remove old version
diff --git a/app-admin/lsyncd/files/lsyncd-2.0.4-examplesdir.patch b/app-admin/lsyncd/files/lsyncd-2.0.4-examplesdir.patch
new file mode 100644
index 000000000000..69a40cf2822f
--- /dev/null
+++ b/app-admin/lsyncd/files/lsyncd-2.0.4-examplesdir.patch
@@ -0,0 +1,68 @@
+From 1e5d8178d56742e5a4a418f56c3a76f84a9fa2eb Mon Sep 17 00:00:00 2001
+From: axkibe <axkibe@400ab1ff-c753-0410-929a-795a28144dcc>
+Date: Tue, 19 Jul 2011 13:29:19 +0000
+Subject: [PATCH] some header changes to work with older systems. expose readdir to user scripts. write examples into doc dir
+
+git-svn-id: http://lsyncd.googlecode.com/svn/trunk@574 400ab1ff-c753-0410-929a-795a28144dcc
+---
+ Makefile.am | 2 +-
+ lsyncd.c | 1 +
+ lsyncd.h | 4 ++++
+ lsyncd.lua | 1 +
+ 4 files changed, 7 insertions(+), 1 deletions(-)
+
+diff --git a/Makefile.am b/Makefile.am
+index 77bfe12..025a6ed 100644
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -11,7 +11,7 @@ endif
+ #endif
+
+ lsyncd_LDADD = $(LUA_LIBS)
+-exampledir = $(datarootdir)/doc/@PACKAGE@
++exampledir = $(docdir)/
+ dist_example_DATA = \
+ examples/lbash.lua \
+ examples/lecho.lua \
+diff --git a/lsyncd.c b/lsyncd.c
+index 5132804..a591eb2 100644
+--- a/lsyncd.c
++++ b/lsyncd.c
+@@ -30,6 +30,7 @@
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <string.h>
++#include <strings.h>
+ #include <syslog.h>
+ #include <math.h>
+ #include <time.h>
+diff --git a/lsyncd.h b/lsyncd.h
+index 841a1a8..a9ab31c 100644
+--- a/lsyncd.h
++++ b/lsyncd.h
+@@ -11,6 +11,10 @@
+ #ifndef LSYNCD_H
+ #define LSYNCD_H
+
++/* some older machines need this to see pselect */
++#define _BSD_SOURCE 1
++#define _XOPEN_SOURCE 600
++
+ /* includes needed for headerfile */
+ #include "config.h"
+
+diff --git a/lsyncd.lua b/lsyncd.lua
+index b28a743..b1cc586 100644
+--- a/lsyncd.lua
++++ b/lsyncd.lua
+@@ -38,6 +38,7 @@ _l = nil
+ log = lsyncd.log
+ terminate = lsyncd.terminate
+ now = lsyncd.now
++readdir = lsyncd.readdir
+ -- just to safe from userscripts changing this.
+ local log = log
+ local terminate = terminate
+--
+1.7.3.4
+
diff --git a/app-admin/lsyncd/lsyncd-2.0.4.ebuild b/app-admin/lsyncd/lsyncd-2.0.4-r1.ebuild
index e5df8cffcb3f..a9bf414ddd88 100644
--- a/app-admin/lsyncd/lsyncd-2.0.4.ebuild
+++ b/app-admin/lsyncd/lsyncd-2.0.4-r1.ebuild
@@ -1,10 +1,10 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/lsyncd/lsyncd-2.0.4.ebuild,v 1.3 2011/06/02 13:29:03 maekke Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/lsyncd/lsyncd-2.0.4-r1.ebuild,v 1.1 2011/07/26 15:41:16 darkside Exp $
-EAPI=2
+EAPI=3
-inherit base
+inherit base autotools
DESCRIPTION="Live Syncing (Mirror) Daemon"
HOMEPAGE="http://code.google.com/p/lsyncd/"
@@ -19,6 +19,14 @@ DEPEND="dev-lang/lua"
RDEPEND="${DEPEND}
net-misc/rsync"
+PATCHES=( "${FILESDIR}/${P}-examplesdir.patch" )
+
+src_prepare() {
+ base_src_prepare
+ eautoreconf
+}
src_configure() {
- econf --with-runner="${EPREFIX}/usr/$(get_libdir)/${PN}"
+ econf \
+ --with-runner="${EPREFIX}/usr/$(get_libdir)/${PN}" \
+ --docdir=/usr/share/doc/${P}
}