initial commit of file from CVS for smeserver-yum on Thu 26 Oct 11:26:23 BST 2023
This commit is contained in:
parent
b6e325dc61
commit
2302f71017
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
*.rpm
|
||||
*.log
|
||||
*spec-20*
|
||||
*.tar.xz
|
21
Makefile
Normal file
21
Makefile
Normal 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)
|
16
README.md
16
README.md
@ -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
|
||||
|
||||
## 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 it’s one of the main reasons why many Linux distributions are so popular.
|
||||
|
1
contriborbase
Normal file
1
contriborbase
Normal file
@ -0,0 +1 @@
|
||||
sme10
|
37
createlinks
Executable file
37
createlinks
Executable 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");
|
27
root/etc/cron.daily/smeserver-yum
Normal file
27
root/etc/cron.daily/smeserver-yum
Normal 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
|
||||
|
@ -0,0 +1 @@
|
||||
disabled
|
@ -0,0 +1 @@
|
||||
enabled
|
@ -0,0 +1 @@
|
||||
disabled
|
@ -0,0 +1 @@
|
||||
no
|
1
root/etc/e-smith/db/configuration/defaults/yum/GPGCheck
Normal file
1
root/etc/e-smith/db/configuration/defaults/yum/GPGCheck
Normal file
@ -0,0 +1 @@
|
||||
0
|
@ -0,0 +1 @@
|
||||
disabled
|
@ -0,0 +1 @@
|
||||
120
|
@ -0,0 +1 @@
|
||||
daily
|
1
root/etc/e-smith/db/configuration/defaults/yum/status
Normal file
1
root/etc/e-smith/db/configuration/defaults/yum/status
Normal file
@ -0,0 +1 @@
|
||||
enabled
|
1
root/etc/e-smith/db/configuration/defaults/yum/type
Normal file
1
root/etc/e-smith/db/configuration/defaults/yum/type
Normal file
@ -0,0 +1 @@
|
||||
service
|
@ -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');
|
||||
}
|
||||
}
|
@ -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") );
|
||||
}
|
0
root/etc/e-smith/db/yum_available/.gitignore
vendored
Normal file
0
root/etc/e-smith/db/yum_available/.gitignore
vendored
Normal file
0
root/etc/e-smith/db/yum_installed/.gitignore
vendored
Normal file
0
root/etc/e-smith/db/yum_installed/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
no
|
@ -0,0 +1 @@
|
||||
yes
|
@ -0,0 +1 @@
|
||||
http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
|
1
root/etc/e-smith/db/yum_repositories/defaults/base/Name
Normal file
1
root/etc/e-smith/db/yum_repositories/defaults/base/Name
Normal file
@ -0,0 +1 @@
|
||||
CentOS - os
|
@ -0,0 +1 @@
|
||||
yes
|
@ -0,0 +1 @@
|
||||
enabled
|
1
root/etc/e-smith/db/yum_repositories/defaults/base/type
Normal file
1
root/etc/e-smith/db/yum_repositories/defaults/base/type
Normal file
@ -0,0 +1 @@
|
||||
repository
|
@ -0,0 +1 @@
|
||||
no
|
@ -0,0 +1 @@
|
||||
yes
|
@ -0,0 +1 @@
|
||||
http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
|
@ -0,0 +1 @@
|
||||
CentOS - centosplus
|
@ -0,0 +1 @@
|
||||
no
|
@ -0,0 +1 @@
|
||||
disabled
|
@ -0,0 +1 @@
|
||||
repository
|
@ -0,0 +1 @@
|
||||
no
|
@ -0,0 +1 @@
|
||||
yes
|
@ -0,0 +1 @@
|
||||
http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
|
@ -0,0 +1 @@
|
||||
CentOS - extras
|
@ -0,0 +1 @@
|
||||
no
|
@ -0,0 +1 @@
|
||||
disabled
|
@ -0,0 +1 @@
|
||||
repository
|
@ -0,0 +1 @@
|
||||
no
|
@ -0,0 +1 @@
|
||||
yes
|
@ -0,0 +1 @@
|
||||
http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=fasttrack
|
@ -0,0 +1 @@
|
||||
CentOS - fasttrack
|
@ -0,0 +1 @@
|
||||
no
|
@ -0,0 +1 @@
|
||||
disabled
|
@ -0,0 +1 @@
|
||||
repository
|
@ -0,0 +1 @@
|
||||
http://rpms.famillecollet.com/enterprise/$releasever/safe/$basearch/
|
@ -0,0 +1 @@
|
||||
no
|
@ -0,0 +1 @@
|
||||
yes
|
@ -0,0 +1 @@
|
||||
http://rpms.famillecollet.com/RPM-GPG-KEY-remi
|
@ -0,0 +1 @@
|
||||
Remi - safe
|
@ -0,0 +1 @@
|
||||
yes
|
@ -0,0 +1 @@
|
||||
enabled
|
@ -0,0 +1 @@
|
||||
repository
|
@ -0,0 +1 @@
|
||||
yes
|
@ -0,0 +1 @@
|
||||
yes
|
@ -0,0 +1 @@
|
||||
https://mirrorlist.koozali.org/mirrorlist/smeaddons-10
|
@ -0,0 +1 @@
|
||||
SME Server - addons
|
@ -0,0 +1 @@
|
||||
yes
|
@ -0,0 +1 @@
|
||||
enabled
|
@ -0,0 +1 @@
|
||||
repository
|
@ -0,0 +1 @@
|
||||
yes
|
@ -0,0 +1 @@
|
||||
yes
|
@ -0,0 +1 @@
|
||||
https://mirrorlist.koozali.org/mirrorlist/smecontribs-10
|
@ -0,0 +1 @@
|
||||
SME Server - contribs
|
@ -0,0 +1 @@
|
||||
yes
|
@ -0,0 +1 @@
|
||||
enabled
|
@ -0,0 +1 @@
|
||||
repository
|
@ -0,0 +1 @@
|
||||
yes
|
@ -0,0 +1 @@
|
||||
yes
|
@ -0,0 +1 @@
|
||||
https://mirrorlist.koozali.org/mirrorlist/smedev-10
|
@ -0,0 +1 @@
|
||||
SME Server - dev
|
@ -0,0 +1 @@
|
||||
no
|
@ -0,0 +1 @@
|
||||
disabled
|
@ -0,0 +1 @@
|
||||
repository
|
@ -0,0 +1 @@
|
||||
yes
|
@ -0,0 +1 @@
|
||||
yes
|
@ -0,0 +1 @@
|
||||
https://mirrorlist.koozali.org/mirrorlist/smeextras-10
|
@ -0,0 +1 @@
|
||||
SME Server - extras
|
@ -0,0 +1 @@
|
||||
yes
|
@ -0,0 +1 @@
|
||||
enabled
|
@ -0,0 +1 @@
|
||||
repository
|
@ -0,0 +1 @@
|
||||
yes
|
@ -0,0 +1 @@
|
||||
yes
|
@ -0,0 +1 @@
|
||||
https://mirrorlist.koozali.org/mirrorlist/smeos-10
|
1
root/etc/e-smith/db/yum_repositories/defaults/smeos/Name
Normal file
1
root/etc/e-smith/db/yum_repositories/defaults/smeos/Name
Normal file
@ -0,0 +1 @@
|
||||
SME Server - os
|
@ -0,0 +1 @@
|
||||
yes
|
@ -0,0 +1 @@
|
||||
enabled
|
1
root/etc/e-smith/db/yum_repositories/defaults/smeos/type
Normal file
1
root/etc/e-smith/db/yum_repositories/defaults/smeos/type
Normal file
@ -0,0 +1 @@
|
||||
repository
|
@ -0,0 +1 @@
|
||||
yes
|
@ -0,0 +1 @@
|
||||
yes
|
@ -0,0 +1 @@
|
||||
https://mirrorlist.koozali.org/mirrorlist/smetest-10
|
@ -0,0 +1 @@
|
||||
SME Server - test
|
@ -0,0 +1 @@
|
||||
no
|
@ -0,0 +1 @@
|
||||
disabled
|
@ -0,0 +1 @@
|
||||
repository
|
@ -0,0 +1 @@
|
||||
yes
|
@ -0,0 +1 @@
|
||||
yes
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user