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

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

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


Revision 1.6 - (hide annotations) (download)
Sun May 17 08:22:18 2009 UTC (15 years, 6 months ago) by snetram
Branch: MAIN
CVS Tags: e-smith-nutUPS-2_2_0-2_el5_sme, HEAD
Changes since 1.5: +7 -2 lines
* Sun May 17 2009 Jonathan Martens <smeserver-contribs@snetram.nl>
- Fix another instance of ups model for new version of nut [SME: 4750]

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

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