packages: CodeIgniter/CodeIgniter.spec - remove *.conf files, unneeded - re...
uzsolt
uzsolt at pld-linux.org
Wed Apr 13 09:45:48 CEST 2011
Author: uzsolt Date: Wed Apr 13 07:45:48 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- remove *.conf files, unneeded
- remove triggers
- add banner
- added INSTALL-PLD.txt
---- Files affected:
packages/CodeIgniter:
CodeIgniter.spec (1.1 -> 1.2)
---- Diffs:
================================================================
Index: packages/CodeIgniter/CodeIgniter.spec
diff -u packages/CodeIgniter/CodeIgniter.spec:1.1 packages/CodeIgniter/CodeIgniter.spec:1.2
--- packages/CodeIgniter/CodeIgniter.spec:1.1 Tue Apr 12 15:44:28 2011
+++ packages/CodeIgniter/CodeIgniter.spec Wed Apr 13 09:45:42 2011
@@ -4,14 +4,12 @@
Summary: A powerful PHP framework with a very small footprint
Name: CodeIgniter
Version: 2.0.2
-Release: 0.2
+Release: 0.5
License: other
Group: Development/Languages/PHP
Source0: http://www.codeigniter.com/download_files/reactor/%{name}_%{version}.zip
# Source0-md5: e75bab8cf27d2fb2483c5bb61b85a524
-Source1: apache.conf
-Source2: httpd.conf
-Source3: lighttpd.conf
+Source1: INSTALL-PLD.txt
URL: http://www.kohanaframework.org/
BuildRequires: rpm-php-pearprov >= 4.3
BuildRequires: rpmbuild(macros) >= 1.461
@@ -31,9 +29,6 @@
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _appdir %{_datadir}/%{name}
-%define _webapps /etc/webapps
-%define _webapp %{name}
-%define _sysconfdir %{_webapps}/%{_webapp}
%description
CodeIgniter is a powerful PHP framework with a very small footprint,
@@ -45,7 +40,8 @@
%prep
%setup -q -n %{name}_%{version}
-%{__sed} -i 's,\$application_folder.*=.*,$application_folder = "/home/users";,' index.php
+%{__sed} -i 's,\$application_folder.*=.*,$application_folder = "PLEASE SET TO CORRECT PATH";,' index.php
+%{__sed} -i '59 s,\$system_path.*=.*,$system_path = "/usr/share/CodeIgniter"\;, ' index.php
%install
rm -rf $RPM_BUILD_ROOT
@@ -55,40 +51,19 @@
cp -r index.php application system $RPM_BUILD_ROOT%{_appdir}
cp -r user_guide/* $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
-
-install -d $RPM_BUILD_ROOT%{_sysconfdir}
-install %{SOURCE1} %{SOURCE2} %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}
+install %{SOURCE1} $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
%clean
rm -rf $RPM_BUILD_ROOT
-%triggerin -- apache1 < 1.3.37-3, apache1-base
-%webapp_register apache %{_webapp}
-
-%triggerun -- apache1 < 1.3.37-3, apache1-base
-%webapp_unregister apache %{_webapp}
-
-%triggerin -- apache < 2.2.0, apache-base
-%webapp_register httpd %{_webapp}
-
-%triggerun -- apache < 2.2.0, apache-base
-%webapp_unregister httpd %{_webapp}
-
-%triggerin -- lighttpd
-%webapp_register lighttpd %{_webapp}
-
-%triggerun -- lighttpd
-%webapp_unregister lighttpd %{_webapp}
+%post
+%banner -e %{name} <<-EOF
+Please read INSTALL-PLD.txt to know how can use the users the installed CodeIgniter!
+EOF
%files
%defattr(644,root,root,755)
-%dir %attr(750,root,http) %{_sysconfdir}
%doc %{_docdir}/%{name}-%{version}
-
-%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
-%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf
-%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lighttpd.conf
-
%{_appdir}
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -97,6 +72,12 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.2 2011/04/13 07:45:42 uzsolt
+- remove *.conf files, unneeded
+- remove triggers
+- add banner
+- added INSTALL-PLD.txt
+
Revision 1.1 2011/04/12 13:44:28 uzsolt
- initial
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/CodeIgniter/CodeIgniter.spec?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list