From 269da07598a025dda8bf707bc248cda3a9b88821 Mon Sep 17 00:00:00 2001 From: Brian Read Date: Fri, 14 Jul 2023 13:49:06 +0100 Subject: [PATCH] initial commit of file from CVS for horde on Fri 14 Jul 13:49:06 BST 2023 --- .gitattributes | 1 + .gitignore | 3 + Makefile | 21 +++ README.md | 10 +- contriborbase | 1 + ...e-3.3.11-prevent-deprecated-warnings.patch | 32 ++++ horde-3.3.11.tar.gz | 3 + horde.spec | 139 ++++++++++++++++++ 8 files changed, 209 insertions(+), 1 deletion(-) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 contriborbase create mode 100644 horde-3.3.11-prevent-deprecated-warnings.patch create mode 100644 horde-3.3.11.tar.gz create mode 100644 horde.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..f087b42 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.tar.gz filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1534ba5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.rpm +*.log +*spec-20* diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9070238 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +# Makefile for source rpm: horde +# $Id: Makefile,v 1.1 2016/02/04 12:38:47 vip-ire Exp $ +NAME := horde +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) diff --git a/README.md b/README.md index bac2af1..6e55b21 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,11 @@ # horde -3rd Party (Maintained by Koozali) git repo for horde smeserver \ No newline at end of file +3rd Party (Maintained by Koozali) git repo for horde smeserver + +## Description + +
*This description has been generated by an LLM AI system and cannot be relied on to be fully correct.* +*Once it has been checked, then this comment will be deleted* +
+ +Horde is an open source web based application suite that consists of a number of applications that provide webmail, calendar, contacts, file management, tasks, and other related services. It is written in PHP and is designed to provide a simple, secure and integrated system to manage web based services. diff --git a/contriborbase b/contriborbase new file mode 100644 index 0000000..ef36a67 --- /dev/null +++ b/contriborbase @@ -0,0 +1 @@ +sme10 diff --git a/horde-3.3.11-prevent-deprecated-warnings.patch b/horde-3.3.11-prevent-deprecated-warnings.patch new file mode 100644 index 0000000..ab12322 --- /dev/null +++ b/horde-3.3.11-prevent-deprecated-warnings.patch @@ -0,0 +1,32 @@ +diff -up horde-3.3.11/lib/Horde/Notification.php.prevent-deprecated-warnings horde-3.3.11/lib/Horde/Notification.php +--- horde-3.3.11/lib/Horde/Notification.php.prevent-deprecated-warnings 2010-11-23 01:22:36.000000000 +0100 ++++ horde-3.3.11/lib/Horde/Notification.php 2011-09-19 08:37:00.000000000 +0200 +@@ -61,7 +61,7 @@ class Notification { + static $notification = array(); + + if (!isset($notification[$stack])) { +- $notification[$stack] = &new Notification($stack); ++ $notification[$stack] = new Notification($stack); + } + + return $notification[$stack]; +diff -up horde-3.3.11/lib/Horde/Perms.php.prevent-deprecated-warnings horde-3.3.11/lib/Horde/Perms.php +--- horde-3.3.11/lib/Horde/Perms.php.prevent-deprecated-warnings 2010-11-23 01:22:36.000000000 +0100 ++++ horde-3.3.11/lib/Horde/Perms.php 2011-09-19 08:37:56.000000000 +0200 +@@ -452,14 +452,14 @@ class Perms { + } + + if (is_null($driver)) { +- $perms = &new Perms($params); ++ $perms = new Perms($params); + } else { + $class = 'Perms_' . $driver; + if (!class_exists($class)) { + include 'Horde/Perms/' . $driver . '.php'; + } + if (class_exists($class)) { +- $perms = &new $class($params); ++ $perms = new $class($params); + } else { + $perms = false; + } diff --git a/horde-3.3.11.tar.gz b/horde-3.3.11.tar.gz new file mode 100644 index 0000000..76ab779 --- /dev/null +++ b/horde-3.3.11.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:abc8f01f33655767303b70da44c90117f95ae37838e0371b46218e375eb7a760 +size 8788320 diff --git a/horde.spec b/horde.spec new file mode 100644 index 0000000..e9d199a --- /dev/null +++ b/horde.spec @@ -0,0 +1,139 @@ +# $Id: horde.spec,v 1.1 2016/02/04 12:38:47 vip-ire Exp $ + +%define apachedir /etc/httpd +%define apacheuser www +%define apachegroup www +%define contentdir /home/httpd +%define phpini /etc/php.ini + +Summary: The common Horde Framework for all Horde modules. +Name: horde +Version: 3.3.11 +Release: 2%{?dist} +License: LGPL +Group: Applications/Horde +Source: ftp://ftp.horde.org/pub/horde/tarballs/horde-%{version}.tar.gz +Patch0: horde-3.3.11-prevent-deprecated-warnings.patch +URL: http://www.horde.org/ +BuildArchitectures: noarch +BuildRoot: /tmp/horde-root +AutoReq: no +Requires: php >= 4.3.0 +Requires: httpd >= 2.0.46 +Prereq: /usr/bin/perl + +%description +The Horde Framework provides a common structure and interface for Horde +applications (such as IMP, a web-based mail program). This RPM is +required for all other Horde module RPMs. + +The Horde Project writes web applications in PHP and releases them under +Open Source licenses. For more information (including help with Horde +and its modules) please visit http://www.horde.org/. + +%prep +%setup -q -n %{name}-%{version} +%patch0 -p1 +%build + +%install +[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT%{apachedir}/conf +#cp -p $RPM_SOURCE_DIR/horde.conf $RPM_BUILD_ROOT%{apachedir}/conf +mkdir -p $RPM_BUILD_ROOT%{contentdir}/html/horde +cp -pR * $RPM_BUILD_ROOT%{contentdir}/html/horde +chmod go-rwx $RPM_BUILD_ROOT%{contentdir}/html/horde/test.php +cd $RPM_BUILD_ROOT%{contentdir}/html/horde/config +mv hooks.php.dist hooks.php.dist1 +#rm -rf hooks.php.dist +for d in *.dist; do + d0=`basename $d .dist` + if [ ! -f "$d0" ]; then + cp -p $d $d0 + fi +done +mv hooks.php.dist1 hooks.php.dist + +%clean +[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root) +# Apache horde.conf file +#%config %{apachedir}/conf/horde.conf +# Include top level with %dir so not all files are sucked in +%dir %{contentdir}/html/horde +# Include top-level files by hand +%{contentdir}/html/horde/*.php +# Include these dirs so that all files _will_ get sucked in +%{contentdir}/html/horde/admin +%{contentdir}/html/horde/js +%{contentdir}/html/horde/lib +%{contentdir}/html/horde/locale +%{contentdir}/html/horde/po +%{contentdir}/html/horde/scripts +%{contentdir}/html/horde/services +%{contentdir}/html/horde/templates +%{contentdir}/html/horde/themes +%{contentdir}/html/horde/util +%{contentdir}/html/horde/rpc +# Mark documentation files with %doc and %docdir +%doc %{contentdir}/html/horde/COPYING +%doc %{contentdir}/html/horde/README +%docdir %{contentdir}/html/horde/docs +%{contentdir}/html/horde/docs +# Mark configuration files with %config and use secure permissions +# (note that .dist files are considered software; don't mark %config) +%attr(750,root,%{apachegroup}) %dir %{contentdir}/html/horde/config +%attr(750,root,%{apachegroup}) %dir %{contentdir}/html/horde/config/registry.d +%defattr(640,root,%{apachegroup}) +%{contentdir}/html/horde/config/.htaccess +%{contentdir}/html/horde/config/*.dist +%{contentdir}/html/horde/config/registry.d/* +%config %{contentdir}/html/horde/config/*.php +%config %{contentdir}/html/horde/config/*.xml + +%changelog +* Fri Jul 14 2023 BogusDateBot +- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday, + by assuming the date is correct and changing the weekday. + +* Mon Sep 19 2011 Jonathan Martens 3.3.11-2 +- Fix deprecated warnings when using PHP 5.3+ [SME: 6726] + +* Tue Nov 23 2010 John H. Bennett III 3.3.11-1 +- Updated to Horde 3.3.11 [SME: 6395] + +* Sun Nov 07 2010 John H. Bennett III 3.3.10-1 +- Updated to Horde 3.3.10 [SME: 6348] + +* Mon May 10 2010 John H. Bennett III 3.3.8-1 +- Updated to Horde 3.3.8 [SME: 5937] + +* Sat Feb 13 2010 John H. Bennett III 3.3.6-1 +- Updated to Horde 3.3.6 [SME: 5774] + +* Tue Oct 13 2009 John H. Bennett III 3.3.5-1 +- Updated to Horde 3.3.5 [SME: 5509] + +* Sat May 2 2009 John H. Bennett III 3.3.4-1 +- Updated to Horde 3.3.4 [SME: 5372] + +* Sat Feb 21 2009 John H. Bennett III 3.3.3-1 +- Updated to Horde 3.3.3 [SME: 4831] + +* Fri Jan 2 2009 John H. Bennett III 3.3.2-1 +- Updated to Horde 3.3.2 [SME: 4831] + +* Sat Dec 06 2008 John H. Bennett III 3.3-1 +- Updated to Horde 3.3 [SME: 4831] + +* Tue Sep 16 2008 John H. Bennett III 3.2.2-1 +- Update to Horde 3.2.2 [SME: 4565] + +* Fri Jun 13 2008 John H. Bennett III 3.2.1-1 +- Update to Horde 3.2.1 [SME: 4532] + +* Mon Jun 2 2008 John H. Bennett III 3.2-1 +- initial RPM roll for Horde 3.2 +