initial commit of file from CVS for smeserver-mod_python on Sat Sep 7 20:43:26 AEST 2024

This commit is contained in:
Trevor Batley 2024-09-07 20:43:26 +10:00
parent a143e3afa7
commit d43eb82491
7 changed files with 132 additions and 2 deletions

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
*.rpm
*.log
*spec-20*
*.tar.gz

21
Makefile Normal file
View File

@ -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)

View File

@ -1,3 +1,15 @@
# smeserver-mod_python
# <img src="https://www.koozali.org/images/koozali/Logo/Png/Koozali_logo_2016.png" width="25%" vertical="auto" style="vertical-align:bottom"> smeserver-mod_python
SMEServer Koozali developed git repo for smeserver-mod_python smecontribs
SMEServer Koozali developed git repo for smeserver-mod_python smecontribs
## Wiki
<br />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
<br />*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*
<br />

1
contriborbase Normal file
View File

@ -0,0 +1 @@
contribs10

7
createlinks Normal file
View File

@ -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);

View File

@ -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";
}

78
smeserver-mod_python.spec Normal file
View File

@ -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 <brianr@koozali.org> 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 <tests@pialasse.com> 0.3-5.sme
- add update event [SME: 11273]
* Sat Dec 19 2020 Brian Read <brianr@bjsystems.co.uk> 0.3-4.sme
- Initial import into SME10 tree [SME: 11273]
* Wed Sep 23 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 0.3-3.sme
- Initial release to contribs9
* Sat Jun 01 2013 JP Pialasse <tests@pialasse.com} 0.1-2.sme
- import to sme8
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com>
- Clean up spec so package can be built by koji/plague
* Mon Mar 26 2007 Marco Hess <marco.hess@through-ip.com>
- 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)