Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > cccc624267aabf79704beb8770d2e5f4 > files > 1

FormMail-3.12c1-1mdk.src.rpm

%define name	FormMail
%define version	3.12c1
%define release	1mdk

Summary:	Send emails from web forms
Name:		%{name}
Version:	%{version}
Release:	%{release}
Source0:	formmail_compat-%{version}.tar.bz2
License:	GPL
URL:		http://nms-cgi.sourceforge.net/
Group:		Networking/WWW
Requires:	webserver
Requires:	perl
BuildRoot:	%{_tmppath}/%{name}-%{version}-root
BuildArch:	noarch

%description
%{name} is a script which allows you to receive the results of an
HTML form submission via an email message.

This script works as well with apache2 + mod_perl.

Install %{name} and you will also close a potential security hole
on your system.

%prep

%setup -q -n formmail_compat-%{version}

%build

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

install -d %{buildroot}/var/www/cgi-bin
#install -d %{buildroot}/var/www/perl
install -m755 %{name}.pl %{buildroot}/var/www/cgi-bin/
#install -m755 %{name}.pl %{buildroot}/var/www/perl/

# fix strange permissions
chmod 644 *

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files 
%defattr(-,root,root)
%doc ChangeLog EXAMPLES README
%attr(755,root,root) /var/www/cgi-bin/%{name}.pl
#%attr(755,root,root) /var/www/perl/%{name}.pl

%changelog
* Sun May 16 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 3.12c1-1mdk
- 3.12c1

* Sat Feb 01 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 2.21-1mdk
- initial cooker contrib