1 |
|
# $Id: e-smith-proftpd.spec,v 1.10 2013/01/23 03:52:50 wellsi Exp $ |
2 |
|
|
3 |
Summary: e-smith specific proftpd configuration files and templates |
Summary: e-smith specific proftpd configuration files and templates |
4 |
%define name e-smith-proftpd |
%define name e-smith-proftpd |
5 |
Name: %{name} |
Name: %{name} |
6 |
%define version 1.12.0 |
%define version 2.2.0 |
7 |
%define release 8 |
%define release 5 |
8 |
Version: %{version} |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
10 |
License: GPL |
License: GPL |
11 |
Group: Networking/Daemons |
Group: Networking/Daemons |
12 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
13 |
Patch0: e-smith-proftpd-1.12.0-LogDirPerms.patch |
Patch1: e-smith-proftpd-2.2.0-persistent_passwd.patch |
14 |
Patch1: e-smith-proftpd-1.12.0-ftpusersfix.patch |
Patch2: e-smith-proftpd-2.2.0-LongLine.patch |
|
Patch2: e-smith-proftpd-1.12.0-chroot.patch |
|
|
Patch3: e-smith-proftpd-1.12.0-globalroot.patch |
|
|
Patch4: e-smith-proftpd-1.12.0-logdir.patch |
|
|
Patch5: e-smith-proftpd-1.12.0-ftpuser_perm.patch |
|
15 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
16 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
17 |
BuildRequires: e-smith-devtools |
BuildRequires: e-smith-devtools |
21 |
AutoReqProv: no |
AutoReqProv: no |
22 |
|
|
23 |
%changelog |
%changelog |
24 |
|
* Wed Jan 23 2013 Ian Wells <esmith@wellsi.com> 2.2.0-5.sme |
25 |
|
- Workaround a deficiency in the proftpd package where it doesn't |
26 |
|
handle long lines correctly in its configuration file. |
27 |
|
Fix submitted by Charlie Brady [SME: 6949] |
28 |
|
|
29 |
|
* Tue Jan 22 2013 Ian Wells <esmith@wellsi.com> 2.2.0-4.sme |
30 |
|
- Remove previous change [SME: 7129] |
31 |
|
|
32 |
|
* Wed Dec 19 2012 Ian Wells <esmith@wellsi.com> 2.2.0-3.sme |
33 |
|
- Add VRoot engine to avoid pam log error [SME: 7129] |
34 |
|
|
35 |
|
* Wed Sep 22 2010 Daniel Berteaud <daniel@firewall-services.com> 2.2.0-2.sme |
36 |
|
- Add PersistentPasswd directive to force proftpd to use pam [SME: 6219] |
37 |
|
|
38 |
|
* Tue Oct 7 2008 Shad L. Lords <slords@mail.com> 2.2.0-1.sme |
39 |
|
- Roll new stream to separate sme7/sme8 trees [SME: 4633] |
40 |
|
|
41 |
|
* Wed Jan 09 2008 Stephen Noble <support@dungog.net> 1.12.0-11 |
42 |
|
- ShowSymlinks off [SME: 993] |
43 |
|
|
44 |
|
* Wed Oct 31 2007 Gavin Weight <gweight@gmail.com> 1.12.0-10 |
45 |
|
- Rename DisplayFirstChdir to DisplayChdir. [SME: 3479] |
46 |
|
|
47 |
|
* Tue Jun 26 2007 Gavin Weight <gweight@gmail.com> 1.12.0-9 |
48 |
|
- Create pam.d directory and move ftp/proftpd templates into pam.d. |
49 |
|
[SME: 2762] |
50 |
|
|
51 |
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
52 |
- Clean up spec so package can be built by koji/plague |
- Clean up spec so package can be built by koji/plague |
53 |
|
|
520 |
|
|
521 |
%prep |
%prep |
522 |
%setup |
%setup |
|
%patch0 -p1 |
|
523 |
%patch1 -p1 |
%patch1 -p1 |
524 |
%patch2 -p1 |
%patch2 -p1 |
|
%patch3 -p1 |
|
|
%patch4 -p1 |
|
|
%patch5 -p1 |
|
525 |
|
|
526 |
%build |
%build |
527 |
perl createlinks |
perl createlinks |
541 |
mkdir -p root/etc/e-smith/templates/var/service/proftpd/peers/{0,local} |
mkdir -p root/etc/e-smith/templates/var/service/proftpd/peers/{0,local} |
542 |
touch root/etc/e-smith/templates/var/service/proftpd/peers/{0,local}/template-begin |
touch root/etc/e-smith/templates/var/service/proftpd/peers/{0,local}/template-begin |
543 |
|
|
544 |
|
for file in ftp proftpd |
545 |
|
do |
546 |
|
mkdir -p root/etc/e-smith/templates/etc/pam.d/$file |
547 |
|
ln -s /etc/e-smith/templates-default/template-begin-pam \ |
548 |
|
root/etc/e-smith/templates/etc/pam.d/$file/template-begin |
549 |
|
done |
550 |
|
|
551 |
%install |
%install |
552 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
553 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |