/[smeserver]/smeserver-mailrouting/F/smeserver-mailrouting-0.0.1.spec
ViewVC logotype

Annotation of /smeserver-mailrouting/F/smeserver-mailrouting-0.0.1.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (hide annotations) (download)
Fri Feb 2 02:08:59 2007 UTC (17 years, 9 months ago) by slords
Branch: MAIN
Changes since 1.2: +1 -1 lines
Thu Feb  1 19:08:54 2007                                        slords

Change Copyright to License
----------------------------------------------------------------------

1 charliebrady 1.1 Summary: Routing messages by user
2     %define name smeserver-mailrouting
3     Name: %{name}
4     %define version 0.0.1
5     %define release 0
6     Version: %{version}
7 slords 1.2 Release: %smerelease %{release}
8     Packager: %{_packager}
9 slords 1.3 License: GPL
10 charliebrady 1.1 Group: Mail
11     Source: %{name}-%{version}.tar.gz
12     BuildRoot: /var/tmp/%{name}-buildroot/
13     BuildArch: noarch
14     Requires: smeserver-qpsmtpd qmail
15     AutoReqProv: no
16    
17     %changelog
18 slords 1.2 * Thu Dec 07 2006 Shad L. Lords <slords@mail.com>
19     - Update to new release naming. No functional changes.
20     - Make Packager generic
21    
22 charliebrady 1.1
23     * Thu Sep 1 2005 Michael Weinberger <mweinber@neddix.de>
24     - Initial release
25    
26     %description
27     for SME7 only!
28     Routes mail to another server by the recipient name
29     Routed recipient don't need a local account.
30     Mailrouting is disabled, when "internal mail server" (smtproutes) is set.
31    
32     How to set up:
33     /sbin/e-smith/db /home/e-smith/mailrouting set ADDRESS mailrouting MailroutingAddress MAILROUTINGADDRESS
34    
35     Example: Route messages for joe.sixpack here (foo.com) to server mail2.foo.com
36     /sbin/e-smith/db /home/e-smith/mailrouting set joe.sixpack@foo.com mailrouting MailroutingAddress Joe.Sixpack@mail2.foo.com
37     /etc/rc.d/rc7.d/S85qpsmtpd restart
38     /etc/rc.d/rc7.d/S85sqpsmtpd restart
39     /etc/rc.d/rc7.d/S80qmail restart
40    
41     Note the lower-case for the key (joe.sixpack@foo.com)!
42    
43    
44    
45     %prep
46     %setup
47     %setup -q -n %{name}-%{version}
48    
49     %build
50    
51     %install
52     rm -rf $RPM_BUILD_ROOT
53     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
54     rm -f %{name}-%{version}-filelist
55     find $RPM_BUILD_ROOT -depth -type f -print |\
56     sed -e "s@^$RPM_BUILD_ROOT@@g" \
57     -e "s@^/etc/e-smith/templates/@%attr(0644,root,root) &@"\
58     -e "s@^/var/qmail/control/@%attr(0644,root,root) &@"\
59     -e "s@^/var/qmail/alias/@%attr(0644,alias,qmail) &@"\
60     -e "s@^/var/qmail/bin/@%attr(0755,root,qmail) &@"\
61     -e "s@^/home/e-smith/qmail/@%attr(0640,root,qmail) &@"\
62     >> %{name}-%{version}-filelist
63     find $RPM_BUILD_ROOT -depth -type l -print |\
64     sed "s@^$RPM_BUILD_ROOT@@g" >> %{name}-%{version}-filelist
65    
66     %clean
67     rm -rf $RPM_BUILD_ROOT
68    
69     %pre
70     %preun
71     %post
72    
73     touch -a /home/e-smith/mailrouting
74     chown root.admin /home/e-smith/mailrouting
75     chmod 644 /home/e-smith/mailrouting
76    
77     if [ "x`/bin/cat /proc/1/cmdline`" = "xinit [7]" ] ; then
78     /sbin/e-smith/signal-event email-update
79     /etc/rc.d/rc7.d/S85qpsmtpd restart
80     /etc/rc.d/rc7.d/S85sqpsmtpd restart
81     /etc/rc.d/rc7.d/S80qmail restart
82     fi
83     %postun
84     if [ "x`/bin/cat /proc/1/cmdline`" = "xinit [7]" ] ; then
85     if [ $1 = 0 ] ; then # uninstall
86     /sbin/e-smith/signal-event email-update
87     /etc/rc.d/rc7.d/S85qpsmtpd restart
88     /etc/rc.d/rc7.d/S85sqpsmtpd restart
89     /etc/rc.d/rc7.d/S80qmail restart
90     fi
91     fi
92    
93     %files -f %{name}-%{version}-filelist
94     %defattr(-,root,root)

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed