1 |
commit: dd04db00bddf9bbf27b568c5f5a3b45c280f1d12 |
2 |
Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Mar 8 22:59:46 2017 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Mar 8 23:10:30 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd04db00 |
7 |
|
8 |
app-admin/watchfolder: EAPI 6 bump. |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
app-admin/watchfolder/files/0.3.3-64bit.patch | 4 +- |
13 |
.../watchfolder/files/0.3.3-fortify-sources.patch | 4 +- |
14 |
app-admin/watchfolder/watchfolder-0.3.3-r1.ebuild | 43 ++++++++++++++++++++++ |
15 |
3 files changed, 47 insertions(+), 4 deletions(-) |
16 |
|
17 |
diff --git a/app-admin/watchfolder/files/0.3.3-64bit.patch b/app-admin/watchfolder/files/0.3.3-64bit.patch |
18 |
index ea78be4fe29..070e9c019d2 100644 |
19 |
--- a/app-admin/watchfolder/files/0.3.3-64bit.patch |
20 |
+++ b/app-admin/watchfolder/files/0.3.3-64bit.patch |
21 |
@@ -1,5 +1,5 @@ |
22 |
---- watchd-0.3.3/watchd.c.orig 2006-02-23 12:33:32.000000000 -0500 |
23 |
-+++ watchd-0.3.3/watchd.c 2006-02-23 12:45:30.000000000 -0500 |
24 |
+--- a/watchd.c 2006-02-23 12:33:32.000000000 -0500 |
25 |
++++ b/watchd.c 2006-02-23 12:45:30.000000000 -0500 |
26 |
@@ -176,7 +176,7 @@ |
27 |
// free(p2tmp); |
28 |
|
29 |
|
30 |
diff --git a/app-admin/watchfolder/files/0.3.3-fortify-sources.patch b/app-admin/watchfolder/files/0.3.3-fortify-sources.patch |
31 |
index c9e47038612..175e8ed29ec 100644 |
32 |
--- a/app-admin/watchfolder/files/0.3.3-fortify-sources.patch |
33 |
+++ b/app-admin/watchfolder/files/0.3.3-fortify-sources.patch |
34 |
@@ -1,5 +1,5 @@ |
35 |
---- watchd.c 2009-02-27 23:46:42.000000000 +0000 |
36 |
-+++ watchd.c 2009-02-27 23:50:22.000000000 +0000 |
37 |
+--- a/watchd.c 2009-02-27 23:46:42.000000000 +0000 |
38 |
++++ b/watchd.c 2009-02-27 23:50:22.000000000 +0000 |
39 |
@@ -671,7 +671,7 @@ |
40 |
{ |
41 |
if (folder->flags&FL_LOG_FILE) |
42 |
|
43 |
diff --git a/app-admin/watchfolder/watchfolder-0.3.3-r1.ebuild b/app-admin/watchfolder/watchfolder-0.3.3-r1.ebuild |
44 |
new file mode 100644 |
45 |
index 00000000000..6d61b35109f |
46 |
--- /dev/null |
47 |
+++ b/app-admin/watchfolder/watchfolder-0.3.3-r1.ebuild |
48 |
@@ -0,0 +1,43 @@ |
49 |
+# Copyright 1999-2017 Gentoo Foundation |
50 |
+# Distributed under the terms of the GNU General Public License v2 |
51 |
+ |
52 |
+EAPI=6 |
53 |
+ |
54 |
+inherit eutils toolchain-funcs |
55 |
+ |
56 |
+DESCRIPTION="watches directories and processes files" |
57 |
+HOMEPAGE="http://freshmeat.net/projects/watchd/" |
58 |
+SRC_URI="http://dstunrea.sdf-eu.org/files/${P}.tar.gz" |
59 |
+ |
60 |
+LICENSE="GPL-2" |
61 |
+SLOT="0" |
62 |
+KEYWORDS="~alpha ~amd64 ~ppc ~x86" |
63 |
+ |
64 |
+S="${WORKDIR}/${P/folder/d}" |
65 |
+ |
66 |
+PATCHES=( |
67 |
+ # patch to remove warnings on 64 bit systems |
68 |
+ "${FILESDIR}"/${PV}-64bit.patch |
69 |
+ # and a gcc 4.3.3 / fortify_sources fix |
70 |
+ "${FILESDIR}"/${PV}-fortify-sources.patch |
71 |
+) |
72 |
+ |
73 |
+src_prepare() { |
74 |
+ default |
75 |
+ sed -i \ |
76 |
+ -e '/-c -o/s:OPT:CFLAGS:' \ |
77 |
+ -e 's:(\(LD\)\?OPT):(LDFLAGS) $(CFLAGS):' \ |
78 |
+ -e 's:gcc:$(CC):' \ |
79 |
+ Makefile || die "sed Makefile failed" |
80 |
+} |
81 |
+ |
82 |
+src_compile() { |
83 |
+ emake CC="$(tc-getCC)" |
84 |
+} |
85 |
+ |
86 |
+src_install() { |
87 |
+ dobin watchd |
88 |
+ insinto /etc |
89 |
+ doins watchd.conf |
90 |
+ dodoc README doc/* |
91 |
+} |