masqmail

diff suse/masqmail.spec.in @ 0:08114f7dcc23

this is masqmail-0.2.21 from oliver kurth
author meillo@marmaro.de
date Fri, 26 Sep 2008 17:05:23 +0200
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/suse/masqmail.spec.in	Fri Sep 26 17:05:23 2008 +0200
     1.3 @@ -0,0 +1,124 @@
     1.4 +Summary: An offline mail server with pop3 client support
     1.5 +Name: masqmail
     1.6 +Version: @VERSION@
     1.7 +Release: 1
     1.8 +Copyright: GPL
     1.9 +Group: Networking/Daemons
    1.10 +Distribution: innominate
    1.11 +Packager: Oliver Kurth <kurth@innominate.de>
    1.12 +Source: http://masqmail.cx/masqmail/download/masqmail-@VERSION@.tar.gz
    1.13 +BuildRoot: /var/tmp/masqmail-root/
    1.14 +
    1.15 +%description
    1.16 +MasqMail is a mail server designed for hosts that do not have a
    1.17 +permanent internet connection eg. a home network or a single host at
    1.18 +home. It has special support for connections to different ISPs. It
    1.19 +replaces sendmail or other MTAs such as qmail or exim.
    1.20 +
    1.21 +%prep
    1.22 +
    1.23 +%setup -n masqmail-@VERSION@
    1.24 +
    1.25 +%build
    1.26 +#
    1.27 +#choose a line or a combination:
    1.28 +#
    1.29 +#CFLAGS="$RPM_OPT_FLAGS" ./configure --disable-pop3
    1.30 +#CFLAGS="$RPM_OPT_FLAGS" ./configure --enable-auth
    1.31 +#CFLAGS="$RPM_OPT_FLAGS" ./configure --enable-ident
    1.32 +CFLAGS="$RPM_OPT_FLAGS" ./configure --enable-auth --enable-ident
    1.33 +
    1.34 +CFLAGS="$RPM_OPT_FLAGS" make
    1.35 +
    1.36 +%install
    1.37 +if [ -d $RPM_BUILD_ROOT ] ; then
    1.38 +	rm -rf $RPM_BUILD_ROOT
    1.39 +fi
    1.40 +
    1.41 +# setup directory environment:
    1.42 +mkdir $RPM_BUILD_ROOT
    1.43 +mkdir -p $RPM_BUILD_ROOT/var/spool/masqmail
    1.44 +mkdir -p $RPM_BUILD_ROOT/var/spool/masqmail/input
    1.45 +mkdir -p $RPM_BUILD_ROOT/var/spool/masqmail/lock
    1.46 +mkdir -p $RPM_BUILD_ROOT/var/spool/masqmail/popuidl
    1.47 +mkdir -p $RPM_BUILD_ROOT/usr/sbin
    1.48 +mkdir -p $RPM_BUILD_ROOT/usr/bin
    1.49 +mkdir -p $RPM_BUILD_ROOT/usr/lib
    1.50 +mkdir -p $RPM_BUILD_ROOT/etc
    1.51 +mkdir -p $RPM_BUILD_ROOT/etc/masqmail
    1.52 +mkdir -p $RPM_BUILD_ROOT/etc/masqmail/tpl
    1.53 +mkdir -p $RPM_BUILD_ROOT/var/masqmail
    1.54 +
    1.55 +# install
    1.56 +make DESTDIR=$RPM_BUILD_ROOT install
    1.57 +/usr/bin/strip --remove-section=.comment --remove-section=.note --strip-unneeded $RPM_BUILD_ROOT/usr/sbin/masqmail
    1.58 +
    1.59 +# sendmail links
    1.60 +ln -fs './masqmail' $RPM_BUILD_ROOT/usr/sbin/sendmail
    1.61 +ln -fs '../sbin/masqmail' $RPM_BUILD_ROOT/usr/bin/mailq
    1.62 +ln -fs '../sbin/masqmail' $RPM_BUILD_ROOT/usr/bin/mailrm
    1.63 +ln -fs '../sbin/masqmail' $RPM_BUILD_ROOT/usr/lib/sendmail
    1.64 +
    1.65 +# SuSE specific startup stuff:
    1.66 +mkdir -p $RPM_BUILD_ROOT/sbin/init.d/
    1.67 +mkdir -p $RPM_BUILD_ROOT/sbin/init.d/rc2.d/
    1.68 +mkdir -p $RPM_BUILD_ROOT/sbin/init.d/rc3.d/
    1.69 +cp -p suse/masqmail $RPM_BUILD_ROOT/sbin/init.d/
    1.70 +ln -fs '../masqmail' $RPM_BUILD_ROOT/sbin/init.d/rc2.d/S20masqmail
    1.71 +ln -fs '../masqmail' $RPM_BUILD_ROOT/sbin/init.d/rc2.d/K20masqmail
    1.72 +ln -fs '../masqmail' $RPM_BUILD_ROOT/sbin/init.d/rc3.d/S20masqmail
    1.73 +ln -fs '../masqmail' $RPM_BUILD_ROOT/sbin/init.d/rc3.d/K20masqmail
    1.74 +ln -fs '../../sbin/init.d/masqmail' $RPM_BUILD_ROOT/usr/sbin/rcmasqmail
    1.75 +
    1.76 +# configuration examples:
    1.77 +cp examples/masqmail.conf $RPM_BUILD_ROOT/etc/masqmail/
    1.78 +cp examples/example.route $RPM_BUILD_ROOT/etc/masqmail/
    1.79 +cp examples/example.get $RPM_BUILD_ROOT/etc/masqmail/
    1.80 +cp tpl/failmsg.tpl $RPM_BUILD_ROOT/etc/masqmail/tpl/
    1.81 +
    1.82 +#cp docs/man/masqmail.8 $RPM_BUILD_ROOT/usr/man/man8/
    1.83 +#cp docs/man/masqmail.conf.5 $RPM_BUILD_ROOT/usr/man/man5/
    1.84 +#cp docs/man/masqmail.route.5 $RPM_BUILD_ROOT/usr/man/man5/
    1.85 +#cp docs/man/masqmail.get.5 $RPM_BUILD_ROOT/usr/man/man5/
    1.86 +#cp docs/man/masqmail.aliases.5 $RPM_BUILD_ROOT/usr/man/man5/
    1.87 +
    1.88 +# gzip the man pages:
    1.89 +gzip $RPM_BUILD_ROOT/usr/man/man8/masqmail.8
    1.90 +gzip $RPM_BUILD_ROOT/usr/man/man5/masqmail.conf.5
    1.91 +gzip $RPM_BUILD_ROOT/usr/man/man5/masqmail.route.5
    1.92 +gzip $RPM_BUILD_ROOT/usr/man/man5/masqmail.get.5
    1.93 +gzip $RPM_BUILD_ROOT/usr/man/man5/masqmail.aliases.5
    1.94 +
    1.95 +%clean
    1.96 +rm -rf $RPM_BUILD_ROOT
    1.97 +
    1.98 +%files
    1.99 +%defattr(-,root,root)
   1.100 +/usr/sbin/masqmail
   1.101 +/usr/sbin/sendmail
   1.102 +/usr/bin/mailq
   1.103 +/usr/bin/mailrm
   1.104 +/usr/lib/sendmail
   1.105 +%config /sbin/init.d/masqmail
   1.106 +/sbin/init.d/rc2.d/S20masqmail
   1.107 +/sbin/init.d/rc2.d/K20masqmail
   1.108 +/sbin/init.d/rc3.d/S20masqmail
   1.109 +/sbin/init.d/rc3.d/K20masqmail
   1.110 +/usr/sbin/rcmasqmail
   1.111 +%config /etc/masqmail/masqmail.conf
   1.112 +%config /etc/masqmail/tpl/failmsg.tpl
   1.113 +%doc README INSTALL COPYING NEWS
   1.114 +/usr/man/man8/masqmail.8.gz
   1.115 +/usr/man/man5/masqmail.conf.5.gz
   1.116 +/usr/man/man5/masqmail.route.5.gz
   1.117 +/usr/man/man5/masqmail.get.5.gz
   1.118 +/usr/man/man5/masqmail.aliases.5.gz
   1.119 +
   1.120 +%defattr(-,mail,trusted)
   1.121 +%dir /var/masqmail/
   1.122 +%dir /var/spool/masqmail/
   1.123 +%dir /var/spool/masqmail/popuidl/
   1.124 +%dir /var/spool/masqmail/lock/
   1.125 +%dir /var/spool/masqmail/input/
   1.126 +
   1.127 +