1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101
|
%define desktop_vendor newrpms
%{!?_dist: %{expand: %%define dist rhfc12}}
Summary: GADMIN-ProFTPD -- A GTK+ administation tool for the ProFTPD server.
Name: gadmin-proftpd
Version: 0.4.0
Release: 0.1.%{dist}.nr
License: GPL
Group: Applications/System
URL: http://mange.dynalias.org/linux.html
Source0: http://mange.dynalias.org/linux/%{name}/%{name}-%{version}.tar.gz
BuildRoot: %{_builddir}/%{name}-%{version}-root
Provides: gadmin-proftpd gprostats
%description
GADMIN-ProFTPD is a fast and easy to use GTK+ administration tool for the proftpd standalone server.
%prep
%setup -q
%configure SYSINIT_START_CMD="chkconfig proftpd on" SYSINIT_STOP_CMD="chkconfig proftpd off"
%build
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
%makeinstall INSTALL_USER=`id -un` INSTALL_GROUP=`id -gn`
# pam auth
install -d %{buildroot}%{_sysconfdir}/pam.d/
install -d %{buildroot}%{_sysconfdir}/security/console.apps
install -m 644 etc/pam.d/%{name} %{buildroot}%{_sysconfdir}/pam.d/%{name}
install -m 644 etc/security/console.apps/%{name} %{buildroot}%{_sysconfdir}/security/console.apps/%{name}
# desktop entry
install -d %{buildroot}%{_datadir}/applications
install -m 644 desktop/gadmin-proftpd.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
# doc files..
install -d %{buildroot}%{_datadir}/doc/%{name}
install -m 644 README COPYING AUTHORS ChangeLog %{buildroot}%{_datadir}/doc/%{name}
%find_lang %name
%post
if test ! -h %{_bindir}/gadmin-proftpd ; then \
ln -s %{_bindir}/consolehelper %{_bindir}/gadmin-proftpd ; \
fi;
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(0755, root, root)
%{_sbindir}/%{name}
%{_sbindir}/gprostats
%defattr(0644, root, root)
#%doc COPYING AUTHORS ChangeLog
%{_datadir}/doc/%{name}/README
%{_datadir}/doc/%{name}/COPYING
%{_datadir}/doc/%{name}/AUTHORS
%{_datadir}/doc/%{name}/ChangeLog
%{_sysconfdir}/pam.d/%{name}
%{_sysconfdir}/security/console.apps/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/*.png
%dir %{_datadir}/pixmaps/%{name}
%{_datadir}/pixmaps/%{name}/*.png
%{_datadir}/pixmaps/%{name}/%{name}36.xpm
%changelog
* Wed Mar 17 2010 Magnus-swe <magnus-swe@telia.com>
- Better handling of directories with spaces and
- the AllowOverwrite option.
* Thu Feb 11 2010 Magnus-swe <magnus-swe@telia.com>
- Adds TLS option:
- TLSOptions AllowClientRenegotiations
* Fri Aug 28 2009 Magnus-swe <magnus-swe@telia.com>
- Removes the global apply and directory apply buttons.
- Combines "add user" and "apply user" buttons.
- Adds more information about adding new users.
- Sets missing version color.
- Swedish translation update.
* Wed Jul 22 2009 Magnus-swe <magnus-swe@telia.com>
- Adds a new user button.
- Status is shown in red or green.
* Sat Jun 20 2009 Magnus-swe <magnus-swe@telia.com>
- Adds support for dynamically loaded modules.
* Thu Oct 15 2008 Magnus-swe <magnus-swe@telia.com>
- Adds a new Swedish translation.
- Configuration backup, restore and auto backup.
* Thu Oct 09 2008 Magnus-swe <magnus-swe@telia.com>
- Fixed the way it populates and mod_tls handling.
* Thu Sep 25 2008 Magnus-swe <magnus-swe@telia.com>
- Fixed certificates validity days.
* Wed Jun 18 2008 Magnus-swe <magnus-swe@telia.com>
- Added signed certificate creation and explicit encryption.
|