From owner-freebsd-ports@freebsd.org Mon Feb 27 17:05:05 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 338A0CF0430 for ; Mon, 27 Feb 2017 17:05:05 +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 CB0A21FC for ; Mon, 27 Feb 2017 17:05:04 +0000 (UTC) (envelope-from adamw@adamw.org) Received: by anoxia.adamw.org (OpenSMTPD) with ESMTPSA id ccd807fc TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Mon, 27 Feb 2017 10:05:02 -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 10:05:01 -0700 Cc: Ernie Luzar , "freebsd-ports@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: References: <605504AE-19B6-4269-A8A0-7BECEDE9975C@adamw.org> <58B45732.8060001@gmail.com> 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 17:05:05 -0000 > On 27 Feb, 2017, at 10:00, Andrew Hotlab = wrote: >=20 >> From: Ernie Luzar >> Sent: Monday, February 27, 2017 5:43 PM >> To: Adam Weinberger >> Cc: Andrew Hotlab; freebsd-ports@freebsd.org >> Subject: Re: [SOLVED] How to create a port only for specific FreeBSD = releases >>=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 >>>> 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 >>>=20 >>> 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. >>>=20 >>> # Adam >>>=20 >>>=20 >> Thats not true. I have port version just for 9.x and even today I = still=20 >> see the source file the port fetches still being downloaded. >>=20 >> It has >> IGNORE_FreeBSD_10=3D and IGNORE_FreeBSD_11=3D in it's Makefile. >> Best you have IGNORE_FreeBSD_9=3D in your Makefile to be sure you = get=20 >> what you want. >=20 > Actually, it seems that Matthew and Adam are right, but I'm not able = to understand if > it's a warn or a block action: > https://svnweb.freebsd.org/ports?view=3Drevision&revision=3D431746 It's a block, but it's overridable. # Adam --=20 Adam Weinberger adamw@adamw.org https://www.adamw.org