## ## qpopper.spec -- OpenPKG RPM Specification ## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH ## Copyright (c) 2000-2001 Ralf S. Engelschall ## ## 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. ## # package information Name: qpopper Summary: POP3 Daemon URL: http://www.eudora.com/qpopper/ Vendor: Qualcom Packager: The OpenPKG Project Distribution: OpenPKG [EXP] Group: Mail License: GPL Version: 4.0.3 Release: %{l_branch}.0 # list of sources Source0: ftp://ftp.qualcomm.com/eudora/servers/unix/popper/qpopper%{version}.tar.gz Source1: rc.qpopper # build information Prefix: %{l_prefix} BuildRoot: %{l_buildroot} BuildPreReq: OpenPKG, openpkg >= 20011023.0, MTA, openssl PreReq: OpenPKG, openpkg >= 20011023.0, MTA, openssl AutoReq: no AutoReqProv: no %description Qualcom Popper is a POP3 Daemon. %prep %setup0 -q -n qpopper%{version} %build CC="%{l_cc}" \ CFLAGS="%{l_cflags -O}" \ ./configure \ --prefix=%{l_prefix} \ --sbindir=%{l_prefix}/sbin \ --disable-bulldb \ --enable-servermode \ --enable-standalone \ --enable-log-login \ --with-pam=qpopper \ --enable-home-dir-mail=.mail/inbox \ --with-log-facility=LOG_LOCAL5 \ --enable-nonauth-file=%{l_prefix}/etc/qpopper/users.deny \ --with-openssl=%{l_prefix} \ --disable-nls %{l_rpmtool} subst \ 's;\(MAIL_COMMAND[^"]*"\)[^"]*;\1%{l_prefix}/sbin/sendmail;' \ -- config.h %{l_make} %{l_mflags -O} %install rm -rf $RPM_BUILD_ROOT %{l_shtool} mkdir -f -p -m 755 \ $RPM_BUILD_ROOT%{l_prefix}/sbin \ $RPM_BUILD_ROOT%{l_prefix}/man/man8 \ $RPM_BUILD_ROOT%{l_prefix}/etc/qpopper %{l_shtool} install -c -m 644 \ samples/qpopper.config $RPM_BUILD_ROOT%{l_prefix}/etc/qpopper/ %{l_shtool} install -c -s -m 755 \ popper/popper $RPM_BUILD_ROOT%{l_prefix}/sbin/qpopper %{l_shtool} install -c -m 644 \ man/popper.8 $RPM_BUILD_ROOT%{l_prefix}/man/man8/qpopper.8 %{l_shtool} install -c -m 644 \ /dev/null $RPM_BUILD_ROOT%{l_prefix}/etc/qpopper/users.deny %{l_shtool} mkdir -f -p -m 755 \ $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d %{l_shtool} install -c -m 755 -e "s;@l_prefix@;%{l_prefix};g" \ %{SOURCE rc.qpopper} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/ %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} %files -f files %clean rm -rf $RPM_BUILD_ROOT %post # add PAM configuration entry check=`grep '^#' /etc/pam.conf` if [ ".$check" = . ]; then ( echo "#" case "%{l_target}" in *-freebsd* ) echo "qpopper auth required pam_unix.so try_first_pass" ;; *-linux* ) echo "qpopper auth required /lib/security/pam_unix.so shadow nodelay" ;; *-solaris* ) echo "qpopper auth required /usr/lib/security/pam_unix.so try_first_pass" ;; esac echo "#" ) >>/etc/pam.conf fi %preun # remove PAM configuration entry check=`grep '^#' /etc/pam.conf` if [ ".$check" != . ]; then cp /etc/pam.conf /etc/pam.conf.tmp && \ sed -e '/^#/,/^#<\/OpenPKG>/d' \ /etc/pam.conf && \ rm -f /etc/pam.conf.tmp fi