2 changed files with 98 additions and 0 deletions
@ -0,0 +1,11 @@
|
||||
--- libgetopt/getopt.h.orig Fri Feb 8 16:40:49 2002
|
||||
+++ libgetopt/getopt.h Fri Feb 8 16:41:15 2002
|
||||
@@ -138,7 +138,7 @@
|
||||
`getopt'. */
|
||||
|
||||
#if (defined __STDC__ && __STDC__) || defined __cplusplus
|
||||
-# ifdef __GNU_LIBRARY__
|
||||
+# if defined(__GNU_LIBRARY__) || defined(__FreeBSD__)
|
||||
/* Many other libraries have conflicting prototypes for getopt, with
|
||||
differences in the consts, in stdlib.h. To avoid compilation
|
||||
errors, only prototype getopt for the GNU C library. */
|
@ -0,0 +1,87 @@
|
||||
## |
||||
## mapson.spec -- OpenPKG RPM Specification |
||||
## Copyright (c) 2000-2002 Cable & Wireless Deutschland GmbH |
||||
## Copyright (c) 2000-2002 The OpenPKG Project <http://www.openpkg.org/> |
||||
## Copyright (c) 2000-2002 Ralf S. Engelschall <rse@engelschall.com> |
||||
## |
||||
## Permission to use, copy, modify, and distribute this software for |
||||
## any purpose with or without fee is hereby granted, provided that |
||||
## the above copyright notice and this permission notice appear in all |
||||
## copies. |
||||
## |
||||
## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED |
||||
## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
||||
## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
||||
## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR |
||||
## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
||||
## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
||||
## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF |
||||
## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
||||
## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
||||
## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT |
||||
## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
||||
## SUCH DAMAGE. |
||||
## |
||||
|
||||
%define V_real 2.0-beta-2 |
||||
%define V_here 2.0b2 |
||||
|
||||
# package information |
||||
Name: mapson |
||||
Summary: The mapSoN Spam Filter |
||||
URL: http://mapson.sourceforge.net/ |
||||
Vendor: Peter Simons |
||||
Packager: The OpenPKG Project |
||||
Distribution: OpenPKG [EXP] |
||||
Group: Mail |
||||
License: GPL |
||||
Version: %{V_here} |
||||
Release: 20020208 |
||||
|
||||
# list of sources |
||||
Source0: http://prdownloads.sourceforge.net/mapson/mapson-%{V_real}.tar.gz |
||||
Patch0: mapson.patch |
||||
|
||||
# build information |
||||
Prefix: %{l_prefix} |
||||
BuildRoot: %{l_buildroot} |
||||
BuildPreReq: OpenPKG, openpkg >= 20020206, gcc, make |
||||
PreReq: OpenPKG, openpkg >= 20020206, MTA |
||||
AutoReq: no |
||||
AutoReqProv: no |
||||
|
||||
%description |
||||
mapSoN is a simple but effective Spam filter for Unix, that is |
||||
installed via the system's .forward mechanism. It prevents UCE by |
||||
verifying the sender through a requested reply. |
||||
|
||||
%prep |
||||
%setup -q -n mapson-%{V_real} |
||||
%patch -p0 |
||||
|
||||
%build |
||||
CC="%{l_cc}" \ |
||||
CXX="%{l_cxx}" \ |
||||
CFLAGS="%{l_cflags -O}" \ |
||||
CXXFLAGS="%{l_cflags -O}" \ |
||||
./configure \ |
||||
--prefix=%{l_prefix} \ |
||||
--sysconfdir=%{l_prefix}/etc/mapson \ |
||||
--with-mta=%{l_prefix}/sbin/sendmail |
||||
%{l_make} %{l_mflags} |
||||
|
||||
%install |
||||
rm -rf $RPM_BUILD_ROOT |
||||
%{l_make} %{l_mflags} install DESTDIR=$RPM_BUILD_ROOT |
||||
mv $RPM_BUILD_ROOT%{l_prefix}/etc/mapson/config-sample \ |
||||
$RPM_BUILD_ROOT%{l_prefix}/etc/mapson/config |
||||
mv $RPM_BUILD_ROOT%{l_prefix}/share/mapson/reqmail.template-sample \ |
||||
$RPM_BUILD_ROOT%{l_prefix}/share/mapson/reqmail.template |
||||
strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true |
||||
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} |
||||
|
||||
%files -f files |
||||
|
||||
%clean |
||||
rm -rf $RPM_BUILD_ROOT |
||||
|
Loading…
Reference in new issue