From f45e25ea2ce0ef5e1eb53643907916e3f6b374ad Mon Sep 17 00:00:00 2001 From: Disassembler Date: Fri, 13 Mar 2020 20:09:23 +0100 Subject: [PATCH] Remove obsolete build files --- apk/gdal/APKBUILD | 76 --------------------- apk/geos/APKBUILD | 55 --------------- apk/postgis/APKBUILD | 38 ----------- apk/proj4/APKBUILD | 33 --------- apk/wireguard-tools/APKBUILD | 65 ------------------ apk/wireguard-tools/alpine-compat.patch | 12 ---- apk/wireguard/APKBUILD | 91 ------------------------- 7 files changed, 370 deletions(-) delete mode 100644 apk/gdal/APKBUILD delete mode 100644 apk/geos/APKBUILD delete mode 100644 apk/postgis/APKBUILD delete mode 100644 apk/proj4/APKBUILD delete mode 100644 apk/wireguard-tools/APKBUILD delete mode 100644 apk/wireguard-tools/alpine-compat.patch delete mode 100644 apk/wireguard/APKBUILD diff --git a/apk/gdal/APKBUILD b/apk/gdal/APKBUILD deleted file mode 100644 index 7ba80dd..0000000 --- a/apk/gdal/APKBUILD +++ /dev/null @@ -1,76 +0,0 @@ -# Contributor: Trevor R.H. Clarke -# Maintainer: Trevor R.H. Clarke -pkgname=gdal -pkgver=2.4.0 -pkgrel=1 -pkgdesc="A translator library for raster and vector geospatial data formats" -url="http://gdal.org" -arch="x86 x86_64" -license="MIT" -depends="" -depends_dev="gdal" -makedepends=" - curl-dev - geos-dev - giflib-dev - jpeg-dev - libjpeg-turbo-dev - libpng-dev - linux-headers - postgresql-dev - python2-dev - sqlite-dev - swig - tiff-dev - zlib-dev - " -subpackages=" - $pkgname-dev - py-$pkgname:py - " - -source="http://download.osgeo.org/$pkgname/$pkgver/$pkgname-$pkgver.tar.xz" -builddir="$srcdir/$pkgname-$pkgver" - -build() { - cd "$builddir" - - ./configure --prefix=/usr \ - --with-curl=/usr/bin/curl-config - make - - cd swig/python - python2 setup.py build -} - -package() { - cd "$builddir" - - make DESTDIR="$pkgdir" install - chmod -x "$pkgdir"/usr/include/*.h -} - -py() { - pkgdesc="$pkgname (python bindings)" - - cd "$builddir"/swig/python - python2 setup.py install --prefix=/usr --root="$subpkgdir" - - chmod a+x scripts/* - install -d "$subpkgdir"/usr/bin - install -m755 scripts/*.py "$subpkgdir"/usr/bin/ -} - -check() { - # TODO: https://trac.osgeo.org/gdal/wiki/TestingNotes - - cd "$builddir" - apps/gdal-config --version | grep "$pkgver" - - # confirms MBTiles support - apps/gdal_translate --formats | grep "MBTiles -raster,vector- (rw+v): MBTiles" - - # confirms PostgreSQL/PostGIS support - apps/ogr2ogr --formats | grep "PostgreSQL -vector- (rw+): PostgreSQL/PostGIS" -} -sha512sums="d4eb6535043b1495f691ab96aa8087d9254aa01efbc57a4051f8b9f4f6b2537719d7bf03ff82c3f6cfd0499a973c491fa9da9f5854dbd9863a0ec9796d3642bb gdal-2.4.0.tar.xz" diff --git a/apk/geos/APKBUILD b/apk/geos/APKBUILD deleted file mode 100644 index 5c7c097..0000000 --- a/apk/geos/APKBUILD +++ /dev/null @@ -1,55 +0,0 @@ -# Contributor: Eric Kidd -# Maintainer: -pkgname=geos -pkgver=3.7.1 -pkgrel=0 -pkgdesc="GEOS is a library providing OpenGIS and JTS spatial operations in C++." -url="https://trac.osgeo.org/geos/" -# test fails on other archs -arch="x86 x86_64" -license="LGPL-2.1" -makedepends="swig python2-dev" -subpackages="py-$pkgname:py $pkgname-dev" -source="http://download.osgeo.org/geos/geos-$pkgver.tar.bz2" -builddir="$srcdir/$pkgname-$pkgver" - -build() { - cd "$builddir" - - ./configure \ - --build=$CBUILD \ - --host=$CHOST \ - --prefix=/usr \ - --sysconfdir=/etc \ - --mandir=/usr/share/man \ - --localstatedir=/var \ - --enable-python - - # --enable-ruby produces a gem which crashes, and which seems to - # mostly ignored in favor of the rgeo and ffi-geos modules, anyway. - - make -} - -check() { - cd "$builddir" - - make check -} - -package() { - cd "$builddir" - - make DESTDIR="$pkgdir" install - install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING -} - -py() { - pkgdesc="$pkgname Python bindings" - - cd "$builddir" - install -d "$subpkgdir"/usr/lib - mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/ -} - -sha512sums="01e8087bcd3cb8f873adb7b56910e1575ccb3336badfdd3f13bc6792095b7010e5ab109ea0d0cd3d1459e2e526e83bcf64d6ee3f7eb47be75639becdaacd2a87 geos-3.7.1.tar.bz2" diff --git a/apk/postgis/APKBUILD b/apk/postgis/APKBUILD deleted file mode 100644 index 52328ee..0000000 --- a/apk/postgis/APKBUILD +++ /dev/null @@ -1,38 +0,0 @@ -# Contributor: Bjoern Schilberg -# Maintainer: Bjoern Schilberg -pkgname=postgis -pkgver=2.5.1 -pkgrel=1 -pkgdesc="PostGIS is a spatial database extender for PostgreSQL object-relational database." -url="https://postgis.net/" -# geos test fails on other archs -arch="x86 x86_64" # fails on x86* -license="GPL-2.0-or-later" -depends="postgresql perl" -makedepends="postgresql-dev geos-dev gdal-dev libxml2-dev proj4-dev perl-dev - json-c-dev pcre-dev" -subpackages="$pkgname-dev $pkgname-doc" -source="http://download.osgeo.org/postgis/source/$pkgname-$pkgver.tar.gz" -options="!check" # tests depends on a running PostgreSQL server - -build() { - cd "$builddir" - - ./configure \ - --build=$CBUILD \ - --host=$CHOST \ - --prefix=/usr \ - --disable-gtktest \ - --disable-nls \ - --disable-rpath \ - --without-protobuf - make -j1 -} - -package() { - cd "$builddir" - - make DESTDIR="$pkgdir" install -} - -sha512sums="c6c9c8c5befd945614e92d1062df1d753ca8b7fd69b70226065c2dac77a59783b14ece4da994187079b683ee090ba5a79389ba679f22fce8c20a5afc2c8dfca0 postgis-2.5.1.tar.gz" diff --git a/apk/proj4/APKBUILD b/apk/proj4/APKBUILD deleted file mode 100644 index e6e6240..0000000 --- a/apk/proj4/APKBUILD +++ /dev/null @@ -1,33 +0,0 @@ -# Maintainer: Natanael Copa -pkgname=proj4 -pkgver=5.2.0 -pkgrel=0 -pkgdesc="PROJ.4 - Cartographic Projections Library" -url="https://trac.osgeo.org/proj/" -arch="all" -license="MIT" -options="" -depends="" -makedepends="" -subpackages="$pkgname-doc $pkgname-dev" -source="http://download.osgeo.org/proj/proj-$pkgver.tar.gz - " - -builddir="$srcdir"/proj-$pkgver -build () { - cd "$builddir" - ./configure \ - --build=$CBUILD \ - --host=$CHOST \ - --prefix=/usr \ - --without-jni \ - || return 1 - make || return 1 -} - -package() { - cd "$builddir" - mkdir -p $pkgdir/usr/bin - make DESTDIR="$pkgdir" install -} -sha512sums="f773117d22309d4ee8dbedc2a7b6ba27e8cd032e1bd0af3c98f270bf7b7ab3353be0b04d91202a1f137fc45164c8e8a52712bb06281948008160d08f9f9074ba proj-5.2.0.tar.gz" diff --git a/apk/wireguard-tools/APKBUILD b/apk/wireguard-tools/APKBUILD deleted file mode 100644 index 1be21c0..0000000 --- a/apk/wireguard-tools/APKBUILD +++ /dev/null @@ -1,65 +0,0 @@ -# Contributor: Stuart Cardall -# Maintainer: Stuart Cardall -pkgname=wireguard-tools -pkgver=0.0.20190702 -pkgrel=0 -pkgdesc="Next generation secure network tunnel: userspace tools" -arch="all" -url="https://www.wireguard.com" -# SPDX identifier headers tells us 'GPL-2.0' but considering it -# is a kernel project i think it is safe to assume it is GPL-2.0-only just -# like the kernel. -license="GPL-2.0-only" -makedepends="libmnl-dev" -depends="$pkgname-wg $pkgname-wg-quick" -subpackages=" - $pkgname-doc - $pkgname-bash-completion:bashcomp:noarch - $pkgname-wg:_split - $pkgname-wg-quick:_split:noarch - " -options="!check" -source="https://git.zx2c4.com/WireGuard/snapshot/WireGuard-$pkgver.tar.xz - alpine-compat.patch - " -builddir="$srcdir"/WireGuard-$pkgver - -build() { - make -C src/tools -} - -package() { - mkdir -p "$pkgdir/usr/share/doc/$pkgname" - - make -C src/tools \ - DESTDIR="$pkgdir" \ - WITH_BASHCOMPLETION=yes \ - WITH_WGQUICK=yes \ - WITH_SYSTEMDUNITS=no \ - install - - find "$builddir"/contrib/examples -name '.gitignore' -delete - cp -rf "$builddir"/contrib/examples "$pkgdir/usr/share/doc/$pkgname/" -} - -_split() { - local cmd=${subpkgname/$pkgname-} - pkgdesc="$pkgdesc ($cmd)" - case $cmd in - wg-quick) depends="$pkgname-wg iproute2 bash openresolv" ;; - *) depends= ;; - esac - mkdir -p "$subpkgdir"/usr/bin - mv "$pkgdir"/usr/bin/$cmd "$subpkgdir"/usr/bin/ -} - -bashcomp() { - depends="bash" - pkgdesc="WireGuard bash completions" - - mkdir -p "$subpkgdir"/usr - mv "$pkgdir"/usr/share "$subpkgdir"/usr -} - -sha512sums="8b92b51506cd3f8e9939378b86f23678e08e8501432decd0abf6a9d4e3dfe4742b6f1cb75e06407f5816778b3dd90849a5da83252ab882392ec1905dfb997501 WireGuard-0.0.20190702.tar.xz -4577574333f023217ae6e0945807e1ccd2dec7caa87e329b1d5b44569f6b5969663ad74f8154b85d3dc7063dd762649e3fa87c7667e238ffb77c0e5df9245a5e alpine-compat.patch" diff --git a/apk/wireguard-tools/alpine-compat.patch b/apk/wireguard-tools/alpine-compat.patch deleted file mode 100644 index 1268ffb..0000000 --- a/apk/wireguard-tools/alpine-compat.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff --git a/src/tools/wg-quick/linux.bash b/src/tools/wg-quick/linux.bash ---- a/src/tools/wg-quick/linux.bash -+++ b/src/tools/wg-quick/linux.bash -@@ -201,7 +201,7 @@ - cmd ip $proto rule add table main suppress_prefixlength 0 - while read -r key _ value; do - [[ $value -eq 1 ]] && sysctl -q "$key=2" -- done < <(sysctl -a -r '^net\.ipv4.conf\.[^ .=]+\.rp_filter$') -+ done < <(sysctl -a 2>/dev/null | sed -n -r 's#^(net\.ipv4.conf\.[^ .=]+\.rp_filter).*$#\1#p') - return 0 - } - diff --git a/apk/wireguard/APKBUILD b/apk/wireguard/APKBUILD deleted file mode 100644 index 5481bb6..0000000 --- a/apk/wireguard/APKBUILD +++ /dev/null @@ -1,91 +0,0 @@ -# Contributor: Stuart Cardall -# Maintainer: Stuart Cardall - -# wireguard version -_ver=0.0.20190702 -_rel=0 - -# kernel version -_kver=4.19.52 -_krel=0 - -_kpkgver="$_kver-r$_krel" - -# for custom kernels set $FLAVOR -_extra_flavors= -if [ -z "$FLAVOR" ]; then - _flavor=vanilla - case $CARCH in - x86|x86_64) _extra_flavors="virt";; - esac -else - _flavor=$FLAVOR -fi -_kpkg=linux-$_flavor - -pkgname=wireguard-$_flavor -pkgver=$_kver -pkgrel=$(( $_rel + $_krel)) - -pkgdesc="Next generation secure network tunnel: kernel modules for $_flavor" -arch="all" -url="https://www.wireguard.com" -license="GPL-2.0" -depends="linux-$_flavor=$_kpkgver" -makedepends=" - libmnl-dev - linux-$_flavor-dev=$_kpkgver - linux-firmware-none - " -install_if="wireguard-tools-wg=$_ver-r$_rel linux-$_flavor=$_kpkgver" -options="!check" -source="https://git.zx2c4.com/WireGuard/snapshot/WireGuard-$_ver.tar.xz" -builddir="$srcdir"/WireGuard-$_ver - -for f in $_extra_flavors; do - makedepends="$makedepends linux-$f-dev=$_kpkgver" - subpackages="$subpackages wireguard-$f:_extra" -done - -prepare() { - default_prepare - if [ -z "$FLAVOR" ]; then - ( . "$startdir"/../../main/linux-$_flavor/APKBUILD - [ "$_kver" != "$pkgver" ] && die "please update _kver to $pkgver" - [ "$_krel" != "$pkgrel" ] && die "please update _krel to $pkgrel" - return 0 - ) - fi - local flavor= - for flavor in $_flavor $_extra_flavors; do - cp -r "$builddir" "$srcdir"/$flavor - done -} - -build() { - unset LDFLAGS - local flavor= kabi= - for flavor in $_flavor $_extra_flavors; do - kabi="$_kver-$_krel-$flavor" - make -C "$srcdir/$flavor"/src \ - KERNELDIR=/lib/modules/$kabi/build module - done -} - -package() { - local kabi="$_kver-$_krel-$_flavor" - install -Dm644 "$srcdir"/$_flavor/src/wireguard.ko \ - "$pkgdir/lib/modules/$kabi/extra/wireguard.ko" -} - -_extra() { - flavor=${subpkgname##*-} - depends="linux-$flavor=$_kpkgver" - install_if="wireguard-tools-wg=$_ver-r$_rel linux-$flavor=$_kpkgver" - pkgdesc="Next generation secure network tunnel: kernel modules for $flavor" - local kabi="$_kver-$_krel-$flavor" - install -Dm644 "$srcdir"/virt/src/wireguard.ko \ - "$subpkgdir/lib/modules/$kabi/extra/wireguard.ko" -} - -sha512sums="8b92b51506cd3f8e9939378b86f23678e08e8501432decd0abf6a9d4e3dfe4742b6f1cb75e06407f5816778b3dd90849a5da83252ab882392ec1905dfb997501 WireGuard-0.0.20190702.tar.xz"