From owner-freebsd-ports@freebsd.org Mon Feb 27 14:55:02 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 382B2CEF7B1 for ; Mon, 27 Feb 2017 14:55:02 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [IPv6:2001:8b0:151:1:c4ea:bd49:619b:6cb3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.infracaninophile.co.uk", Issuer "infracaninophile.co.uk" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id BEA6D910 for ; Mon, 27 Feb 2017 14:55:01 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from zero-gravitas.local (unknown [85.199.232.226]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: m.seaman@infracaninophile.co.uk) by smtp.infracaninophile.co.uk (Postfix) with ESMTPSA id 26228D6A4 for ; Mon, 27 Feb 2017 14:54:49 +0000 (UTC) Authentication-Results: smtp.infracaninophile.co.uk; dmarc=none header.from=FreeBSD.org Authentication-Results: smtp.infracaninophile.co.uk/26228D6A4; dkim=none; dkim-atps=neutral Subject: Re: How to create a port only for specific FreeBSD releases To: freebsd-ports@freebsd.org References: From: Matthew Seaman Message-ID: <7e0c1388-247f-116e-c005-562c77aafd99@FreeBSD.org> Date: Mon, 27 Feb 2017 14:54:42 +0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="B1anPiNxABqkLeD9K9KQVGJ4rGPVjmk0V" X-Spam-Status: No, score=0.9 required=5.0 tests=BAYES_00,RCVD_IN_RP_RNBL, RDNS_NONE,SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on smtp.infracaninophile.co.uk X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Feb 2017 14:55:02 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --B1anPiNxABqkLeD9K9KQVGJ4rGPVjmk0V Content-Type: multipart/mixed; boundary="KCujoPKTR4pwwXIjo9UHHgOptDmsDSPdm"; protected-headers="v1" From: Matthew Seaman To: freebsd-ports@freebsd.org Message-ID: <7e0c1388-247f-116e-c005-562c77aafd99@FreeBSD.org> Subject: Re: How to create a port only for specific FreeBSD releases References: In-Reply-To: --KCujoPKTR4pwwXIjo9UHHgOptDmsDSPdm Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 2017/02/27 14:37, Andrew Hotlab wrote: > Hi to all, I'm trying to make a port which installs only a couple of > simple scripts (thus NO_BUILD, NO_ARCH, and void MASTER_SITES and > DISTFILES...). >=20 > Since these scripts are designed to run on FreeBSD 10.0 and newer, > I'd like to know if there is a way to prevent the port from installing = on > older FreeBSD releases. In the Porter's Handbook I found this paragraph= , > but it seems regarding only ported app's source code: >=20 > https://www.freebsd.org/doc/en/books/porters-handbook/porting-versions.= html Well, given that the earliest supported version in ports is now 10.3-RELEASE, this problem appears to have fixed itself for your purposes= =2E In general, you can test against ${OSVERSION} in your port's Makefile to detect what OS version the port is being built on, and mark the port as broken where the OS version is not suitable. Note however that binary packages are built on the oldest supported version of the major branch, so by marking the port broken for the OSV, you will prevent binary packages being available for that entire major branch. It's best to apply this sort of brokenness determination at the level of the major version number, rather than anything finer grained. Cheers, Matthew --KCujoPKTR4pwwXIjo9UHHgOptDmsDSPdm-- --B1anPiNxABqkLeD9K9KQVGJ4rGPVjmk0V Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQJ8BAEBCgBmBQJYtD24XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQxOUYxNTRFQ0JGMTEyRTUwNTQ0RTNGMzAw MDUxM0YxMEUwQTlFNEU3AAoJEABRPxDgqeTn2rMP/0wAnAoG/ca6E/tA5uCfW0wE it/VmkQx/1U47AYFZZGLwKS2jqz10K3zUYiB67USiGnOsh4wE+IxLBHLNwZi5qWx ExAOaX+H5FtZASSzkdF3O+hx6mokyqBxEyipl45uyG2ymCP10d054C5I4qTlUaFH a9FFP7m31sabiIRoSb8oezQZjhNOUc3fcVe6kgLgPB5onPsk1Wtt3tMsbqOtuZFl +0YOEiEg2DGIx5xstLYoN64qeYBjWp2tcV9UK8Qu1GGzDTLrkGnRdxMlVQAhvw4D rl7OQbfrkMsdpqnsFBCmRvLY+DNrgLIy8VpnnJpYQr6hRSfiwyKI+tupvTptSuSj Uu+NAVfiW0hvvOWt/KIdGEh1I/yfurSttwwq7n2XCahim1nw5GA5BUQHQa2al+Ek AonMCocmncpTifXeJwVjsLMFDVWpmNXQwITRRMxaReuVMeSo8AdNBsVjlGuZl5xw 8uf1NTMXlMgQl+tHVlbHq1VL153SVkUXU2+4T+TcX5vULKYf2HVWr+kyf0XLunre fWIz/+05BL/0SvswzfdSfbzRVJ80yOE32lokQsr0xx1BSJsfZzvrrdpnlk3KgabD H4Iq6sTqZ39pzGd3/cW+DiSZg++ttXY1evM5EGJB4gjFo7/R/kadLpHIeUsxbwy2 HB/jAq4JnwwG+5hnQmup =WcPb -----END PGP SIGNATURE----- --B1anPiNxABqkLeD9K9KQVGJ4rGPVjmk0V--