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