SPECS: dkfilter.spec - added dkfilter-example-private.key - start ...
grzegorz
grzegorz at pld-linux.org
Wed Dec 6 09:38:51 CET 2006
Author: grzegorz Date: Wed Dec 6 08:38:51 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- added dkfilter-example-private.key
- start chkconfig & useradd (can anybody look at this?)
---- Files affected:
SPECS:
dkfilter.spec (1.7 -> 1.8)
---- Diffs:
================================================================
Index: SPECS/dkfilter.spec
diff -u SPECS/dkfilter.spec:1.7 SPECS/dkfilter.spec:1.8
--- SPECS/dkfilter.spec:1.7 Tue Dec 5 21:13:51 2006
+++ SPECS/dkfilter.spec Wed Dec 6 09:38:46 2006
@@ -8,7 +8,7 @@
Summary(pl): dkfilter - proxy SMTP zaprojektowane dla Postfiksa
Name: dkfilter
Version: 0.11
-Release: 0.8
+Release: 0.9
License: GPL v2
Group: Daemons
Source0: http://jason.long.name/dkfilter/%{name}-%{version}.tar.gz
@@ -16,9 +16,14 @@
Source1: %{name}.init
Source2: %{name}.sysconfig
Source3: %{name}.out.conf
+Source4: %{name}-example-private.key
Patch0: %{name}-perllib.patch
Patch1: %{name}-config_file.patch
URL: http://jason.long.name/dkfilter/
+Requires(post,preun): /sbin/chkconfig
+Requires(postun): /usr/sbin/userdel
+Requires(pre): /bin/id
+Requires(pre): /usr/sbin/useradd
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: perl-Crypt-OpenSSL-RSA
@@ -71,10 +76,30 @@
install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/dkfilter
install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/dkfilter
install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.out.conf
+install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/ssl/private1.key
%clean
rm -rf $RPM_BUILD_ROOT
+%pre
+#what uid and gid shuld i use here ???
+#%%useradd -P %{name} -u 40 -s /bin/false -c "Dkfilter User" -g dkfilter dkfilter
+
+%post
+/sbin/chkconfig --add dkfilter
+%service dkfilter restart
+
+%preun
+if [ "$1" = "0" ]; then
+ %service dkfilter stop
+ /sbin/chkconfig --del dkfilter
+fi
+
+%postun
+if [ "$1" = "0" ]; then
+ %userremove dkfilter
+fi
+
%files
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog Mail-DomainKeys.README NEWS smtpprox* TODO
@@ -92,6 +117,7 @@
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/dkfilter
%attr(750,root,dkfilter) %dir %{_sysconfdir}
%attr(750,root,dkfilter) %dir %{_sysconfdir}/ssl
+%attr(640,root,dkfilter) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ssl/private1.key
%attr(640,root,dkfilter) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.out.conf
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -100,6 +126,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.8 2006/12/06 08:38:46 grzegorz
+- added dkfilter-example-private.key
+- start chkconfig & useradd (can anybody look at this?)
+
Revision 1.7 2006/12/05 20:13:51 grzegorz
- BR: perl-MailTools
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/dkfilter.spec?r1=1.7&r2=1.8&f=u
More information about the pld-cvs-commit
mailing list