meillo@0: Summary: An offline mail server with pop3 client support meillo@0: Name: masqmail meillo@0: Version: @VERSION@ meillo@0: Release: 1 meillo@0: Copyright: GPL meillo@0: Group: Networking/Daemons meillo@0: Distribution: innominate meillo@0: Packager: Iain Lea meillo@0: Source: http://masqmail.cx/masqmail/download/masqmail-@VERSION@.tar.gz meillo@0: BuildRoot: /var/tmp/masqmail-root/ meillo@0: meillo@0: %description meillo@0: MasqMail is a mail server designed for hosts that do not have a meillo@0: permanent internet connection eg. a home network or a single host at meillo@0: home. It has special support for connections to different ISPs. It meillo@0: replaces sendmail or other MTAs such as qmail or exim. meillo@0: meillo@0: %prep meillo@0: meillo@0: %setup -n masqmail-@VERSION@ meillo@0: meillo@0: %build meillo@0: # meillo@0: #choose the a line or a combination: meillo@0: # meillo@0: #CFLAGS="$RPM_OPT_FLAGS" ./configure --with-user=mail --with-group=mail --disable-pop3 meillo@0: #CFLAGS="$RPM_OPT_FLAGS" ./configure --with-user=mail --with-group=mail --enable-auth meillo@0: #CFLAGS="$RPM_OPT_FLAGS" ./configure --with-user=mail --with-group=mail --enable-ident meillo@0: CFLAGS="$RPM_OPT_FLAGS" ./configure --with-user=mail --with-group=mail meillo@0: meillo@0: CFLAGS="$RPM_OPT_FLAGS" make meillo@0: meillo@0: %install meillo@0: if [ -d $RPM_BUILD_ROOT ] ; then meillo@0: rm -rf $RPM_BUILD_ROOT meillo@0: fi meillo@0: meillo@0: # setup directory environment: meillo@0: mkdir $RPM_BUILD_ROOT meillo@0: mkdir -p $RPM_BUILD_ROOT/var/spool/masqmail meillo@0: mkdir -p $RPM_BUILD_ROOT/var/spool/masqmail/input meillo@0: mkdir -p $RPM_BUILD_ROOT/var/spool/masqmail/popuidl meillo@0: mkdir -p $RPM_BUILD_ROOT/usr/sbin meillo@0: mkdir -p $RPM_BUILD_ROOT/usr/bin meillo@0: mkdir -p $RPM_BUILD_ROOT/usr/lib meillo@0: mkdir -p $RPM_BUILD_ROOT/etc meillo@0: mkdir -p $RPM_BUILD_ROOT/etc/masqmail meillo@0: mkdir -p $RPM_BUILD_ROOT/etc/masqmail/tpl meillo@0: mkdir -p $RPM_BUILD_ROOT/var/masqmail meillo@0: meillo@0: # install meillo@0: make DESTDIR=$RPM_BUILD_ROOT install meillo@0: /usr/bin/strip $RPM_BUILD_ROOT/usr/sbin/masqmail meillo@0: meillo@0: # sendmail links meillo@0: ln -fs './masqmail' $RPM_BUILD_ROOT/usr/sbin/sendmail meillo@0: ln -fs '../sbin/masqmail' $RPM_BUILD_ROOT/usr/bin/mailq meillo@0: ln -fs '../sbin/masqmail' $RPM_BUILD_ROOT/usr/lib/sendmail meillo@0: meillo@0: # RedHat specific startup stuff: meillo@0: mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d/ meillo@0: mkdir -p $RPM_BUILD_ROOT/etc/rc.d/rc2.d/ meillo@0: mkdir -p $RPM_BUILD_ROOT/etc/rc.d/rc3.d/ meillo@0: cp -p redhat/masqmail $RPM_BUILD_ROOT/etc/rc.d/init.d/ meillo@0: ln -fs '../init.d/masqmail' $RPM_BUILD_ROOT/etc/rc.d/rc2.d/S20masqmail meillo@0: ln -fs '../init.d/masqmail' $RPM_BUILD_ROOT/etc/rc.d/rc2.d/K20masqmail meillo@0: ln -fs '../init.d/masqmail' $RPM_BUILD_ROOT/etc/rc.d/rc3.d/S20masqmail meillo@0: ln -fs '../init.d/masqmail' $RPM_BUILD_ROOT/etc/rc.d/rc3.d/K20masqmail meillo@0: ln -fs '../../etc/rc.d/init.d/masqmail' $RPM_BUILD_ROOT/usr/sbin/rcmasqmail meillo@0: meillo@0: # configuration examples: meillo@0: cp examples/masqmail.conf $RPM_BUILD_ROOT/etc/ meillo@0: cp examples/example.route $RPM_BUILD_ROOT/etc/masqmail/ meillo@0: cp examples/example.get $RPM_BUILD_ROOT/etc/masqmail/ meillo@0: cp tpl/failmsg.tpl $RPM_BUILD_ROOT/etc/masqmail/tpl meillo@0: meillo@0: #cp docs/man/masqmail.8 $RPM_BUILD_ROOT/usr/man/man8/ meillo@0: #cp docs/man/masqmail.conf.5 $RPM_BUILD_ROOT/usr/man/man5/ meillo@0: #cp docs/man/masqmail.route.5 $RPM_BUILD_ROOT/usr/man/man5/ meillo@0: #cp docs/man/masqmail.get.5 $RPM_BUILD_ROOT/usr/man/man5/ meillo@0: #cp docs/man/masqmail.aliases.5 $RPM_BUILD_ROOT/usr/man/man5/ meillo@0: meillo@0: # gzip the man pages: meillo@0: gzip $RPM_BUILD_ROOT/usr/man/man8/masqmail.8 meillo@0: gzip $RPM_BUILD_ROOT/usr/man/man5/masqmail.conf.5 meillo@0: gzip $RPM_BUILD_ROOT/usr/man/man5/masqmail.route.5 meillo@0: gzip $RPM_BUILD_ROOT/usr/man/man5/masqmail.get.5 meillo@0: gzip $RPM_BUILD_ROOT/usr/man/man5/masqmail.aliases.5 meillo@0: meillo@0: %clean meillo@0: rm -rf $RPM_BUILD_ROOT meillo@0: meillo@0: %files meillo@0: %defattr(-,root,root) meillo@0: /usr/sbin/masqmail meillo@0: /usr/sbin/sendmail meillo@0: /usr/bin/mailq meillo@0: /usr/lib/sendmail meillo@0: /etc/rc.d/init.d/masqmail meillo@0: /etc/rc.d/rc2.d/S20masqmail meillo@0: /etc/rc.d/rc2.d/K20masqmail meillo@0: /etc/rc.d/rc3.d/S20masqmail meillo@0: /etc/rc.d/rc3.d/K20masqmail meillo@0: /usr/sbin/rcmasqmail meillo@0: %config /etc/masqmail.conf /etc/masqmail/tpl/failmsg.tpl meillo@0: //etc/masqmail/ meillo@0: %doc README INSTALL COPYING NEWS meillo@0: /usr/man/man8/masqmail.8.gz meillo@0: /usr/man/man5/masqmail.conf.5.gz meillo@0: /usr/man/man5/masqmail.route.5.gz meillo@0: /usr/man/man5/masqmail.get.5.gz meillo@0: /usr/man/man5/masqmail.aliases.5.gz meillo@0: meillo@0: %defattr(-,mail,mail) meillo@0: %dir /var/masqmail/ meillo@0: %dir /var/spool/masqmail/ meillo@0: %dir /var/spool/masqmail/popuidl/ meillo@0: %dir /var/spool/masqmail/input/ meillo@0: meillo@0: