halfway there. now i just need to build the package lists.

This commit is contained in:
2015-07-14 01:29:27 -04:00
parent 52cb0ea321
commit 0153d38a33
28 changed files with 145 additions and 106 deletions

View File

@@ -0,0 +1,7 @@
NAME='Antergos'
SUPPORTED='yes'
CHECK_METHOD='egrep "^NAME=\"Antergos Linux\"" /etc/os-release'
PKG_MGR='pacman --noconfirm -S ${pkgname}'
PRE_RUN='pacman -Syyy'
PKG_CHK='pacman -Q ${pkgname}'
URL='http://antergos.com/'

View File

View File

@@ -1,6 +1,7 @@
NAME='Arch'
SUPPORTED='yes'
CHECK_METHOD='egrep "^NAME=\"Arch Linux\"" /etc/os-release'
PKG_MGR='pacman -S'
PKG_MGR='pacman --noconfirm -S ${pkgname}'
PRE_RUN='pacman -Syyy'
PKG_CHK='pacman -Q'
PKG_CHK='pacman -Q ${pkgname}'
URL='https://www.archlinux.org/'

View File

@@ -1,6 +1,7 @@
NAME='CentOS'
SUPPORTED='yes'
CHECK_METHOD='egrep '^CentOS' /etc/redhat-release'
PKG_MGR='yum -y install'
CHECK_METHOD='egrep "^CentOS" /etc/redhat-release'
PKG_MGR='yum -y install ${pkgname}'
PRE_RUN='none'
PKG_CHK='rpm -q'
PKG_CHK='rpm -q ${pkgname} | egrep "^${pkgname}-[0-9]"'
URL='http://centos.org/'

View File

@@ -1,6 +1,8 @@
NAME='Debian'
SUPPORTED='yes'
CHECK_METHOD='cat /etc/debian_version'
PKG_MGR='apt-get -y install'
CHECK_METHOD='egrep "^[0-9.]*$" /etc/debian_version'
CHECK_METHOD='egrep "^NAME=\"Debian\ GNU/Linux\"" /etc/os-release'
PKG_MGR='apt-get -y install ${pkgname}'
PRE_RUN='apt-get update'
PKG_CHK='dpkg-query -l'
PKG_CHK='dpkg-query -l ${pkgname}'
URL='http://www.debian.org/'

View File

@@ -1,6 +1,7 @@
NAME='Fedora'
SUPPORTED='yes'
CHECK_METHOD='egrep '^Fedora' /etc/redhat-release'
PKG_MGR='yum -y install'
PKG_MGR='yum -y install ${pkgname}'
PRE_RUN='none'
PKG_CHK='rpm -q'
PKG_CHK='rpm -q ${pkgname} | egrep "^${pkgname}-[0-9]"'
URL='https://getfedora.org/'

View File

@@ -1,6 +1,7 @@
NAME=
SUPPORTED=
CHECK_METHOD=
PKG_MGR=
PRE_RUN=
PKG_CHK=
NAME='Gentoo'
SUPPORTED='yes'
CHECK_METHOD='egrep "^Gentoo\ Base\ System" /etc/gentoo-release'
PKG_MGR='emerge -qD ${pkgname}'
PRE_RUN='emerge -q --sync'
PKG_CHK='emerge -qp @installed 2>/dev/null | egrep -E "/${pkgname}-[0-9.]+"'
URL='https://www.gentoo.org/'

View File

@@ -14,5 +14,6 @@ PKG_MGR=<a command used to prefix installation of packages e.g. for RHEL, "yum -
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">
URL=<the URL for the distro. optional, as it isn't really used as any active part of the scripts- at least not presently.>
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.

View File

@@ -1,6 +1,7 @@
NAME=
SUPPORTED=
CHECK_METHOD=
PKG_MGR=
PRE_RUN=
PKG_CHK=
NAME='Mageia'
SUPPORTED='yes'
CHECK_METHOD='egrep "^Mageia\ release\ " /etc/mageia-release'
PKG_MGR='urpmi ${pkgname}'
PRE_RUN='urpmi.update -a'
PKG_CHK='rpm -q ${pkgname} | egrep "^${pkgname}-[0-9]"'
URL='https://www.mageia.org/'

View File

@@ -1,6 +1,7 @@
NAME=
SUPPORTED=
CHECK_METHOD=
PKG_MGR=
PRE_RUN=
PKG_CHK=
NAME='Manjaro'
SUPPORTED='yes'
CHECK_METHOD='egrep "^NAME=\"Manjaro Linux\"" /etc/os-release'
PKG_MGR='pacman --noconfirm -S ${pkgname}'
PRE_RUN='pacman -Syyyu'
PKG_CHK='pacman -Q ${pkgname}'
URL='https://manjaro.org/'

View File

@@ -1,6 +1,7 @@
NAME=
SUPPORTED=
CHECK_METHOD=
PKG_MGR=
PRE_RUN=
PKG_CHK=
NAME='Mint'
SUPPORTED='yes'
CHECK_METHOD='egrep "^DESCRIPTION=\"Linux\ Mint\"" /etc/linuxmint/info'
PKG_MGR='apt-get -y install ${pkgname}'
PRE_RUN='apt-get -y update'
PKG_CHK='dpkg-query -l ${pkgname}'
URL='http://www.linuxmint.com/'

View File

@@ -1,6 +1,8 @@
NAME=
SUPPORTED=
CHECK_METHOD=
PKG_MGR=
PRE_RUN=
PKG_CHK=
NAME=RHEL
SUPPORTED=yes
# Red Hat Enterprise Linux Server release 6.5 (Santiago)
CHECK_METHOD='egrep "^Red\ Hat\ Enterprise\ Linux" /etc/redhat-release'
PKG_MGR='yum -y install'
PRE_RUN='none'
PKG_CHK='rpm -q ${pkgname} | egrep "^${pkgname}-[0-9]"'
URL='http://www.redhat.com/en/technologies/linux-platforms/enterprise-linux'

View File

@@ -1,6 +1,8 @@
NAME=
NAME='SUSE'
SUPPORTED=
CHECK_METHOD=
PKG_MGR=
PRE_RUN=
PKG_CHK=
# Both SLED and SLES. We can probably safely combine them.
CHECK_METHOD='egrep "^NAME=\"SLE(D|S)\"" /etc/os-release'
PKG_MGR='zypper install -l ${pkgname}'
PRE_RUN='none'
PKG_CHK='rpm -q ${pkgname} | egrep "^${pkgname}-[0-9]"'
URL='https://www.suse.com/'

View File

@@ -1,6 +1,7 @@
NAME=
SUPPORTED=
CHECK_METHOD=
PKG_MGR=
PRE_RUN=
PKG_CHK=
NAME='Ubuntu'
SUPPORTED='yes'
CHECK_METHOD='egrep "^DISTRIB_ID=Ubuntu$" /etc/lsb-release'
PKG_MGR='apt-get -y install ${pkgname}'
PRE_RUN='apt-get -y update'
PKG_CHK='dpkg-query -l ${pkgname} | egrep "^ii[[:space:]]*${pkgname}"'
URL='http://www.ubuntu.com/'

View File

@@ -1,6 +1,7 @@
NAME=
SUPPORTED=
CHECK_METHOD=
PKG_MGR=
PRE_RUN=
PKG_CHK=
NAME='openSUSE'
SUPPORTED='yes'
CHECK_METHOD=''
PKG_MGR=''
PRE_RUN=''
PKG_CHK=''
URL='https://www.opensuse.org/'