|
|
|
@ -38,8 +38,6 @@
|
|
|
|
|
# README file in the mail.local directory. You can force |
|
|
|
|
# the install using 'Build force-install'. |
|
|
|
|
|
|
|
|
|
%define V_sendmail 8.12.5 |
|
|
|
|
|
|
|
|
|
# package information |
|
|
|
|
Name: sendmail |
|
|
|
|
Summary: Mail Transfer Agent |
|
|
|
@ -49,11 +47,11 @@ Packager: The OpenPKG Project
|
|
|
|
|
Distribution: OpenPKG [BRK] |
|
|
|
|
Group: Mail |
|
|
|
|
License: BSD |
|
|
|
|
Version: %{V_sendmail} |
|
|
|
|
Version: 8.12.5 |
|
|
|
|
Release: 20020808 |
|
|
|
|
|
|
|
|
|
# list of sources |
|
|
|
|
Source0: ftp://ftp.sendmail.org/pub/sendmail/sendmail.%{V_sendmail}.tar.gz |
|
|
|
|
Source0: ftp://ftp.sendmail.org/pub/sendmail/sendmail.%{version}.tar.gz |
|
|
|
|
Source1: etc.sendmail.tar |
|
|
|
|
Source2: cf.tar |
|
|
|
|
Source2: rc.sendmail |
|
|
|
@ -82,7 +80,7 @@ Provides: MTA
|
|
|
|
|
%setup1 -q -T -D -a 1 |
|
|
|
|
|
|
|
|
|
# add own M4 stuff to Sendmail configuration set |
|
|
|
|
( cd sendmail-%{V_sendmail} |
|
|
|
|
( cd sendmail-%{version} |
|
|
|
|
%{l_tar} xf %{SOURCE cf.tar} |
|
|
|
|
) |
|
|
|
|
|
|
|
|
@ -90,12 +88,12 @@ Provides: MTA
|
|
|
|
|
PATH="%{l_prefix}/bin:$PATH"; export PATH |
|
|
|
|
|
|
|
|
|
# build Sendmail |
|
|
|
|
( cd sendmail-%{V_sendmail} |
|
|
|
|
( cd sendmail-%{version} |
|
|
|
|
|
|
|
|
|
# indicate with a plus sign that we use a patched version |
|
|
|
|
chmod u+w sendmail/version.c |
|
|
|
|
%{l_shtool} subst \ |
|
|
|
|
-e 's;\(Version\[\][^"]*\)"[^"]*";\1"%{V_sendmail}+";' \ |
|
|
|
|
-e 's;\(Version\[\][^"]*\)"[^"]*";\1"%{version}+";' \ |
|
|
|
|
sendmail/version.c |
|
|
|
|
|
|
|
|
|
# configure Sendmail |
|
|
|
@ -161,7 +159,7 @@ Provides: MTA
|
|
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/man/cat8 |
|
|
|
|
|
|
|
|
|
# install Sendmail |
|
|
|
|
( cd sendmail-%{V_sendmail} |
|
|
|
|
( cd sendmail-%{version} |
|
|
|
|
myusr=`(id -un) 2>/dev/null ||\ |
|
|
|
|
(whoami) 2>/dev/null ||\ |
|
|
|
|
(who am i | cut "-d " -f1) 2>/dev/null ||\ |
|
|
|
|