diff --git a/src/createrepo/.SRCINFO b/src/createrepo/.SRCINFO new file mode 100644 index 0000000..09640cb --- /dev/null +++ b/src/createrepo/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = createrepo + pkgdesc = Create rpm-metadata formatted package repositories + pkgver = 0.10.4 + pkgrel = 1 + url = https://github.com/rpm-software-management/createrepo + arch = any + license = GPL + checkdepends = pychecker + makedepends = bash-completion + depends = deltarpm + depends = libxml2 + depends = python2 + depends = python2-pyliblzma + depends = rpm-org + depends = yum + depends = yum-metadata-parser + source = https://github.com/rpm-software-management/createrepo/archive/createrepo-0-10-4.tar.gz + md5sums = d5a31a4a075010d5c2e51fbf631a368f + +pkgname = createrepo + diff --git a/src/createrepo/PKGBUILD b/src/createrepo/PKGBUILD new file mode 100644 index 0000000..8ea311e --- /dev/null +++ b/src/createrepo/PKGBUILD @@ -0,0 +1,37 @@ +pkgname=createrepo +pkgver=0.10.4 +pkgrel=1 +pkgdesc="Create rpm-metadata formatted package repositories" +arch=('any') +url="https://github.com/rpm-software-management/$pkgname" +license=('GPL') +depends=('deltarpm' 'libxml2' 'python2' 'python2-pyliblzma' 'rpm-org' + 'yum' 'yum-metadata-parser') +makedepends=('bash-completion') +checkdepends=('pychecker') +source=("$url/archive/$pkgname-${pkgver//./-}.tar.gz") +md5sums=('d5a31a4a075010d5c2e51fbf631a368f') + +prepare() { + mv "$pkgname-$pkgname-${pkgver//./-}" "$pkgname-$pkgver" + + cd "$pkgname-$pkgver" + find -type f | xargs sed -e 's|#! */usr/bin/python|&2|' -i +} + +build() { + cd "$pkgname-$pkgver" + make PYTHON=python2 +} + +check() { + cd "$pkgname-$pkgver" + make check +} + +package() { + cd "$pkgname-$pkgver" + make PYTHON=python2 DESTDIR="$pkgdir/" install +} + +# vim: set ft=sh ts=4 sw=4 noet: diff --git a/src/deltarpm/.SRCINFO b/src/deltarpm/.SRCINFO new file mode 100644 index 0000000..a31bedd --- /dev/null +++ b/src/deltarpm/.SRCINFO @@ -0,0 +1,21 @@ +# Generated by mksrcinfo v8 +# Sun Jan 31 22:39:31 UTC 2016 +pkgbase = deltarpm + pkgdesc = Create deltas between rpms + pkgver = 3.6.1 + pkgrel = 1 + url = https://github.com/rpm-software-management/deltarpm + arch = i686 + arch = x86_64 + license = BSD + makedepends = python2 + makedepends = python + depends = rpm-org + depends = zlib + optdepends = python2: for python2 module + optdepends = python: for python3 module + source = deltarpm-3.6.1.tar.gz::https://github.com/rpm-software-management/deltarpm/archive/3.6.1.tar.gz + md5sums = c48086229bdfcf5af890f104231180c6 + +pkgname = deltarpm + diff --git a/src/deltarpm/PKGBUILD b/src/deltarpm/PKGBUILD new file mode 100644 index 0000000..f25a7eb --- /dev/null +++ b/src/deltarpm/PKGBUILD @@ -0,0 +1,40 @@ +# Contributor: Thomas Dziedzic < gostrc at gmail > +# Contributor: Michael Eckert + +pkgname=deltarpm +pkgver=3.6.1 +pkgrel=1 +pkgdesc="Create deltas between rpms" +arch=('i686' 'x86_64') +license=('BSD') +url="https://github.com/rpm-software-management/$pkgname" +depends=('rpm-org' 'zlib') +makedepends=('python2' 'python') +optdepends=('python2: for python2 module' + 'python: for python3 module') +source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz") +md5sums=('c48086229bdfcf5af890f104231180c6') + +build() { + cd "$pkgname-$pkgver" + make PYTHONS='python2 python' \ + prefix=/usr \ + zlibbundled='' \ + zlibldflags='-lz' \ + zlibcppflags='' \ + all python +} + +package() { + cd "$pkgname-$pkgver" + + make DESTDIR="$pkgdir/" \ + PYTHONS='python2 python' \ + prefix=/usr \ + install + + install -D -m644 README "$pkgdir/usr/share/doc/$pkgname/README" + install -D -m644 LICENSE.BSD "$pkgdir/usr/share/licenses/$pkgname/LICENSE.BSD" +} + +# vim: set ft=sh ts=4 sw=4 noet: diff --git a/src/python2-pyliblzma/.SRCINFO b/src/python2-pyliblzma/.SRCINFO new file mode 100644 index 0000000..776b7eb --- /dev/null +++ b/src/python2-pyliblzma/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = python2-pyliblzma + pkgdesc = Python 2 bindings for liblzma + pkgver = 0.5.3 + pkgrel = 7 + url = https://pypi.python.org/pypi/pyliblzma + arch = i686 + arch = x86_64 + license = LGPL3 + makedepends = python2-setuptools + depends = python2 + depends = xz + source = https://pypi.python.org/packages/source/p/pyliblzma/pyliblzma-0.5.3.tar.bz2 + sha256sums = 08d762f36d5e59fb9bb0e22e000c300b21f97e35b713321ee504cfb442667957 + sha512sums = 272983aac426e86d6d636ccba4fe78a07d7282560081df937114162bfd317bd8023814693b8d473d0f7884e38a968ebeaf8f954a5a27c1f7e5da084f3fd05c65 + +pkgname = python2-pyliblzma + diff --git a/src/python2-pyliblzma/PKGBUILD b/src/python2-pyliblzma/PKGBUILD new file mode 100644 index 0000000..0019689 --- /dev/null +++ b/src/python2-pyliblzma/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: William J. Bowman +# Contributor: Levente Polyak +# Contributor: Daniel Strandberg + +_relname=pyliblzma +pkgname=python2-${_relname} +pkgver=0.5.3 +pkgrel=7 +pkgdesc='Python 2 bindings for liblzma' +arch=('i686' 'x86_64') +url='https://pypi.python.org/pypi/pyliblzma' +license=('LGPL3') +depends=('python2' 'xz') +makedepends=('python2-setuptools') +source=(https://pypi.python.org/packages/source/p/${_relname}/${_relname}-${pkgver}.tar.bz2) +sha256sums=('08d762f36d5e59fb9bb0e22e000c300b21f97e35b713321ee504cfb442667957') +sha512sums=('272983aac426e86d6d636ccba4fe78a07d7282560081df937114162bfd317bd8023814693b8d473d0f7884e38a968ebeaf8f954a5a27c1f7e5da084f3fd05c65') + +prepare() { + cd ${_relname}-${pkgver} + sed -e 's/env python$/env python2/g' -i liblzma.py +} + +build() { + cd ${_relname}-${pkgver} + python2 setup.py build +} + +check() { + cd ${_relname}-${pkgver} + python2 setup.py test +} + +package() { + cd ${_relname}-${pkgver} + python2 setup.py install -O1 --root="${pkgdir}" --prefix=/usr +} + +# vim:ts=2:sw=2:et: diff --git a/src/yum-metadata-parser/.SRCINFO b/src/yum-metadata-parser/.SRCINFO new file mode 100644 index 0000000..57a4603 --- /dev/null +++ b/src/yum-metadata-parser/.SRCINFO @@ -0,0 +1,19 @@ +# Generated by mksrcinfo v8 +# Sat Aug 27 03:50:01 UTC 2016 +pkgbase = yum-metadata-parser + pkgdesc = C-based metadata parser to quickly parse xml metadata into sqlite databases. + pkgver = 1.1.4 + pkgrel = 10 + url = http://yum.baseurl.org/download/yum-metadata-parser/ + arch = i686 + arch = x86_64 + license = GPL + makedepends = python2-pip + depends = python2 + depends = libxml2 + depends = glib2 + source = http://yum.baseurl.org/download/yum-metadata-parser/yum-metadata-parser-1.1.4.tar.gz + sha256sums = f1560a284541feb720c3ae35b6b31f80c2be5cb9ca86b3a1ee9459846f821ada + +pkgname = yum-metadata-parser + diff --git a/src/yum-metadata-parser/.gitignore b/src/yum-metadata-parser/.gitignore new file mode 100644 index 0000000..99a6c4e --- /dev/null +++ b/src/yum-metadata-parser/.gitignore @@ -0,0 +1,4 @@ +*.tar.gz +*.pkg.tar.xz +pkg/ +src/ diff --git a/src/yum-metadata-parser/PKGBUILD b/src/yum-metadata-parser/PKGBUILD new file mode 100644 index 0000000..e1f4767 --- /dev/null +++ b/src/yum-metadata-parser/PKGBUILD @@ -0,0 +1,24 @@ +# Maintainer: Lukas Sabota +# Contributor: Patrick McCarty +# Contributor: Mariusz Libera +# Contributor: Chris Tusa +# Contributor: Thore Bunde + +pkgname='yum-metadata-parser' +pkgver='1.1.4' +pkgrel=10 +pkgdesc='C-based metadata parser to quickly parse xml metadata into sqlite databases.' +arch=('i686' 'x86_64') +license=('GPL') +url='http://yum.baseurl.org/download/yum-metadata-parser/' +depends=('python2' 'libxml2' 'glib2') +makedepends=('python2-pip') +source=('http://yum.baseurl.org/download/yum-metadata-parser/yum-metadata-parser-1.1.4.tar.gz') +sha256sums=('f1560a284541feb720c3ae35b6b31f80c2be5cb9ca86b3a1ee9459846f821ada') + +package() { + cd "${srcdir}/${pkgname}-${pkgver}" + pip2 install . --isolated --root="${pkgdir}" --no-deps --ignore-installed --build . +} + + diff --git a/src/yum/.AURINFO b/src/yum/.AURINFO new file mode 100644 index 0000000..b579c16 --- /dev/null +++ b/src/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/src/yum/.SRCINFO b/src/yum/.SRCINFO new file mode 100644 index 0000000..d5046d7 --- /dev/null +++ b/src/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/src/yum/.gitignore b/src/yum/.gitignore new file mode 100644 index 0000000..a9405dc --- /dev/null +++ b/src/yum/.gitignore @@ -0,0 +1,3 @@ +*gz +*xz +yum.patch diff --git a/src/yum/PKGBUILD b/src/yum/PKGBUILD new file mode 100644 index 0000000..b3335d2 --- /dev/null +++ b/src/yum/PKGBUILD @@ -0,0 +1,53 @@ +# Maintainer : Achilleas Pipinellis +# Contributor: William Giokas <1007380@gmail.com> +# Contributor: Fernando M f[at]beford.net +# Contributor: Ivo Benner +# Contributor: Luka Perkov lukaperkov net> +# Contributor: Rob Taylor + +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/src/yum/remove-init-dir-makefile.patch b/src/yum/remove-init-dir-makefile.patch new file mode 100644 index 0000000..671efdf --- /dev/null +++ b/src/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 +