masqmail

annotate suse/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: Oliver Kurth <kurth@innominate.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 a line or a combination:
meillo@0 25 #
meillo@0 26 #CFLAGS="$RPM_OPT_FLAGS" ./configure --disable-pop3
meillo@0 27 #CFLAGS="$RPM_OPT_FLAGS" ./configure --enable-auth
meillo@0 28 #CFLAGS="$RPM_OPT_FLAGS" ./configure --enable-ident
meillo@0 29 CFLAGS="$RPM_OPT_FLAGS" ./configure --enable-auth --enable-ident
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/lock
meillo@0 43 mkdir -p $RPM_BUILD_ROOT/var/spool/masqmail/popuidl
meillo@0 44 mkdir -p $RPM_BUILD_ROOT/usr/sbin
meillo@0 45 mkdir -p $RPM_BUILD_ROOT/usr/bin
meillo@0 46 mkdir -p $RPM_BUILD_ROOT/usr/lib
meillo@0 47 mkdir -p $RPM_BUILD_ROOT/etc
meillo@0 48 mkdir -p $RPM_BUILD_ROOT/etc/masqmail
meillo@0 49 mkdir -p $RPM_BUILD_ROOT/etc/masqmail/tpl
meillo@0 50 mkdir -p $RPM_BUILD_ROOT/var/masqmail
meillo@0 51
meillo@0 52 # install
meillo@0 53 make DESTDIR=$RPM_BUILD_ROOT install
meillo@0 54 /usr/bin/strip --remove-section=.comment --remove-section=.note --strip-unneeded $RPM_BUILD_ROOT/usr/sbin/masqmail
meillo@0 55
meillo@0 56 # sendmail links
meillo@0 57 ln -fs './masqmail' $RPM_BUILD_ROOT/usr/sbin/sendmail
meillo@0 58 ln -fs '../sbin/masqmail' $RPM_BUILD_ROOT/usr/bin/mailq
meillo@0 59 ln -fs '../sbin/masqmail' $RPM_BUILD_ROOT/usr/bin/mailrm
meillo@0 60 ln -fs '../sbin/masqmail' $RPM_BUILD_ROOT/usr/lib/sendmail
meillo@0 61
meillo@0 62 # SuSE specific startup stuff:
meillo@0 63 mkdir -p $RPM_BUILD_ROOT/sbin/init.d/
meillo@0 64 mkdir -p $RPM_BUILD_ROOT/sbin/init.d/rc2.d/
meillo@0 65 mkdir -p $RPM_BUILD_ROOT/sbin/init.d/rc3.d/
meillo@0 66 cp -p suse/masqmail $RPM_BUILD_ROOT/sbin/init.d/
meillo@0 67 ln -fs '../masqmail' $RPM_BUILD_ROOT/sbin/init.d/rc2.d/S20masqmail
meillo@0 68 ln -fs '../masqmail' $RPM_BUILD_ROOT/sbin/init.d/rc2.d/K20masqmail
meillo@0 69 ln -fs '../masqmail' $RPM_BUILD_ROOT/sbin/init.d/rc3.d/S20masqmail
meillo@0 70 ln -fs '../masqmail' $RPM_BUILD_ROOT/sbin/init.d/rc3.d/K20masqmail
meillo@0 71 ln -fs '../../sbin/init.d/masqmail' $RPM_BUILD_ROOT/usr/sbin/rcmasqmail
meillo@0 72
meillo@0 73 # configuration examples:
meillo@0 74 cp examples/masqmail.conf $RPM_BUILD_ROOT/etc/masqmail/
meillo@0 75 cp examples/example.route $RPM_BUILD_ROOT/etc/masqmail/
meillo@0 76 cp examples/example.get $RPM_BUILD_ROOT/etc/masqmail/
meillo@0 77 cp tpl/failmsg.tpl $RPM_BUILD_ROOT/etc/masqmail/tpl/
meillo@0 78
meillo@0 79 #cp docs/man/masqmail.8 $RPM_BUILD_ROOT/usr/man/man8/
meillo@0 80 #cp docs/man/masqmail.conf.5 $RPM_BUILD_ROOT/usr/man/man5/
meillo@0 81 #cp docs/man/masqmail.route.5 $RPM_BUILD_ROOT/usr/man/man5/
meillo@0 82 #cp docs/man/masqmail.get.5 $RPM_BUILD_ROOT/usr/man/man5/
meillo@0 83 #cp docs/man/masqmail.aliases.5 $RPM_BUILD_ROOT/usr/man/man5/
meillo@0 84
meillo@0 85 # gzip the man pages:
meillo@0 86 gzip $RPM_BUILD_ROOT/usr/man/man8/masqmail.8
meillo@0 87 gzip $RPM_BUILD_ROOT/usr/man/man5/masqmail.conf.5
meillo@0 88 gzip $RPM_BUILD_ROOT/usr/man/man5/masqmail.route.5
meillo@0 89 gzip $RPM_BUILD_ROOT/usr/man/man5/masqmail.get.5
meillo@0 90 gzip $RPM_BUILD_ROOT/usr/man/man5/masqmail.aliases.5
meillo@0 91
meillo@0 92 %clean
meillo@0 93 rm -rf $RPM_BUILD_ROOT
meillo@0 94
meillo@0 95 %files
meillo@0 96 %defattr(-,root,root)
meillo@0 97 /usr/sbin/masqmail
meillo@0 98 /usr/sbin/sendmail
meillo@0 99 /usr/bin/mailq
meillo@0 100 /usr/bin/mailrm
meillo@0 101 /usr/lib/sendmail
meillo@0 102 %config /sbin/init.d/masqmail
meillo@0 103 /sbin/init.d/rc2.d/S20masqmail
meillo@0 104 /sbin/init.d/rc2.d/K20masqmail
meillo@0 105 /sbin/init.d/rc3.d/S20masqmail
meillo@0 106 /sbin/init.d/rc3.d/K20masqmail
meillo@0 107 /usr/sbin/rcmasqmail
meillo@0 108 %config /etc/masqmail/masqmail.conf
meillo@0 109 %config /etc/masqmail/tpl/failmsg.tpl
meillo@0 110 %doc README INSTALL COPYING NEWS
meillo@0 111 /usr/man/man8/masqmail.8.gz
meillo@0 112 /usr/man/man5/masqmail.conf.5.gz
meillo@0 113 /usr/man/man5/masqmail.route.5.gz
meillo@0 114 /usr/man/man5/masqmail.get.5.gz
meillo@0 115 /usr/man/man5/masqmail.aliases.5.gz
meillo@0 116
meillo@0 117 %defattr(-,mail,trusted)
meillo@0 118 %dir /var/masqmail/
meillo@0 119 %dir /var/spool/masqmail/
meillo@0 120 %dir /var/spool/masqmail/popuidl/
meillo@0 121 %dir /var/spool/masqmail/lock/
meillo@0 122 %dir /var/spool/masqmail/input/
meillo@0 123
meillo@0 124