Gentoo Archives: gentoo-commits

From: "Benedikt Boehm (hollow)" <hollow@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sys-process/incron/files: incron-0.5.8-gentoo.patch
Date: Tue, 24 Mar 2009 09:10:11
Message-Id: E1Lm2e8-00079h-Qo@stork.gentoo.org
1 hollow 09/03/24 09:10:08
2
3 Added: incron-0.5.8-gentoo.patch
4 Log:
5 version bump wrt #259920
6 (Portage version: 2.2_rc25/cvs/Linux i686)
7
8 Revision Changes Path
9 1.1 sys-process/incron/files/incron-0.5.8-gentoo.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-process/incron/files/incron-0.5.8-gentoo.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-process/incron/files/incron-0.5.8-gentoo.patch?rev=1.1&content-type=text/plain
13
14 Index: incron-0.5.8-gentoo.patch
15 ===================================================================
16 Index: incron-0.5.7/Makefile
17 ===================================================================
18 --- incron-0.5.7.orig/Makefile
19 +++ incron-0.5.7/Makefile
20 @@ -1,15 +1,16 @@
21
22 -PREFIX = /usr/local
23 -USERDATADIR = /var/spool/incron
24 -SYSDATADIR = /etc/incron.d
25 -CFGDIR = /etc
26 -MANPATH = /usr/share/man
27 +PREFIX = $(DESTDIR)usr
28 +USERDATADIR = $(DESTDIR)var/spool/incron
29 +SYSDATADIR = $(DESTDIR)etc/incron.d
30 +CFGDIR = $(DESTDIR)etc
31 +MANPATH = $(DESTDIR)usr/share/man
32 +INITDIR = $(DESTDIR)etc/init.d
33 RELEASE = incron-`cat VERSION`
34 RELEASEDIR = /tmp/$(RELEASE)
35
36 USER = root
37
38 -CXX = g++
39 +CXX := g++
40 INSTALL = install
41
42 OPTIMIZE = -O2
43 @@ -17,8 +18,8 @@ DEBUG = -g0
44 WARNINGS = -Wall
45 CXXAUX = -pipe
46
47 -CXXFLAGS = $(OPTIMIZE) $(DEBUG) $(WARNINGS) $(CXXAUX)
48 -LDFLAGS = $(WARNINGS)
49 +CXXFLAGS := $(OPTIMIZE) $(DEBUG) $(WARNINGS) $(CXXAUX)
50 +LDFLAGS += $(WARNINGS)
51
52 PROGRAMS = incrond incrontab
53
54 @@ -45,11 +46,15 @@ distclean: clean
55
56 install: all install-man
57 [ -d $(PREFIX) ]
58 + $(INSTALL) -m 0755 -d $(PREFIX)/bin
59 + $(INSTALL) -m 0755 -d $(PREFIX)/sbin
60 + $(INSTALL) -m 0755 -d $(INITDIR)/
61 $(INSTALL) -m 04755 -o $(USER) incrontab $(PREFIX)/bin/
62 $(INSTALL) -m 0755 incrond $(PREFIX)/sbin/
63 $(INSTALL) -m 0755 -o $(USER) -d $(USERDATADIR)
64 $(INSTALL) -m 0755 -o $(USER) -d $(SYSDATADIR)
65 - $(INSTALL) -m 0644 -o $(USER) incron.conf.example $(CFGDIR)
66 + $(INSTALL) -m 0644 -o $(USER) incron.conf $(CFGDIR)
67 + $(INSTALL) -m 0755 incrond-init.d $(INITDIR)/incrond
68
69 install-man: incrontab.1 incrontab.5 incrond.8 incron.conf.5
70 $(INSTALL) -m 0755 -d $(MANPATH)/man1
71 Index: incron-0.5.7/incrond-init.d
72 ===================================================================
73 --- /dev/null
74 +++ incron-0.5.7/incrond-init.d
75 @@ -0,0 +1,21 @@
76 +#!/sbin/runscript
77 +# Copyright 1999-2007 Gentoo Foundation
78 +# Distributed under the terms of the GNU General Public License v2
79 +# $Header: /var/cvsroot/gentoo-x86/sys-process/incron/files/incron-0.5.8-gentoo.patch,v 1.1 2009/03/24 09:10:08 hollow Exp $
80 +
81 +depend() {
82 + use clock logger
83 + need localmount
84 +}
85 +
86 +start() {
87 + ebegin "Starting incrond"
88 + start-stop-daemon --start --quiet --exec /usr/sbin/incrond -- -f /etc/incron.conf
89 + eend $?
90 +}
91 +
92 +stop() {
93 + ebegin "Stopping incrond"
94 + start-stop-daemon --stop --quiet --pidfile /var/run/incrond.pid
95 + eend $?
96 +}
97 Index: incron-0.5.7/incron.conf
98 ===================================================================
99 --- /dev/null
100 +++ incron-0.5.7/incron.conf
101 @@ -0,0 +1,56 @@
102 +#
103 +# *** incron example configuration file ***
104 +#
105 +# (c) Lukas Jelinek, 2007
106 +#
107 +
108 +# Parameter: system_table_dir
109 +# Meaning: system table directory
110 +# Description: This directory is examined by incrond for system table files.
111 +# Default: /etc/incron.d
112 +system_table_dir = /etc/incron.d
113 +
114 +
115 +# Parameter: user_table_dir
116 +# Meaning: user table directory
117 +# Description: This directory is examined by incrond for user table files.
118 +# Default: /var/spool/incron
119 +user_table_dir = /var/spool/incron
120 +
121 +
122 +# Parameter: allowed_users
123 +# Meaning: allowed users list file
124 +# Description: This file contains users allowed to use incron.
125 +# Default: /etc/incron.allow
126 +allowed_users = /etc/incron.allow
127 +
128 +
129 +# Parameter: denied_users
130 +# Meaning: denied users list file
131 +# Description: This file contains users denied to use incron.
132 +# Default: /etc/incron.deny
133 +denied_users = /etc/incron.deny
134 +
135 +
136 +# Parameter: lockfile_dir
137 +# Meaning: application lock file directory
138 +# Description: This directory is used for creating a lock avoiding to run
139 +# multiple instances of incrond.
140 +# Default: /var/run
141 +lockfile_dir = /var/run
142 +
143 +
144 +# Parameter: lockfile_name
145 +# Meaning: application lock file name base
146 +# Description: This name (appended by '.pid') is used for creating a lock
147 +# avoiding to run multiple instances of incrond.
148 +# Default: incrond
149 +lockfile_name = incrond
150 +
151 +
152 +# Parameter: editor
153 +# Meaning: editor executable
154 +# Description: This name or path is used to run as an editor for editting
155 +# user tables.
156 +# Default: vim
157 +editor = nano