Subject: [alpine-aports] [PATCH] main/ksymoops: change 'url' to http

From: Valery Kartel <[email-masked]>
Date: Sat, 28 Jan 2017 14:14:00 +0200

Switch to http, because kernel.org
will shut down their ftp service at March 1st.

- fix source hostname
- cleanups in apkbuild
---
 main/ksymoops/APKBUILD | 19 +++++++------------
 1 file changed, 7 insertions(+), 12 deletions(-)

diff --git a/main/ksymoops/APKBUILD b/main/ksymoops/APKBUILD
index 6edb92c4f5..8e70620b45 100644
--- a/main/ksymoops/APKBUILD
+++ b/main/ksymoops/APKBUILD
@@ -3,31 +3,26 @@ pkgname=ksymoops
 pkgver=2.4.11
 pkgrel=7
 pkgdesc="A Linux kernel Oops file troubleshooting tool"
-url="ftp://ftp.kernel.org/pub/linux/utils/kernel/ksymoops/v2.4"
+url="https://kernel.org/pub/linux/utils/kernel/ksymoops/v2.4"
 arch="all"
 license="GPL2"
 depends=""
 makedepends="binutils-dev"
-source="http://ftp.kernel.org/pub/linux/utils/kernel/ksymoops/v2.4/ksymoops-$pkgver.tar.gz
-	$pkgname-2.4.11-build.patch
-	"
 subpackages="$pkgname-doc"
-
-_builddir="$srcdir/$pkgname-$pkgver"
-prepare() {
-	cd "$_builddir"
-	patch -p1 < "$srcdir"/$pkgname-2.4.11-build.patch || return 1
-}
+source="https://kernel.org/pub/linux/utils/kernel/$pkgname/v${pkgver%.*}/$pkgname-$pkgver.tar.gz
+	$pkgname-$pkgver-build.patch
+	"
+builddir="$srcdir/$pkgname-$pkgver"
 
 build() {
-	cd "$_builddir"
+	cd "$builddir"
 	# see http://sourceware.org/bugzilla/show_bug.cgi?id=14243
 	# we abuse DEBUG variable which is added to CFLAGS
 	make DEBUG="$CFLAGS -DPACKAGE -DPACKAGE_VERSION" || return 1
 }
 
 package() {
-	cd "$_builddir"
+	cd "$builddir"
 	make install \
 		INSTALL=install \
 		INSTALL_PREFIX="$pkgdir"/usr \
-- 
2.11.0

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---