masqmail-0.2

diff redhat/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/redhat/masqmail.spec.in	Fri Sep 26 17:05:23 2008 +0200
     1.3 @@ -0,0 +1,120 @@
     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: Iain Lea <iain@bricbrac.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 the a line or a combination:
    1.28 +#
    1.29 +#CFLAGS="$RPM_OPT_FLAGS" ./configure --with-user=mail --with-group=mail --disable-pop3
    1.30 +#CFLAGS="$RPM_OPT_FLAGS" ./configure --with-user=mail --with-group=mail --enable-auth
    1.31 +#CFLAGS="$RPM_OPT_FLAGS" ./configure --with-user=mail --with-group=mail --enable-ident
    1.32 +CFLAGS="$RPM_OPT_FLAGS" ./configure --with-user=mail --with-group=mail
    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/popuidl
    1.46 +mkdir -p $RPM_BUILD_ROOT/usr/sbin
    1.47 +mkdir -p $RPM_BUILD_ROOT/usr/bin
    1.48 +mkdir -p $RPM_BUILD_ROOT/usr/lib
    1.49 +mkdir -p $RPM_BUILD_ROOT/etc
    1.50 +mkdir -p $RPM_BUILD_ROOT/etc/masqmail
    1.51 +mkdir -p $RPM_BUILD_ROOT/etc/masqmail/tpl
    1.52 +mkdir -p $RPM_BUILD_ROOT/var/masqmail
    1.53 +
    1.54 +# install
    1.55 +make DESTDIR=$RPM_BUILD_ROOT install
    1.56 +/usr/bin/strip $RPM_BUILD_ROOT/usr/sbin/masqmail
    1.57 +
    1.58 +# sendmail links
    1.59 +ln -fs './masqmail' $RPM_BUILD_ROOT/usr/sbin/sendmail
    1.60 +ln -fs '../sbin/masqmail' $RPM_BUILD_ROOT/usr/bin/mailq
    1.61 +ln -fs '../sbin/masqmail' $RPM_BUILD_ROOT/usr/lib/sendmail
    1.62 +
    1.63 +# RedHat specific startup stuff:
    1.64 +mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d/
    1.65 +mkdir -p $RPM_BUILD_ROOT/etc/rc.d/rc2.d/
    1.66 +mkdir -p $RPM_BUILD_ROOT/etc/rc.d/rc3.d/
    1.67 +cp -p redhat/masqmail $RPM_BUILD_ROOT/etc/rc.d/init.d/
    1.68 +ln -fs '../init.d/masqmail' $RPM_BUILD_ROOT/etc/rc.d/rc2.d/S20masqmail
    1.69 +ln -fs '../init.d/masqmail' $RPM_BUILD_ROOT/etc/rc.d/rc2.d/K20masqmail
    1.70 +ln -fs '../init.d/masqmail' $RPM_BUILD_ROOT/etc/rc.d/rc3.d/S20masqmail
    1.71 +ln -fs '../init.d/masqmail' $RPM_BUILD_ROOT/etc/rc.d/rc3.d/K20masqmail
    1.72 +ln -fs '../../etc/rc.d/init.d/masqmail' $RPM_BUILD_ROOT/usr/sbin/rcmasqmail
    1.73 +
    1.74 +# configuration examples:
    1.75 +cp examples/masqmail.conf $RPM_BUILD_ROOT/etc/
    1.76 +cp examples/example.route $RPM_BUILD_ROOT/etc/masqmail/
    1.77 +cp examples/example.get $RPM_BUILD_ROOT/etc/masqmail/
    1.78 +cp tpl/failmsg.tpl $RPM_BUILD_ROOT/etc/masqmail/tpl
    1.79 +
    1.80 +#cp docs/man/masqmail.8 $RPM_BUILD_ROOT/usr/man/man8/
    1.81 +#cp docs/man/masqmail.conf.5 $RPM_BUILD_ROOT/usr/man/man5/
    1.82 +#cp docs/man/masqmail.route.5 $RPM_BUILD_ROOT/usr/man/man5/
    1.83 +#cp docs/man/masqmail.get.5 $RPM_BUILD_ROOT/usr/man/man5/
    1.84 +#cp docs/man/masqmail.aliases.5 $RPM_BUILD_ROOT/usr/man/man5/
    1.85 +
    1.86 +# gzip the man pages:
    1.87 +gzip $RPM_BUILD_ROOT/usr/man/man8/masqmail.8
    1.88 +gzip $RPM_BUILD_ROOT/usr/man/man5/masqmail.conf.5
    1.89 +gzip $RPM_BUILD_ROOT/usr/man/man5/masqmail.route.5
    1.90 +gzip $RPM_BUILD_ROOT/usr/man/man5/masqmail.get.5
    1.91 +gzip $RPM_BUILD_ROOT/usr/man/man5/masqmail.aliases.5
    1.92 +
    1.93 +%clean
    1.94 +rm -rf $RPM_BUILD_ROOT
    1.95 +
    1.96 +%files
    1.97 +%defattr(-,root,root)
    1.98 +/usr/sbin/masqmail
    1.99 +/usr/sbin/sendmail
   1.100 +/usr/bin/mailq
   1.101 +/usr/lib/sendmail
   1.102 +/etc/rc.d/init.d/masqmail
   1.103 +/etc/rc.d/rc2.d/S20masqmail
   1.104 +/etc/rc.d/rc2.d/K20masqmail
   1.105 +/etc/rc.d/rc3.d/S20masqmail
   1.106 +/etc/rc.d/rc3.d/K20masqmail
   1.107 +/usr/sbin/rcmasqmail
   1.108 +%config /etc/masqmail.conf /etc/masqmail/tpl/failmsg.tpl
   1.109 +//etc/masqmail/
   1.110 +%doc README INSTALL COPYING NEWS
   1.111 +/usr/man/man8/masqmail.8.gz
   1.112 +/usr/man/man5/masqmail.conf.5.gz
   1.113 +/usr/man/man5/masqmail.route.5.gz
   1.114 +/usr/man/man5/masqmail.get.5.gz
   1.115 +/usr/man/man5/masqmail.aliases.5.gz
   1.116 +
   1.117 +%defattr(-,mail,mail)
   1.118 +%dir /var/masqmail/
   1.119 +%dir /var/spool/masqmail/
   1.120 +%dir /var/spool/masqmail/popuidl/
   1.121 +%dir /var/spool/masqmail/input/
   1.122 +
   1.123 +