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

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

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


Revision 1.1 - (hide annotations) (download)
Tue Jun 12 15:51:38 2007 UTC (17 years, 4 months ago) by slords
Branch: MAIN
CVS Tags: e-smith-nutUPS-1_2_0-14_el4_sme
Import on branch sme7 of package e-smith-nutUPS-1.2.0-14.el4.sme.src.rpm

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

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