summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2018-01-15 14:38:13 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2018-01-15 14:38:13 -0500
commitfd6bd9a95bc5bb4cb45cfab6c2857ecdcb2114bf (patch)
tree4b728252f21343917fb21cfd63955a15386489cd
parent9b688dd823a8ecf165dfda1da8a1ad8ac3e90d1b (diff)
downloadabslibre-fd6bd9a95bc5bb4cb45cfab6c2857ecdcb2114bf.tar.gz
abslibre-fd6bd9a95bc5bb4cb45cfab6c2857ecdcb2114bf.tar.bz2
abslibre-fd6bd9a95bc5bb4cb45cfab6c2857ecdcb2114bf.zip
Removing dpkg
-rw-r--r--libre/dpkg/PKGBUILD155
-rwxr-xr-xlibre/dpkg/compare26
-rw-r--r--libre/dpkg/compare.mk8
-rw-r--r--libre/dpkg/dpkg-gzip-rsyncable.patch12
4 files changed, 0 insertions, 201 deletions
diff --git a/libre/dpkg/PKGBUILD b/libre/dpkg/PKGBUILD
deleted file mode 100644
index 623ad33b4..000000000
--- a/libre/dpkg/PKGBUILD
+++ /dev/null
@@ -1,155 +0,0 @@
-# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
-# Maintainer (AUR): Jochen Schalanda <jochen+aur@schalanda.name>
-# Contributor (AUR): Pierre Carrier <pierre@spotify.com>
-# Contributor (AUR): Thomas Dziedzic <gostrc@gmail>
-# Contributor (AUR): Chris Giles <Chris.G.27@gmail.com>
-# Contributor (AUR): seblu <seblu+arch@seblu.net>
-# Contributor (AUR): squiddo <squiddo@intheocean.net>
-
-pkgbase=dpkg
-#pkgname=(dpkg dpkg-devtools dselect libdpkg perl-dpkg)
-pkgname=(dpkg-devtools perl-dpkg)
-pkgdesc="Debian Package manager and utilities"
-license=('GPL2')
-
-pkgver=1.17.6
-url="http://packages.debian.org/source/sid/dpkg"
-
-pkgrel=2
-options=('staticlibs')
-
-if ! type in_array &>/dev/null; then
- in_array() {
- local i
- for i in "${@:2}"; do [[ $i = "$1" ]] && return 0; done
- return 1
- }
-fi
-
-# The architecture dependent bits aren't packaged with the reduced pkgname
-arch=('any')
-for _pkg in dpkg dselect libdpkg; do
- if in_array "$_pkg" "${pkgname[@]}"; then
- arch=('i686' 'x86_64' 'mips64el')
- fi
-done
-unset _pkg
-
-makedepends=('bzip2' 'xz' 'zlib' 'ncurses')
-checkdepends=('gzip' 'perl-test-pod' 'perl-io-string' 'perl-timedate')
-
-_debrepo=http://ftp.debian.org/debian/pool/main
-_debfile() { echo "${_debrepo}/${1:0:1}/${1%_*}/${1}"; }
-source=("$(_debfile ${pkgbase}_${pkgver}).tar.xz"
- dpkg-gzip-rsyncable.patch)
-md5sums=('c87f2ae291d460015353e01d121bea85'
- '9c77a553e3219dcd29b7ff44b89d718d')
-
-######################################################################
-
-# This is really gross.
-# It uses the debian control files to help us split the package.
-# Shame on the dpkg developers for not putting that logic into the build system.
-_destdir="$pkgbase-$pkgver/debian/pkg-makepkg"
-_debhelper_install() {
- local debname=$1
- cd "$srcdir/$_destdir"
-
- # main files
- sed -e '/^\s*$/d' -e 's|usr/share/perl5/|&vendor_perl/|g' ../$debname.install |
- while read pattern dest; do
- if [[ -z $dest ]]; then
- for file in $pattern; do
- install -d "$pkgdir/${file%/*}"
- cp -a "$file" "$pkgdir/$file" || true
- done
- else
- install -d "$pkgdir/$dest/"
- cp -a "$pattern" "$pkgdir/$dest/" || true
- fi
- done
-
- # manpages
- sed -e 's|^debian/tmp/||' -e '/^\s*$/d' ../$debname.manpages 2>/dev/null |
- while read pattern; do
- for file in $pattern; do
- install -d "$pkgdir/${file%/*}"
- cp -a "$file" "$pkgdir/$file" || true
- done
- done
-
- # other documentation
- sed '/^\s*$/d' ../$debname.docs 2>/dev/null |
- while read file; do
- install -d "$pkgdir/usr/share/doc/$pkgname/"
- gzip \
- < "$srcdir/$pkgbase-$pkgver/$file" \
- > "$pkgdir/usr/share/doc/$pkgname/${file##*/}.gz"
- done
-
- # symlinks
- sed '/^\s*$/d' ../$debname.links 2>/dev/null |
- while read file link; do
- ln -s "/$file" "$pkgdir/$link"
- done
-}
-
-######################################################################
-
-prepare() {
- cd "${srcdir}/${pkgbase}-${pkgver}"
- # {Arch,Parabola}'s gzip doesn't support --rsyncable
- patch -Np1 -i "${srcdir}/dpkg-gzip-rsyncable.patch"
-}
-
-build() {
- cd "${srcdir}/${pkgbase}-${pkgver}"
- ./configure \
- --prefix=/usr \
- --mandir=/usr/share/man \
- --infodir=/usr/share/info \
- --sysconfdir=/etc \
- --sbindir=/usr/bin \
- --localstatedir=/var \
- --with-zlib \
- --with-liblzma \
- --with-bz2
- make
- make DESTDIR="$srcdir/$_destdir" install
-}
-
-check() {
- cd "${srcdir}/${pkgbase}-${pkgver}"
- make check
-}
-
-package_dpkg() {
- pkgdesc="Debian Package manager"
- depends=('zlib' 'xz' 'bzip2')
- _debhelper_install dpkg
-}
-
-package_dpkg-devtools() {
- pkgdesc="Debian Package development tools"
- arch=('any')
- depends=('perl-dpkg')
- _debhelper_install dpkg-dev
-}
-
-package_dselect() {
- pkgdesc="Debian Package manager high-level interface"
- depends=('dpkg' 'perl' 'ncurses')
- _debhelper_install dselect
-}
-
-package_libdpkg() {
- pkgdesc="Debian Package manager library (static)"
- _debhelper_install libdpkg-dev
-}
-
-package_perl-dpkg() {
- pkgdesc="Debian Package Perl modules"
- arch=('any')
- depends=('perl-timedate' 'gzip' 'bzip2' 'xz')
- _debhelper_install libdpkg-perl
-}
diff --git a/libre/dpkg/compare b/libre/dpkg/compare
deleted file mode 100755
index 4556440a5..000000000
--- a/libre/dpkg/compare
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/bin/bash
-# compare the packages extracted in pkg/ to the packages from debian
-
-_check() {
- local pacpkg=$1
- local debpkg=$2
-
- libremessages msg "dpkg:$debpkg -> pacman:$pacpkg"
-
- make -f compare.mk tmp/$pacpkg.pacman.filelist tmp/$debpkg.debian.filelist &>/dev/null
-
- echo -e 'pacman\tdpkg'
- comm -3 \
- <(sed -e 's|\.gz$||' tmp/$pacpkg.pacman.filelist|sort) \
- <(sed -e 's|\.gz$||' -e '/^usr\/share\/man\/..\/man.\//d' -e 's|usr/share/perl5/|&vendor_perl/|' -e "s|$debpkg|$pacpkg|g" tmp/$debpkg.debian.filelist|sort)
-}
-
-mkdir -p tmp
-
-_check dpkg dpkg
-_check dpkg-devtools dpkg-dev
-_check dselect dselect
-_check libdpkg libdpkg-dev
-_check perl-dpkg libdpkg-perl
-
-rm -rf tmp
diff --git a/libre/dpkg/compare.mk b/libre/dpkg/compare.mk
deleted file mode 100644
index 88219f283..000000000
--- a/libre/dpkg/compare.mk
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/usr/bin/make -f
-# Assist file for ./compare
-
-tmp/%.debian.filelist:
- curl http://packages.debian.org/sid/all/$*/filelist|sed -n "/<pre>/,/<\/pre>/{ s|.*<pre>||; s|</pre>.*||; /./p }"|sed 's|/||'|sort > $@
-
-tmp/%.pacman.filelist:
- ( cd pkg/$* && find * -not -type d; ) | sort > $@
diff --git a/libre/dpkg/dpkg-gzip-rsyncable.patch b/libre/dpkg/dpkg-gzip-rsyncable.patch
deleted file mode 100644
index 187633874..000000000
--- a/libre/dpkg/dpkg-gzip-rsyncable.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -ruN dpkg-1.17.6.orig/scripts/Dpkg/Compression.pm dpkg-1.17.6/scripts/Dpkg/Compression.pm
---- dpkg-1.17.6.orig/scripts/Dpkg/Compression.pm 2014-01-15 09:02:16.000000000 -0500
-+++ dpkg-1.17.6/scripts/Dpkg/Compression.pm 2014-01-19 23:22:39.771215424 -0500
-@@ -50,7 +50,7 @@
- my $COMP = {
- gzip => {
- file_ext => 'gz',
-- comp_prog => [ 'gzip', '--no-name', '--rsyncable' ],
-+ comp_prog => [ 'gzip', '--no-name' ],
- decomp_prog => [ 'gunzip' ],
- default_level => 9,
- },