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

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

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


Revision 1.2 - (hide annotations) (download)
Tue Jun 26 21:09:25 2007 UTC (16 years, 11 months ago) by slords
Branch: MAIN
CVS Tags: e-smith-proftpd-1_12_0-9_el5_sme
Changes since 1.1: +14 -1 lines
Updates

1 slords 1.1 Summary: e-smith specific proftpd configuration files and templates
2     %define name e-smith-proftpd
3     Name: %{name}
4     %define version 1.12.0
5 slords 1.2 %define release 9
6 slords 1.1 Version: %{version}
7     Release: %{release}%{?dist}
8     License: GPL
9     Group: Networking/Daemons
10     Source: %{name}-%{version}.tar.gz
11     Patch0: e-smith-proftpd-1.12.0-LogDirPerms.patch
12     Patch1: e-smith-proftpd-1.12.0-ftpusersfix.patch
13     Patch2: e-smith-proftpd-1.12.0-chroot.patch
14     Patch3: e-smith-proftpd-1.12.0-globalroot.patch
15     Patch4: e-smith-proftpd-1.12.0-logdir.patch
16     Patch5: e-smith-proftpd-1.12.0-ftpuser_perm.patch
17 slords 1.2 Patch6: e-smith-proftpd-1-12-0-MovePam_d_ftpTemplates.patch
18 slords 1.1 BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
19     BuildArchitectures: noarch
20     BuildRequires: e-smith-devtools
21     Requires: e-smith-base >= 4.15.0-05, proftpd
22     Requires: e-smith-lib >= 1.15.1-33
23     Requires: iptables
24     AutoReqProv: no
25    
26     %changelog
27 slords 1.2 * Tue Jun 26 2007 Gavin Weight <gweight@gmail.com> 1.12.0-9
28     - Create pam.d directory and move ftp/proftpd templates into pam.d.
29     [SME: 2762]
30    
31 slords 1.1 * Sun Apr 29 2007 Shad L. Lords <slords@mail.com>
32     - Clean up spec so package can be built by koji/plague
33    
34     * Fri Apr 06 2007 Shad L. Lords <slords@mail.com> 1.12.0-8
35     - Change perms for ftpusers file. [SME: 2841]
36    
37     * Fri Apr 06 2007 Shad L. Lords <slords@mail.com> 1.12.0-7
38     - Rename log directory from proftpd to ftp [SME: 2706]
39    
40     * Wed Jan 10 2007 Shad L. Lords <slords@mail.com> 1.12.0-6
41     - Add global override for chroot path. [SME: 590]
42    
43     * Wed Jan 03 2007 Shad L. Lords <slords@mail.com> 1.12.0-5
44     - Add fixed chroot patch back in. [SME: 590]
45    
46     * Thu Dec 07 2006 Shad L. Lords <slords@mail.com>
47     - Update to new release naming. No functional changes.
48     - Make Packager generic
49    
50     * Thu Sep 21 2006 Gavin Weight <gweight@gmail.com> 1.12.0-03
51     - Expand /etc/ftpusers if user is locked/password reset. [SME: 1921]
52    
53     * Tue Apr 18 2006 Gordon Rowell <gordonr@gormand.com.au> 1.12.0-02
54     - Force permissions on /var/log/proftpd in log/run script [SME: 1267]
55    
56     * Thu Mar 16 2006 Charlie Brady <charlie_brady@mitel.com> 1.12.0-01
57     - Roll stable stream version. [SME: 1016]
58    
59     * Tue Feb 28 2006 Charlie Brady <charlie_brady@mitel.com> 1.11.0-29
60     - Back out the chroot patch for now. [SME: 590]
61    
62     * Fri Jan 27 2006 Shad L. Lords <slords@mail.com> 1.11.0-28
63     - Disable anonymous ibays if globally disabled.
64    
65     * Fri Jan 27 2006 Shad L. Lords <slords@mail.com> 1.11.0-27
66     - Add chroot for users [SME: 590]
67     - Add ability to disable anonymous access [SME: 591]
68    
69     * Wed Nov 30 2005 Gordon Rowell <gordonr@gormand.com.au> 1.11.0-26
70     - Bump release number only
71    
72     * Wed Oct 12 2005 Charlie Brady <charlieb@e-smith.com>
73     - [1.11.0-25]
74     - Filter out comments in peers files, to avoid log noise from
75     tcpsvd. Fix name of peers/local templates.metadata file.
76     [SF: 1324719]
77    
78     * Wed Jul 27 2005 Shad Lords <slords@mail.com>
79     - [1.11.0-24]
80     - Move masq fragement from template to db [SF: 1241416]
81    
82     * Tue Jun 14 2005 Charlie Brady <charlieb@e-smith.com>
83     - [1.11.0-23]
84     - Re-expand peers/{0,local} in remoteaccess-update, as permissions
85     may have changed. [SF: 1220510]
86    
87     * Tue Mar 29 2005 Charlie Brady <charlieb@e-smith.com>
88     - [1.11.0-22]
89     - Create empty template-begin template fragments for tcpsvd
90     ACL files.
91    
92     * Tue Mar 29 2005 Charlie Brady <charlieb@e-smith.com>
93     - [1.11.0-21]
94     - Don't use sigusr1 in bootstrap-console-save, as the service is not
95     up, and sigusr1 will be ignored. Instead, call ./control/1 from run
96     script.
97    
98     * Wed Mar 23 2005 Charlie Brady <charlieb@e-smith.com>
99     - [1.11.0-20]
100     - Use sigusr1 in remoteaccess-update. This will generate the network ACL
101     symlinks. 'adjust-services' implicitly starts any service which
102     should be running.
103    
104     * Wed Mar 16 2005 Charlie Brady <charlieb@e-smith.com>
105     - [1.11.0-19]
106     - Use tcpsvd in place of tcpserver. Manage network access lists
107     using new esmith::tcpsvd library. Update e-smith-lib depenency.
108     - Add symlink /var/service/ftp -> proftpd.
109     - Add zero length template-begin files to peers/{0,local}, to avoid
110     log noise from comment lines.
111    
112     * Wed Mar 16 2005 Charlie Brady <charlieb@e-smith.com>
113     - [1.11.0-18]
114     - Add missing templates for peers/{0,local}.
115    
116     * Wed Mar 16 2005 Charlie Brady <charlieb@e-smith.com>
117     - [1.11.0-17]
118     - Optimise template expansions versus events - only expand files
119     which may have changed.
120    
121     * Tue Mar 15 2005 Charlie Brady <charlieb@e-smith.com>
122     - [1.11.0-16]
123     - Fix service name in adjust-services symlink. [MN00065576]
124    
125     * Sun Mar 13 2005 Charlie Brady <charlieb@e-smith.com>
126     - [1.11.0-15]
127     - Replace proftp-startstop action with call to 'adjust-services'.
128     Update e-smith-lib version dependency. [MN00065576]
129     - Use generic_template_expand action in place of proftpd-conf.
130     [MN00064130]
131     - Re-add missing restart patch to config.
132    
133     * Thu Mar 10 2005 Charlie Brady <charlieb@e-smith.com>
134     - [1.11.0-14]
135     - Allow restarts of retreive and store. Patch from Shad. [MN00073802]
136     - Avoid duplicate Primary section in config. Patch from Shad. [MN00073804]
137    
138     * Wed Feb 9 2005 Charlie Brady <charlieb@e-smith.com>
139     - [1.11.0-13]
140     - Remove migrate fragment for very old FTPServerMode property. [MN00065931]
141     - Clean BuildRequires. [charlieb MN00043055]
142    
143     * Fri Sep 3 2004 Michael Soulier <msoulier@e-smith.com>
144     - [1.11.0-12]
145     - Backout of user-create/delete addition. Wrong way to go.
146     [msoulier MN00035806]
147    
148     * Fri Sep 3 2004 Michael Soulier <msoulier@e-smith.com>
149     - [1.11.0-11]
150     - Added proftpd-conf and startstop to user-create/delete.
151     [msoulier MN00035806]
152    
153     * Wed Aug 4 2004 Michael Soulier <msoulier@e-smith.com>
154     - [1.11.0-10]
155     - Updated startstop to use esmith::util::serviceControl. [msoulier MN00031530]
156    
157     * Mon Sep 22 2003 Michael Soulier <msoulier@e-smith.com>
158     - [1.11.0-09]
159     - Fixed network spec format. CIDR format expected. [msoulier 10069]
160    
161     * Fri Sep 5 2003 Charlie Brady <charlieb@e-smith.com>
162     - [1.11.0-08]
163     - Fix c&p error in tcprules template fragment. [charlieb 9547]
164    
165     * Fri Sep 5 2003 Charlie Brady <charlieb@e-smith.com>
166     - [1.11.0-07]
167     - Add requires for correct version of e-smith-base. [charlieb 9547]
168    
169     * Fri Sep 5 2003 Charlie Brady <charlieb@e-smith.com>
170     - [1.11.0-06]
171     - Remove hosts.allow and xinetd.conf template fragments.
172     [charlieb 9547]
173    
174     * Fri Sep 5 2003 Charlie Brady <charlieb@e-smith.com>
175     - [1.11.0-05]
176     - Fix a couple of run time errors. [charlieb 9547]
177    
178     * Fri Sep 5 2003 Charlie Brady <charlieb@e-smith.com>
179     - [1.11.0-04]
180     - Service directory and rc7.d symlinks must be called ftp, since that is
181     the service record name. Use /etc/rc.d/init.d/supervise directory, to
182     avoid potential clash with stock init script. [charlieb 9547,9930]
183    
184     * Fri Sep 5 2003 Charlie Brady <charlieb@e-smith.com>
185     - [1.11.0-03]
186     - Use new createlinks library to reduce code. [charlieb 9809]
187    
188     * Fri Sep 5 2003 Charlie Brady <charlieb@e-smith.com>
189     - [1.11.0-02]
190     - Run proftpd under supervise and tcpserver. [charlieb 9547]
191    
192     * Fri Sep 5 2003 Charlie Brady <charlieb@e-smith.com>
193     - [1.11.0-01]
194     - Changing version to development stream number - 1.11.0
195    
196     * Thu Jun 26 2003 Charlie Brady <charlieb@e-smith.com>
197     - [1.10.0-01]
198     - Changing version to stable stream number - 1.10.0
199    
200     * Tue Apr 29 2003 Gordon Rowell <gordonr@e-smith.com>
201     - [1.9.0-14]
202     - Modify xinetd.conf/30ftp to properly handle enabled/disabled/missing cases [gordonr 8609]
203    
204     * Mon Apr 21 2003 Mark Knox <markk@e-smith.com>
205     - [1.9.0-13]
206     - Force 0640 on proftpd.conf [markk 8408]
207    
208     * Tue Apr 8 2003 Charlie Brady <charlieb@e-smith.com>
209     - [1.9.0-12]
210     - Fix typo in path for anonymous login. [charlieb 5652]
211     - Remove selective binding to interfaces for now - it requires
212     a full xinetd restart, which we don't do in remoteaccess-update.
213     [charlieb 951]
214     - Change ScoreboardPath to ScoreboardFile - the former is deprecated
215     (with extreme prejudice) in current proftpd. [charlieb 5411]
216    
217     * Tue Apr 8 2003 Charlie Brady <charlieb@e-smith.com>
218     - [1.9.0-11]
219     - Add ScoreboardPath directive to config file templates [charlieb 5411]
220    
221     * Tue Mar 18 2003 Charlie Brady <charlieb@e-smith.com>
222     - [1.9.0-10]
223     - Add config migration fragment to migrate old ftp access properties
224     to new. [charlieb 7683]
225     - Change Copyright header to License. [charlieb]
226    
227     * Thu Mar 13 2003 Charlie Brady <charlieb@e-smith.com>
228     - [1.9.0-09]
229     - Use LoginAccess property to control ftp login access - this replaces the
230     "acccess" semantics of 5.5 and earlier. [charlieb 7466]
231     - Add back the special case for Primary i-bay, as it's needed for anonymous
232     ftp. [charlieb 5652]
233    
234     * Fri Mar 7 2003 Charlie Brady <charlieb@e-smith.com>
235     - [1.9.0-08]
236     - esmith::utils::processTemplate => esmith::templates::processTemplate.
237     [charlieb 7466]
238    
239     * Thu Mar 6 2003 Charlie Brady <charlieb@e-smith.com>
240     - [1.9.0-07]
241     - Escape braces in logrotate.d template fragment [charlieb 6438]
242    
243     * Thu Mar 6 2003 Charlie Brady <charlieb@e-smith.com>
244     - [1.9.0-06]
245     - Fix missed accessLimits => access change in ftp masq fragment [charlieb 7466]
246    
247     * Thu Mar 6 2003 Charlie Brady <charlieb@e-smith.com>
248     - [1.9.0-05]
249     - Fix migrate fragment problem. [charlieb 1507]
250     - Remove legacy code from proftpd config templates, and simplify. [charlieb 7466]
251    
252     * Mon Mar 3 2003 Charlie Brady <charlieb@e-smith.com>
253     - [1.9.0-04]
254     - Template /etc/logrotate.d/proftpd and remove postrotate sigHUP. [charlieb 6438]
255     - Add default config db fragments to set type/access/status [charlieb 1507]
256     - Replace migrate script in post-upgrade event with template fragment in
257     db/configuration/migrate directory. [charlieb 1507]
258     - Use "access" rather than "accessLimits" to control access to ftp from
259     outside LAN. [charlieb 7466]
260     - Bind to local interface only if access is private. [charlieb 951]
261    
262     * Fri Feb 28 2003 Charlie Brady <charlieb@e-smith.com>
263     - [1.9.0-03]
264     - Re-do hosts.allow template to use esmith::ConfigDB::hosts_allow_spec.
265     Add dependency on up-to-date e-smith-lib.
266     TODO: fix accessLimits v access issue. [charlieb 5650]
267    
268     * Wed Jan 29 2003 Charlie Brady <charlieb@e-smith.com>
269     - [1.9.0-02]
270     - Remove special cases for primary in proftpd.conf - primary
271     is now a pre-defined i-bay. [charlieb 5652]
272    
273     * Wed Jan 29 2003 Charlie Brady <charlieb@e-smith.com>
274     - [1.9.0-01]
275     - Rolling development stream to 1.9.0
276    
277     * Fri Oct 11 2002 Charlie Brady <charlieb@e-smith.com>
278     - [1.8.0-01]
279     - Roll to maintained version number to 1.8.0
280    
281     * Wed Oct 2 2002 Mark Knox <markk@e-smith.com>
282     - [1.7.3-05]
283     - Removed stray braces in get_all_by_prop [markk 3786]
284    
285     * Mon Sep 23 2002 Mark Knox <markk@e-smith.com>
286     - [1.7.3-04]
287     - Fix proftpd.conf template breakage [markk 3786]
288    
289     * Mon Sep 23 2002 Charlie Brady <charlieb@e-smith.com>
290     - [1.7.3-03]
291     - Fix hosts.allow template breakage [charlieb 3786]
292    
293     * Thu Sep 19 2002 Charlie Brady <charlieb@e-smith.com>
294     - [1.7.3-02]
295     - Fix i-bay section of proftpd.conf [charlieb 4950]
296    
297     * Thu Sep 12 2002 Charlie Brady <charlieb@e-smith.com>
298     - [1.7.3-01]
299     - Preparing for rebuild as-source, to get rid of some patch detritus - see
300     bug 4825. [charlieb 4793]
301    
302     * Thu Sep 12 2002 Charlie Brady <charlieb@e-smith.com>
303     - [1.7.2-05]
304     - Add missing 10LimitSiteChmod template fragment [charlieb 4793]
305    
306     * Thu Sep 12 2002 Charlie Brady <charlieb@e-smith.com>
307     - [1.7.2-04]
308     - Replace deprecate AllowChmod with <Limit SITE_CHMOD>, which requires some
309     fragment shuffling. Remove unnecessary template-{begin,end}, move
310     10localAccess to 00localAccess. [charlieb 4793]
311    
312     * Wed Sep 11 2002 Charlie Brady <charlieb@e-smith.com>
313     - [1.7.2-03]
314     - Fix esmith::Networks => esmith::NetworksDB snafu in /etc/proftpd.conf
315     template. [charlieb 3786]
316    
317     * Tue Sep 10 2002 Mark Knox <markk@e-smith.com>
318     - [1.7.2-02]
319     - Change use of allow_tcp_in() function to allow dynamic reconfig.
320     [charlieb 4501]
321     - Remove deprecated split on pipe [markk 3786]
322    
323     * Thu Aug 8 2002 Charlie Brady <charlieb@e-smith.com>
324     - [1.7.2-01]
325     - Remove 46AllowFTPActive masq template fragment, allow port 21 inbound
326     access and allow netfilter connection tracking to do the rest of the
327     job of FTP access control. [charlieb 4499]
328    
329     * Wed Jul 17 2002 Charlie Brady <charlieb@e-smith.com>
330     - [1.7.1-01]
331     - Change masq script fragment to use iptables. [charlieb 1268]
332    
333     * Wed Jun 5 2002 Charlie Brady <charlieb@e-smith.com>
334     - [1.7.0-01]
335     - Changing version to development stream number - 1.7.0
336    
337     * Fri May 31 2002 Charlie Brady <charlieb@e-smith.com>
338     - [1.6.0-01]
339     - Changing version to maintained stream number to 1.6.0
340    
341     * Thu May 23 2002 Gordon Rowell <gordonr@e-smith.com>
342     - [1.5.5-01]
343     - RPM rebuild forced by cvsroot2rpm
344    
345     * Fri May 3 2002 Charlie Brady <charlieb@e-smith.com>
346     - [1.5.4-01]
347     - Disable reverse DNS and ident lookups [charlieb 339]
348    
349     * Fri May 3 2002 Charlie Brady <charlieb@e-smith.com>
350     - [1.5.3-01]
351     - Once more with feeling! (I missed one).
352    
353     * Fri May 3 2002 Charlie Brady <charlieb@e-smith.com>
354     - [1.5.2-01]
355     - Fix createlinks problems with missing directories and $event scope.
356    
357     * Fri May 3 2002 Charlie Brady <charlieb@e-smith.com>
358     - [1.5.1-01]
359     - Test build to verify CVS conversion.
360    
361     * Fri May 3 2002 Charlie Brady <charlieb@e-smith.com>
362     - [1.5.0-01]
363     - rollRPM: Rolled version number to 1.5.0-01. Includes patches up to 1.4.0-08.
364    
365     * Wed Dec 05 2001 Jason Miller <jmiller@e-smith.com>
366     - [1.4.0-08]
367     - Fix 45AllowFTP masq template to handle case where status=disabled
368    
369     * Fri Nov 16 2001 Charlie Brady <charlieb@e-smith.com>
370     - [1.4.0-07]
371     - Be sure to regenerate /etc/ftpusers during password-modify event, to allow
372     access to password protected i-bays.
373     - Remove proftpd-conf actions from post-install and post-upgrade events -
374     bootstrap-console-save is sufficient.
375    
376     * Thu Nov 08 2001 Charlie Brady <charlieb@e-smith.com>
377     - [1.4.0-06]
378     - Fix xinetd.conf template fragment so that status=disabled is honoured.
379    
380     * Mon Oct 22 2001 Charlie Brady <charlieb@e-smith.com>
381     - [1.4.0-05]
382     - Add missing bootstrap-console-save symlink.
383    
384     * Tue Aug 21 2001 Gordon Rowell <gordonr@e-smith.com>
385     - [1.4.0-04]
386     - Fixed e-smith-base dependency
387    
388     * Tue Aug 21 2001 Gordon Rowell <gordonr@e-smith.com>
389     - [1.4.0-03]
390     - Removed "public" from /etc/ftpusers
391     - Removed post-restore event
392     - Added Vendor tag
393    
394     * Fri Aug 17 2001 gordonr
395     - [1.4.0-02]
396     - Autorebuild by rebuildRPM
397    
398     * Wed Aug 8 2001 Charlie Brady <charlieb@e-smith.com>
399     - [1.4.0-01]
400     - Rolled version number to 1.4.0-01. Includes patches upto 1.3.0-03.
401    
402     * Fri Jul 6 2001 Peter Samuel <peters@e-smith.com>
403     - [1.3.0-03]
404     - Changed license to GPL
405    
406     * Fri Jun 29 2001 Gordon Rowell <gordonr@e-smith.com>
407     - [1.3.0-02]
408     - Make use of /etc/e-smith/pam/accounts.deny as template for /etc/ftpusers
409    
410     * Fri Jun 29 2001 Gordon Rowell <gordonr@e-smith.com>
411     - [1.3.0-01]
412     - Rolled version number to 1.3.0-01. Includes patches upto 1.2.0-07.
413    
414     * Tue Mar 27 2001 Charlie Brady <charlieb@e-smith.com>
415     - [1.2.0-07]
416     - Avoid proftp DoS attack with wildcards
417     - Allow FTP ports, with optional "ForcePassive|yes" property, defaulting to no
418    
419     * Thu Feb 8 2001 Adrian Chung <adrianc@e-smith.com>
420     - [1.2.0-06]
421     - Rolling release number for GPG signing.
422    
423     * Tue Jan 30 2001 Jason Miller <jmiller@e-smith.com>
424     - [1.2.0-05]
425     - Changed 'use smith::db' to 'use esmith::db'.
426    
427     * Tue Jan 30 2001 Charlie Brady <charlieb@e-smith.com>
428     - [1.2.0-04]
429     - And "use esmith::db" is reuqired.
430    
431     * Mon Jan 29 2001 Charlie Brady <charlieb@e-smith.com>
432     - [1.2.0-03]
433     - Fixed syntax error in previous fix :-)
434    
435     * Fri Jan 26 2001 Charlie Brady <charlieb@e-smith.com>
436     - [1.2.0-02]
437     - Fix reference to legacy config variable in proftpd.conf fragment
438    
439     * Fri Jan 26 2001 Peter Samuel <peters@e-smith.com>
440     - [1.2.0-01]
441     - Rolled version number to 1.2.0-01. Includes patches upto 1.1.0-13.
442    
443     * Thu Jan 25 2001 Adrian Chung <adrianc@e-smith.com>
444     - [1.1.0-13]
445     - Added default for accessLimits in proftpd-conf
446    
447     * Wed Jan 24 2001 Charlie Brady <charlieb@e-smith.com>
448     - [1.1.0-12]
449     - Added AllowFTP fragment for /etc/rc.d/init.d/masq.
450     - Remove %post action
451    
452     * Thu Jan 18 2001 Adrian Chung <adrianc@e-smith.com>
453     - [1.1.0-11]
454     - FTP now uses a new setting FTP access limits in remote access
455     which completely governs access control to the service.
456     - The old FTP setting governs only user logins.
457     - updated xinetd.conf/ftp fragment to use new value
458    
459     * Wed Jan 17 2001 Jason Miller <jmiller@e-smith.com>
460     - removed %postun deletion of ftp line in configuration
461     to comply with the sillyness of rpm upgrade
462    
463     * Fri Jan 12 2001 Gordon Rowell <gordonr@e-smith.com>
464     - ftpd != ftp :-(
465    
466     * Fri Jan 12 2001 Gordon Rowell <gordonr@e-smith.com>
467     - Migrate FTPServerMode variable
468    
469     * Sat Jan 6 2001 Charlie Brady <charlieb@e-smith.com>
470     - [1.1.0-7]
471     - Only run %post and %postun scripts if in runlevel 7
472    
473     * Fri Jan 5 2001 Adrian Chung <adrianc@e-smith.com>
474     - [1.1.0-6]
475     - add selective bind back in.
476    
477     * Fri Jan 5 2001 Adrian Chung <adrianc@e-smith.com>
478     - [1.1.0-5]
479     - backed out bind local interface code, needs to be rethought
480     to allow access to localhost
481    
482     * Thu Jan 4 2001 Adrian Chung <adrianc@e-smith.com>
483     - [1.1.0-4]
484     - changed 30ftp to only expand if ftp service is enabled.
485     - if ftp access is set to private, only bind to LocalIP in
486     xinetd.conf
487    
488     * Sun Dec 17 2000 Charlie Brady <charlieb@e-smith.com>
489     - [1.1.0-3]
490     - Delete /etc/rc.d/init.d/masq template fragment.
491    
492     * Mon Dec 4 2000 Adrian Chung <adrianc@e-smith.com>
493     - Added link for post-install.
494    
495     * Fri Dec 1 2000 Adrian Chung <adrianc@e-smith.com>
496     - initial release
497    
498     %description
499     Configuration files and templates for the ProFTPd ftp server.
500    
501     %prep
502     %setup
503     %patch0 -p1
504     %patch1 -p1
505     %patch2 -p1
506     %patch3 -p1
507     %patch4 -p1
508     %patch5 -p1
509 slords 1.2 %patch6 -p1
510 slords 1.1
511     %build
512     perl createlinks
513    
514     mkdir -p root/service
515     ln -s /var/service/proftpd root/service/ftp
516    
517     mkdir -p root/var/service/proftpd/supervise
518     touch root/var/service/proftpd/down
519    
520     mkdir -p root/var/service/proftpd/log/supervise
521    
522     mkdir -p root/var/log/ftp
523    
524     mkdir -p root/var/service/proftpd/env
525     mkdir -p root/var/service/proftpd/peers
526     mkdir -p root/etc/e-smith/templates/var/service/proftpd/peers/{0,local}
527     touch root/etc/e-smith/templates/var/service/proftpd/peers/{0,local}/template-begin
528    
529 slords 1.2 for file in ftp proftpd
530     do
531     mkdir -p root/etc/e-smith/templates/etc/pam.d/$file
532     ln -s /etc/e-smith/templates-default/template-begin-pam \
533     root/etc/e-smith/templates/etc/pam.d/$file/template-begin
534     done
535    
536 slords 1.1 %install
537     rm -rf $RPM_BUILD_ROOT
538     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
539     rm -f %{name}-%{version}-%{release}-filelist
540     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
541     --dir /var/service/proftpd 'attr(01755,root,root)' \
542     --file /var/service/proftpd/down 'attr(0644,root,root)' \
543     --file /var/service/proftpd/run 'attr(0755,root,root)' \
544     --file /var/service/proftpd/control/1 'attr(0755,root,root)' \
545     --dir /var/service/proftpd/log 'attr(0755,root,root)' \
546     --dir /var/service/proftpd/log/supervise 'attr(0700,root,root)' \
547     --dir /var/service/proftpd/supervise 'attr(0700,root,root)' \
548     --file /var/service/proftpd/log/run 'attr(0755,root,root)' \
549     --dir /var/log/ftp 'attr(2750,smelog,smelog)' \
550     > %{name}-%{version}-%{release}-filelist
551     echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist
552    
553     %clean
554     rm -rf $RPM_BUILD_ROOT
555    
556     %pre
557     /sbin/e-smith/create-system-user smelog 1002 \
558     'sme log user' /var/log/smelog /bin/false
559    
560     %preun
561    
562     %post
563    
564     %postun
565    
566     %files -f %{name}-%{version}-%{release}-filelist
567     %defattr(-,root,root)

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