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