X-Original-To: alpine-devel@lists.alpinelinux.org Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) by lists.alpinelinux.org (Postfix) with ESMTP id A776EF84D0A for ; Thu, 7 Mar 2019 12:21:40 +0000 (UTC) Received: by mail-wr1-f50.google.com with SMTP id i12so17172230wrw.0 for ; Thu, 07 Mar 2019 04:21:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=cPQitBf6tH/bIlscKgedrXE8gtmHSOftD3vb/LfEeDo=; b=mHkAayQ75yskLuLY57R1QcamyEENfEHbVTWHQZzX9NO3IQur5A2xGuReLU+otFNgZH F8+HaXmTZM10p30P+erQ9ECyVUOSPOcyqRFZImwiwbzfSl+dkkrIY2r+Dwgj1vQum5bq /OnM8fKy1QOcqvkA4lxkjCYOiXqeDwgOAilYOy9YlJcSwrsiibaIVm3CQLNcF7QTTgBO dVMTiMZZWeUHrsYQmI9KdmnIeiUmHVRN9LC+3pTKDKwWv5qkL8CpoH7xtXTCJOR+ziPG 8s0yWxpzbS5VuEVAL1vB/27RLh2Tpyxc5QkrzPHZaMbhJqxBW+Yz0GJiXAf2lR8Zfvn3 0Gbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=cPQitBf6tH/bIlscKgedrXE8gtmHSOftD3vb/LfEeDo=; b=quPuW0F0iIp8YicsI9lG0nsQwL23wJOgS9uUVKK0nHCZ//A/r2wNG3zb3oPLJLUg/z YbtdtiOr74p6Z80Ba7Xg54Qd6dxr7M1xYoY8Qro+5ybmKxZzI8v9pmZ2+V8qjMVypVro sMh3w23tiKimFt0o63prdwr5INEX/gJwK8Wr/ab9IszVIqoaMnP5yF1izVYieq2adsLZ KrXFgzUDzpN1qSrzqhpjNoa4Wn29I6Xpo7RFSk1xTQL+Ol1J0bYNs4p9erZz04XOQiE2 Ab9FTUbSOCwR9ZjHSSxswHMtUnmPXd/4jKdgYuXzr5pwIl0M1Aqfx8sajaIhHsm8HMKn lhIA== X-Gm-Message-State: APjAAAVuKL/HKm+YyKTQIBTZHl4hO3doebWIJxhwU43+V7+AF7Gv27v7 FPAb9pas7E/peJDDXWSw2xJse9i3UQUqYPtwn+iVsQ== X-Google-Smtp-Source: APXvYqxURd4IDckBMz72rMHZpuT/7uLnwy9r5ET1sXnnVCalYCAj9VhV4fqrSb0Rac03mWcdpnDUH4H4zY57vYhlJsY= X-Received: by 2002:adf:fd01:: with SMTP id e1mr1868217wrr.204.1551961299625; Thu, 07 Mar 2019 04:21:39 -0800 (PST) X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 From: C H Date: Thu, 7 Mar 2019 07:21:27 -0500 Message-ID: Subject: [alpine-devel] How to offer different configurations of a package To: alpine-devel@lists.alpinelinux.org Content-Type: multipart/alternative; boundary="000000000000f82af40583802578" --000000000000f82af40583802578 Content-Type: text/plain; charset="UTF-8" All- I'm looking for some guidance on how best to define an APKBUILD file for an already-supported package 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 dependencies 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 should this flavor 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 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 pkgname -- of which a 'dhcp' is defined. I'm not sure how best to proceed in this case. I'm also not fully convinced that changing the existing package is the right thing to do; I suspect there are folks who don't want LDAP support. If there are examples among existing packages I could use as templates I'm happy to replicate. As an aside, this issue may repeat when I reach Bind; quick checks suggest I'll want to make configuration changes there too.. Thanks! --000000000000f82af40583802578 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
All-

<= div dir=3D"auto">I'm looking for some guidance on how best to define an= APKBUILD file for an already-supported package that I need modified.
=

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

If I were to offer my changes back to the community, how should this flav= or of the package be named? It seems less than ideal to have two very simil= ar packages in the tree; is there a convenient restructuring within the APK= BUILD file that would allow the two forms (with and without LDAP support)? = If not, so much within the build system seems to depend on pkgname -- of wh= ich a 'dhcp' is defined. I'm not sure how best to proceed in th= is case. I'm also not fully convinced that changing the existing packag= e is the right thing to do; I suspect there are folks who don't want LD= AP support.

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

As an aside,= this issue may repeat when I reach Bind; quick checks suggest I'll wan= t to make configuration changes there too..

Thanks!

--000000000000f82af40583802578-- --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---