Gentoo Archives: gentoo-commits

From: "Jeremy Olexa (darkside)" <darkside@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-admin/lsyncd/files: lsyncd-2.0.4-examplesdir.patch
Date: Tue, 26 Jul 2011 16:02:35
Message-Id: 20110726154116.8AA482004B@flycatcher.gentoo.org
1 darkside 11/07/26 15:41:16
2
3 Added: lsyncd-2.0.4-examplesdir.patch
4 Log:
5 Revision bump to fix EAPI value and add upstream'd patch for docdir/examples. Directly to stable due to only docs file location changing.
6
7 (Portage version: 2.1.10.4/cvs/Linux i686, RepoMan options: --force)
8
9 Revision Changes Path
10 1.1 app-admin/lsyncd/files/lsyncd-2.0.4-examplesdir.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/lsyncd/files/lsyncd-2.0.4-examplesdir.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/lsyncd/files/lsyncd-2.0.4-examplesdir.patch?rev=1.1&content-type=text/plain
14
15 Index: lsyncd-2.0.4-examplesdir.patch
16 ===================================================================
17 From 1e5d8178d56742e5a4a418f56c3a76f84a9fa2eb Mon Sep 17 00:00:00 2001
18 From: axkibe <axkibe@400ab1ff-c753-0410-929a-795a28144dcc>
19 Date: Tue, 19 Jul 2011 13:29:19 +0000
20 Subject: [PATCH] some header changes to work with older systems. expose readdir to user scripts. write examples into doc dir
21
22 git-svn-id: http://lsyncd.googlecode.com/svn/trunk@574 400ab1ff-c753-0410-929a-795a28144dcc
23 ---
24 Makefile.am | 2 +-
25 lsyncd.c | 1 +
26 lsyncd.h | 4 ++++
27 lsyncd.lua | 1 +
28 4 files changed, 7 insertions(+), 1 deletions(-)
29
30 diff --git a/Makefile.am b/Makefile.am
31 index 77bfe12..025a6ed 100644
32 --- a/Makefile.am
33 +++ b/Makefile.am
34 @@ -11,7 +11,7 @@ endif
35 #endif
36
37 lsyncd_LDADD = $(LUA_LIBS)
38 -exampledir = $(datarootdir)/doc/@PACKAGE@
39 +exampledir = $(docdir)/
40 dist_example_DATA = \
41 examples/lbash.lua \
42 examples/lecho.lua \
43 diff --git a/lsyncd.c b/lsyncd.c
44 index 5132804..a591eb2 100644
45 --- a/lsyncd.c
46 +++ b/lsyncd.c
47 @@ -30,6 +30,7 @@
48 #include <stdlib.h>
49 #include <stdio.h>
50 #include <string.h>
51 +#include <strings.h>
52 #include <syslog.h>
53 #include <math.h>
54 #include <time.h>
55 diff --git a/lsyncd.h b/lsyncd.h
56 index 841a1a8..a9ab31c 100644
57 --- a/lsyncd.h
58 +++ b/lsyncd.h
59 @@ -11,6 +11,10 @@
60 #ifndef LSYNCD_H
61 #define LSYNCD_H
62
63 +/* some older machines need this to see pselect */
64 +#define _BSD_SOURCE 1
65 +#define _XOPEN_SOURCE 600
66 +
67 /* includes needed for headerfile */
68 #include "config.h"
69
70 diff --git a/lsyncd.lua b/lsyncd.lua
71 index b28a743..b1cc586 100644
72 --- a/lsyncd.lua
73 +++ b/lsyncd.lua
74 @@ -38,6 +38,7 @@ _l = nil
75 log = lsyncd.log
76 terminate = lsyncd.terminate
77 now = lsyncd.now
78 +readdir = lsyncd.readdir
79 -- just to safe from userscripts changing this.
80 local log = log
81 local terminate = terminate
82 --
83 1.7.3.4