2 |
%define name e-smith-proftpd |
%define name e-smith-proftpd |
3 |
Name: %{name} |
Name: %{name} |
4 |
%define version 1.12.0 |
%define version 1.12.0 |
5 |
%define release 8 |
%define release 9 |
6 |
Version: %{version} |
Version: %{version} |
7 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
8 |
License: GPL |
License: GPL |
14 |
Patch3: e-smith-proftpd-1.12.0-globalroot.patch |
Patch3: e-smith-proftpd-1.12.0-globalroot.patch |
15 |
Patch4: e-smith-proftpd-1.12.0-logdir.patch |
Patch4: e-smith-proftpd-1.12.0-logdir.patch |
16 |
Patch5: e-smith-proftpd-1.12.0-ftpuser_perm.patch |
Patch5: e-smith-proftpd-1.12.0-ftpuser_perm.patch |
17 |
|
Patch6: e-smith-proftpd-1-12-0-MovePam_d_ftpTemplates.patch |
18 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
19 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
20 |
BuildRequires: e-smith-devtools |
BuildRequires: e-smith-devtools |
24 |
AutoReqProv: no |
AutoReqProv: no |
25 |
|
|
26 |
%changelog |
%changelog |
27 |
|
* 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 |
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
32 |
- Clean up spec so package can be built by koji/plague |
- Clean up spec so package can be built by koji/plague |
33 |
|
|
506 |
%patch3 -p1 |
%patch3 -p1 |
507 |
%patch4 -p1 |
%patch4 -p1 |
508 |
%patch5 -p1 |
%patch5 -p1 |
509 |
|
%patch6 -p1 |
510 |
|
|
511 |
%build |
%build |
512 |
perl createlinks |
perl createlinks |
526 |
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} |
527 |
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 |
528 |
|
|
529 |
|
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 |
%install |
%install |
537 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
538 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |