qpopper.spec
Ziemek Borowski
ziembor w FAQ-bot.ZiemBor.Waw.PL
Wto, 8 Wrz 1998, 21:29:57 CEST
Name: qpopper
Version: 2.53
Release: 1
Copyright: BSD-like
Group: Networking/Daemons
Source: ftp://ftp.qualcomm.com/eudora/servers/unix/popper/%{name}%{version}.tar.Z
Source1: qpopper.pamd
Patch: qpopper2.53-linux-pam.patch
URL: http://www.eudora.com/freeware
Summary: POP3 daemon from Qualcomm
Summary(pl): serwer POP3 tworzony przez Qualcomm
Requires: pam >= 0.59
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-root
%description
POP3 server from QUALCOMM, with the following features: lower memory
requirements, thus faster UIDL assists POP clients which "leave mail
on server" in determining which messages are new. Implements some
other extended POP3 commands.
This version of qpopper is shadow passwords aware, provied your libc
supports this.
The Linux version also supports the PAM library (so far the PAM
modifications aren't officially supported by Qualcomm. All questions,
complaints etc. according PAM support should be directed to
Marek Habersack <grendel w vip.maestro.com.pl>)
%description -l pl
qpopper jest serwerem POP3 tworzonym przez QUALCOMM. Wymaga zdecydowanie
mniej zasobów niż inne serwer. Implementuje funkcje zostawiana wiadomości
na serwerze (a także inne rozszerzenia POP3 takie jak APOP, czy biuletins oraz XMIT and XLIST).
Używa tak dostarczanych przez bibliotekę libc funkcji ,,shadow passwords''
jak i (w wersji Linuksowej) PAM (nie wspierane przez Qualcomm poprawki
zostały wykonane przez Marka Habersacka <grendel w vip.maestro.com.pl>).
%prep
%setup -q -n %{name}%{version}
%patch -p1
%build
CFLAGS="$RPM_OPT_FLAGS" ./configure \
--prefix=/usr \
--enable-bulletins=/var/spool/mail/bulletins \
--enable-apop=/etc/pop.auth \
--with-apopuid=mail \
--with-pam
make CFLAGS="$RPM_OPT_FLAGS"
%clean
rm -rf $RPM_BUILD_ROOT
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/{sbin,man/man8}
mkdir -p $RPM_BUILD_ROOT/var/spool/mail/bulletins
mkdir -p $RPM_BUILD_ROOT/etc/pam.d/
install -s popper $RPM_BUILD_ROOT/usr/sbin/in.qpopper
sed -e 's#/usr/etc/popper#/usr/sbin/in.qpopper#g' < popper.8 > $RPM_BUILD_ROOT/usr/man/man8/in.qpopper.8
install popauth $RPM_BUILD_ROOT/usr/sbin/popauth
install popauth.8 $RPM_BUILD_ROOT/usr/man/man8/popauth.8
install $RPM_SOURCE_DIR/qpopper.pamd $RPM_BUILD_ROOT/etc/pam.d/qpopper
touch $RPM_BUILD_ROOT/etc/pop.auth
touch $RPM_BUILD_ROOT/etc/pop.deny
%post
echo -e ` ls -lFd /usr/sbin/popauth `
if [ ! -f /etc/pop.auth ]; then
popauth -init
fi
if [ ! -f /etc/pop.deny ]; then
echo -e "root \n" > /etc/pop.deny
fi
if [ -f /etc/inetd.conf ]; then
echo -e "Add Qpopper entries to /etc/inetd.conf \n"
cat /etc/inetd.conf | grep -v "pop-3" | grep -v "End of inetd.conf" \
> /tmp/inetd.conf
echo "# Qualcomm popper" >> /tmp/inetd.conf
echo "pop-3 stream tcp nowait root /usr/sbin/tcpd /usr/sbin/in.qpopper" >> /tmp/inetd.conf
echo "# End of inetd.conf" >> /tmp/inetd.conf
mv /tmp/inetd.conf /etc/inetd.conf
fi
if [ -e /var/run/inetd.pid ]; then
kill -HUP `cat /var/run/inetd.pid` ;
fi
%preun
if [ -f /etc/inetd.conf ]; then
echo -e "Removing Qpopper entries from /etc/inetd.conf \n"
cat /etc/inetd.conf | grep -v "in.qpopper" | grep -v "Qualcomm popper" \
> /tmp/inetd.conf
mv /tmp/inetd.conf /etc/inetd.conf
fi
if [ -e /var/run/inetd.pid ]; then
kill -HUP `cat /var/run/inetd.pid` ;
fi
%files
%defattr(644, root, root, 755)
%attr(644,root,root) %doc License INSTALL doc
%attr(644,root,mail) %dir /var/spool/mail/bulletins
%attr(711,root,root) /usr/sbin/in.qpopper
%attr(4751,mail,root) /usr/sbin/popauth
%attr(644,root,root) /usr/man/man8/in.qpopper.8
%attr(644,root,root) /usr/man/man8/popauth.8
%attr(644,root,root) %config /etc/pam.d/qpopper
%attr(600, mail, mail) %ghost %config %verify(user, group, mode) /etc/pop.auth
%attr(600, mail, mail) %ghost %config %verify(user, group, mode) /etc/pop.deny
%changelog
* Tue Sep 8 1998 Ziemek Borowski <ziembor w faq-bot.ziembor.waw.pl>
[2.53-1]
- Polish .spec translation
- more detailed %attr for binaries (mail SUID for /usr/sbin/popauth)
- %post & %postud added (from Ximenes Zalteca <ximenes w mythic.net> spec:
http://www.kiva.net/~cdent/pam/)
- %ghost for /etc/pop.auth & /etc/pop.deny
- todo: qmail subpackage
* Tue Sep 8 1998 Marek Habersack <grendel w vip.maestro.com.pl>
[2.53-1PAM]
- first .spec release of this version
Więcej informacji o liście dyskusyjnej pld-devel-pl