initial commit of file from CVS for smeserver-yum on Thu 26 Oct 11:26:23 BST 2023

This commit is contained in:
Brian Read 2023-10-26 11:26:23 +01:00
parent b6e325dc61
commit 2302f71017
189 changed files with 4126 additions and 2 deletions

4
.gitignore vendored Normal file
View File

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

21
Makefile Normal file
View File

@ -0,0 +1,21 @@
# Makefile for source rpm: smeserver-yum
# $Id: Makefile,v 1.1 2016/02/05 23:20:26 stephdl Exp $
NAME := smeserver-yum
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,17 @@
# smeserver-yum # <img src="https://www.koozali.org/images/koozali/Logo/Png/Koozali_logo_2016.png" width="25%" vertical="auto" style="vertical-align:bottom"> smeserver-yum
SMEServer Koozali developed git repo for smeserver-yum smeserver SMEServer Koozali developed git repo for smeserver-yum smeserver
## Wiki
<br />https://wiki.koozali.org/
## Bugzilla
Show list of outstanding bugs: [here](https://bugs.koozali.org/buglist.cgi?component=smeserver-yum&product=SME%20Server%2010.X&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 />
Yum is a software package manager for Linux that makes it easy to install, update, and remove software packages on Linux systems. Yum can automatically download and install software packages from online repositories, as well as update existing packages. It also has the ability to verify package integrity, so that users can be sure that the software is legitimate and up-to-date. Yum is a great tool for managing software packages, and its one of the main reasons why many Linux distributions are so popular.

1
contriborbase Normal file
View File

@ -0,0 +1 @@
sme10

37
createlinks Executable file
View File

@ -0,0 +1,37 @@
#!/usr/bin/perl -w
use esmith::Build::CreateLinks qw(:all);
use File::Basename;
use File::Path;
foreach my $file (qw(/etc/yum.conf /etc/yum/protected.d/smeserver.conf
/etc/yum.smerepos.d/sme-base.repo /etc/yum/yum-cron.conf))
{
templates2events($file, qw(yum-modify bootstrap-console-save smeserver-yum-update));
}
templates2events("/etc/crontab", "yum-modify");
for ( qw(install remove update) )
{
event_link("yum-action", "yum-$_", "20");
}
safe_symlink("restart", "root/etc/e-smith/events/yum-modify/services2adjust/yum");
for ( qw(bootstrap-console-save yum-update smeserver-yum-update) )
{
event_link("yum-import-keys", $_, "10");
}
my $event= "smeserver-yum-update";
# systemd-specific action mandatory for this package-update event
event_link("systemd-reload", $event, "89");
event_link("systemd-default", $event, "88");
templates2events("/etc/rsyslog.conf",$event);
safe_symlink("restart", "root/etc/e-smith/events/$event/services2adjust/rsyslog");
#--------------------------------------------------
# functions for manager panel
#--------------------------------------------------
panel_link("yum", "manager");

View File

@ -0,0 +1,27 @@
#!/bin/sh
#----------------------------------------------------------------------
# smeserver-yum daily tasks
# Copyright (C) 2005 Gordon Rowell <gordonr@gormand.com.au>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License or more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#----------------------------------------------------------------------
yum_status=$(/sbin/e-smith/db configuration getprop yum status)
yum_status=${yum_status:-disabled}
[ $yum_status = 'enabled' ] || exit 0
/usr/bin/systemctl restart yum.service

View File

@ -0,0 +1 @@
disabled

View File

@ -0,0 +1 @@
enabled

View File

@ -0,0 +1 @@
disabled

View File

@ -0,0 +1 @@
no

View File

@ -0,0 +1 @@
0

View File

@ -0,0 +1 @@
disabled

View File

@ -0,0 +1 @@
120

View File

@ -0,0 +1 @@
daily

View File

@ -0,0 +1 @@
enabled

View File

@ -0,0 +1 @@
service

View File

@ -0,0 +1,11 @@
{
#Added for bug 8855 and bug 8858
#we want to remove the property check4contribsupdates
my $check4contribsupdates = $DB->get_prop('yum','check4contribsupdates');
if ($check4contribsupdates) {
$DB->get('yum')->delete_prop('check4contribsupdates');
}
}

View File

@ -0,0 +1,9 @@
{
use POSIX qw(strftime);
my $curdate = strftime '%Y%m%d', localtime;
my $curVers = 7;
my $curVersEOL = 20240630;
# we remove the forced value if for a previous release;
# also if not after the eol date
my $dropit = $DB->get_prop_and_delete('yum','eolversion') if ( (substr($yum{eolversion},0,1)<$curVers) || ( "$curdate" < "$curVersEOL") );
}

View File

View File

View File

@ -0,0 +1 @@
no

View File

@ -0,0 +1 @@
yes

View File

@ -0,0 +1 @@
http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os

View File

@ -0,0 +1 @@
CentOS - os

View File

@ -0,0 +1 @@
yes

View File

@ -0,0 +1 @@
enabled

View File

@ -0,0 +1 @@
repository

View File

@ -0,0 +1 @@
yes

View File

@ -0,0 +1 @@
http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus

View File

@ -0,0 +1 @@
CentOS - centosplus

View File

@ -0,0 +1 @@
no

View File

@ -0,0 +1 @@
disabled

View File

@ -0,0 +1 @@
repository

View File

@ -0,0 +1 @@
yes

View File

@ -0,0 +1 @@
http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras

View File

@ -0,0 +1 @@
CentOS - extras

View File

@ -0,0 +1 @@
no

View File

@ -0,0 +1 @@
disabled

View File

@ -0,0 +1 @@
repository

View File

@ -0,0 +1 @@
yes

View File

@ -0,0 +1 @@
http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=fasttrack

View File

@ -0,0 +1 @@
CentOS - fasttrack

View File

@ -0,0 +1 @@
no

View File

@ -0,0 +1 @@
disabled

View File

@ -0,0 +1 @@
repository

View File

@ -0,0 +1 @@
http://rpms.famillecollet.com/enterprise/$releasever/safe/$basearch/

View File

@ -0,0 +1 @@
yes

View File

@ -0,0 +1 @@
http://rpms.famillecollet.com/RPM-GPG-KEY-remi

View File

@ -0,0 +1 @@
Remi - safe

View File

@ -0,0 +1 @@
yes

View File

@ -0,0 +1 @@
enabled

View File

@ -0,0 +1 @@
repository

View File

@ -0,0 +1 @@
yes

View File

@ -0,0 +1 @@
https://mirrorlist.koozali.org/mirrorlist/smeaddons-10

View File

@ -0,0 +1 @@
SME Server - addons

View File

@ -0,0 +1 @@
yes

View File

@ -0,0 +1 @@
enabled

View File

@ -0,0 +1 @@
repository

View File

@ -0,0 +1 @@
yes

View File

@ -0,0 +1 @@
https://mirrorlist.koozali.org/mirrorlist/smecontribs-10

View File

@ -0,0 +1 @@
SME Server - contribs

View File

@ -0,0 +1 @@
yes

View File

@ -0,0 +1 @@
enabled

View File

@ -0,0 +1 @@
repository

View File

@ -0,0 +1 @@
yes

View File

@ -0,0 +1 @@
yes

View File

@ -0,0 +1 @@
https://mirrorlist.koozali.org/mirrorlist/smedev-10

View File

@ -0,0 +1 @@
SME Server - dev

View File

@ -0,0 +1 @@
no

View File

@ -0,0 +1 @@
disabled

View File

@ -0,0 +1 @@
repository

View File

@ -0,0 +1 @@
yes

View File

@ -0,0 +1 @@
https://mirrorlist.koozali.org/mirrorlist/smeextras-10

View File

@ -0,0 +1 @@
SME Server - extras

View File

@ -0,0 +1 @@
yes

View File

@ -0,0 +1 @@
enabled

View File

@ -0,0 +1 @@
repository

View File

@ -0,0 +1 @@
yes

View File

@ -0,0 +1 @@
yes

View File

@ -0,0 +1 @@
https://mirrorlist.koozali.org/mirrorlist/smeos-10

View File

@ -0,0 +1 @@
SME Server - os

View File

@ -0,0 +1 @@
yes

View File

@ -0,0 +1 @@
enabled

View File

@ -0,0 +1 @@
repository

View File

@ -0,0 +1 @@
yes

View File

@ -0,0 +1 @@
yes

View File

@ -0,0 +1 @@
https://mirrorlist.koozali.org/mirrorlist/smetest-10

View File

@ -0,0 +1 @@
SME Server - test

View File

@ -0,0 +1 @@
no

View File

@ -0,0 +1 @@
disabled

View File

@ -0,0 +1 @@
repository

Some files were not shown because too many files have changed in this diff Show More