35 Distribution: OpenPKG Community |
35 Distribution: OpenPKG Community |
36 Class: EVAL |
36 Class: EVAL |
37 Group: CMS |
37 Group: CMS |
38 License: GPL/LGPL |
38 License: GPL/LGPL |
39 Version: %{V_opkg} |
39 Version: %{V_opkg} |
40 Release: 20111211 |
40 Release: 20120800 |
41 |
41 |
42 # list of sources |
42 # list of sources |
43 Source0: http://downloads.joomlacode.org/frsrelease/%{V_subdir}/Joomla_%{V_dist}-Stable-Full_Package.zip |
43 Source0: http://joomlacode.org/gf/download/frsrelease/%{V_subdir}/Joomla_%{V_dist}-Stable-Full_Package.tar.bz2 |
44 Source1: joomla-setup.sh |
44 Source1: joomla-setup.sh |
45 Source2: joomla-apache.conf |
45 Source2: joomla-apache.conf |
46 Source3: rc.joomla |
46 Source3: rc.joomla |
47 |
47 |
48 # build information |
48 # build information |
49 BuildPreReq: OpenPKG, openpkg >= 20100101, infozip |
49 BuildPreReq: OpenPKG, openpkg >= 20100101 |
50 PreReq: OpenPKG, openpkg >= 20100101 |
50 PreReq: OpenPKG, openpkg >= 20100101 |
51 PreReq: apache |
51 PreReq: apache |
52 PreReq: apache-php |
52 PreReq: apache-php |
53 PreReq: apache-php::with_mysql = yes |
53 PreReq: apache-php::with_mysql = yes |
54 PreReq: apache-php::with_zlib = yes |
54 PreReq: apache-php::with_zlib = yes |
58 PreReq: apache-php::with_mm = yes |
58 PreReq: apache-php::with_mm = yes |
59 PreReq: apache-php::with_sendmail = yes |
59 PreReq: apache-php::with_sendmail = yes |
60 PreReq: MTA |
60 PreReq: MTA |
61 |
61 |
62 %description |
62 %description |
63 Joomla! is a popular Web-based Content Management System (CMS). |
63 Joomla is a web based content management system (CMS) for publishing |
|
64 content on the internet and intranets. It features a model view |
|
65 controller (MVC) Web application framework and is useful for easily |
|
66 creating and building a websites and web enabled applications. |
|
67 |
|
68 Joomla is written using object oriented programming techniques |
|
69 and software design patterns, stores data in a MySQL database, |
|
70 and includes features such as page caching, RSS feeds, printable |
|
71 versions of pages, news flashes, blogs, polls, search, and support |
|
72 for language internationalization. |
64 |
73 |
65 %track |
74 %track |
66 prog joomla = { |
75 prog joomla = { |
67 version = %{V_dist} |
76 version = %{V_dist} |
68 url = http://joomlacode.org/gf/project/joomla/frs/ |
77 url = http://joomlacode.org/gf/project/joomla/frs/ |
91 $RPM_BUILD_ROOT%{l_prefix}/var/joomla/log \ |
99 $RPM_BUILD_ROOT%{l_prefix}/var/joomla/log \ |
92 $RPM_BUILD_ROOT%{l_prefix}/var/joomla/run |
100 $RPM_BUILD_ROOT%{l_prefix}/var/joomla/run |
93 |
101 |
94 # adjust default configuration |
102 # adjust default configuration |
95 %{l_shtool} subst \ |
103 %{l_shtool} subst \ |
96 -e 's;/usr/sbin/sendmail;%{l_prefix}/sbin/sendmail;' \ |
104 -e 's;/usr/sbin/sendmail;%{l_prefix}/sbin/sendmail;g' \ |
97 installation/template/tmpl/configuration.html |
105 libraries/phpmailer/phpmailer.php \ |
|
106 installation/models/configuration.php \ |
|
107 installation/configuration.php-dist \ |
|
108 administrator/components/com_config/models/forms/application.xml |
98 |
109 |
99 # install main program files |
110 # install main program files |
100 find . -name ".#*" -print | xargs rm -f |
111 find . -name ".#*" -print | xargs rm -f |
101 find . -name "*.orig" -print | xargs rm -f |
112 find . -name "*.orig" -print | xargs rm -f |
102 cp -rp * $RPM_BUILD_ROOT%{l_prefix}/lib/joomla/runtime/ |
113 cp -rp * $RPM_BUILD_ROOT%{l_prefix}/lib/joomla/runtime/ |
103 rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/joomla/runtime/configuration.php-dist |
114 rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/joomla/runtime/configuration.php-dist |
104 rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/joomla/runtime/htaccess.txt |
115 rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/joomla/runtime/htaccess.txt |
105 |
116 |
106 # post-adjustment: move risky installation area out of runtime area |
117 # postadjustment: move risky installation area out of runtime area |
107 # (will be dynmically linked in again later) |
118 # which will be dynmically linked in again later |
108 mv $RPM_BUILD_ROOT%{l_prefix}/lib/joomla/runtime/installation \ |
119 mv $RPM_BUILD_ROOT%{l_prefix}/lib/joomla/runtime/installation \ |
109 $RPM_BUILD_ROOT%{l_prefix}/lib/joomla/installation |
120 $RPM_BUILD_ROOT%{l_prefix}/lib/joomla/installation |
110 |
121 |
111 # install run-command script |
122 # install runcommand script |
112 %{l_shtool} install -c -m 755 %{l_value -s -a} \ |
123 %{l_shtool} install -c -m 755 %{l_value -s -a} \ |
113 -e 's;@l_path@;%{l_build_path};' \ |
124 -e 's;@l_path@;%{l_build_path};' \ |
114 %{SOURCE rc.joomla} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/ |
125 %{SOURCE rc.joomla} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/ |
115 |
126 |
116 # install setup script |
127 # install setup script |
180 %{l_rc} joomla stop 2>/dev/null |
191 %{l_rc} joomla stop 2>/dev/null |
181 |
192 |
182 # remove database |
193 # remove database |
183 $RPM_INSTALL_PREFIX/sbin/joomla-setup uninstall >/dev/null 2>&1 || true |
194 $RPM_INSTALL_PREFIX/sbin/joomla-setup uninstall >/dev/null 2>&1 || true |
184 |
195 |
185 # remove run-time files |
196 # remove runtime files |
186 rm -f $RPM_INSTALL_PREFIX/var/joomla/db/* >/dev/null 2>&1 || true |
197 rm -f $RPM_INSTALL_PREFIX/var/joomla/db/* >/dev/null 2>&1 || true |
187 rm -f $RPM_INSTALL_PREFIX/var/joomla/db/*/* >/dev/null 2>&1 || true |
198 rm -f $RPM_INSTALL_PREFIX/var/joomla/db/*/* >/dev/null 2>&1 || true |
188 rm -f $RPM_INSTALL_PREFIX/var/joomla/run/* >/dev/null 2>&1 || true |
199 rm -f $RPM_INSTALL_PREFIX/var/joomla/run/* >/dev/null 2>&1 || true |
189 rm -f $RPM_INSTALL_PREFIX/var/joomla/log/* >/dev/null 2>&1 || true |
200 rm -f $RPM_INSTALL_PREFIX/var/joomla/log/* >/dev/null 2>&1 || true |
190 fi |
201 fi |