SPECS: policyd.spec - policyd.init: show howto setup new policyd i...

hns hns at pld-linux.org
Tue Nov 15 13:59:02 CET 2005


Author: hns                          Date: Tue Nov 15 12:59:02 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- policyd.init: show howto setup new policyd install (``init'' param)
- policyd.cron: move this to policyd.init (``cron'' param)
- work in progress..

---- Files affected:
SPECS:
   policyd.spec (1.3 -> 1.4) 

---- Diffs:

================================================================
Index: SPECS/policyd.spec
diff -u SPECS/policyd.spec:1.3 SPECS/policyd.spec:1.4
--- SPECS/policyd.spec:1.3	Fri Oct 28 19:53:35 2005
+++ SPECS/policyd.spec	Tue Nov 15 13:58:57 2005
@@ -1,18 +1,14 @@
 # $Id$
 #
 # TODO: optflags
-# TODO: mysql info
-# mysql> GRANT ALL ON policyd.* TO policyd at localhost IDENTIFIED BY 'secret_password';
-# mysql> GRANT USAGE ON *.* TO policyd at localhost IDENTIFIED BY 'secret_password';
-# $ zcat /usr/share/doc/policyd-%{Version}/DATABASE.mysql.gz | mysql -p -u policyd
 #
-# TODO: postfix info
-#smtpd_recipient_restrictions =
-#	permit_mynetworks
-#	permit_sasl_authenticated
-#	reject_unauth_destination
-#	reject_unlisted_recipient
-#	check_policy_service inet:127.0.0.1:10031
+# TODO: upgrade database smooth
+# smart updates tables from older to newer version of policyd
+#
+# TODO: mysql and postfix info, see:
+# /etc/rc.d/init.d/policyd init
+#
+# Not Finished Yet, reject STBR.
 #
 Summary:	Policyd - an anti-spam plugin for Postfix
 Summary(pl):	Policyd - wtyczka antyspamowa dla Postfiksa
@@ -29,6 +25,7 @@
 Source4:	policyd.init
 URL:		http://policyd.sourceforge.net/
 BuildRequires:	mysql-devel
+BuildRequires:	zlib-devel
 Requires:	mysql-libs
 Requires:	zlib
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -77,6 +74,7 @@
 if [ -f /var/lock/subsys/policyd ]; then
 	/etc/rc.d/init.d/policyd restart >&2 || :
 else
+	echo "Run \"/etc/rc.d/init.d/policyd init\" to read howto setup policy daemon." >&2
 	echo "Run \"/etc/rc.d/init.d/policyd start\" to start policy daemon." >&2
 fi
 
@@ -97,20 +95,24 @@
 %files
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/%{name}/*
-%doc *.txt *.mysql doc/*.sql doc/*.txt
 %dir %{_sysconfdir}/%{name}
+%doc *.txt *.mysql doc/*.sql doc/*.txt
+%doc %{_sysconfdir}/%{name}/%{name}.conf-dist
 %config(noreplace) %verify(not md5 mtime size) %attr(640,root,root) %{_sysconfdir}/%{name}/%{name}.conf
-# shouldn't be in %doc instead here?
-%{_sysconfdir}/%{name}/%{name}.conf-dist
-%{_sysconfdir}/rc.d/init.d/%{name}
-%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
 %config(noreplace) %verify(not md5 mtime size) %attr(755,root,root) /etc/cron.hourly/%{name}
+%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
+%{_sysconfdir}/rc.d/init.d/%{name}
 
 %changelog
 * %{date} PLD Team <feedback at pld-linux.org>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.4  2005/11/15 12:58:57  hns
+- policyd.init: show howto setup new policyd install (``init'' param)
+- policyd.cron: move this to policyd.init (``cron'' param)
+- work in progress..
+
 Revision 1.3  2005/10/28 17:53:35  qboosh
 - pl, cleanups, config flags fixes
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/policyd.spec?r1=1.3&r2=1.4&f=u




More information about the pld-cvs-commit mailing list