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

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

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


Revision 1.2 - (hide annotations) (download)
Fri Feb 5 22:27:53 2016 UTC (8 years, 8 months ago) by stephdl
Branch: MAIN
Changes since 1.1: +1 -3 lines
* Fri Feb 05 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 2.6.0-1.sme
- Initial release to sme10

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

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