X-Original-To: alpine-devel@lists.alpinelinux.org Received: from fx.arvanta.net (static-213-198-238-194.adsl.eunet.rs [213.198.238.194]) by lists.alpinelinux.org (Postfix) with ESMTP id 5AB0DF85577 for ; Tue, 25 Dec 2018 22:43:31 +0000 (UTC) Received: from arya.arvanta.net (arya.arvanta.net [10.5.1.6]) by fx.arvanta.net (Postfix) with ESMTP id 01DE619D8D for ; Tue, 25 Dec 2018 23:43:29 +0100 (CET) Date: Tue, 25 Dec 2018 23:43:29 +0100 From: Milan =?utf-8?Q?P=2E_Stani=C4=87?= To: alpine-devel@lists.alpinelinux.org Subject: Re: [alpine-devel] packaging help: source needs to be renamed to avoid possible collisions Message-ID: <20181225224329.GA16039@arya.arvanta.net> References: <7a44f72e-1189-0e0d-407c-45d5c72999f3@gmx.de> X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="T4sUOijqQbZv57TR" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <7a44f72e-1189-0e0d-407c-45d5c72999f3@gmx.de> User-Agent: Mutt/1.10.1 (2018-07-13) --T4sUOijqQbZv57TR Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, 2018-12-25 at 21:44, Sven Wick wrote: > Hi, >=20 > I want to create a package for Alpine > but get stuck at this error message: >=20 > =A0 ERROR: ssh-tools: source v1.5.tar.gz needs to be renamed to avoid > possible collisions >=20 > 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=3D"$pkgname-$pkgver.tar.gz::https://github.com/vaporup/${pkgname}/ar= chive/v${pkgver}.tar.gz" add builddir variable add subpackages I'm attached file with changes to your APKBUILD. --=20 > APKBUILD is attached >=20 > Thanks in advance >=20 > Cheers, >=20 > Sven >=20 >=20 > # Maintainer: Sven Wick >=20 > pkgname=3Dssh-tools > pkgver=3D1.5 > pkgrel=3D1 > pkgdesc=3D"collection of various tools using ssh" > arch=3D"noarch" > url=3D"https://github.com/vaporup/ssh-tools/" > license=3D"GPL" > depends=3D"openssh-client colordiff" > makedepends=3D"help2man" > source=3D"https://github.com/vaporup/${pkgname}/archive/v${pkgver}.tar.gz" > md5sums=3D"448bcf5c8c86bcef0338142d0cc477c0 v${pkgver}.tar.gz" =20 > build() { > cd "$pkgname-$pkgver" >=20 > mkdir -p "man" >=20 > 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 t= o" -S SSH-TOOLS -N --version-string " " -o man/ssh-version.1 ./ssh-vers= ion > 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-host= keys >=20 > } >=20 > package() { > cd "$pkgname-$pkgver" >=20 > mkdir -p $pkgdir/usr/share/man/man1/ > cp man/* $pkgdir/usr/share/man/man1/ >=20 > mkdir -p $pkgdir/usr/bin/ > cp ssh-* $pkgdir/usr/bin/ > } --T4sUOijqQbZv57TR Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=APKBUILD # Maintainer: Sven Wick 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" subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/vaporup/${pkgname}/archive/v${pkgver}.tar.gz" builddir="$srcdir"/${pkgname}-${pkgver} build() { cd "$builddir" 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 "$builddir" mkdir -p $pkgdir/usr/share/man/man1/ cp man/* $pkgdir/usr/share/man/man1/ mkdir -p $pkgdir/usr/bin/ cp ssh-* $pkgdir/usr/bin/ } sha512sums="70fd63661d33c79037a9bd62457a583452f5763a32467d0d1058638afe2a9e5e033917ca0d1e627a4db69bc7451097a36a57a763d5bc436f224ecf27eb759e19 ssh-tools-1.5.tar.gz" --T4sUOijqQbZv57TR-- --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---