[packages/w3pw] move init.sql to separate file
glen
glen at pld-linux.org
Sun Nov 16 13:28:25 CET 2014
commit 62136789f93bf97cc5b731980662416d839a1e3e
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun Nov 16 14:28:10 2014 +0200
move init.sql to separate file
init.sql | 5 +++++
w3pw.spec | 9 ++-------
2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/w3pw.spec b/w3pw.spec
index 33adbf8..e778e09 100644
--- a/w3pw.spec
+++ b/w3pw.spec
@@ -10,6 +10,7 @@ Source0: http://downloads.sourceforge.net/w3pw/%{name}-%{version}.tar.gz
# Source0-md5: df718531136f3314b8582fbdd4e80791
Source1: apache.conf
Source2: lighttpd.conf
+Source3: init.sql
URL: http://w3pw.sourceforge.net/
BuildRequires: rpm-php-pearprov >= 4.4.2-11
BuildRequires: rpmbuild(macros) >= 1.268
@@ -54,13 +55,7 @@ Features:
%setup -q
# simple sql to create and load db schema
-cat << 'EOF' > init.sql
-CREATE DATABASE w3pw;
-USE w3pw;
-SOURCE w3pw.sql;
-
-UPDATE main set pw=SHA1("secret");
-EOF
+cp -p %{SOURCE3} .
# we moved files around
%{__sed} -i -e 's,include/config.php,%{_sysconfdir}/config.php,' *.php
diff --git a/init.sql b/init.sql
new file mode 100644
index 0000000..85cc351
--- /dev/null
+++ b/init.sql
@@ -0,0 +1,5 @@
+CREATE DATABASE w3pw;
+USE w3pw;
+SOURCE w3pw.sql;
+
+UPDATE main set pw=SHA1("secret");
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/w3pw.git/commitdiff/62136789f93bf97cc5b731980662416d839a1e3e
More information about the pld-cvs-commit
mailing list