initial commit of file from CVS for smeserver-yum on Thu 26 Oct 11:26:23 BST 2023
parent
b6e325dc61
commit
2302f71017
@ -0,0 +1,4 @@
|
||||
*.rpm
|
||||
*.log
|
||||
*spec-20*
|
||||
*.tar.xz
|
@ -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)
|
@ -0,0 +1 @@
|
||||
sme10
|
@ -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");
|
@ -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
|
@ -0,0 +1 @@
|
||||
0
|
@ -0,0 +1 @@
|
||||
disabled
|
@ -0,0 +1 @@
|
||||
120
|
@ -0,0 +1 @@
|
||||
daily
|
@ -0,0 +1 @@
|
||||
enabled
|
@ -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,0 +1 @@
|
||||
no
|
@ -0,0 +1 @@
|
||||
yes
|
@ -0,0 +1 @@
|
||||
http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
|
@ -0,0 +1 @@
|
||||
CentOS - os
|
@ -0,0 +1 @@
|
||||
yes
|
@ -0,0 +1 @@
|
||||
enabled
|
@ -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
|
@ -0,0 +1 @@
|
||||
SME Server - os
|
@ -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/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