# Source0-md5: c7a2980dff2774c97bd38bfbf450d8d5
Source1: INSTALL-PLD.txt
Source2: codeigniter-install
+Patch0: pld.patch
URL: http://codeigniter.com/
BuildRequires: rpm-php-pearprov >= 4.3
BuildRequires: rpmbuild(macros) >= 1.461
%prep
%setup -q -n %{name}_%{version}
-%{__sed} -i 's,\$application_folder.*=.*,$application_folder = "PLEASE SET TO CORRECT PATH";,' index.php
-%{__sed} -i '59 s,\$system_path.*=.*,$system_path = "%{_datadir}/CodeIgniter/system"\;, ' index.php
+%patch0 -p1
%install
rm -rf $RPM_BUILD_ROOT
--- /dev/null
+diff -ur -x .svn -x .git -x .bzr -x CVS CodeIgniter_2.1.2/index.php CodeIgniter_2.1.2.x/index.php
+--- CodeIgniter_2.1.2/index.php 2012-06-30 00:22:35.000000000 +0300
++++ CodeIgniter_2.1.2.x/index.php 2015-06-09 15:44:16.727178586 +0300
+@@ -56,7 +56,7 @@
+ * as this file.
+ *
+ */
+- $system_path = 'system';
++ $system_path = "/usr/share/CodeIgniter/system";
+
+ /*
+ *---------------------------------------------------------------
+@@ -72,7 +72,7 @@
+ * NO TRAILING SLASH!
+ *
+ */
+- $application_folder = 'application';
++ $application_folder = "PLEASE SET TO CORRECT PATH";
+
+ /*
+ * --------------------------------------------------------------------