From ed08dcb393c11e4dbe56bf4ed589ddea0f528a56 Mon Sep 17 00:00:00 2001 From: Trevor Batley Date: Thu, 9 Oct 2025 11:53:02 +1100 Subject: [PATCH] initial commit of file from CVS for phplist on Thu Oct 9 11:53:02 AEDT 2025 --- .gitattributes | 1 + .gitignore | 3 + Makefile | 21 ++++ README.md | 8 +- contriborbase | 1 + httpd.conf | 17 +++ ...6.8-manage_admins_with_external_auth.patch | 12 ++ phplist-3.6.8.tgz | 3 + phplist.spec | 112 ++++++++++++++++++ 9 files changed, 177 insertions(+), 1 deletion(-) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 contriborbase create mode 100644 httpd.conf create mode 100644 phplist-3.6.8-manage_admins_with_external_auth.patch create mode 100644 phplist-3.6.8.tgz create mode 100644 phplist.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..3606a43 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.tgz 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..02adfb1 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +# Makefile for source rpm: phplist +# $Id: Makefile,v 1.1 2022/08/02 07:10:49 jpp Exp $ +NAME := phplist +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 7db203e..f49a22b 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,9 @@ # phplist -3rd Party (Maintained by Koozali) git repo for phplist smecontribs \ No newline at end of file +3rd Party (Maintained by Koozali) git repo for phplist smecontribs + +## 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* +
diff --git a/contriborbase b/contriborbase new file mode 100644 index 0000000..9b7fd51 --- /dev/null +++ b/contriborbase @@ -0,0 +1 @@ +contribs10 diff --git a/httpd.conf b/httpd.conf new file mode 100644 index 0000000..e9d49e1 --- /dev/null +++ b/httpd.conf @@ -0,0 +1,17 @@ +Alias /phplist /usr/share/phplist/public_html/lists + + Options None + Options +Includes + AllowOverride Options + AddType application/x-httpd-php .php + php_admin_value open_basedir /usr/share/phplist:/var/lib/phplist:/etc/phplist:/tmp + php_admin_flag file_uploads on + php_admin_value upload_max_filesize 5M + php_admin_value post_max_size 5M + php_admin_value memory_limit 128M + php_admin_value session.save_path /var/lib/phplist/tmp + php_admin_value upload_tmp_dir /var/lib/phplist/tmp + order deny,allow + deny from all + allow from 127.0.0.1 + diff --git a/phplist-3.6.8-manage_admins_with_external_auth.patch b/phplist-3.6.8-manage_admins_with_external_auth.patch new file mode 100644 index 0000000..542ec07 --- /dev/null +++ b/phplist-3.6.8-manage_admins_with_external_auth.patch @@ -0,0 +1,12 @@ +diff -Nur --no-dereference phplist-3.6.8.old/public_html/lists/admin/admins.php phplist-3.6.8/public_html/lists/admin/admins.php +--- phplist-3.6.8.old/public_html/lists/admin/admins.php 2022-05-27 05:23:57.000000000 -0400 ++++ phplist-3.6.8/public_html/lists/admin/admins.php 2022-08-02 15:12:19.045000000 -0400 +@@ -7,7 +7,7 @@ + $remember_find = ''; + } + +-$external = $require_login && !is_a($GLOBALS['admin_auth'], 'phpListAdminAuthentication'); ++$external = !$require_login; + $start = isset($_GET['start']) ? sprintf('%d', $_GET['start']) : 0; + $listid = isset($_GET['id']) ? sprintf('%d', $_GET['id']) : 0; + $find = isset($_REQUEST['find']) ? $_REQUEST['find'] : ''; diff --git a/phplist-3.6.8.tgz b/phplist-3.6.8.tgz new file mode 100644 index 0000000..57d82b4 --- /dev/null +++ b/phplist-3.6.8.tgz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bb82f62a66f09f79542e6c81cc8ffc6271bef2a8f70c9cdc3ae9237a8455f100 +size 21447423 diff --git a/phplist.spec b/phplist.spec new file mode 100644 index 0000000..50272f6 --- /dev/null +++ b/phplist.spec @@ -0,0 +1,112 @@ +%define name phplist +%define version 3.6.8 +%define release 2 +%define httpuser apache + +Summary: newsletter manager +Name: %{name} +Version: %{version} +Release: %{release}%{?dist} +License: GNU GPL +URL: http://www.phplist.org +Group: application/internet +Source: %{name}-%{version}.tgz +Source1: httpd.conf +Patch0: phplist-3.6.8-manage_admins_with_external_auth.patch +#phplist-3.2.4-manage_admins_with_external_auth.patch +Packager: Daniel B. +BuildArch: noarch +BuildRoot: /var/tmp/%{name}-%{version} + +Requires: php +Requires: php-mysql +Requires: php-imap +Requires: httpd +#Requires: php80-php php80-php-mysqli php80-php-mysqlnd php80-php-pecl-mysql php80-php-curl php80-php-gd php80-php-gettext php80-php-iconv php80-php-imap php80-php-mbstring php80-php-mysqli php80-php-pear-HTTP_Request php80-php-session php80-php-xml php80-php-zlib php80-php-mbstring php80-php-gd + +%description +phplist is the world's most popular open source email campaign manager. + + +%prep +%setup +#%patch0 -p1 + +%build +# empty build + +%install + +%{__rm} -rf %{buildroot} +%{__mkdir} -p %{buildroot}/%{_datadir}/%{name} +%{__mkdir} -p %{buildroot}/%{_sysconfdir}/ +%{__mkdir} -p %{buildroot}/%{_localstatedir}/lib/%{name}/{tmp,images} +%{__cp} -r bin %{buildroot}/%{_datadir}/%{name} +%{__mv} public_html/lists/config %{buildroot}/%{_sysconfdir}/%{name} +%{__rm} -f %{buildroot}/%{_sysconfdir}/%{name}/.htaccess +%{__cp} -r public_html/lists %{buildroot}/%{_datadir}/%{name}/www +ln -s %{_sysconfdir}/%{name} %{buildroot}/%{_datadir}/%{name}/www/config +ln -s %{_localstatedir}/lib/%{name}/images %{buildroot}/%{_datadir}/%{name}/www/uploadimages +sed -i -e "s|/home/website/public_html/lists/|%{_datadir}/%{name}/www/|g" \ + %{buildroot}/%{_datadir}/%{name}/bin/phplist + +%{__mkdir} -p %{buildroot}/%{_sysconfdir}/httpd/conf.d/ +%{__install} -m 0640 %{SOURCE1} %{buildroot}/%{_sysconfdir}/httpd/conf.d/%{name}.conf + + +%clean +rm -rf %{buildroot} + +%post + +%postun + + +%files +%defattr(-,root,root) +%{_datadir}/%{name} +%doc CODE_OF_CONDUCT.md CONTRIBUTING.md COPYING INSTALL LICENSE PEOPLE README.md TODO UPGRADE VERSION +%attr(0755,root,root) %{_datadir}/%{name}/bin/phplist +%dir %attr(770,root,%{httpuser}) %{_localstatedir}/lib/%{name}/ +%dir %attr(770,root,%{httpuser}) %{_localstatedir}/lib/%{name}/tmp +%dir %attr(770,root,%{httpuser}) %{_localstatedir}/lib/%{name}/images +%dir %attr(770,root,%{httpuser}) %{_datadir}/%{name}/www/admin/plugins +#%dir %attr(770,root,%{httpuser}) %{_sysconfdir}/%{name} +%config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf +%config(noreplace) %{_sysconfdir}/%{name}/config.php +%{_sysconfdir}/%{name}/config_extended.php + +%changelog +* Thu Oct 09 2025 BogusDateBot +- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday, + by assuming the date is correct and changing the weekday. + +* Thu Aug 04 2022 Jean-Philippe Pialasse 3.6.8-2.sme +- disable auth patch + +* Tue Aug 02 2022 Jean-Philippe Pialasse 3.6.8-1 +- Update to 3.6.8 + +* Mon Feb 22 2016 Daniel Berteaud 3.2.4-1 +- Update to 3.2.4 + +* Mon Sep 7 2015 Daniel B. 3.0.12-1 +- Update to 3.0.12 + +* Thu Jan 29 2015 Daniel B. 3.0.11-1 +- Update to 3.0.11 + +* Wed Oct 22 2014 Daniel B. 3.0.10-1 +- Update to 3.0.10 + +* Thu Sep 11 2014 Daniel B. 3.0.8-1 +- Update to 3.0.8 + +* Wed Jul 30 2014 Daniel B. 3.0.6-1 +- Update to 3.0.6 + +* Fri Oct 11 2013 Daniel B. 3.0.5-1 +- upgrade to 3.0.5 + +* Tue Dec 7 2010 Pierre B. 2.10.12-0 +- initial release