annotate sm-archive.spec.in @ 18:e1a028daceb9

Added tag stable-1-6 for changeset 8ebecad6530f
author Carl Byington <carl@five-ten-sg.com>
date Fri, 21 Mar 2008 16:02:40 -0700
parents 8ebecad6530f
children b24369330483
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
45c8592d5d13 initial version
carl
parents:
diff changeset
1 %define localstatedir /var/lib
45c8592d5d13 initial version
carl
parents:
diff changeset
2
45c8592d5d13 initial version
carl
parents:
diff changeset
3 Summary: @PACKAGE@ Sendmail Milter
45c8592d5d13 initial version
carl
parents:
diff changeset
4 Name: @PACKAGE@
45c8592d5d13 initial version
carl
parents:
diff changeset
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
45c8592d5d13 initial version
carl
parents:
diff changeset
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
45c8592d5d13 initial version
carl
parents:
diff changeset
12 AutoReqProv: no
45c8592d5d13 initial version
carl
parents:
diff changeset
13
45c8592d5d13 initial version
carl
parents:
diff changeset
14 Requires(pre): /usr/sbin/useradd
45c8592d5d13 initial version
carl
parents:
diff changeset
15 Requires(pre): /usr/bin/getent
45c8592d5d13 initial version
carl
parents:
diff changeset
16 Requires(postun): /usr/sbin/userdel
45c8592d5d13 initial version
carl
parents:
diff changeset
17 Requires(post,preun): /sbin/chkconfig
45c8592d5d13 initial version
carl
parents:
diff changeset
18 Requires(post,preun): /sbin/service
45c8592d5d13 initial version
carl
parents:
diff changeset
19 BuildRequires: sendmail-devel >= 8.12.1
45c8592d5d13 initial version
carl
parents:
diff changeset
20 Requires: sendmail >= 8.12.1
45c8592d5d13 initial version
carl
parents:
diff changeset
21 Requires: sendmail-cf
45c8592d5d13 initial version
carl
parents:
diff changeset
22 Requires: libc.so.6, libgcc_s.so.1, libm.so.6, libpthread.so.0, libstdc++.so.6
45c8592d5d13 initial version
carl
parents:
diff changeset
23
45c8592d5d13 initial version
carl
parents:
diff changeset
24
45c8592d5d13 initial version
carl
parents:
diff changeset
25 %description
17
8ebecad6530f Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents: 13
diff changeset
26 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
27 on a configuration file.
1
45c8592d5d13 initial version
carl
parents:
diff changeset
28
17
8ebecad6530f Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents: 13
diff changeset
29 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
30 (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
31 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
32 file is case insensitive.
1
45c8592d5d13 initial version
carl
parents:
diff changeset
33
45c8592d5d13 initial version
carl
parents:
diff changeset
34
45c8592d5d13 initial version
carl
parents:
diff changeset
35 %prep
17
8ebecad6530f Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents: 13
diff changeset
36 %setup -q
1
45c8592d5d13 initial version
carl
parents:
diff changeset
37
45c8592d5d13 initial version
carl
parents:
diff changeset
38
45c8592d5d13 initial version
carl
parents:
diff changeset
39 %build
17
8ebecad6530f Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents: 13
diff changeset
40 %configure
8ebecad6530f Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents: 13
diff changeset
41 make %{?_smp_mflags}
1
45c8592d5d13 initial version
carl
parents:
diff changeset
42
45c8592d5d13 initial version
carl
parents:
diff changeset
43 %install
45c8592d5d13 initial version
carl
parents:
diff changeset
44 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
45 make DESTDIR=$RPM_BUILD_ROOT install
1
45c8592d5d13 initial version
carl
parents:
diff changeset
46 mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
2
32b57406b656 initial version
carl
parents: 1
diff changeset
47 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/sm-archive/sm-archive $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
48 mkdir -p $RPM_BUILD_ROOT/var/run/%{name}
1
45c8592d5d13 initial version
carl
parents:
diff changeset
49
45c8592d5d13 initial version
carl
parents:
diff changeset
50
45c8592d5d13 initial version
carl
parents:
diff changeset
51 %pre
17
8ebecad6530f Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents: 13
diff changeset
52 /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
45c8592d5d13 initial version
carl
parents:
diff changeset
53
45c8592d5d13 initial version
carl
parents:
diff changeset
54
45c8592d5d13 initial version
carl
parents:
diff changeset
55 %post
17
8ebecad6530f Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents: 13
diff changeset
56 /sbin/chkconfig --add %{name}
8ebecad6530f Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents: 13
diff changeset
57 echo Remember to edit %{_sysconfdir}/%{name}/%{name}.conf and add the following line to your sendmail.mc:
1
45c8592d5d13 initial version
carl
parents:
diff changeset
58 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')"
45c8592d5d13 initial version
carl
parents:
diff changeset
59 echo
45c8592d5d13 initial version
carl
parents:
diff changeset
60
45c8592d5d13 initial version
carl
parents:
diff changeset
61
45c8592d5d13 initial version
carl
parents:
diff changeset
62 %preun
17
8ebecad6530f Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents: 13
diff changeset
63 [ $1 = 0 ] && /sbin/service %{name} stop || :
1
45c8592d5d13 initial version
carl
parents:
diff changeset
64
45c8592d5d13 initial version
carl
parents:
diff changeset
65
45c8592d5d13 initial version
carl
parents:
diff changeset
66 %postun
17
8ebecad6530f Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents: 13
diff changeset
67 [ $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
68 [ $1 = 0 ] && userdel %{name} || :
1
45c8592d5d13 initial version
carl
parents:
diff changeset
69
45c8592d5d13 initial version
carl
parents:
diff changeset
70
45c8592d5d13 initial version
carl
parents:
diff changeset
71 %clean
17
8ebecad6530f Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents: 13
diff changeset
72 rm -rf $RPM_BUILD_ROOT
8ebecad6530f Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents: 13
diff changeset
73
1
45c8592d5d13 initial version
carl
parents:
diff changeset
74
45c8592d5d13 initial version
carl
parents:
diff changeset
75 %files
17
8ebecad6530f Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents: 13
diff changeset
76 %defattr(-,root,root,-)
1
45c8592d5d13 initial version
carl
parents:
diff changeset
77 %{_sbindir}/*
17
8ebecad6530f Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents: 13
diff changeset
78 %{_mandir}/man1/*
8ebecad6530f Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents: 13
diff changeset
79 %{_mandir}/man5/*
8ebecad6530f Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents: 13
diff changeset
80 %docdir %{_datadir}/doc/%{name}-%{version}
8ebecad6530f Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents: 13
diff changeset
81 %{_datadir}/doc/%{name}-%{version}
8ebecad6530f Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents: 13
diff changeset
82 %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
83 /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
84 %dir %attr(0750,%{name},root) /var/run/%{name}
1
45c8592d5d13 initial version
carl
parents:
diff changeset
85
45c8592d5d13 initial version
carl
parents:
diff changeset
86
45c8592d5d13 initial version
carl
parents:
diff changeset
87 %changelog
17
8ebecad6530f Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents: 13
diff changeset
88 * Fri Mar 21 2008 Carl Byington <carl@five-ten-sg.com> - 1.6
8ebecad6530f Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents: 13
diff changeset
89 - changes for Fedora packaging guidelines
8ebecad6530f Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents: 13
diff changeset
90
8ebecad6530f Add src/daemon* missing from source control.
Carl Byington <carl@five-ten-sg.com>
parents: 13
diff changeset
91 * Fri Mar 10 2006 Carl Byington <carl@five-ten-sg.com> -1.0
1
45c8592d5d13 initial version
carl
parents:
diff changeset
92 - use autoconf and http://www.fedora.us/docs/rpm-packaging-guidelines.html