Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37529089
en ru br
Репозитории ALT
S:6.4.37-alt1
5.1: 6.3.17-alt0.M50P.1
4.1: 6.3.8-alt6.1.M41.1
4.0: 6.3.8-alt4
+updates:6.3.8-alt4
3.0: 6.2.5.2-alt1
www.altlinux.org/Changes

Группа :: Сети/Почта
Пакет: fetchmail

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: fetchmail
Version: 6.3.8
Release: alt4

Summary: Full-featured POP/IMAP/ETRN mail retrieval daemon
Group: Networking/Mail
License: GPL

Url: http://www.fetchmail.info

Source: http://download.berlios.de/fetchmail/%name-%version.tar.bz2
Source1: %name.init
Source3: fetchmailrc.example
Source10: fetchmailconf-large.png
Source11: fetchmailconf-mini.png
Source12: fetchmailconf.png
Source13: fetchmailconf.desktop

Patch1: %name-5.6.2-contrib.patch
Patch2: %name-6.3.0-fetchmailconf.patch
Patch3: %name-6.3.3-nopermcheck.patch
Patch4: http://fetchmail.berlios.de/fetchmail-SA-2007-02.txt

Packager: Michael Shigorin <mike at altlinux.org>

Requires: %_sbindir/sendmail
Requires: setup >= 2.1.9-ipl15mdk

BuildPreReq: rpm-build-python

# Automatically added by buildreq on Thu Dec 15 2005

BuildRequires: flex libe2fs-devel libkrb5-devel libssl-devel python-base python-dev python-modules-encodings

%package -n %{name}conf
Summary: A utility for graphically configuring your %name preferences.
Group: System/Configuration/Networking
Requires: %name = %version-%release, tkinter

%package daemon
Summary: SySV init script for demonize %name for sucking emails
Group: System/Servers
PreReq: %name = %version-%release
PreReq: shadow-utils, chkconfig

%package contrib
Summary: Various contributed software designed to work with %name
Group: System/Base
Requires: %name = %version-%release

%description
Fetchmail is a free, full-featured, robust, and well-documented remote mail
retrieval and forwarding utility intended to be used over on-demand TCP/IP
links (such as SLIP or PPP connections).

It retrieves mail from remote mail servers and forwards it to your local
(client) machine's delivery system, so it can then be read by normal
mail user agents such as Mutt, Elm, Pine, (X)Emacs/Gnus or Mailx.

Fetchmail supports every remote-mail protocol currently in use on the
Internet (POP2, POP3, RPOP, APOP, KPOP, all IMAPs, ESMTP ETRN) for
retrieval.  Then Fetchmail forwards the mail through SMTP or a mail
delivery agent (MDA) program of your choice, so you can
read it through your normal mail client.

You may also want to install and configure a local SMTP server, such
as postfix-smtpd, as that's what fetchmail uses for delivery
by default.

%description -n %{name}conf
Fetchmailconf is a TCL/TK application for graphically configuring your
~/.%{name}rc preferences file.

Fetchmail has many options which can be daunting to the new user.

This utility takes some of the guesswork and hassle out of setting up %name.

%description daemon
SySV init script for demonize %name for sucking emails.

%description contrib
Various contributed software designed to work with %name.

%prep
%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p0
cp -a %SOURCE3 fetchmailrc.example

%build
export ac_cv_path_procmail=%_bindir/procmail
export ac_cv_path_sendmail=%_sbindir/sendmail
export ac_cv_lib_intl_gettext=no
export CFLAGS=-I%_includedir/krb5
%configure \
--enable-fallback=sendmail \
--enable-RPA \
--enable-NTLM \
--enable-SDPS \
--with-ssl \
--with-gssapi \
--with-kerberos5 \
--without-kerberos
%make_build

%install
%makeinstall

rm -rf contrib/RCS
chmod 644 contrib/*

install -pD -m755 %SOURCE1 %buildroot%_initdir/%name

touch %buildroot%_sysconfdir/%{name}rc

# Menu entry

#mkdir -p %buildroot/{%_liconsdir,%_miconsdir,%_menudir}
#cat << EOF >%buildroot%_menudir/%{name}conf
#?package(%{name}conf): command="%{name}conf" icon="%{name}conf.png" \
#needs="x11" title="Fetchmail Configuration" \
#longtitle="Configuration tool for Fetchmail" section="Networking/Mail"
#EOF

install -pD -m644 %SOURCE10 %buildroot%_liconsdir/%{name}conf.png
install -pD -m644 %SOURCE11 %buildroot%_miconsdir/%{name}conf.png
install -pD -m644 %SOURCE12 %buildroot%_iconsdir/%{name}conf.png
install -pD -m644 %SOURCE13 %buildroot%_desktopdir/%{name}conf.desktop

%find_lang %name

cat >README.%name-conf <<EOF
Fetchmailconf is a TCL/TK application for graphically configuring your
~/.fetchmailrc preferences file.

Fetchmail has many options which can be daunting to the new user.

This utility takes some of the guesswork and hassle out of setting up
fetchmail.
EOF

%post -n %{name}conf
%update_menus

%postun -n %{name}conf
%clean_menus

%pre -n %name-daemon
%_sbindir/groupadd -rf %name
%_sbindir/useradd -r -n -M -g %name -d /dev/null -s /dev/null %name &>/dev/null ||:

%post -n %name-daemon
%post_service %name

%preun -n %name-daemon
%preun_service %name

%files -f %name.lang
%_bindir/%name
%_man1dir/%name.*
%doc FAQ FEATURES NEWS NOTES README README.SSL TODO *.html *.txt
%doc fetchmailrc.example

%files -n %{name}conf
%_bindir/%{name}conf
%python_sitelibdir/*
#_menudir/*
%_desktopdir/*.desktop
%_iconsdir/*.png
%_liconsdir/*.png
%_miconsdir/*.png
%_man1dir/%{name}conf.*

%files daemon
%attr(640,root,%name) %config(noreplace,missingok) %_sysconfdir/%{name}rc
%config(noreplace) %_initdir/%name

%files contrib
%doc contrib/*

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin