Mail archive
alpine-devel

Re: [alpine-devel] packaging help: source needs to be renamed to avoid possible collisions

From: Milan P. Stanić <mps_at_arvanta.net>
Date: Tue, 25 Dec 2018 23:43:29 +0100

On Tue, 2018-12-25 at 21:44, Sven Wick wrote:
> Hi,
>
> I want to create a package for Alpine
> but get stuck at this error message:
>
>   ERROR: ssh-tools: source v1.5.tar.gz needs to be renamed to avoid
> possible collisions
>
> I checked the source code of abuild
> and I understand that it checks for github filenames
> but I don't know how to rename the file
> within the APKBUILD script or what I should do.

Try to prepend "$pkgname-$pkgver.tar.gz::" before source url.
source="$pkgname-$pkgver.tar.gz::https://github.com/vaporup/${pkgname}/archive/v${pkgver}.tar.gz"
add builddir variable
add subpackages

I'm attached file with changes to your APKBUILD.

-- 
> APKBUILD is attached
> 
> Thanks in advance
> 
> Cheers,
> 
> Sven
> 
> 
> # Maintainer: Sven Wick <sven.wick_at_gmx.de>
> 
> pkgname=ssh-tools
> pkgver=1.5
> pkgrel=1
> pkgdesc="collection of various tools using ssh"
> arch="noarch"
> url="https://github.com/vaporup/ssh-tools/"
> license="GPL"
> depends="openssh-client colordiff"
> makedepends="help2man"
> source="https://github.com/vaporup/${pkgname}/archive/v${pkgver}.tar.gz"
> md5sums="448bcf5c8c86bcef0338142d0cc477c0 v${pkgver}.tar.gz"
 
> build() {
> 	cd "$pkgname-$pkgver"
> 
>         mkdir -p "man"
> 
>         help2man -n "check if host is reachable using ssh_config"           -S SSH-TOOLS -N --version-string " " -o man/ssh-ping.1        ./ssh-ping
>         help2man -n "shows version of the SSH server you are connecting to" -S SSH-TOOLS -N --version-string " " -o man/ssh-version.1     ./ssh-version
>         help2man -n "diff a file over SSH"                                  -S SSH-TOOLS -N --version-string " " -o man/ssh-diff.1        ./ssh-diff
>         help2man -n "get some facts about the remote system"                -S SSH-TOOLS -N --version-string " " -o man/ssh-facts.1       ./ssh-facts
>         help2man -n "prints server host keys in several formats"            -S SSH-TOOLS -N --version-string " " -o man/ssh-hostkeys.1    ./ssh-hostkeys
> 
> }
> 
> package() {
> 	cd "$pkgname-$pkgver"
> 
>         mkdir -p $pkgdir/usr/share/man/man1/
> 	cp man/* $pkgdir/usr/share/man/man1/
> 
>         mkdir -p $pkgdir/usr/bin/
> 	cp ssh-* $pkgdir/usr/bin/
> }




---
Unsubscribe:  alpine-devel+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-devel+help_at_lists.alpinelinux.org
---
Received on Tue Dec 25 2018 - 23:43:29 UTC