working on dat cross-distro support....

This commit is contained in:
2015-07-12 03:04:09 -04:00
parent 67aba34ed1
commit 52cb0ea321
30 changed files with 138 additions and 3 deletions

6
lib/prereqs/Arch/meta Normal file
View File

@@ -0,0 +1,6 @@
NAME='Arch'
SUPPORTED='yes'
CHECK_METHOD='egrep "^NAME=\"Arch Linux\"" /etc/os-release'
PKG_MGR='pacman -S'
PRE_RUN='pacman -Syyy'
PKG_CHK='pacman -Q'

0
lib/prereqs/Arch/pkgs Normal file
View File

6
lib/prereqs/CentOS/meta Normal file
View File

@@ -0,0 +1,6 @@
NAME='CentOS'
SUPPORTED='yes'
CHECK_METHOD='egrep '^CentOS' /etc/redhat-release'
PKG_MGR='yum -y install'
PRE_RUN='none'
PKG_CHK='rpm -q'

0
lib/prereqs/CentOS/pkgs Normal file
View File

6
lib/prereqs/Debian/meta Normal file
View File

@@ -0,0 +1,6 @@
NAME='Debian'
SUPPORTED='yes'
CHECK_METHOD='cat /etc/debian_version'
PKG_MGR='apt-get -y install'
PRE_RUN='apt-get update'
PKG_CHK='dpkg-query -l'

0
lib/prereqs/Debian/pkgs Normal file
View File

6
lib/prereqs/Fedora/meta Normal file
View File

@@ -0,0 +1,6 @@
NAME='Fedora'
SUPPORTED='yes'
CHECK_METHOD='egrep '^Fedora' /etc/redhat-release'
PKG_MGR='yum -y install'
PRE_RUN='none'
PKG_CHK='rpm -q'

0
lib/prereqs/Fedora/pkgs Normal file
View File

6
lib/prereqs/Gentoo/meta Normal file
View File

@@ -0,0 +1,6 @@
NAME=
SUPPORTED=
CHECK_METHOD=
PKG_MGR=
PRE_RUN=
PKG_CHK=

0
lib/prereqs/Gentoo/pkgs Normal file
View File

18
lib/prereqs/HUMAN Normal file
View File

@@ -0,0 +1,18 @@
This directory is used to enable cross-distro support. A list of packages is needed for the *host* to build the ISO. Adding distro support is easy; there simply needs to be the following added:
<basedir>/lib/prereqs/<Distro>/{meta,pkgs}
"pkgs" should contain a list of the specific package names needed to install for that specific distro (as this isn't always standardized).
"meta" is a file consisting of the following variables (enclosed in single or double quotes, please:
NAME=<Distro - this should match the name of the directory this file is in!>
SUPPORTED=<yes or no- yes by default>
CHECK_METHOD=<a command that will be run that should return '0' (success) on *only* this specific distro
(or fully compatible derivatives, i.e. CentOS/RHEL)>
PKG_MGR=<a command used to prefix installation of packages e.g. for RHEL, "yum -y install">
PRE_RUN=<a command to be run before PKG_MGR (e.g. on Ubuntu, "apt-get update"). commonly used to update package caches/metadata.
if your distro does not require this, set PRE_RUN=none >
PKG_CHK=<a command that will be run that should return '0' (success) *only* if any given package in the pkgs file is installed. e.g. for RHEL, "rpm -q">
Oh- and your distro *must be able to install the package*. That means if you need to enable/add additional repositories, be sure to do so ahead of time.

6
lib/prereqs/Mageia/meta Normal file
View File

@@ -0,0 +1,6 @@
NAME=
SUPPORTED=
CHECK_METHOD=
PKG_MGR=
PRE_RUN=
PKG_CHK=

0
lib/prereqs/Mageia/pkgs Normal file
View File

6
lib/prereqs/Manjaro/meta Normal file
View File

@@ -0,0 +1,6 @@
NAME=
SUPPORTED=
CHECK_METHOD=
PKG_MGR=
PRE_RUN=
PKG_CHK=

0
lib/prereqs/Manjaro/pkgs Normal file
View File

6
lib/prereqs/Mint/meta Normal file
View File

@@ -0,0 +1,6 @@
NAME=
SUPPORTED=
CHECK_METHOD=
PKG_MGR=
PRE_RUN=
PKG_CHK=

0
lib/prereqs/Mint/pkgs Normal file
View File

6
lib/prereqs/RHEL/meta Normal file
View File

@@ -0,0 +1,6 @@
NAME=
SUPPORTED=
CHECK_METHOD=
PKG_MGR=
PRE_RUN=
PKG_CHK=

0
lib/prereqs/RHEL/pkgs Normal file
View File

6
lib/prereqs/SUSE/meta Normal file
View File

@@ -0,0 +1,6 @@
NAME=
SUPPORTED=
CHECK_METHOD=
PKG_MGR=
PRE_RUN=
PKG_CHK=

0
lib/prereqs/SUSE/pkgs Normal file
View File

6
lib/prereqs/Ubuntu/meta Normal file
View File

@@ -0,0 +1,6 @@
NAME=
SUPPORTED=
CHECK_METHOD=
PKG_MGR=
PRE_RUN=
PKG_CHK=

0
lib/prereqs/Ubuntu/pkgs Normal file
View File

View File

@@ -0,0 +1,6 @@
NAME=
SUPPORTED=
CHECK_METHOD=
PKG_MGR=
PRE_RUN=
PKG_CHK=

View File