/[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.1 - (hide annotations) (download)
Wed Feb 6 21:33:06 2013 UTC (11 years, 8 months ago) by slords
Branch: MAIN
CVS Tags: e-smith-nutUPS-2_4_0-1_el6_sme
* Thu Jan 31 2013 Shad L. Lords <slords@mail.com> 2.4.0-1.sme
- Roll new stream for sme9

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

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