From: Enrico Scholz Date: Fri, 28 Oct 2005 17:53:49 +0000 (+0000) Subject: added centos42 support X-Git-Tag: version_0_30_210~85 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fae91767be436b777b1408bed79f35909a60c45c;p=util-vserver.git added centos42 support git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2196 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/util-vserver/distrib/Makefile.am b/util-vserver/distrib/Makefile.am index 4ea5786..8ba6400 100644 --- a/util-vserver/distrib/Makefile.am +++ b/util-vserver/distrib/Makefile.am @@ -45,6 +45,8 @@ nobase_distrib_DATA = defaults/devs \ fc4/apt/rpmpriorities fc4/pkgs/01 fc4/pkgs/02 fc4/pkgs/03 \ fc4/yum/yum.conf $(wildcard fc4/yum.repos.d/fedora*.repo) \ $(wildcard fc4/rpmlist.d/*.lst) $(wildcard fc4/rpmlist.d/*.opt) \ + centos42/pkgs/01 centos42/pkgs/02 centos42/pkgs/03 \ + centos42/yum/yum.conf $(wildcard centos42/yum.repos.d/CentOS*.repo) \ suse91/apt/rpmpriorities suse91/pkgs/01 suse91/pkgs/02 \ suse91/rpm/macros @@ -63,7 +65,7 @@ EXTRA_DIST = $(nobase_distrib_DATA) \ $(nobase_confdistrib_DATA) \ $(defaults_DATA) -redhat_style = rh9 fc1 fc2 fc3 fc4 +redhat_style = rh9 fc1 fc2 fc3 fc4 centos42 install-exec-hook: install-notify-xtra install-data-hook: install-data-xtras diff --git a/util-vserver/distrib/centos42/pkgs/01 b/util-vserver/distrib/centos42/pkgs/01 new file mode 100644 index 0000000..1a5ef72 --- /dev/null +++ b/util-vserver/distrib/centos42/pkgs/01 @@ -0,0 +1 @@ +glibc diff --git a/util-vserver/distrib/centos42/pkgs/02 b/util-vserver/distrib/centos42/pkgs/02 new file mode 100644 index 0000000..9ec5d2b --- /dev/null +++ b/util-vserver/distrib/centos42/pkgs/02 @@ -0,0 +1,3 @@ +--reinstall + +filesystem diff --git a/util-vserver/distrib/centos42/pkgs/03 b/util-vserver/distrib/centos42/pkgs/03 new file mode 100644 index 0000000..64ab4a7 --- /dev/null +++ b/util-vserver/distrib/centos42/pkgs/03 @@ -0,0 +1,2 @@ +coreutils +setup diff --git a/util-vserver/distrib/centos42/yum.repos.d/CentOS-Base.repo b/util-vserver/distrib/centos42/yum.repos.d/CentOS-Base.repo new file mode 100644 index 0000000..39b5e2b --- /dev/null +++ b/util-vserver/distrib/centos42/yum.repos.d/CentOS-Base.repo @@ -0,0 +1,50 @@ +[base] +name=CentOS-4.2 - Base +baseurl=http://mirror.centos.org/centos/4.2/os/$basearch/ +gpgcheck=1 +gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4 + +#released updates +[update] +name=CentOS-4.2 - Updates +baseurl=http://mirror.centos.org/centos/4.2/updates/$basearch/ +gpgcheck=1 +gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4 + +#packages used/produced in the build but not released +[addons] +name=CentOS-4.2 - Addons +baseurl=http://mirror.centos.org/centos/4.2/addons/$basearch/ +gpgcheck=1 +gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4 + +#additional packages that may be useful +[extras] +name=CentOS-4.2 - Extras +baseurl=http://mirror.centos.org/centos/4.2/extras/$basearch/ +gpgcheck=1 +gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4 + +#additional packages that extend functionality of existing packages +[centosplus] +name=CentOS-4.2 - Plus +baseurl=http://mirror.centos.org/centos/4.2/centosplus/$basearch/ +gpgcheck=1 +enabled=0 +gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4 + +#contrib - packages by Centos Users +[contrib] +name=CentOS-4.2 - Contrib +baseurl=http://mirror.centos.org/centos/4.2/contrib/$basearch/ +gpgcheck=1 +enabled=0 +gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4 + +#packages in testing +[testing] +name=CentOS-4.2 - Testing +baseurl=http://mirror.centos.org/centos/4.2/testing/$basearch/ +gpgcheck=1 +enabled=0 +gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4 diff --git a/util-vserver/distrib/centos42/yum/yum.conf b/util-vserver/distrib/centos42/yum/yum.conf new file mode 100644 index 0000000..1b1e98c --- /dev/null +++ b/util-vserver/distrib/centos42/yum/yum.conf @@ -0,0 +1,9 @@ +[main] +cachedir=@YUMCACHEDIR@ +reposdir=@YUMETCDIR@/yum.repos.d +debuglevel=1 +logfile=@YUMLOGDIR@/log +lockfile=@YUMLOCKDIR@/yum.pid +pkgpolicy=newest +distroverpkg=fedora-release +installonlypkgs= diff --git a/util-vserver/util-vserver.spec.in b/util-vserver/util-vserver.spec.in index 0aa4f25..a74c070 100644 --- a/util-vserver/util-vserver.spec.in +++ b/util-vserver/util-vserver.spec.in @@ -238,9 +238,12 @@ function copy() cp -a "$i" "$target" done } + copy fedora /usr/share/doc/fedora-release-*/RPM-GPG-* copy fedora /etc/pki/rpm-gpg/RPM-GPG-* +copy centos /usr/share/doc/centos-*/RPM-GPG-KEY-* + %preun build test "$1" != 0 || rm -f %confdir/.distributions/.common/pubkeys/fedora-*