packages: roundcubemail/roundcubemail.spec -=?UTF-8?Q?=20?=(my) old change: replace defau...

glen glen at pld-linux.org
Mon Apr 16 22:44:20 CEST 2012


Author: glen                         Date: Mon Apr 16 20:44:20 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- (my) old change: replace default des string in config file for better security

---- Files affected:
packages/roundcubemail:
   roundcubemail.spec (1.124 -> 1.125) 

---- Diffs:

================================================================
Index: packages/roundcubemail/roundcubemail.spec
diff -u packages/roundcubemail/roundcubemail.spec:1.124 packages/roundcubemail/roundcubemail.spec:1.125
--- packages/roundcubemail/roundcubemail.spec:1.124	Sun Apr 15 15:56:41 2012
+++ packages/roundcubemail/roundcubemail.spec	Mon Apr 16 22:44:15 2012
@@ -302,6 +302,16 @@
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+# replace default des string in config file for better security
+makedesstr()
+	openssl rand -hex 12
+)
+
+if grep -q '24ByteDESkey' %{_sysconfdir}/main.inc.php; then
+	%{__sed} -i -e "s/rcmail-\!24ByteDESkey\*Str/$(makedesstr)/" %{_sysconfdir}/main.inc.php
+fi
+
 %pretrans
 if [ ! -f %{_sysconfdir}/db.inc.php -o ! -f %{_sysconfdir}/main.inc.php ]; then
 	# import configs from previously manually installed site
@@ -404,6 +414,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.125  2012/04/16 20:44:15  glen
+- (my) old change: replace default des string in config file for better security
+
 Revision 1.124  2012/04/15 13:56:41  ciesiel
 - up to 0.7.2 version
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/packages/roundcubemail/roundcubemail.spec?r1=1.124&r2=1.125



More information about the pld-cvs-commit mailing list