Search
j0ke.net Open Build Service
>
Projects
>
oldschool
>
sendmail-tls
> sendmail-8.13.8-tls.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File sendmail-8.13.8-tls.spec of Package sendmail-tls
%define TYPE SECUP Name: sendmail-tls Summary: BSD sendmail Version: 8.13.8 Release: 1 URL: http://www.sendmail.org/ Group: Networking/Daemons License: 1983 Eric P. Allman Vendor: InterNetX GmbH Packager: InterNetX Package Maintainer <cs@internetx.de> Provides: sendcf smailcfg smtp_daemon BuildRequires: patch gcc glibc glibc-devel cyrus-sasl cyrus-sasl-devel db db-devel shadow BuildRoot: %{_tmppath}/%{name}-%{version}-root Source: sendmail.%{version}.tar.gz Patch: sendmail-%{version}-tls.diff %description The "Unix System Administration Handbook" calls sendmail "The most complex and complete mail delivery system in common use...". Ready-made configuration files are included for systems connected by TCP/IP (with or without a name server) and for systems using UUCP. 'procmail' is used as a local mail agent. %prep %setup -n sendmail-%{version} %patch -p1 %build sh PATCH/createuser.sh if [ $(hostname -f) == "" ] ; then echo echo "Kein Hostname gesetzt!" exit 1 fi cp PATCH/site.config.m4 devtools/Site/ if [ "$CC" != "" ] ; then sed "s/^\(define(.confCC., .\).*\(.)\)$/\1$CC\2/" PATCH/site.config.m4 > devtools/Site/site.config.m4 fi # PATCH/sendmail/site.config.m4-distcc \ # read # cd libmilter # sh ./Build # cd .. SUBDIRS="libmilter libsm libsmutil libsmdb sendmail editmap mail.local mailstats makemap praliases rmail smrsh vacation" SHELL="/bin/sh" BUILD="./Build" OPTIONS="$CONFIG $FLAGS" for x in $SUBDIRS; do cd $x echo Making $x in: pwd # read $SHELL $BUILD $OPTIONS cd .. done # ./Build %install [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/etc/mail mkdir -p $RPM_BUILD_ROOT/usr/bin mkdir -p $RPM_BUILD_ROOT/usr/sbin mkdir -p $RPM_BUILD_ROOT/usr/share/man/man8 mkdir -p $RPM_BUILD_ROOT/usr/share/man/man1 ./Build install DESTDIR=$RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/var/spool/mqueue mkdir -p $RPM_BUILD_ROOT/usr/lib/sasl cd PATCH cp Makefile builddbs.sh README access internetx.mc trusted-users \ genericstable linux.mc linux.nullclient.mc mailertable relay-domains \ service-nodns.switch service.switch site.config.m4 userdb \ sendmail.cw virtusertable $RPM_BUILD_ROOT/etc/mail chmod 755 $RPM_BUILD_ROOT/etc/mail/builddbs.sh cp aliases $RPM_BUILD_ROOT/etc cp -pr auth/ $RPM_BUILD_ROOT/etc/mail cp Sendmail.conf $RPM_BUILD_ROOT/usr/lib/sasl touch $RPM_BUILD_ROOT/etc/mail/sendmail.cf ln -s /etc/aliases $RPM_BUILD_ROOT/etc/mail/aliases ln -s /etc/mail/sendmail.cf $RPM_BUILD_ROOT/etc/sendmail.cf ln -s /usr/sbin/sendmail $RPM_BUILD_ROOT/usr/lib/sendmail mkdir -p $RPM_BUILD_ROOT/etc/init.d install sendmail $RPM_BUILD_ROOT/etc/init.d/sendmail ln -sf /etc/init.d/sendmail $RPM_BUILD_ROOT/usr/sbin/rcsendmail mkdir -p $RPM_BUILD_ROOT/var/adm/fillup-templates install -m 644 rc.config.sendmail $RPM_BUILD_ROOT/var/adm/fillup-templates cd .. mkdir -p $RPM_BUILD_ROOT/usr/share/sendmail cp -r cf/* $RPM_BUILD_ROOT/usr/share/sendmail chgrp smmsp /usr/sbin/sendmail chmod +g sendmail %post sbin/insserv etc/init.d/sendmail echo -n "Updating etc/rc.config..." if test -x bin/fillup ; then if test -e etc/SuSE-release ; then if test -e etc/rc.config.d/sendmail.rc.config ; then bin/fillup -q -t -d "=" etc/rc.config.d/sendmail.rc.config var/adm/fillup-templates/rc.config.sendmail else bin/fillup -q -t -r -i -d "=" etc/rc.config var/adm/fillup-templates/rc.config.sendmail etc/rc.config.d/sendmail.rc.config mv etc/rc.config.new etc/rc.config fi else bin/fillup -q -d "=" etc/rc.config var/adm/fillup-templates/rc.config.sendmail fi echo "Done." else echo echo "ERROR: fillup not found. This should not happen. Please compare" echo "etc/rc.config and var/adm/fillup-templates/rc.config.sendmail and" echo "update by hand." fi grep ^smmsp /etc/group 2>/dev/null >/dev/null if [ $? == 1 ] ; then groupadd smmsp fi id -u smmsp 2>/dev/null 1>/dev/null if [ $? == 1 ] ; then useradd smmsp -g smmsp -d /var/spool/clientmqueue fi chown root.root /var/spool/mqueue chown smmsp.smmsp /var/spool/clientmqueue chmod 700 /var/spool/mqueue chmod 770 /var/spool/clientmqueue WWWRUN_HOME=$(grep ^wwwrun /etc/passwd | cut -d : -f 6) NOBODY_HOME=$(grep ^nobody /etc/passwd | cut -d : -f 6) if [ "$WWWRUN_HOME" != "/var/lib/wwwrun" ] ; then usermod wwwrun -d /var/lib/wwwrun echo "Old homedirectory of user wwwrun was \"$WWWRUN_HOME\", set to \"/var/lib/wwwrun\"" fi if [ "$NOBODY_HOME" != "/var/lib/nobody" ] ; then usermod wwwrun -d /var/lib/nobody echo "Old homedirectory of user nobody was \"$NOBODY_HOME\", set to \"/var/lib/nobody\"" fi cd /etc/mail/ cp sendmail.cf sendmail.cf-rpmsave m4 internetx.mc > sendmail.cf # newaliases # make all # newaliases chmod 644 /etc/mail/*.db sh builddbs.sh chmod 644 /etc/mail/*.db killall sendmail && killall sendmail && killall sendmail && killall sendmail rcsendmail start %postun sbin/insserv etc/init.d/ %files %doc FAQ %doc INSTALL %doc KNOWNBUGS %doc LICENSE %doc PGPKEYS %doc README %doc RELEASE_NOTES %doc doc/op/op.ps %dir /etc/mail #%dir /etc/mail/auth # %config /etc/mail/auth/* #%config /etc/mail/auth/auth.info %config(noreplace) /etc/sendmail.cf %config(noreplace) /etc/aliases # %config /etc/* %config(noreplace) /etc/mail/* #%config /etc/mail/helpfile #%config /etc/mail/statistics #%config /etc/mail/submit.cf #%config /etc/mail/Makefile #%config /etc/mail/README #%config /etc/mail/access #%config /etc/mail/aliases #%config /etc/mail/genericstable ##%config /etc/mail/linux.mc ##%config /etc/mail/linux.nullclient.mc #%config /etc/mail/internetx.mc #%config /etc/mail/mailertable #%config /etc/mail/relay-domains #%config /etc/mail/service-nodns.switch #%config /etc/mail/service.switch #%config /etc/mail/userdb #%config /etc/mail/virtusertable #%config /etc/mail/trusted-users # %config /etc/mail/sendmail.cf #%config /etc/mail/sendmail.cw # %config /usr/lib/sasl/Sendmail.conf %config /usr/lib/sasl/* # /etc/init.d/sendmail /etc/init.d/* %dir /var/spool/mqueue %dir /var/spool/clientmqueue # /var/adm/fillup-templates/rc.config.sendmail /var/adm/fillup-templates/* /usr/share/man/*/* # /usr/share/man/man8/editmap.8.gz # /usr/share/man/man8/makemap.8.gz # /usr/share/man/man8/praliases.8.gz # /usr/share/man/man8/smrsh.8.gz # /usr/share/man/man8/sendmail.8.gz # /usr/share/man/man8/mailstats.8.gz # /usr/share/man/man1/vacation.1.gz /usr/lib/sendmail /usr/bin/* # /usr/bin/newaliases # /usr/bin/mailq # /usr/bin/hoststat # /usr/bin/purgestat # /usr/bin/vacation /usr/sbin/* # /usr/sbin/sendmail # /usr/sbin/editmap # /usr/sbin/mailstats # /usr/sbin/makemap # /usr/sbin/praliases # /usr/sbin/smrsh # /usr/sbin/rcsendmail %dir /usr/share/sendmail /usr/share/sendmail/* %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT rm -rf %{_builddir}/%{name}-%{version}