X-Original-To: alpine-aports@mail.alpinelinux.org Delivered-To: alpine-aports@mail.alpinelinux.org Received: from mail.alpinelinux.org (dallas-a1.alpinelinux.org [127.0.0.1]) by mail.alpinelinux.org (Postfix) with ESMTP id 2EBAADC5B4A for ; Wed, 20 Jan 2016 11:15:33 +0000 (UTC) Received: from mail-wm0-f53.google.com (mail-wm0-f53.google.com [74.125.82.53]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 9E43EDC1570 for ; Wed, 20 Jan 2016 11:15:32 +0000 (UTC) Received: by mail-wm0-f53.google.com with SMTP id r129so126559334wmr.0 for ; Wed, 20 Jan 2016 03:15:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=+RyzligE3vayeCquk4hTR6hWuQBkOMk/M9yLvWrVyGI=; b=vvp9iuxn2vkUPAvNSigmy6XvGHtkygdShMyrzjHPc4l+x37dXDa3rGqivwGMKJHsfM Gnphi2MD8dIET27d5DG31y6sQcDo4m1Z48tLBwFImubOJpeDx9kp5HVOvBbczBkKvCH2 KJY71cwEfX1JaAHrQsO3WB4iVZr97eJzovJDa2tNKuGiSo1QNPxNknQ1V5pH8iUXV+MN FX8n/AT/IubtEnvjQtiKKacT3ojKcY3dSbMi2ZTjPCpyheQR3vvz7+Cj+13zA+Nch84b TBet9XFh2kqLHxMAjLlyBy2lyO48+ElT7hv1XK+FJ4rPnem7JFyguHLxJf+B+e21l2lh 6nVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=+RyzligE3vayeCquk4hTR6hWuQBkOMk/M9yLvWrVyGI=; b=dqa8ebN4m647L8wDJAJWm+znkAu2XwLJ0bQ5APCFm+UHSg1wSdmFBgplFhAzlqABpI MmyH9Mg76fag4HTCw4/e7cgiJTJOEwxPUPoQi0efJzldhhLT7mf6yHxdwf3Cvq8TBglK 4ckNtyBob3vGKQYSVgFwx6Fy2GxHrygh3kLHRd0tfqyoIBK/yjRgCWnz3asapQ4Hx8Qz j/MiBH+TbVg59wYA9pRV17x9VUP2il7bjbGFsSJRpZLtMdsR51gqYdgGvQ6ioabgfH11 4H/oGHgC4/TYNEmeB9i6QjmQwJBxYV5iC/Rl10+xzC/rrweloEyYtGGT80d0rWG/7DI2 +OfA== X-Gm-Message-State: AG10YOSvQCgPpqVVTPnHDtVZgf1Djn5CB2pat/bQSyt9it01kDZRQxbnufHugCJbDVcyzkfR3AoE6kXOSLnXjg== X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 X-Received: by 10.28.53.193 with SMTP id c184mr3315299wma.4.1453288530980; Wed, 20 Jan 2016 03:15:30 -0800 (PST) Received: by 10.28.6.193 with HTTP; Wed, 20 Jan 2016 03:15:30 -0800 (PST) In-Reply-To: <20160119141101.5af72257@vostro> References: <1450097413-13305-1-git-send-email-valery.kartel@gmail.com> <20160119141101.5af72257@vostro> Date: Wed, 20 Jan 2016 13:15:30 +0200 Message-ID: Subject: Re: [alpine-aports] main/libspf2: 'spfquery' binary moved to -query subpackage, other binary examples are removed From: Valery Kartel To: Timo Teras Cc: alpine-aports@lists.alpinelinux.org Content-Type: multipart/alternative; boundary=001a1140da84a53f860529c21a21 X-Virus-Scanned: ClamAV using ClamSMTP --001a1140da84a53f860529c21a21 Content-Type: text/plain; charset=UTF-8 It does not compile with --disable-static, because *_static binaties are compiled automatically. So we just delete /usr/bin folder after moving spfquery to subpackage. And about spfd: it's an example code, A brief description from spfd.c: * This program is really a badly smashed together copy of spfquery.c and * the public domain "helloserver" example daemon. * * Implements a skeleton of a single process iterative server * daemon. Patch remained unchanged, so you can take it as is. 2016-01-19 14:11 GMT+02:00 Timo Teras : > On Mon, 14 Dec 2015 14:50:13 +0200 > Valery Kartel wrote: > > > --- > > main/libspf2/APKBUILD | 13 +++++++++++-- > > 1 file changed, 11 insertions(+), 2 deletions(-) > > > > diff --git a/main/libspf2/APKBUILD b/main/libspf2/APKBUILD > > index 5484e46..103400e 100644 > > --- a/main/libspf2/APKBUILD > > +++ b/main/libspf2/APKBUILD > > @@ -1,12 +1,13 @@ > > +# Contributor: Valery Kartel > > # Maintainer: Natanael Copa > > pkgname=libspf2 > > pkgver=1.2.10 > > -pkgrel=1 > > +pkgrel=2 > > pkgdesc="Sender Policy Framework library, a part of the SPF/SRS > > protocol pair." url="http://www.libspf2.org" > > arch="all" > > license="LGPL2.1 BSD-2" > > -subpackages="$pkgname-dev" > > +subpackages="$pkgname-dev $pkgname-query" > > makedepends="autoconf automake libtool" > > depends= > > source="http://www.libspf2.org/spf/libspf2-$pkgver.tar.gz > > @@ -44,6 +45,14 @@ package() { > > cd "$_builddir" > > make DESTDIR="$pkgdir" install || return 1 > > } > > + > > +query() { > > + pkgdesc="SPF command-line utility" > > + mkdir -p "$subpkgdir"/usr/bin > > + mv "$pkgdir"/usr/bin/spfquery "$subpkgdir"/usr/bin/ > > + rm -fr "$pkgdir"/usr/bin > > How about spfd? I think that should be kept in the base pkg. The others > can go. Perhaps also use --disable-static to configure to prevent the > static binary building? > > Otherwise it looks ok. Care to resend with the above changes? > > Thanks, > Timo > > > +} > > + > > md5sums="7bb9937d0705649eaa8646de66dc3562 libspf2-1.2.10.tar.gz > > 24b77cb74901d56de89b24ef10b46b85 0001-provide-dn_skipname.patch > > 6dd2d5f33c5f1a5b7c14eec4c71767cd libspf2-libreplace-fix.patch > > --001a1140da84a53f860529c21a21 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
It does not compile with --disable-static, because *_= static binaties are compiled automatically. So we just delete /usr/bin fold= er after moving spfquery to subpackage.

And about spfd: it'= ;s an example code, A brief description from spfd.c:
* This program is r= eally a badly smashed together copy of spfquery.c and
=C2=A0* the public= domain "helloserver" example daemon.
=C2=A0*
=C2=A0* Imple= ments a skeleton of a single process iterative server
=C2=A0* daemon.
Patch<= /span> remained unchanged, so you = can take it as is.

2016-01-19 14:11 GMT+02:00= Timo Teras <timo.teras@iki.fi>:
On Mon, 14 Dec 2015 14:50:13= +0200
Valery Kartel <valery.kartel@= gmail.com> wrote:

> ---
>=C2=A0 main/libspf2/APKBUILD | 13 +++++++++++--
>=C2=A0 1 file changed, 11 insertions(+), 2 deletions(-)
>
> diff --git a/main/libspf2/APKBUILD b/main/libspf2/APKBUILD
> index 5484e46..103400e 100644
> --- a/main/libspf2/APKBUILD
> +++ b/main/libspf2/APKBUILD
> @@ -1,12 +1,13 @@
> +# Contributor: Valery Kartel <valery.kartel@gmail.com>
>=C2=A0 # Maintainer: Natanael Copa <ncopa@alpinelinux.org>
>=C2=A0 pkgname=3Dlibspf2
>=C2=A0 pkgver=3D1.2.10
> -pkgrel=3D1
> +pkgrel=3D2
>=C2=A0 pkgdesc=3D"Sender Policy Framework library, a part of the S= PF/SRS
> protocol pair." url=3D"http://www.libspf2.org"
>=C2=A0 arch=3D"all"
>=C2=A0 license=3D"LGPL2.1 BSD-2"
> -subpackages=3D"$pkgname-dev"
> +subpackages=3D"$pkgname-dev $pkgname-query"
>=C2=A0 makedepends=3D"autoconf automake libtool"
>=C2=A0 depends=3D
>=C2=A0 source=3D"http://www.libspf2.org/sp= f/libspf2-$pkgver.tar.gz
> @@ -44,6 +45,14 @@ package() {
>=C2=A0 =C2=A0 =C2=A0 =C2=A0cd "$_builddir"
>=C2=A0 =C2=A0 =C2=A0 =C2=A0make DESTDIR=3D"$pkgdir" install |= | return 1
>=C2=A0 }
> +
> +query() {
> +=C2=A0 =C2=A0 =C2=A0pkgdesc=3D"SPF command-line utility" > +=C2=A0 =C2=A0 =C2=A0mkdir -p "$subpkgdir"/usr/bin
> +=C2=A0 =C2=A0 =C2=A0mv "$pkgdir"/usr/bin/spfquery "$su= bpkgdir"/usr/bin/
> +=C2=A0 =C2=A0 =C2=A0rm -fr "$pkgdir"/usr/bin

How about spfd? I think that should be kept in the base pkg. Th= e others
can go. Perhaps also use --disable-static to configure to prevent the
static binary building?

Otherwise it looks ok. Care to resend with the above changes?

Thanks,
Timo

> +}
> +
>=C2=A0 md5sums=3D"7bb9937d0705649eaa8646de66dc3562=C2=A0 libspf2-1= .2.10.tar.gz
>=C2=A0 24b77cb74901d56de89b24ef10b46b85=C2=A0 0001-provide-dn_skipname.= patch
>=C2=A0 6dd2d5f33c5f1a5b7c14eec4c71767cd=C2=A0 libspf2-libreplace-fix.pa= tch


--001a1140da84a53f860529c21a21-- --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---