]>
Commit | Line | Data |
---|---|---|
2e75cbd9 | 1 | Summary: muddleftpd - FTP daemon |
d05c5bbf | 2 | Summary(pl.UTF-8): muddleftpd - serwer FTP |
4669f370 | 3 | Name: muddleftpd |
46e0fd78 | 4 | Version: 1.3.13.1 |
27887837 | 5 | Release: 9 |
4669f370 AM |
6 | License: GPL |
7 | Group: Daemons | |
2cb85e97 | 8 | Source0: http://savannah.nongnu.org/download/muddleftpd/%{name}-%{version}.tar.gz |
46e0fd78 | 9 | # Source0-md5: 47cf007466395ce43920f5e60234e107 |
277f596b JB |
10 | Source1: ftp.pamd |
11 | Source2: %{name}.logrotate | |
12 | Source3: %{name}.init | |
13 | Source4: %{name}.sysconfig | |
5f9913a5 | 14 | Source5: %{name}.conf |
5ba323cb | 15 | Source6: %{name}-mudpasswd.1 |
b7b3f937 | 16 | Patch0: %{name}-MD5-passwd.patch |
b2f75383 | 17 | Patch1: %{name}-DONT_INST_DOC.patch |
2846da45 | 18 | Patch2: %{name}-allowed_filenames_fix.patch |
60150177 | 19 | URL: http://www.nongnu.org/muddleftpd/ |
c98e72d7 | 20 | BuildRequires: mysql-devel |
4669f370 | 21 | BuildRequires: pam-devel |
57feed36 | 22 | BuildRequires: perl-base |
65507290 | 23 | BuildRequires: rpmbuild(macros) >= 1.268 |
2920e68e | 24 | BuildRequires: texinfo |
5f5f9446 | 25 | Requires(post,preun): /sbin/chkconfig |
4669f370 | 26 | Requires: logrotate |
78e6835b | 27 | Requires: pam >= 0.79.0 |
2cb85e97 | 28 | Requires: rc-scripts |
4669f370 | 29 | Provides: ftpserver |
57feed36 | 30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
4669f370 | 31 | |
277f596b | 32 | %define _sysconfdir /etc/muddleftpd |
4669f370 AM |
33 | %define _localstatedir /var/run |
34 | ||
35 | %description | |
12fe2447 | 36 | MUDDLEFTPD is a server for the Internet File Transfer Protocol. Normal |
37 | FTP servers tend to always want to run with root privileges on the | |
38 | server host. MUDDLEFTPD is designed to overcome this obstacle without | |
39 | limiting the available features when running without root privileges. | |
4669f370 | 40 | |
979db668 JR |
41 | %description -l pl.UTF-8 |
42 | MUDDLEFTPD jest serwerem FTP. O ile większość serwerów FTP chce | |
43 | uprawnień roota, MUDDLEFTPD został zaprojektowany tak, aby mógł | |
44 | działać bez tych uprawnień bez zbytniego ograniczenia możliwości. | |
4669f370 | 45 | |
bbf28779 | 46 | %package authlibmud |
c98e72d7 | 47 | Summary: MUD authentication library for muddleftpd |
d05c5bbf | 48 | Summary(pl.UTF-8): Biblioteka do uwierzytelniania MUD dla muddleftpd |
c98e72d7 | 49 | Group: Daemons |
57feed36 | 50 | Requires: %{name} = %{version}-%{release} |
bbf28779 | 51 | |
52 | %description authlibmud | |
2cb85e97 ER |
53 | This module allows muddleftpd to authenticate against player files on |
54 | a mud server. | |
bbf28779 | 55 | |
979db668 JR |
56 | %description authlibmud -l pl.UTF-8 |
57 | Ten moduł pozwala muddleftpd uwierzytelniać użytkowników w oparciu o | |
c98e72d7 | 58 | pliki graczy na serwerze muda. |
bbf28779 | 59 | |
60 | %package authlibmysql | |
c98e72d7 | 61 | Summary: MySQL authentication library for muddleftpd |
d05c5bbf | 62 | Summary(pl.UTF-8): Biblioteka uwierzytelniania MySQL dla muddleftpd |
c98e72d7 | 63 | Group: Daemons |
57feed36 | 64 | Requires: %{name} = %{version}-%{release} |
c98e72d7 | 65 | # no R: mysql - database can be remote |
bbf28779 | 66 | |
67 | %description authlibmysql | |
c98e72d7 JB |
68 | This module allows muddleftpd to authenticate using a MySQL server. |
69 | This module will read client information from a supplied | |
70 | table/database within MySQL. | |
bbf28779 | 71 | |
979db668 JR |
72 | %description authlibmysql -l pl.UTF-8 |
73 | Ten moduł pozwala muddleftpd uwierzytelniać użytkowników przy użyciu | |
74 | serwera MySQL. Moduł czyta informacje o kliencie z podanej tabeli/bazy | |
bbf28779 | 75 | MySQL. |
76 | ||
77 | %package authlibsmb | |
c98e72d7 | 78 | Summary: SMB authentication library for muddleftpd |
d05c5bbf | 79 | Summary(pl.UTF-8): Biblioteka do uwierzytelniania SMB dla muddleftpd |
c98e72d7 | 80 | Group: Daemons |
57feed36 | 81 | Requires: %{name} = %{version}-%{release} |
bbf28779 | 82 | |
83 | %description authlibsmb | |
c98e72d7 | 84 | This module allows muddleftpd to authenticate using a SMB server. |
2cb85e97 | 85 | |
979db668 JR |
86 | %description authlibsmb -l pl.UTF-8 |
87 | Ten moduł pozwala muddleftpd uwierzytelniać użytkowników korzystając z | |
bbf28779 | 88 | serwera SMB. |
89 | ||
4669f370 | 90 | %prep |
a35192e8 | 91 | %setup -q |
b7b3f937 | 92 | %patch0 -p1 |
b2f75383 | 93 | %patch1 -p1 |
2846da45 | 94 | %patch2 -p1 |
4669f370 | 95 | |
57feed36 JB |
96 | %{__perl} -pi -e 's/^(CFLAGS=.*)/$1 -fPIC/' modules/auth/*/Makefile.in |
97 | ||
4669f370 | 98 | %build |
46e0fd78 | 99 | %configure \ |
57feed36 | 100 | MYSQL_LIB_DIR=%{_libdir} \ |
c98e72d7 JB |
101 | --with-authmysql \ |
102 | --with-authmud | |
4669f370 AM |
103 | |
104 | %{__make} | |
105 | ||
106 | %install | |
107 | rm -rf $RPM_BUILD_ROOT | |
277f596b | 108 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_sysconfdir},/var/log} \ |
b9856771 | 109 | $RPM_BUILD_ROOT/etc/{pam.d,logrotate.d,rc.d/init.d,sysconfig,security} \ |
b2f75383 | 110 | $RPM_BUILD_ROOT/home/services/ftp/{pub,upload} \ |
111 | $RPM_BUILD_ROOT%{_libdir}/%{name} | |
4669f370 | 112 | |
277f596b JB |
113 | %{__make} install \ |
114 | BINDIR=$RPM_BUILD_ROOT%{_sbindir} \ | |
115 | MANDIR=$RPM_BUILD_ROOT%{_mandir} \ | |
b2f75383 | 116 | INFODIR=$RPM_BUILD_ROOT%{_infodir} \ |
117 | libdir=$RPM_BUILD_ROOT%{_libdir}/%{name} | |
277f596b | 118 | |
bbf28779 | 119 | # documentation of modules |
c98e72d7 JB |
120 | mv -f modules/auth/authlibmud/README modules/auth/authlibmud/README.authlibmud |
121 | mv -f modules/auth/authlibmysql/README modules/auth/authlibmysql/README.authlibmysql | |
2cb85e97 | 122 | mv -f modules/auth/authlibsmb/README modules/auth/authlibsmb/README.authlibsmb |
bbf28779 | 123 | |
277f596b JB |
124 | mv -f $RPM_BUILD_ROOT%{_sbindir}/ftpwho $RPM_BUILD_ROOT%{_bindir} |
125 | ||
126 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/pam.d/ftp | |
127 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/logrotate.d/muddleftpd | |
128 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/muddleftpd | |
129 | install %{SOURCE4} $RPM_BUILD_ROOT/etc/sysconfig/muddleftpd | |
f67e8d29 | 130 | install %{SOURCE6} $RPM_BUILD_ROOT%{_mandir}/man1/mudpasswd.1 |
5ba323cb | 131 | |
5f9913a5 GS |
132 | touch $RPM_BUILD_ROOT/var/log/muddleftpd |
133 | touch $RPM_BUILD_ROOT/etc/security/blacklist.ftp | |
277f596b | 134 | |
c62f1e19 | 135 | install src/ratiotool $RPM_BUILD_ROOT%{_bindir} |
5f9913a5 | 136 | install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/muddleftpd.conf |
277f596b | 137 | |
3ff2b67b JB |
138 | %clean |
139 | rm -rf $RPM_BUILD_ROOT | |
140 | ||
277f596b | 141 | %post |
73dbbcdf | 142 | [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1 |
143 | /sbin/chkconfig --add muddleftpd | |
65507290 | 144 | %service muddleftpd restart "muddleftpd daemon" |
4669f370 | 145 | |
277f596b | 146 | %preun |
73dbbcdf | 147 | if [ "$1" = "0" ]; then |
65507290 | 148 | %service muddleftpd stop |
73dbbcdf | 149 | /sbin/chkconfig --del muddleftpd |
150 | fi | |
4669f370 | 151 | |
b73f64a4 ER |
152 | %postun -p /sbin/postshell |
153 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
277f596b | 154 | |
4669f370 AM |
155 | %files |
156 | %defattr(644,root,root,755) | |
bbf28779 | 157 | %doc AUTHORS ChangeLog README TODO doc/*.txt examples |
4669f370 | 158 | %attr(750,root,root) %dir %{_sysconfdir} |
277f596b | 159 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/muddleftpd.conf |
2cb85e97 ER |
160 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/security/blacklist.ftp |
161 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/* | |
4669f370 | 162 | %attr(640,root,root) %ghost /var/log/* |
277f596b JB |
163 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/pam.d/* |
164 | %attr(754,root,root) /etc/rc.d/init.d/* | |
2cb85e97 | 165 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/* |
4669f370 AM |
166 | %attr(755,root,root) %{_bindir}/* |
167 | %attr(755,root,root) %{_sbindir}/* | |
fedb4fc5 | 168 | %dir %{_libdir}/%{name} |
169 | %dir /home/services/ftp | |
170 | %dir /home/services/ftp/pub | |
c8dc0021 | 171 | %attr(700,root,ftp) %verify(not mode) %dir /home/services/ftp/upload |
a35192e8 | 172 | %{_mandir}/man1/* |
5f5f9446 | 173 | %{_infodir}/*.info* |
bbf28779 | 174 | |
175 | %files authlibmud | |
c98e72d7 | 176 | %defattr(644,root,root,755) |
bbf28779 | 177 | %doc modules/auth/authlibmud/README.authlibmud |
c98e72d7 | 178 | %attr(755,root,root) %{_libdir}/%{name}/libauthmud.so |
bbf28779 | 179 | |
180 | %files authlibmysql | |
c98e72d7 | 181 | %defattr(644,root,root,755) |
bbf28779 | 182 | %doc modules/auth/authlibmysql/README.authlibmysql |
c98e72d7 | 183 | %attr(755,root,root) %{_libdir}/%{name}/libauthmysql.so |
bbf28779 | 184 | |
185 | %files authlibsmb | |
c98e72d7 | 186 | %defattr(644,root,root,755) |
bbf28779 | 187 | %doc modules/auth/authlibsmb/README.authlibsmb |
c98e72d7 | 188 | %attr(755,root,root) %{_libdir}/%{name}/libauthsmb.so |