masqmail
annotate redhat/masqmail.spec.in @ 1:af25f5c39d90
added diff from debian (masqmail-0.2.21-4)
author | meillo@marmaro.de |
---|---|
date | Fri, 26 Sep 2008 20:56:23 +0200 |
parents | |
children |
rev | line source |
---|---|
meillo@0 | 1 Summary: An offline mail server with pop3 client support |
meillo@0 | 2 Name: masqmail |
meillo@0 | 3 Version: @VERSION@ |
meillo@0 | 4 Release: 1 |
meillo@0 | 5 Copyright: GPL |
meillo@0 | 6 Group: Networking/Daemons |
meillo@0 | 7 Distribution: innominate |
meillo@0 | 8 Packager: Iain Lea <iain@bricbrac.de> |
meillo@0 | 9 Source: http://masqmail.cx/masqmail/download/masqmail-@VERSION@.tar.gz |
meillo@0 | 10 BuildRoot: /var/tmp/masqmail-root/ |
meillo@0 | 11 |
meillo@0 | 12 %description |
meillo@0 | 13 MasqMail is a mail server designed for hosts that do not have a |
meillo@0 | 14 permanent internet connection eg. a home network or a single host at |
meillo@0 | 15 home. It has special support for connections to different ISPs. It |
meillo@0 | 16 replaces sendmail or other MTAs such as qmail or exim. |
meillo@0 | 17 |
meillo@0 | 18 %prep |
meillo@0 | 19 |
meillo@0 | 20 %setup -n masqmail-@VERSION@ |
meillo@0 | 21 |
meillo@0 | 22 %build |
meillo@0 | 23 # |
meillo@0 | 24 #choose the a line or a combination: |
meillo@0 | 25 # |
meillo@0 | 26 #CFLAGS="$RPM_OPT_FLAGS" ./configure --with-user=mail --with-group=mail --disable-pop3 |
meillo@0 | 27 #CFLAGS="$RPM_OPT_FLAGS" ./configure --with-user=mail --with-group=mail --enable-auth |
meillo@0 | 28 #CFLAGS="$RPM_OPT_FLAGS" ./configure --with-user=mail --with-group=mail --enable-ident |
meillo@0 | 29 CFLAGS="$RPM_OPT_FLAGS" ./configure --with-user=mail --with-group=mail |
meillo@0 | 30 |
meillo@0 | 31 CFLAGS="$RPM_OPT_FLAGS" make |
meillo@0 | 32 |
meillo@0 | 33 %install |
meillo@0 | 34 if [ -d $RPM_BUILD_ROOT ] ; then |
meillo@0 | 35 rm -rf $RPM_BUILD_ROOT |
meillo@0 | 36 fi |
meillo@0 | 37 |
meillo@0 | 38 # setup directory environment: |
meillo@0 | 39 mkdir $RPM_BUILD_ROOT |
meillo@0 | 40 mkdir -p $RPM_BUILD_ROOT/var/spool/masqmail |
meillo@0 | 41 mkdir -p $RPM_BUILD_ROOT/var/spool/masqmail/input |
meillo@0 | 42 mkdir -p $RPM_BUILD_ROOT/var/spool/masqmail/popuidl |
meillo@0 | 43 mkdir -p $RPM_BUILD_ROOT/usr/sbin |
meillo@0 | 44 mkdir -p $RPM_BUILD_ROOT/usr/bin |
meillo@0 | 45 mkdir -p $RPM_BUILD_ROOT/usr/lib |
meillo@0 | 46 mkdir -p $RPM_BUILD_ROOT/etc |
meillo@0 | 47 mkdir -p $RPM_BUILD_ROOT/etc/masqmail |
meillo@0 | 48 mkdir -p $RPM_BUILD_ROOT/etc/masqmail/tpl |
meillo@0 | 49 mkdir -p $RPM_BUILD_ROOT/var/masqmail |
meillo@0 | 50 |
meillo@0 | 51 # install |
meillo@0 | 52 make DESTDIR=$RPM_BUILD_ROOT install |
meillo@0 | 53 /usr/bin/strip $RPM_BUILD_ROOT/usr/sbin/masqmail |
meillo@0 | 54 |
meillo@0 | 55 # sendmail links |
meillo@0 | 56 ln -fs './masqmail' $RPM_BUILD_ROOT/usr/sbin/sendmail |
meillo@0 | 57 ln -fs '../sbin/masqmail' $RPM_BUILD_ROOT/usr/bin/mailq |
meillo@0 | 58 ln -fs '../sbin/masqmail' $RPM_BUILD_ROOT/usr/lib/sendmail |
meillo@0 | 59 |
meillo@0 | 60 # RedHat specific startup stuff: |
meillo@0 | 61 mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d/ |
meillo@0 | 62 mkdir -p $RPM_BUILD_ROOT/etc/rc.d/rc2.d/ |
meillo@0 | 63 mkdir -p $RPM_BUILD_ROOT/etc/rc.d/rc3.d/ |
meillo@0 | 64 cp -p redhat/masqmail $RPM_BUILD_ROOT/etc/rc.d/init.d/ |
meillo@0 | 65 ln -fs '../init.d/masqmail' $RPM_BUILD_ROOT/etc/rc.d/rc2.d/S20masqmail |
meillo@0 | 66 ln -fs '../init.d/masqmail' $RPM_BUILD_ROOT/etc/rc.d/rc2.d/K20masqmail |
meillo@0 | 67 ln -fs '../init.d/masqmail' $RPM_BUILD_ROOT/etc/rc.d/rc3.d/S20masqmail |
meillo@0 | 68 ln -fs '../init.d/masqmail' $RPM_BUILD_ROOT/etc/rc.d/rc3.d/K20masqmail |
meillo@0 | 69 ln -fs '../../etc/rc.d/init.d/masqmail' $RPM_BUILD_ROOT/usr/sbin/rcmasqmail |
meillo@0 | 70 |
meillo@0 | 71 # configuration examples: |
meillo@0 | 72 cp examples/masqmail.conf $RPM_BUILD_ROOT/etc/ |
meillo@0 | 73 cp examples/example.route $RPM_BUILD_ROOT/etc/masqmail/ |
meillo@0 | 74 cp examples/example.get $RPM_BUILD_ROOT/etc/masqmail/ |
meillo@0 | 75 cp tpl/failmsg.tpl $RPM_BUILD_ROOT/etc/masqmail/tpl |
meillo@0 | 76 |
meillo@0 | 77 #cp docs/man/masqmail.8 $RPM_BUILD_ROOT/usr/man/man8/ |
meillo@0 | 78 #cp docs/man/masqmail.conf.5 $RPM_BUILD_ROOT/usr/man/man5/ |
meillo@0 | 79 #cp docs/man/masqmail.route.5 $RPM_BUILD_ROOT/usr/man/man5/ |
meillo@0 | 80 #cp docs/man/masqmail.get.5 $RPM_BUILD_ROOT/usr/man/man5/ |
meillo@0 | 81 #cp docs/man/masqmail.aliases.5 $RPM_BUILD_ROOT/usr/man/man5/ |
meillo@0 | 82 |
meillo@0 | 83 # gzip the man pages: |
meillo@0 | 84 gzip $RPM_BUILD_ROOT/usr/man/man8/masqmail.8 |
meillo@0 | 85 gzip $RPM_BUILD_ROOT/usr/man/man5/masqmail.conf.5 |
meillo@0 | 86 gzip $RPM_BUILD_ROOT/usr/man/man5/masqmail.route.5 |
meillo@0 | 87 gzip $RPM_BUILD_ROOT/usr/man/man5/masqmail.get.5 |
meillo@0 | 88 gzip $RPM_BUILD_ROOT/usr/man/man5/masqmail.aliases.5 |
meillo@0 | 89 |
meillo@0 | 90 %clean |
meillo@0 | 91 rm -rf $RPM_BUILD_ROOT |
meillo@0 | 92 |
meillo@0 | 93 %files |
meillo@0 | 94 %defattr(-,root,root) |
meillo@0 | 95 /usr/sbin/masqmail |
meillo@0 | 96 /usr/sbin/sendmail |
meillo@0 | 97 /usr/bin/mailq |
meillo@0 | 98 /usr/lib/sendmail |
meillo@0 | 99 /etc/rc.d/init.d/masqmail |
meillo@0 | 100 /etc/rc.d/rc2.d/S20masqmail |
meillo@0 | 101 /etc/rc.d/rc2.d/K20masqmail |
meillo@0 | 102 /etc/rc.d/rc3.d/S20masqmail |
meillo@0 | 103 /etc/rc.d/rc3.d/K20masqmail |
meillo@0 | 104 /usr/sbin/rcmasqmail |
meillo@0 | 105 %config /etc/masqmail.conf /etc/masqmail/tpl/failmsg.tpl |
meillo@0 | 106 //etc/masqmail/ |
meillo@0 | 107 %doc README INSTALL COPYING NEWS |
meillo@0 | 108 /usr/man/man8/masqmail.8.gz |
meillo@0 | 109 /usr/man/man5/masqmail.conf.5.gz |
meillo@0 | 110 /usr/man/man5/masqmail.route.5.gz |
meillo@0 | 111 /usr/man/man5/masqmail.get.5.gz |
meillo@0 | 112 /usr/man/man5/masqmail.aliases.5.gz |
meillo@0 | 113 |
meillo@0 | 114 %defattr(-,mail,mail) |
meillo@0 | 115 %dir /var/masqmail/ |
meillo@0 | 116 %dir /var/spool/masqmail/ |
meillo@0 | 117 %dir /var/spool/masqmail/popuidl/ |
meillo@0 | 118 %dir /var/spool/masqmail/input/ |
meillo@0 | 119 |
meillo@0 | 120 |