[packages/stikked] patch config to work out of the box

glen glen at pld-linux.org
Sat Mar 15 19:19:55 CET 2014


commit e1e72ddcdaf6b742d481bff69758527e58ec6a11
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sat Mar 15 18:07:18 2014 +0000

    patch config to work out of the box

 config.patch | 16 ++++++++++++++++
 stikked.spec |  7 +++++--
 2 files changed, 21 insertions(+), 2 deletions(-)
---
diff --git a/stikked.spec b/stikked.spec
index d3508d9..b205602 100644
--- a/stikked.spec
+++ b/stikked.spec
@@ -1,13 +1,14 @@
 Summary:	Stikked is an Open-Source PHP Pastebin
 Name:		stikked
 Version:	0.8.6
-Release:	0.3
+Release:	0.4
 License:	CC0
 Group:		Applications/WWW
 Source0:	https://github.com/claudehohl/Stikked/archive/%{version}/%{name}-%{version}.tar.gz
 # Source0-md5:	0340e32c5a07cb8d1faefe7110309905
 Source1:	apache.conf
 Source2:	lighttpd.conf
+Patch0:		config.patch
 URL:		https://github.com/claudehohl/Stikked
 BuildRequires:	rpmbuild(macros) >= 1.268
 Requires:	webapps
@@ -32,11 +33,13 @@ simple and easy to use user interface.
 %prep
 %setup -q -n Stikked-%{version}
 
-# to simplify install
+# this is to simplify install
 mv htdocs/application/config .
 rm config/index.html
 mv config/stikked.php{.dist,}
 
+%patch0 -p1
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}}
diff --git a/config.patch b/config.patch
new file mode 100644
index 0000000..da94acc
--- /dev/null
+++ b/config.patch
@@ -0,0 +1,16 @@
+--- Stikked-0.8.6/config/stikked.php	2013-11-18 22:52:43.000000000 +0200
++++ Stikked-0.8.6/config/stikked.php	2014-03-15 20:04:57.000000000 +0200
+@@ -15,10 +15,10 @@
+  * The database structure will be created automatically
+  *
+ */
+-$config['db_hostname'] = '127.0.0.1';
++$config['db_hostname'] = 'localhost';
+ $config['db_database'] = 'stikked';
+-$config['db_username'] = 'stikked';
+-$config['db_password'] = 'stikked';
++$config['db_username'] = 'mysql';
++$config['db_password'] = '';
+ 
+ /**
+  * Table prefix
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/stikked.git/commitdiff/9377341db351f4ee8f2e0e2efeab1161dcd0edd1



More information about the pld-cvs-commit mailing list