diff options
| author | Mark Weiman <mark.weiman@markzz.com> | 2016-01-07 00:56:39 -0500 |
|---|---|---|
| committer | Mark Weiman <mark.weiman@markzz.com> | 2016-01-07 00:56:39 -0500 |
| commit | c8a92464c6eabba32e21e5f0280c30c1c0c5500e (patch) | |
| tree | 71515223acd309b8d65ebb6834f3696b1ff7c558 /yum | |
| parent | 5c3b7276abf0d01b53662f38db5b4d52377343ed (diff) | |
| download | markzz-c8a92464c6eabba32e21e5f0280c30c1c0c5500e.tar.gz markzz-c8a92464c6eabba32e21e5f0280c30c1c0c5500e.zip | |
added rpm/yum tools
Diffstat (limited to 'yum')
| -rw-r--r-- | yum/.AURINFO | 26 | ||||
| -rw-r--r-- | yum/.SRCINFO | 26 | ||||
| -rw-r--r-- | yum/.gitignore | 3 | ||||
| -rw-r--r-- | yum/PKGBUILD | 53 | ||||
| -rw-r--r-- | yum/remove-init-dir-makefile.patch | 12 |
5 files changed, 120 insertions, 0 deletions
diff --git a/yum/.AURINFO b/yum/.AURINFO new file mode 100644 index 0000000..b579c16 --- /dev/null +++ b/yum/.AURINFO @@ -0,0 +1,26 @@ +pkgbase = yum + pkgdesc = a popular channel based package manager for RPM distros. + pkgver = 3.4.3 + pkgrel = 5 + url = http://yum.baseurl.org/ + arch = i686 + arch = x86_64 + groups = system + license = GPL + depends = python2 + depends = intltool + depends = urlgrabber + depends = rpm-org + depends = python2-pysqlite + depends = yum-metadata-parser + depends = python2-iniparse + depends = python2-pyliblzma + source = http://yum.baseurl.org/download/3.4/yum-3.4.3.tar.gz + source = http://pkgs.fedoraproject.org/cgit/yum.git/plain/yum-HEAD.patch?h=f21 + source = yum0.patch + md5sums = 7c8ea8beba5b4e7fe0c215e4ebaa26ed + md5sums = 057b511555104257c4422c54fb4ed089 + md5sums = 5c7dbcac530ec6efdf1979a256289c7d + +pkgname = yum + diff --git a/yum/.SRCINFO b/yum/.SRCINFO new file mode 100644 index 0000000..d5046d7 --- /dev/null +++ b/yum/.SRCINFO @@ -0,0 +1,26 @@ +pkgbase = yum + pkgdesc = a popular channel based package manager for RPM distros. + pkgver = 3.4.3 + pkgrel = 6 + url = http://yum.baseurl.org/ + arch = i686 + arch = x86_64 + groups = system + license = GPL + depends = python2 + depends = intltool + depends = urlgrabber + depends = rpm-org + depends = python2-pysqlite + depends = yum-metadata-parser + depends = python2-iniparse + depends = python2-pyliblzma + source = http://yum.baseurl.org/download/3.4/yum-3.4.3.tar.gz + source = yum.patch::http://pkgs.fedoraproject.org/cgit/yum.git/plain/yum-HEAD.patch?h=f21 + source = remove-init-dir-makefile.patch + md5sums = 7c8ea8beba5b4e7fe0c215e4ebaa26ed + md5sums = 3ed35721daf75fd56590bd2d2b993ddc + md5sums = 14d68bd689ea76a44567bc2dd0e64cb1 + +pkgname = yum + diff --git a/yum/.gitignore b/yum/.gitignore new file mode 100644 index 0000000..a9405dc --- /dev/null +++ b/yum/.gitignore @@ -0,0 +1,3 @@ +*gz +*xz +yum.patch diff --git a/yum/PKGBUILD b/yum/PKGBUILD new file mode 100644 index 0000000..b3335d2 --- /dev/null +++ b/yum/PKGBUILD @@ -0,0 +1,53 @@ +# Maintainer : Achilleas Pipinellis <axilleas archlinux info> +# Contributor: William Giokas <1007380@gmail.com> +# Contributor: Fernando M f[at]beford.net +# Contributor: Ivo Benner <ivo.benner[at]web.de> +# Contributor: Luka Perkov <archlinux <at> lukaperkov <dOt> net> +# Contributor: Rob Taylor <robtaylor[at]floopily.org> + +pkgname=yum +pkgver=3.4.3 +pkgrel=6 +pkgdesc="a popular channel based package manager for RPM distros." +arch=('i686' 'x86_64') +license=('GPL') +url="http://yum.baseurl.org/" +groups=('system') +depends=('python2' 'intltool' 'urlgrabber' 'rpm-org' 'python2-pysqlite' 'yum-metadata-parser' 'python2-iniparse' 'python2-pyliblzma') +source=("http://yum.baseurl.org/download/3.4/yum-${pkgver}.tar.gz" + "yum.patch::http://pkgs.fedoraproject.org/cgit/yum.git/plain/yum-HEAD.patch?h=f21" + 'remove-init-dir-makefile.patch') +md5sums=('7c8ea8beba5b4e7fe0c215e4ebaa26ed' + '3ed35721daf75fd56590bd2d2b993ddc' + '14d68bd689ea76a44567bc2dd0e64cb1') + +prepare() { + cd "${srcdir}/${pkgname}-${pkgver}" + + # Patch up to Fedora current + patch -p1 < "${srcdir}/yum.patch" + + cd "etc" + + # Apply patch to remove the RedHat style init script from being installed + patch < "${srcdir}/remove-init-dir-makefile.patch" +} + +build() { + # Patching python2 shebangs + sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \ + -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \ + $(find ${srcdir} -name '*.py') + sed -i -e "s/PYTHON=python/PYTHON=python2/" "${srcdir}/${pkgname}-${pkgver}/Makefile" + + cd "${srcdir}/${pkgname}-${pkgver}" + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}" INIT=systemd install + + mv "${pkgdir}/usr/sbin/"* "${pkgdir}/usr/bin/" + rmdir "${pkgdir}/usr/sbin/" +} diff --git a/yum/remove-init-dir-makefile.patch b/yum/remove-init-dir-makefile.patch new file mode 100644 index 0000000..671efdf --- /dev/null +++ b/yum/remove-init-dir-makefile.patch @@ -0,0 +1,12 @@ +--- Makefile.dist 2009-01-08 13:36:04.598489682 -0700 ++++ Makefile 2009-01-08 13:40:23.116347817 -0700 +@@ -13,9 +13,6 @@ + mkdir -p $(DESTDIR)/etc/logrotate.d + install -m 644 yum.logrotate $(DESTDIR)/etc/logrotate.d/yum + +- mkdir -p $(DESTDIR)/etc/rc.d/init.d +- install -m 755 yum-updatesd.init $(DESTDIR)/etc/rc.d/init.d/yum-updatesd +- + mkdir -p $(DESTDIR)/etc/dbus-1/system.d/ + install -m 755 yum-updatesd-dbus.conf $(DESTDIR)/etc/dbus-1/system.d/yum-updatesd.conf + |
