annotate sm-archive.spec.in @ 2:32b57406b656

initial version
author carl
date Fri, 10 Mar 2006 10:47:12 -0800
parents 45c8592d5d13
children 311e331f1bab
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@
45c8592d5d13 initial version
carl
parents:
diff changeset
6 Release: %{?custom_release}%{!?custom_release:1}
45c8592d5d13 initial version
carl
parents:
diff changeset
7 Copyright: GPL
45c8592d5d13 initial version
carl
parents:
diff changeset
8 Group: System Environment/Daemons
45c8592d5d13 initial version
carl
parents:
diff changeset
9 Source: http://www.five-ten-sg.com/@PACKAGE@/packages/@PACKAGE@-@VERSION@.tar.gz
45c8592d5d13 initial version
carl
parents:
diff changeset
10 BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
45c8592d5d13 initial version
carl
parents:
diff changeset
11 URL: http://www.five-ten-sg.com/@PACKAGE@/
45c8592d5d13 initial version
carl
parents:
diff changeset
12 Vendor: 510 Software Group
45c8592d5d13 initial version
carl
parents:
diff changeset
13 Packager: 510 Software Group
45c8592d5d13 initial version
carl
parents:
diff changeset
14 AutoReqProv: no
45c8592d5d13 initial version
carl
parents:
diff changeset
15
45c8592d5d13 initial version
carl
parents:
diff changeset
16 Requires(pre): /usr/sbin/useradd
45c8592d5d13 initial version
carl
parents:
diff changeset
17 Requires(pre): /usr/bin/getent
45c8592d5d13 initial version
carl
parents:
diff changeset
18 Requires(postun): /usr/sbin/userdel
45c8592d5d13 initial version
carl
parents:
diff changeset
19 Requires(post,preun): /sbin/chkconfig
45c8592d5d13 initial version
carl
parents:
diff changeset
20 Requires(post,preun): /sbin/service
45c8592d5d13 initial version
carl
parents:
diff changeset
21 BuildRequires: sendmail-devel >= 8.12.1
45c8592d5d13 initial version
carl
parents:
diff changeset
22 Requires: sendmail >= 8.12.1
45c8592d5d13 initial version
carl
parents:
diff changeset
23 Requires: sendmail-cf
45c8592d5d13 initial version
carl
parents:
diff changeset
24 Requires: libc.so.6, libgcc_s.so.1, libm.so.6, libpthread.so.0, libstdc++.so.6
45c8592d5d13 initial version
carl
parents:
diff changeset
25
45c8592d5d13 initial version
carl
parents:
diff changeset
26
45c8592d5d13 initial version
carl
parents:
diff changeset
27 %description
45c8592d5d13 initial version
carl
parents:
diff changeset
28 This milter adds recipient addresses to message passing thru it, based on a configuration file.
45c8592d5d13 initial version
carl
parents:
diff changeset
29
45c8592d5d13 initial version
carl
parents:
diff changeset
30 The sm-archive milter reads a text configuration file (sm-archive.conf) on startup, and whenever the config file (or any of the referenced include files) is changed. The entire configuration file is case insensitive.
45c8592d5d13 initial version
carl
parents:
diff changeset
31
45c8592d5d13 initial version
carl
parents:
diff changeset
32
45c8592d5d13 initial version
carl
parents:
diff changeset
33 %prep
45c8592d5d13 initial version
carl
parents:
diff changeset
34
45c8592d5d13 initial version
carl
parents:
diff changeset
35
45c8592d5d13 initial version
carl
parents:
diff changeset
36 %setup
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
45c8592d5d13 initial version
carl
parents:
diff changeset
40 ./configure --prefix=%{_prefix} \
45c8592d5d13 initial version
carl
parents:
diff changeset
41 --bindir=%{_bindir} --mandir=%{_mandir} \
45c8592d5d13 initial version
carl
parents:
diff changeset
42 --localstatedir=%{localstatedir} --libdir=%{_libdir} \
45c8592d5d13 initial version
carl
parents:
diff changeset
43 --datadir=%{_datadir} --includedir=%{_includedir} \
45c8592d5d13 initial version
carl
parents:
diff changeset
44 --sysconfdir=%{_sysconfdir}
45c8592d5d13 initial version
carl
parents:
diff changeset
45 make
45c8592d5d13 initial version
carl
parents:
diff changeset
46
45c8592d5d13 initial version
carl
parents:
diff changeset
47
45c8592d5d13 initial version
carl
parents:
diff changeset
48 %install
45c8592d5d13 initial version
carl
parents:
diff changeset
49 if [ "$RPM_BUILD_ROOT" = "/" -o -z "$RPM_BUILD_ROOT" ] ; then
45c8592d5d13 initial version
carl
parents:
diff changeset
50 echo sorry, you probably do not want me to delete the old buildroot at $RPM_BUILD_ROOT
45c8592d5d13 initial version
carl
parents:
diff changeset
51 exit 1
45c8592d5d13 initial version
carl
parents:
diff changeset
52 fi
45c8592d5d13 initial version
carl
parents:
diff changeset
53 rm -rf $RPM_BUILD_ROOT
45c8592d5d13 initial version
carl
parents:
diff changeset
54 make prefix=$RPM_BUILD_ROOT%{_prefix} bindir=$RPM_BUILD_ROOT%{_bindir} \
45c8592d5d13 initial version
carl
parents:
diff changeset
55 mandir=$RPM_BUILD_ROOT%{_mandir} libdir=$RPM_BUILD_ROOT%{_libdir} \
45c8592d5d13 initial version
carl
parents:
diff changeset
56 localstatedir=$RPM_BUILD_ROOT%{localstatedir} \
45c8592d5d13 initial version
carl
parents:
diff changeset
57 datadir=$RPM_BUILD_ROOT%{_datadir} \
45c8592d5d13 initial version
carl
parents:
diff changeset
58 includedir=$RPM_BUILD_ROOT%{_includedir} \
45c8592d5d13 initial version
carl
parents:
diff changeset
59 sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir} install
45c8592d5d13 initial version
carl
parents:
diff changeset
60 mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
45c8592d5d13 initial version
carl
parents:
diff changeset
61 mkdir -p $RPM_BUILD_ROOT%{_datadir}/doc/@PACKAGE@-@VERSION@
2
32b57406b656 initial version
carl
parents: 1
diff changeset
62 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/sm-archive/sm-archive $RPM_BUILD_ROOT/etc/rc.d/init.d
32b57406b656 initial version
carl
parents: 1
diff changeset
63 mv AUTHORS COPYING ChangeLog NEWS README $RPM_BUILD_ROOT%{_datadir}/doc/@PACKAGE@-@VERSION@
1
45c8592d5d13 initial version
carl
parents:
diff changeset
64 mkdir -p %{buildroot}/var/run/@PACKAGE@
45c8592d5d13 initial version
carl
parents:
diff changeset
65
45c8592d5d13 initial version
carl
parents:
diff changeset
66
45c8592d5d13 initial version
carl
parents:
diff changeset
67 %pre
45c8592d5d13 initial version
carl
parents:
diff changeset
68 /usr/bin/getent passwd sm-archive >/dev/null ||
45c8592d5d13 initial version
carl
parents:
diff changeset
69 useradd -r -d /etc/sm-archive -M -c "sm-archive pseudo-user" -s /sbin/nologin sm-archive
45c8592d5d13 initial version
carl
parents:
diff changeset
70
45c8592d5d13 initial version
carl
parents:
diff changeset
71
45c8592d5d13 initial version
carl
parents:
diff changeset
72 %post
45c8592d5d13 initial version
carl
parents:
diff changeset
73 /sbin/chkconfig --add @PACKAGE@
45c8592d5d13 initial version
carl
parents:
diff changeset
74
45c8592d5d13 initial version
carl
parents:
diff changeset
75 echo Remember to edit %{_sysconfdir}/@PACKAGE@/@PACKAGE@.conf and add the following line to your sendmail.mc:
45c8592d5d13 initial version
carl
parents:
diff changeset
76 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
77 echo
45c8592d5d13 initial version
carl
parents:
diff changeset
78
45c8592d5d13 initial version
carl
parents:
diff changeset
79
45c8592d5d13 initial version
carl
parents:
diff changeset
80 %preun
45c8592d5d13 initial version
carl
parents:
diff changeset
81 /sbin/service @PACKAGE@ stop || :
45c8592d5d13 initial version
carl
parents:
diff changeset
82 /sbin/chkconfig --del @PACKAGE@
45c8592d5d13 initial version
carl
parents:
diff changeset
83 userdel @PACKAGE@ || :
45c8592d5d13 initial version
carl
parents:
diff changeset
84
45c8592d5d13 initial version
carl
parents:
diff changeset
85
45c8592d5d13 initial version
carl
parents:
diff changeset
86 %postun
45c8592d5d13 initial version
carl
parents:
diff changeset
87
45c8592d5d13 initial version
carl
parents:
diff changeset
88
45c8592d5d13 initial version
carl
parents:
diff changeset
89 %clean
45c8592d5d13 initial version
carl
parents:
diff changeset
90
45c8592d5d13 initial version
carl
parents:
diff changeset
91 %files
45c8592d5d13 initial version
carl
parents:
diff changeset
92 %defattr(-,root,root)
45c8592d5d13 initial version
carl
parents:
diff changeset
93 %{_sbindir}/*
45c8592d5d13 initial version
carl
parents:
diff changeset
94 %doc %{_mandir}/*
45c8592d5d13 initial version
carl
parents:
diff changeset
95 %docdir %{_datadir}/doc/@PACKAGE@-@VERSION@
45c8592d5d13 initial version
carl
parents:
diff changeset
96 %{_datadir}/doc/@PACKAGE@-@VERSION@
45c8592d5d13 initial version
carl
parents:
diff changeset
97 %config(noreplace) %{_sysconfdir}/@PACKAGE@
45c8592d5d13 initial version
carl
parents:
diff changeset
98 %config(noreplace) %{_sysconfdir}/@PACKAGE@/*.conf
45c8592d5d13 initial version
carl
parents:
diff changeset
99 /etc/rc.d/init.d/@PACKAGE@
45c8592d5d13 initial version
carl
parents:
diff changeset
100 %dir %attr(0750,@PACKAGE@,root) /var/run/@PACKAGE@
45c8592d5d13 initial version
carl
parents:
diff changeset
101
45c8592d5d13 initial version
carl
parents:
diff changeset
102
45c8592d5d13 initial version
carl
parents:
diff changeset
103 %changelog
45c8592d5d13 initial version
carl
parents:
diff changeset
104 * Sun Dec 18 2005 Carl Byington 1.0
45c8592d5d13 initial version
carl
parents:
diff changeset
105 - use autoconf and http://www.fedora.us/docs/rpm-packaging-guidelines.html
45c8592d5d13 initial version
carl
parents:
diff changeset
106
45c8592d5d13 initial version
carl
parents:
diff changeset
107 * Tue Jan 03 2005 Carl Byington 1.4
45c8592d5d13 initial version
carl
parents:
diff changeset
108 - added hosts-ignore conf file
45c8592d5d13 initial version
carl
parents:
diff changeset
109 - see RELEASE_NOTES
45c8592d5d13 initial version
carl
parents:
diff changeset
110
45c8592d5d13 initial version
carl
parents:
diff changeset
111 * Thu Jul 15 2004 John Gunkel <antispam@boing.ca> 1.3
45c8592d5d13 initial version
carl
parents:
diff changeset
112 - patch to rc file no longer needed
45c8592d5d13 initial version
carl
parents:
diff changeset
113 - see RELEASE_NOTES
45c8592d5d13 initial version
carl
parents:
diff changeset
114
45c8592d5d13 initial version
carl
parents:
diff changeset
115 * Mon Jul 05 2004 John Gunkel <jgunkel@palliser.ca> 1.2
45c8592d5d13 initial version
carl
parents:
diff changeset
116 - Fixed some typos
45c8592d5d13 initial version
carl
parents:
diff changeset
117 - removed patch into separate file
45c8592d5d13 initial version
carl
parents:
diff changeset
118 - added config migration as suggested by Carl
45c8592d5d13 initial version
carl
parents:
diff changeset
119 - Added reminder to edit sendmail.mc
45c8592d5d13 initial version
carl
parents:
diff changeset
120
45c8592d5d13 initial version
carl
parents:
diff changeset
121 * Wed Jun 30 2004 John Gunkel <jgunkel@palliser.ca> 1.1
45c8592d5d13 initial version
carl
parents:
diff changeset
122 - Initial revision of spec file. Need to add a better description, docs and a sendmail.mc message
45c8592d5d13 initial version
carl
parents:
diff changeset
123