From d43eb824919ea5cf27a2b0f6b928a99a49cc98ab Mon Sep 17 00:00:00 2001 From: Trevor Batley Date: Sat, 7 Sep 2024 20:43:26 +1000 Subject: [PATCH] initial commit of file from CVS for smeserver-mod_python on Sat Sep 7 20:43:26 AEST 2024 --- .gitignore | 4 + Makefile | 21 +++++ README.md | 16 +++- contriborbase | 1 + createlinks | 7 ++ .../conf/httpd.conf/20LoadModule80mod_python | 7 ++ smeserver-mod_python.spec | 78 +++++++++++++++++++ 7 files changed, 132 insertions(+), 2 deletions(-) create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 contriborbase create mode 100644 createlinks create mode 100644 root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/20LoadModule80mod_python create mode 100644 smeserver-mod_python.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cbb3a13 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.rpm +*.log +*spec-20* +*.tar.gz diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..49a61dc --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +# Makefile for source rpm: smeserver-mod_python +# $Id: Makefile,v 1.1 2020/12/19 20:52:51 brianr Exp $ +NAME := smeserver-mod_python +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 0a57233..b032798 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,15 @@ -# smeserver-mod_python +# smeserver-mod_python -SMEServer Koozali developed git repo for smeserver-mod_python smecontribs \ No newline at end of file +SMEServer Koozali developed git repo for smeserver-mod_python smecontribs + +## Wiki +
https://wiki.koozali.org/ + +## Bugzilla +Show list of outstanding bugs: [here](https://bugs.koozali.org/buglist.cgi?component=smeserver-mod_python&product=SME%20Contribs&query_format=advanced&limit=0&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&bug_status=CONFIRMED) + +## 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/createlinks b/createlinks new file mode 100644 index 0000000..baea167 --- /dev/null +++ b/createlinks @@ -0,0 +1,7 @@ +#!/usr/bin/perl -w + +use esmith::Build::CreateLinks qw(:all); +my $event ="smeserver-mod_python-update"; +safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/httpd-e-smith"); +templates2events("/etc/httpd-e-smith/conf/httpd.conf", $event); + diff --git a/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/20LoadModule80mod_python b/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/20LoadModule80mod_python new file mode 100644 index 0000000..10d3290 --- /dev/null +++ b/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/20LoadModule80mod_python @@ -0,0 +1,7 @@ +{ + my $status = $modPython{status}; + + return "# modPython disabled" unless ($status and $status eq "enabled"); + + return "LoadModule python_module modules/mod_python.so"; +} diff --git a/smeserver-mod_python.spec b/smeserver-mod_python.spec new file mode 100644 index 0000000..1a4c026 --- /dev/null +++ b/smeserver-mod_python.spec @@ -0,0 +1,78 @@ +# $Id: smeserver-mod_python.spec,v 1.4 2021/04/02 21:57:58 jpp Exp $ +# Authority: marcohess +# Name: Marco Hess + +%define name smeserver-mod_python +%define version 0.3 +%define release 6 + +Summary: SME Server mod_python implementation +Name: %{name} +Version: %{version} +Release: %{release}%{?dist} +License: GPL +Group: Applications/Internet +Source: %{name}-%{version}.tar.xz + +BuildArch: noarch +BuildRequires: e-smith-devtools +Requires: smeserver-release >= 9 +Requires: httpd >= 2 +Requires: mod_python +BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot + +%description +Implementation of mod_python for SME Server 9. + +%changelog +* Sat Sep 07 2024 cvs2git.sh aka Brian Read 0.3-6.sme +- Roll up patches and move to git repo [SME: 12338] + +* Sat Sep 07 2024 BogusDateBot +- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday, + by assuming the date is correct and changing the weekday. + +* Fri Apr 02 2021 Jean-Philippe Pialasse 0.3-5.sme +- add update event [SME: 11273] + +* Sat Dec 19 2020 Brian Read 0.3-4.sme +- Initial import into SME10 tree [SME: 11273] + +* Wed Sep 23 2015 stephane de Labrusse 0.3-3.sme +- Initial release to contribs9 + +* Sat Jun 01 2013 JP Pialasse +- Clean up spec so package can be built by koji/plague + +* Mon Mar 26 2007 Marco Hess +- 0.1-0 +- Original version adopted from smeserver-mod_dav + +%prep +%setup + +%build +perl createlinks +DEFAULTS=root/etc/e-smith/db/configuration/defaults/modPython +mkdir -p $DEFAULTS +echo "service" > $DEFAULTS/type +echo "enabled" > $DEFAULTS/status + +%install +rm -rf $RPM_BUILD_ROOT +(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) +rm -f %{name}-%{version}-filelist +/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist + +%clean +rm -rf $RPM_BUILD_ROOT + +%post + +%postun + +%files -f %{name}-%{version}-filelist +%defattr(-,root,root)