Compare commits

...
Sign in to create a new pull request.

8 commits

Author SHA1 Message Date
Fedora Release Engineering
ca9f747873 dist-git conversion 2010-07-29 16:29:55 +00:00
David Nalley
2da21eebb4 - upgrading to 1.2.3 bz 589727 521193
- removed jsminify patch, and thus requirement for custom tarball
- fixes XSS and CSRF security problems. bz 589290 589292
2010-05-13 00:38:02 +00:00
Bill Nottingham
5e0bbab8d1 Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-26 01:08:52 +00:00
David Nalley
9c5d353b90 - changed requirement for dos2unix to build requirement 2009-08-24 01:16:40 +00:00
David Nalley
32c16755e5 - added requirement for dos2unix 2009-08-24 00:44:25 +00:00
David Nalley
b713fbb985 - upgraded to 1.1.2 to match upstream bug 514301
- changed php version requirements to 5.1.2 to remove bundling of sha256
    library
- added symlinks silencing per ian wellers bug 511137
- silenced selinux problems
- Added requires for php-Smarty, php-adodb, php-mcrypt
- Deleted unused JSON, encrypytion, and hashes libraries which were bundled
    for 493237
2009-08-24 00:24:34 +00:00
Paul W. Frields
f438bd0358 Fix deps for F-10 and F-11 as in EL-5 2009-08-20 19:25:10 +00:00
Jesse Keating
4130e521a4 Initialize branch F-11 for zikula 2009-04-15 05:54:37 +00:00
8 changed files with 107 additions and 55 deletions

View file

@ -1 +0,0 @@
Zikula-1.1.1-CORE.tar.gz

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
Zikula-1.2.3.zip

View file

@ -1,21 +0,0 @@
# Makefile for source rpm: zikula
# $Id$
NAME := zikula
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

View file

@ -1 +0,0 @@
zikula-1_1_1-12_fc10:HEAD:zikula-1.1.1-12.fc10.src.rpm:1237564874

View file

@ -1 +1 @@
d09fee4fc1f4756bff11f61c6d3797a1 Zikula-1.1.1-CORE.tar.gz
7641cfd362c8cf9e1ca5f4ecdd9ce44c Zikula-1.2.3.zip

View file

@ -1,11 +1,12 @@
--- config/config.php 2008-06-06 14:03:14.000000000 +0200
+++ config/config.php.diff 2009-01-26 10:16:12.000000000 +0100
@@ -36,7 +36,7 @@
--- config/config.php.diff 2009-10-12 09:14:24.000000000 -0400
+++ config/config.php 2009-12-06 00:33:45.060521101 -0500
@@ -37,7 +37,7 @@
global $PNConfig;
$PNConfig['System']['installed'] = 0; // installer will change this during installation
$PNConfig['System']['tabletype'] = 'myisam'; // installer will change this during installation
-$PNConfig['System']['temp'] = 'pnTemp'; // installer will change this during installation
+$PNConfig['System']['temp'] = '/var/lib/zikula/pnTemp'; // installer will change this during installation
$PNConfig['System']['prefix'] = 'zk'; // installer will change this during installation
$PNConfig['System']['prefix'] = 'z'; // installer will change this during installation
$PNConfig['System']['development'] = 0; // should be set to 0/false when cutting a release for production use
$PNConfig['System']['default_timezone'] = 'GMT'; // TZ timezone

View file

@ -1,43 +1,58 @@
Name: zikula
Version: 1.1.1
Release: 12%{?dist}
Version: 1.2.3
Release: 1%{?dist}
Summary: Zikula is a free open source Web Application Framework
Group: Applications/Publishing
Group: Applications/Publishing
License: GPLv2+
# There is some content in this package that is LGPL with the bulk
# GPLv2+ thus overall package should be GPLv2+
URL: http://www.zikula.org/
Source0: Zikula-%{version}-CORE.tar.gz
#URL for source is http://code.zikula.org/core/downloads/99
Source0: Zikula-%{version}.zip
#URL for source is http://zikula.org/CMS/Download/
Source1: zikula.conf
#this is being discussed upstream - for the moment it is a fedora only file
#see http://groups.google.com/group/zikula-discussions/browse_thread/thread/2f44d45a975d1515/
Patch: %{name}-%{version}-config.patch
Patch0: %{name}-%{version}-config.patch
#Patch is recorded in ticket 901 on the zikula trac instance
Patch1: %{name}hash.patch
#Patch changes the sha256 hash function that's called to use php5's implementation.
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
Requires: httpd
Requires: php >= 5.2.0
Requires: php-mysql >= 5.2.0
Requires: php-pgsql >= 5.2.0
Requires: php >= 5.1.2
Requires: php-mysql >= 5.1.2
Requires: php-pgsql >= 5.1.2
Requires: php-Smarty
Requires: php-mcrypt
Requires: php-adodb
Requires: php-simplepie
Requires: php-IDNA_Convert
Requires: php-mbstring
Requires: symlinks
BuildRequires: dos2unix
Requires(post): symlinks
Requires(pre): policycoreutils
%description
Zikula is a free open source Web Application Framework. \
It can be used to develop robust, secure, interactive and \
editable websites and web based applications. Zikula is written \
in PHP object oriented and fully modular. It requires a database \
and may use all leading database platforms like MySQL, \
PostgreSQL and Microsoft SQL Server. \
A free open source Web Application Framework.
It can be used to develop robust, secure, interactive and
editable websites and web based applications. Zikula is written
in PHP, object oriented, and fully modular. It requires a database
and may use all leading database platforms like MySQL,
PostgreSQL and Microsoft SQL Server.
Zikula is the successor to the PostNuke project.
%pre
semanage fcontext -a -t httpd_var_run_t %{_sysconfdir}/%{name}/config.php || semanage fcontext -m -t httpd_var_run_t %{_sysconfdir}/%{name}/config.php || :
semanage fcontext -a -t httpd_var_run_t %{_sysconfdir}/%{name}/config.php > /dev/null 2>&1 || :
semanage fcontext -m -t httpd_var_run_t %{_sysconfdir}/%{name}/config.php > /dev/null 2>&1 || :
%prep
%setup -c -qn %{name}-%{version}
%patch -p0
%setup -qn Zikula-%{version}
%patch0 -p0
%patch1 -p0
find . -type f -perm 755 -exec chmod 0644 '{}' \;
#find . \( -name "*.php" -o -name "*.txt" -o -name "*htm*" -o -name "*.css" -o -name "*.js" -o -name "*.ini" \) -exec chmod 0644 '{}' \;
chmod -x docs/COPYING
%build
#nothing really for this section but rpmbuild complains if build is empty
@ -48,7 +63,18 @@ rm -rf %{buildroot}
%{__mkdir} -p %{buildroot}/%{_sysconfdir}/%{name}
%{__mkdir} -p %{buildroot}/%{_sysconfdir}/httpd/conf.d/
cp -pr config images includes install javascript language modules system themes -t %{buildroot}/%{_datadir}/%{name}
# Following are deleted as Zikula checks the internal system looking for these libs
# before using the 'bundled' versions.
rm -rf includes/classes/encryption
rm -rf includes/classes/hashes
rm -rf includes/classes/JSON
# Following are deleted and symlinks will be created below to link to the
# appropriate site packages.
rm -rf includes/classes/Smarty
rm -rf includes/classes/adodb
rm -rf includes/classes/SimplePie
cp -pr config images includes install javascript locale language modules system themes -t %{buildroot}/%{_datadir}/%{name}
install -m 0644 *php robots.txt %{buildroot}/%{_datadir}/%{name}
@ -56,13 +82,15 @@ cp -pr pnTemp -t %{buildroot}/%{_localstatedir}/lib/%{name}
install -m 0664 ./config/config.php %{buildroot}/%{_sysconfdir}/%{name}/config.php
ln -sf %{_sysconfdir}/%{name}/config.php %{buildroot}/%{_datadir}/%{name}/config/config.php
install -m 0644 -D -p %{SOURCE1} %{buildroot}/%{_sysconfdir}/httpd/conf.d/zikula.conf
#ln -sf %{_datadir}/php/adodb/ %{buildroot}/%{_datadir}/%{name}/includes/classes/adodb || :
#ln -sf %{_datadir}/php/Smarty/ %{buildroot}/%{_datadir}/%{name}/includes/classes/Smarty || :
#ln -sf %{_datadir}/php/php-simplepie/ %{buildroot}/%{_datadir}/%{name}/includes/classes/SimplePie || :
#ln -sf %{_datadir}/php/IDNA_Convert/ %{buildroot}/%{_datadir}/%{name}/includes/classes/idna || :
#symlinks -crs %{buildroot}/%{_datadir}/%{name}/includes/
rm -f %{buildroot}/%{datadir}/%{name}/includes/.htaccess
#changinng encoding
iconv -f ISO-8859-1 -t UTF-8 --output %{_builddir}/%{name}-%{version}/docs/previouscredits.txt %{_builddir}/%{name}-%{version}/docs/previouscredits.txt
iconv -f ISO-8859-1 -t UTF-8 --output %{_builddir}/%{name}-%{version}/docs/CREDITS.txt %{_builddir}/%{name}-%{version}/docs/CREDITS.txt
iconv -f ISO-8859-1 -t UTF-8 --output %{_builddir}/Zikula-%{version}/docs/previouscredits.txt %{_builddir}/Zikula-%{version}/docs/previouscredits.txt
cd %{buildroot}
cd -
@ -87,10 +115,41 @@ rm -rf %{buildroot}
%post
ln -sf /usr/share/doc/zikula-1.1.1 /usr/share/zikula/docs || :
symlinks -crs /usr/share/zikula || :
ln -sf /usr/share/php/php-gettext /usr/share/zikula/includes/classes/php-gettext 2>&1 || :
ln -sf /usr/share/doc/zikula-1.1.2 /usr/share/zikula/docs > /dev/null 2>&1 || :
ln -sf /usr/share/php/adodb /usr/share/zikula/includes/classes/adodb > /dev/null 2>&1 || :
ln -sf /usr/share/php/Smarty /usr/share/zikula/includes/classes/Smarty > /dev/null 2>&1 || :
ln -sf /usr/share/php/php-simplepie /usr/share/zikula/includes/classes/SimplePie > /dev/null 2>&1 || :
symlinks -crs /usr/share/zikula/includes/ > /dev/null 2>&1 || :
symlinks -crs /usr/share/zikula > /dev/null 2>&1 || :
%changelog
* Wed May 12 2010 David Nalley <david@gnsa.us> 1.2.3-1
- upgrading to 1.2.3
- removed jsminify patch, and thus requirement for custom tarball
- fixes XSS and CSRF security problems.
* Sun Dec 06 2009 David Nalley <david@gnsa.us> 1.2.0-1
- upgrading to 1.2.0
- added require for php-gettext and symlinked it to includes/classes
- added patch to strip jsminify support
- build custom tarball because upstream ships non-free libs
* Sun Aug 24 2009 David Nalley <david@gnsa.us> 1.1.2-3
- changed requirement for dos2unix to build requirement
* Sun Aug 23 2009 David Nalley <david@gnsa.us> 1.1.2-2
- added requirement for dos2unix
* Sun Aug 23 2009 David Nalley <david@gnsa.us> 1.1.2-1
- upgraded to 1.1.2 to match upstream bug 514301
- changed php version requirements to 5.1.2 to remove bundling of sha256 library
- added symlinks silencing per ian wellers bug 511137
- silenced selinux problems
- Added requires for php-Smarty, php-adodb, php-mcrypt
- Deleted unused JSON, encrypytion, and hashes libraries which were bundled for 493237
* Wed Aug 12 2009 Paul W. Frields <stickster@gmail.com> - 1.1.1-13
- Upstream docs advise that PHP >= 4.3 is correct requirement
* Sat Mar 14 2009 David Nalley <david@gnsa.us> 1.1.1-12
- appended zero exit snippet to all pre and post lines

14
zikulahash.patch Normal file
View file

@ -0,0 +1,14 @@
--- includes/DataUtil.class.php.orig 2009-12-06 00:50:32.903788349 -0500
+++ includes/DataUtil.class.php 2009-12-06 00:51:11.467520804 -0500
@@ -441,9 +441,9 @@
return bin2hex(mhash(MHASH_SHA256, $string));
} else {
if (!class_exists('SHA256')) {
- Loader::requireOnce('includes/classes/hashes/sha256.class.php');
+# Loader::requireOnce('includes/classes/hashes/sha256.class.php');
}
- return SHA256::hash($string);
+ return hash('sha256', $string);
}
} else if ($type == 'md5') {
return md5($string);