/[smeserver]/rpms/e-smith-nutUPS/sme9/e-smith-nutUPS.spec
ViewVC logotype

Annotation of /rpms/e-smith-nutUPS/sme9/e-smith-nutUPS.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.4 - (hide annotations) (download)
Thu Jan 22 10:29:09 2015 UTC (9 years, 9 months ago) by stephdl
Branch: MAIN
CVS Tags: e-smith-nutUPS-2_4_0-3_el6_sme
Changes since 1.3: +3 -2 lines
* Thu Jan 22 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 2.4.0-3.sme
- Remove obsolete directives {ACL,ACCEPT,REJECT} and switch to LISTEN
- in /etc/ups/upsd.conf
- Allow NUT in /etc/hosts.allow and in /etc/services [SME: 8793]
- Code change from  Daniel B.<daniel@firewall-services.com>

1 stephdl 1.4 # $Id: e-smith-nutUPS.spec,v 1.3 2015/01/22 09:02:44 stephdl Exp $
2 slords 1.1
3     Summary: SME server - nut UPS interaction module
4     %define name e-smith-nutUPS
5     Name: %{name}
6     %define version 2.4.0
7 stephdl 1.3 %define release 3
8 slords 1.1 Version: %{version}
9     Release: %{release}%{?dist}
10     License: GPL
11     Group: Networking/Daemons
12     Source: %{name}-%{version}.tar.xz
13     BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
14     Requires: nut nut-client daemontools
15 slords 1.2 Obsoletes: neon <= 0.25.5
16 slords 1.1 Requires: e-smith-lib >= 1.15.1-16
17     BuildArchitectures: noarch
18     BuildRequires: e-smith-devtools
19 stephdl 1.3 Patch0 : e-smith-nutUPS-2.4.0.Listen_Local_Network.patch
20 slords 1.1 AutoReqProv: no
21    
22     %description
23     A module which configures the Network UPS Tools suite for operation with
24     the SME server software.
25    
26     %changelog
27 stephdl 1.3 * Thu Jan 22 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 2.4.0-3.sme
28     - Remove obsolete directives {ACL,ACCEPT,REJECT} and switch to LISTEN
29     - in /etc/ups/upsd.conf
30 stephdl 1.4 - Allow NUT in /etc/hosts.allow and in /etc/services [SME: 8793]
31     - Code change from Daniel B.<daniel@firewall-services.com>
32 stephdl 1.3
33 slords 1.2 * Thu Jan 31 2013 Shad L. Lords <slords@mail.com> 2.4.0-2.sme
34     - Obsolete el5 packages that used to be required [SME: 7273]
35    
36 slords 1.1 * Thu Jan 31 2013 Shad L. Lords <slords@mail.com> 2.4.0-1.sme
37     - Roll new stream for sme9
38    
39     * Sun May 17 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 2.2.0-2.sme
40     - Fix another instance of ups model for new version of nut [SME: 4750]
41    
42     * Tue Oct 7 2008 Shad L. Lords <slords@mail.com> 2.2.0-1.sme
43     - Roll new stream to separate sme7/sme8 trees [SME: 4633]
44    
45     * Tue Jan 08 2008 Stephen Noble <support@dungog.net> 1.2.0-17
46     - Start rc7.d/S38nut up from S15 [SME: 3592]
47    
48     * Fri Nov 30 2007 Gavin Weight <gweight@gmail.com> 1.2.0-16
49     - Fix use of uninitialized value in nutModel migrate. [SME: 3597]
50    
51     * Sun Oct 7 2007 Shad L. Lords <slords@mail.com> 1.2.0-15
52     - Fix ups model for new version of nut [SME: 3457]
53    
54     * Sun Jun 3 2007 Stephen Noble <support@dungog.net> 1.2.0-14
55     - Fix mfr & mdl options in ups.conf [SME: 2791]
56    
57     * Fri Jun 1 2007 Stephen Noble <support@dungog.net> 1.2.0-13
58     - Add mfr & mdl options to ups.conf [SME: 2791]
59    
60     * Fri Jun 1 2007 Stephen Noble <support@dungog.net> 1.2.0-12
61     - Only use Type if model=genericups & type is defined [SME: 2748]
62    
63     * Sun Apr 29 2007 Shad L. Lords <slords@mail.com>
64     - Clean up spec so package can be built by koji/plague
65    
66     * Tue Apr 10 2007 Stephen Noble <support@dungog.net> 1.2.0-10
67     - Only use Type if model=genericups [SME: 2748]
68    
69     * Fri Apr 06 2007 Shad L. Lords <slords@mail.com> 1.2.0-9
70     - Fix perms on config files [SME: 2712]
71    
72     * Fri Jan 19 2007 Shad L. Lords <slords@mail.com> 1.2.0-8
73     - Don't expand upsd.conf in post-{install,upgrade}
74    
75     * Thu Jan 18 2007 Shad L. Lords <slords@mail.com> 1.2.0-7
76     - Fix password generation and simplify [SME: 2323]
77    
78     * Sat Jan 13 2007 Shad L. Lords <slords@mail.com> 1.2.0-6
79     - Add upstype option to ups.conf [SME: 2286]
80    
81     * Thu Jan 04 2007 Shad L. Lords <slords@mail.com> 1.2.0-5
82     - Actually call the notify script on ups events. [SME: 1722]
83     - Allow nut to be a client to another master server. [SME: 2231]
84    
85     * Thu Dec 21 2006 Shad L. Lords <slords@mail.com> 1.2.0-4
86     - Make password secure for ups users
87     - Allow local network to monitor ups as slaves
88     - Make localhost master for ups
89     - Make startup/shutdown scripts use upsdrvctl so poweroff works
90    
91     * Thu Dec 07 2006 Shad L. Lords <slords@mail.com>
92     - Update to new release naming. No functional changes.
93     - Make Packager generic
94    
95     * Sun May 28 2006 Charlie Brady <charlie_brady@mitel.com> 1.2.0-02
96     - Fix perms on upsd.conf [SME: 1473]
97    
98     * Wed Mar 15 2006 Charlie Brady <charlie_brady@mitel.com> 1.2.0-01
99     - Roll stable stream version. [SME: 1016]
100    
101     * Thu Feb 2 2006 Gordon Rowell <gordonr@gormand.com.au> 1.1.0-10
102     - Added db default to match last change [SME: 26]
103    
104     * Thu Feb 2 2006 Charlie Brady <charlie_brady@mitel.com> 1.1.0-09
105     - Change default model from hidups to newhidups. [SME: 26]
106    
107     * Wed Feb 01 2006 Charlie Brady <charlie_brady@mitel.com> 1.1.0-08
108     - Ensure that device node has correct ownership. [SME: 619]
109    
110     * Wed Nov 30 2005 Gordon Rowell <gordonr@gormand.com.au> 1.1.0-07
111     - Bump release number only
112    
113     * Tue Aug 16 2005 Charlie Brady <charlieb@e-smith.com>
114     - [1.1.0-06]
115     - Match permissions on /etc/sysconfig/ups to those of the nut RPM.
116    
117     * Mon Jul 25 2005 Charlie Brady <charlieb@e-smith.com>
118     - [1.1.0-05]
119     - Remove unused /etc/usb/usb.usermap template fragment.
120     - Add nut db entries to default configuration (Shad).
121     - Add missing templates.metadata files for all templated
122     files. [MN00064130]
123    
124     * Tue Jul 12 2005 Charlie Brady <charlieb@e-smith.com>
125     - [1.1.0-04]
126     - Use generic_template_expand action in place of nutUPS-conf.
127     [MN00064130]
128    
129     * Tue Jul 12 2005 Charlie Brady <charlieb@e-smith.com>
130     - [1.1.0-03]
131     - Port to version 2.0 of nut (contributed by Shad Lords).
132     - Change nutups user to nut to confirm with new package
133     - Upgrade templates to support new 2.0 format [SF: 1226389]
134    
135     * Thu Aug 21 2003 Charlie Brady <charlieb@e-smith.com>
136     - [1.1.0-02]
137     - Replace nutUPS-conf-startup action with default db fragments.
138     [charlieb 9553]
139    
140     * Thu Aug 21 2003 Charlie Brady <charlieb@e-smith.com>
141     - [1.1.0-01]
142     - Changing version to development stream number - 1.1.0
143    
144     * Thu Jun 26 2003 Charlie Brady <charlieb@e-smith.com>
145     - [1.0.0-01]
146     - Creating stable version stream - 1.0.0
147    
148     * Wed Jun 4 2003 Charlie Brady <charlieb@e-smith.com>
149     - [0.0.3-06]
150     - Create 'nutups' user via create-system-user. [charlieb 6033]
151    
152     * Fri May 9 2003 Gordon Rowell <gordonr@e-smith.com>
153     - [0.0.3-05]
154     - Removed depedency on e-smith-email [gordonr 8405]
155    
156     * Fri Apr 25 2003 Charlie Brady <charlieb@e-smith.com>
157     - [0.0.3-04]
158     - Change group and permissions of various configuration files, so that
159     files can be reloaded by programs running non-root. This is a merge
160     of Shad Lord's contributed code and my changes to use group read
161     permission. [charlieb 8405]
162    
163     * Fri Apr 25 2003 Tony Clayton <apc@e-smith.com>
164     - [0.0.3-03]
165     - Don't expand rc.modules template from nutUPS-conf [tonyc 2753]
166    
167     * Fri Apr 25 2003 Charlie Brady <charlieb@e-smith.com>
168     - [0.0.3-02]
169     - Change group of nutUPS.notify script to nutups. [charlieb 8530]
170    
171     * Wed Apr 16 2003 Tony Clayton <apc@e-smith.com>
172     - [0.0.3-01]
173     - Remove /etc/rc.modules altogether [tonyc 6556]
174    
175     * Tue Mar 18 2003 Lijie Deng <lijied@e-smith.com>
176     - [0.0.2-12]
177     - Delete ./etc/rc.modules/template-begin,
178     and modified %build [lijied 3295]
179    
180     * Thu Jan 16 2003 Tony Clayton <apc@e-smith.com>
181     - [0.0.2-11]
182     - fix rc.modules usb drivers again [tonyc 2753]
183    
184     * Mon Jan 13 2003 Tony Clayton <apc@e-smith.com>
185     - [0.0.2-10]
186     - fix rc.modules usb drivers to load conditionally [tonyc 2753]
187    
188     * Mon Jan 13 2003 Tony Clayton <apc@e-smith.com>
189     - [0.0.2-09]
190     - send stdout/stderr to /dev/null when loading usb modules [tonyc 2753]
191    
192     * Mon Jan 13 2003 Tony Clayton <apc@e-smith.com>
193     - [0.0.2-08]
194     - really adding usb* modules in rc.modules [tonyc 2753]
195    
196     * Mon Jan 13 2003 Tony Clayton <apc@e-smith.com>
197     - [0.0.2-07]
198     - load usb* modules in rc.modules for hidups support
199     - add header to template-begin [tonyc 2753]
200    
201     * Fri Jan 10 2003 Tony Clayton <apc@e-smith.com>
202     - [0.0.2-06]
203     - fix NOTIFYFLAG entries in upsmon.conf [tonyc 2753]
204     - turn off nut service by default [tonyc 2753]
205    
206     * Thu Dec 5 2002 Charlie Brady <charlieb@e-smith.com>
207     - [0.0.2-05]
208     - Move mknod of device node to %post script. It can't run in %pre, because
209     the enclosing directory has not yet been pulled out of the RPM archive.
210    
211     * Thu Dec 5 2002 Charlie Brady <charlieb@e-smith.com>
212     - [0.0.2-04]
213     - Fix syntax errors in one of the upsmon.conf template fragments.
214     - Add ups runtime state directory. Create hiddev device node with
215     appropriate permissions inside that directory.
216    
217     * Wed Nov 27 2002 Charlie Brady <charlieb@e-smith.com>
218     - [0.0.2-03]
219     - Change configuration so that most UPS events are logged only to
220     syslog, but SHUTDOWN is done using "signal-event". Response
221     to UPS events can be tuned via config DB entries.
222    
223     * Tue Nov 19 2002 Charlie Brady <charlieb@e-smith.com>
224     - [0.0.2-02]
225     - Add /etc/rc.d/init.d/nut symlink so that service starts up.
226     - Fix up a few broken templates.
227    
228     * Mon Nov 18 2002 Charlie Brady <charlieb@e-smith.com>
229     - [0.0.2-01]
230     - Initial
231    
232     %prep
233     %setup
234 stephdl 1.3 %patch0 -p1
235 slords 1.1
236     %build
237     perl createlinks
238    
239     %install
240     rm -rf $RPM_BUILD_ROOT
241     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
242     rm -f %{name}-%{version}-%{release}-filelist
243     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
244     | sed -e '/nutUPS.notify/s/root,root/root,nut/' \
245     > %{name}-%{version}-%{release}-filelist
246     echo '%dir %attr(750,nut,nut) /var/lib/ups' \
247     >> %{name}-%{version}-%{release}-filelist
248     echo '%ghost %attr(640,nut,nut) /var/lib/ups/hiddev0' \
249     >> %{name}-%{version}-%{release}-filelist
250     mkdir -p $RPM_BUILD_ROOT/var/lib/ups/
251     touch $RPM_BUILD_ROOT/var/lib/ups/hiddev0
252    
253     %pre
254     /sbin/e-smith/create-system-user nut 57 'NUT UPS user' /var/lib/ups /bin/false
255    
256     %post
257     if [ \! -e /var/lib/ups/hiddev0 ]
258     then
259     mknod /var/lib/ups/hiddev0 c 180 96
260     fi
261     chown nut.nut /var/lib/ups/hiddev0
262    
263     %clean
264     rm -rf $RPM_BUILD_ROOT
265    
266     %files -f %{name}-%{version}-%{release}-filelist
267     %defattr(-,root,root)

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed