Mercurial > sm-archive
annotate sm-archive.spec.in @ 19:b24369330483 stable-1-0-7
Fedora 9 compile and const correctness.
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 12 Jun 2008 18:17:33 -0700 |
parents | 8ebecad6530f |
children | 09564d4acd9e |
rev | line source |
---|---|
1 | 1 %define localstatedir /var/lib |
2 | |
3 Summary: @PACKAGE@ Sendmail Milter | |
4 Name: @PACKAGE@ | |
5 Version: @VERSION@ | |
17
8ebecad6530f
Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents:
13
diff
changeset
|
6 Release: 1%{?dist} |
8ebecad6530f
Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents:
13
diff
changeset
|
7 License: GPLv3+ |
1 | 8 Group: System Environment/Daemons |
17
8ebecad6530f
Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents:
13
diff
changeset
|
9 Source: http://www.five-ten-sg.com/%{name}/packages/%{name}-%{version}.tar.gz |
8ebecad6530f
Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents:
13
diff
changeset
|
10 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) |
8ebecad6530f
Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents:
13
diff
changeset
|
11 URL: http://www.five-ten-sg.com/%{name}/ |
1 | 12 |
13 Requires(pre): /usr/sbin/useradd | |
14 Requires(pre): /usr/bin/getent | |
15 Requires(postun): /usr/sbin/userdel | |
16 Requires(post,preun): /sbin/chkconfig | |
17 Requires(post,preun): /sbin/service | |
18 BuildRequires: sendmail-devel >= 8.12.1 | |
19 Requires: sendmail >= 8.12.1 | |
20 Requires: sendmail-cf | |
21 | |
22 | |
23 %description | |
17
8ebecad6530f
Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents:
13
diff
changeset
|
24 This milter adds recipient addresses to messages passing thru it, based |
8ebecad6530f
Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents:
13
diff
changeset
|
25 on a configuration file. |
1 | 26 |
17
8ebecad6530f
Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents:
13
diff
changeset
|
27 The sm-archive milter reads a text configuration file |
8ebecad6530f
Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents:
13
diff
changeset
|
28 (sm-archive.conf) on startup, and whenever the config file (or any of |
8ebecad6530f
Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents:
13
diff
changeset
|
29 the referenced include files) is changed. The entire configuration |
8ebecad6530f
Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents:
13
diff
changeset
|
30 file is case insensitive. |
1 | 31 |
32 | |
33 %prep | |
17
8ebecad6530f
Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents:
13
diff
changeset
|
34 %setup -q |
1 | 35 |
36 | |
37 %build | |
17
8ebecad6530f
Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents:
13
diff
changeset
|
38 %configure |
8ebecad6530f
Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents:
13
diff
changeset
|
39 make %{?_smp_mflags} |
1 | 40 |
41 %install | |
42 rm -rf $RPM_BUILD_ROOT | |
17
8ebecad6530f
Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents:
13
diff
changeset
|
43 make DESTDIR=$RPM_BUILD_ROOT install |
1 | 44 mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d |
19
b24369330483
Fedora 9 compile and const correctness.
Carl Byington <carl@five-ten-sg.com>
parents:
17
diff
changeset
|
45 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/%{name} $RPM_BUILD_ROOT/etc/rc.d/init.d |
17
8ebecad6530f
Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents:
13
diff
changeset
|
46 mkdir -p $RPM_BUILD_ROOT/var/run/%{name} |
1 | 47 |
48 | |
49 %pre | |
17
8ebecad6530f
Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents:
13
diff
changeset
|
50 /usr/bin/getent passwd sm-archive >/dev/null || useradd -r -d /etc/sm-archive -M -c "sm-archive pseudo-user" -s /sbin/nologin sm-archive >/dev/null |
1 | 51 |
52 | |
53 %post | |
17
8ebecad6530f
Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents:
13
diff
changeset
|
54 /sbin/chkconfig --add %{name} |
8ebecad6530f
Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents:
13
diff
changeset
|
55 echo Remember to edit %{_sysconfdir}/%{name}/%{name}.conf and add the following line to your sendmail.mc: |
1 | 56 echo "INPUT_MAIL_FILTER(\`sm-archive', \`S=local:/var/run/sm-archive/sm-archive.sock, F=T, T=C:30s;S:5m;R:5m;E:5m')" |
57 echo | |
58 | |
59 | |
60 %preun | |
17
8ebecad6530f
Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents:
13
diff
changeset
|
61 [ $1 = 0 ] && /sbin/service %{name} stop || : |
1 | 62 |
63 | |
64 %postun | |
17
8ebecad6530f
Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents:
13
diff
changeset
|
65 [ $1 = 0 ] && /sbin/chkconfig --del %{name} |
8ebecad6530f
Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents:
13
diff
changeset
|
66 [ $1 = 0 ] && userdel %{name} || : |
1 | 67 |
68 | |
69 %clean | |
17
8ebecad6530f
Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents:
13
diff
changeset
|
70 rm -rf $RPM_BUILD_ROOT |
8ebecad6530f
Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents:
13
diff
changeset
|
71 |
1 | 72 |
73 %files | |
17
8ebecad6530f
Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents:
13
diff
changeset
|
74 %defattr(-,root,root,-) |
1 | 75 %{_sbindir}/* |
17
8ebecad6530f
Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents:
13
diff
changeset
|
76 %{_mandir}/man1/* |
8ebecad6530f
Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents:
13
diff
changeset
|
77 %{_mandir}/man5/* |
8ebecad6530f
Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents:
13
diff
changeset
|
78 %docdir %{_datadir}/doc/%{name}-%{version} |
8ebecad6530f
Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents:
13
diff
changeset
|
79 %{_datadir}/doc/%{name}-%{version} |
8ebecad6530f
Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents:
13
diff
changeset
|
80 %config(noreplace) %attr(0750,%{name},root) %{_sysconfdir}/%{name} |
8ebecad6530f
Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents:
13
diff
changeset
|
81 /etc/rc.d/init.d/%{name} |
8ebecad6530f
Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents:
13
diff
changeset
|
82 %dir %attr(0750,%{name},root) /var/run/%{name} |
1 | 83 |
84 | |
85 %changelog | |
19
b24369330483
Fedora 9 compile and const correctness.
Carl Byington <carl@five-ten-sg.com>
parents:
17
diff
changeset
|
86 * Thu Jun 12 2008 Carl Byington <carl@five-ten-sg.com> - 1.7-1 |
b24369330483
Fedora 9 compile and const correctness.
Carl Byington <carl@five-ten-sg.com>
parents:
17
diff
changeset
|
87 - Fedora 9 compile and const correctness. |
b24369330483
Fedora 9 compile and const correctness.
Carl Byington <carl@five-ten-sg.com>
parents:
17
diff
changeset
|
88 |
b24369330483
Fedora 9 compile and const correctness.
Carl Byington <carl@five-ten-sg.com>
parents:
17
diff
changeset
|
89 * Fri Mar 21 2008 Carl Byington <carl@five-ten-sg.com> - 1.6-1 |
17
8ebecad6530f
Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents:
13
diff
changeset
|
90 - changes for Fedora packaging guidelines |
8ebecad6530f
Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents:
13
diff
changeset
|
91 |
8ebecad6530f
Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents:
13
diff
changeset
|
92 * Fri Mar 10 2006 Carl Byington <carl@five-ten-sg.com> -1.0 |
1 | 93 - use autoconf and http://www.fedora.us/docs/rpm-packaging-guidelines.html |