From owner-freebsd-ports@freebsd.org Thu May 9 19:55:58 2019 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0D418158C899 for ; Thu, 9 May 2019 19:55:58 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: from mail-vk1-xa41.google.com (mail-vk1-xa41.google.com [IPv6:2607:f8b0:4864:20::a41]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 57BC077E91 for ; Thu, 9 May 2019 19:55:54 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: by mail-vk1-xa41.google.com with SMTP id q189so892063vkq.11 for ; Thu, 09 May 2019 12:55:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chen-org-nz.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=HxiSuext8AseYbNcwFpisvRhOAhesXoImFfxjHKbO4k=; b=ZA+G5kz1e8qVPQrYuvhEv0Mb7PQc1LEVFjMPcKd0CrLPNiquwuYT2JBZJD+D+diKR3 i56/4+nFLgshCgLYZ3A22SZuGu4XBWKFhKIL/F+nRjs+qZ7d6stbh6SH3WpnnH1TckR0 fLZmag5U9W4EqAWYQRSrh6bSUSHJMDMxExUtuW3PDvA8fJFM/FSoXLzTo/3FyHvGgC+3 xzfLxeWJ1usT1lbAMrnshaPTUyEgrL/q5XsiGvlF2JaPcenca0DbLVT9ipzAhcqMalHx Ixb15EQQDLq8Ge/fKMGkov7LpsQre/Ts7FdnZIezllOe9tZC0KqplN09dtBC+pjUgbU5 Pa4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=HxiSuext8AseYbNcwFpisvRhOAhesXoImFfxjHKbO4k=; b=ttckpzZSuMD7s7MR/Wyq8UmpSOjTl78o8EFXvqqhqgq2BkayJRTuqMewxe97cZ4ibB UmvCswtVCbEQnytEjbqpWGnW0JzhH7TCMPyd8Qwt7ZxScEimcCVFGXeph7WTRQ+6X8QL mpt+Uv6WdMCm455oVqFVKOXCvj9TnMRqe+FkxrxupNsSQHRJ4lYTuFjRe/j4UUR+mvtP H3oc3u3xh5uE0wmTzV/gjrrOIQg9xFdNpeyddyVMQWOA5q4AdACYsrBygT+zcvfOdcNm iSSKVfnXMyCfM5+lTZSe83Y9shrl3j5a/1WRI4syOpaDRvXwbHJfLXFB8DPyXl6XoFou KiUQ== X-Gm-Message-State: APjAAAU4czOxBqKMQA0MV+xxBUNWuBYy2gWNcrS6jeagiTUF5HMRqguF ukwbWVEUn4A4ejkqlWIKreGHsUyI6Ces1Pu/ftvCR/ge X-Google-Smtp-Source: APXvYqwrqPQ3OYPTMuxuu2D2CCmros5d+WG1tVu2DLaJKA6W3MpLC8dBIvbm2vmnheBcAl680my5Hbuqci0r+Qn7qgE= X-Received: by 2002:a1f:8152:: with SMTP id c79mr2765491vkd.61.1557431753514; Thu, 09 May 2019 12:55:53 -0700 (PDT) MIME-Version: 1.0 References: <004401d5069f$bfd769f0$3f863dd0$@gmail.com> In-Reply-To: <004401d5069f$bfd769f0$3f863dd0$@gmail.com> From: Jonathan Chen Date: Fri, 10 May 2019 07:55:37 +1200 Message-ID: Subject: Re: Conditionally install the correct binary To: driesm.michiels@gmail.com Cc: freebsd-ports@freebsd.org Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 57BC077E91 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=chen-org-nz.20150623.gappssmtp.com header.s=20150623 header.b=ZA+G5kz1 X-Spamd-Result: default: False [-2.23 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.73)[-0.726,0]; R_DKIM_ALLOW(-0.20)[chen-org-nz.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.17)[0.173,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ports@freebsd.org]; TO_DN_NONE(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[chen.org.nz]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[chen-org-nz.20150623.gappssmtp.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[1.4.a.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; MX_GOOD(-0.01)[alt1.aspmx.l.google.com]; R_SPF_NA(0.00)[]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(-0.37)[ip: (3.71), ipnet: 2607:f8b0::/32(-3.24), asn: 15169(-2.27), country: US(-0.06)] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 May 2019 19:55:58 -0000 On Fri, 10 May 2019 at 07:47, wrote: [...] > What is the easiest way to conditionally fetch and install a binary > depending on FreeBSD OS version. x11-fonts/fantasque-sans-mono uses conditional fetching depending on OPTIONS. The distinfo contains checksums for all the tarballs, but the port only fetches tarballs matching the selection options. You can adapt this strategy to depend on OSVERSION. Cheers. -- Jonathan Chen