X-Original-To: alpine-devel@lists.alpinelinux.org Received: from mail.wilcox-tech.com (mail.wilcox-tech.com [45.32.83.9]) by lists.alpinelinux.org (Postfix) with ESMTP id 28C91F84D39 for ; Thu, 7 Mar 2019 21:21:07 +0000 (UTC) Received: (qmail 3041 invoked from network); 7 Mar 2019 21:20:59 -0000 Received: from localhost (HELO ?IPv6:2600:380:9969:8878:b481:a137:676c:cf32?) (AWilcox@Wilcox-Tech.com@127.0.0.1) by localhost with ESMTPA; 7 Mar 2019 21:20:59 -0000 Content-Type: multipart/alternative; boundary=Apple-Mail-2CDECA85-3D1A-4FEA-B749-2DCC62442A9B X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: Mime-Version: 1.0 (1.0) Subject: Re: [alpine-devel] How to offer different configurations of a package From: "A. Wilcox" X-Mailer: iPhone Mail (15E302) In-Reply-To: Date: Thu, 7 Mar 2019 15:20:51 -0600 Cc: alpine-devel@lists.alpinelinux.org Content-Transfer-Encoding: 7bit Message-Id: References: To: C H --Apple-Mail-2CDECA85-3D1A-4FEA-B749-2DCC62442A9B Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Mar 7, 2019, at 6:21 AM, C H wrote: >=20 > All- >=20 > I'm looking for some guidance on how best to define an APKBUILD file for a= n already-supported package that I need modified. >=20 > Recent versions of ISC DHCP (package 'dhcp') support an LDAP-based back-en= d, though it's disabled by default. Enablement requires adding a pair of dep= endencies and two additional arguments to the configure script; everything e= lse remains unchanged. Easy enough.=20 >=20 > If I were to offer my changes back to the community, how should this flavo= r of the package be named? It seems less than ideal to have two very similar= packages in the tree; is there a convenient restructuring within the APKBUI= LD file that would allow the two forms (with and without LDAP support)? If n= ot, so much within the build system seems to depend on pkgname -- of which a= 'dhcp' is defined. I'm not sure how best to proceed in this case. I'm also n= ot fully convinced that changing the existing package is the right thing to d= o; I suspect there are folks who don't want LDAP support. >=20 > If there are examples among existing packages I could use as templates I'm= happy to replicate. >=20 > As an aside, this issue may repeat when I reach Bind; quick checks suggest= I'll want to make configuration changes there too.. >=20 > Thanks! >=20 I think OpenSSH has what you want, a PAM and non PAM variant. -- A. Wilcox (Sent from my iPhone - not signed) Project Lead, Ad=C3=A9lie Linux https://adelielinux.org= --Apple-Mail-2CDECA85-3D1A-4FEA-B749-2DCC62442A9B Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Mar 7, 2019, at 6:21 AM, C H <flydinslip@gmail.com> wrote:

All-

I'm looking for so= me guidance on how best to define an APKBUILD file for an already-supported p= ackage that I need modified.

Recent versions of ISC DHCP (package 'dhcp') support an LDAP-based back-= end, though it's disabled by default. Enablement requires adding a pair of d= ependencies and two additional arguments to the configure script; everything= else remains unchanged. Easy enough. 

If I were to offer my changes back to the community, how s= hould this flavor of the package be named? It seems less than ideal to have t= wo very similar packages in the tree; is there a convenient restructuring wi= thin the APKBUILD file that would allow the two forms (with and without LDAP= support)? If not, so much within the build system seems to depend on pkgnam= e -- of which a 'dhcp' is defined. I'm not sure how best to proceed in this c= ase. I'm also not fully convinced that changing the existing package is the r= ight thing to do; I suspect there are folks who don't want LDAP support.

If there are examples among e= xisting packages I could use as templates I'm happy to replicate.

As an aside, this issue may repeat w= hen I reach Bind; quick checks suggest I'll want to make configuration chang= es there too..

Thanks!



I think OpenSSH has what you want, a PAM and non PAM= variant.

--
= A. Wilcox (Sent from my iPhone - not signed)
Pr= oject Lead, Ad=C3=A9lie Linux
= --Apple-Mail-2CDECA85-3D1A-4FEA-B749-2DCC62442A9B-- --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---