From owner-freebsd-ports@freebsd.org Mon Feb 27 16:30:12 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 EE4D5CF085D for ; Mon, 27 Feb 2017 16:30:12 +0000 (UTC) (envelope-from adamw@adamw.org) Received: from anoxia.adamw.org (anoxia.adamw.org [104.225.8.149]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "anoxia.adamw.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AFF8D267 for ; Mon, 27 Feb 2017 16:30:12 +0000 (UTC) (envelope-from adamw@adamw.org) Received: by anoxia.adamw.org (OpenSMTPD) with ESMTPSA id a7227db2 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Mon, 27 Feb 2017 09:30:05 -0700 (MST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Subject: Re: [SOLVED] How to create a port only for specific FreeBSD releases From: Adam Weinberger In-Reply-To: Date: Mon, 27 Feb 2017 09:30:03 -0700 Cc: "freebsd-ports@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <605504AE-19B6-4269-A8A0-7BECEDE9975C@adamw.org> References: To: Andrew Hotlab X-Mailer: Apple Mail (2.3259) 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 16:30:13 -0000 > On 27 Feb, 2017, at 9:07, Andrew Hotlab = wrote: >=20 >> From: Andrew Hotlab >> Sent: Monday, February 27, 2017 3:37 PM >> To: freebsd-ports@freebsd.org >> Subject: How to create a port only for specific FreeBSD releases > =20 >> 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: >> = https://www.freebsd.org/doc/en/books/porters-handbook/porting-versions.htm= l >=20 >=20 > Sorry, just found by myself. I included these lines before the = do-install section: >=20 > .include > .if ${OSVERSION} < 1000100 > IGNORE=3D runs only on FreeBSD 10.0 and newer > .endif It's really not needed at all. Nothing below 10.3 is supported, and the = ports system will complain already. Please don't include that block in = your port. # Adam --=20 Adam Weinberger adamw@adamw.org https://www.adamw.org