From owner-freebsd-ports@freebsd.org Mon Feb 27 16:43:26 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 A1EC4CF0CB3 for ; Mon, 27 Feb 2017 16:43:26 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: from mail-io0-x243.google.com (mail-io0-x243.google.com [IPv6:2607:f8b0:4001:c06::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 67D77E35 for ; Mon, 27 Feb 2017 16:43:26 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: by mail-io0-x243.google.com with SMTP id w10so6343765iod.3 for ; Mon, 27 Feb 2017 08:43:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-transfer-encoding; bh=yVM1HMWnVn68+nkEhTXf9ymNQR0W5VaI4qkIrfJgCAY=; b=JwiF9DdHPGUslUSnB4Rfh9jnigPcgiThkZeOIKjW+L9NGkkQMQzxI6VxkBMHh2pngB sReYvSz9prktljs4qg6d6SrRxQsm3LWgJ3aiuV3enhbEzhdjB8SvjUQCDsDKYkmU9v6B Gmyr+vzf1TLFmMEBJ33DK5pgo2vs3EoOHPfeV2vmX140eJS/FYzeS1lHWnxNCv+dpKxL L0NZui9Iy2wunOejqE5ef+f16XMvt8Ha1Btn3F0PGW6RLfex0mJGVlqf2TEy3y4e/qfE xW8qZXeWyBRGKAy+wraN8Gt/3fiQ41pY0nvI7ZrLACv3X63be5RrvKoI+Z79g/cn/mFn Cn8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-transfer-encoding; bh=yVM1HMWnVn68+nkEhTXf9ymNQR0W5VaI4qkIrfJgCAY=; b=qvGPVLKHt9hB3XP7q7cElMYc0i7c0SSrkxCM4Z3QvIBgCq50bln8Updg0FBu7BuAFI z7FNH0XUN+p1dqOGgpKien69opiVwnsFqeplMxVvap0c7rr8S4E5CfSVx9NphAGdBcGi qbALZ1n54hiiBj8eAybKf5Q0AV1hvmwgWJr8rjh5VUJyTNeBpSnK9FVH4CoVETUHM0pq EnEvaEWiBNCxX526k7JfWZDmTM5tLHM0xjOzgdPkCtGLah4i7AIaY7xkTsArjUG5qKak dmMbIO9NdFFXMplwopfVix2IdnbPRiN2U/dEQIi0vjf+OJeQeiywFLzOZrVtGHPCLurF 3rHA== X-Gm-Message-State: AMke39mGJgJeadJXjAsm2Vi1EtnjFcX93qFNbKIsJ5KCPMUuybBrHx8oTZepYt/C8CvW9w== X-Received: by 10.107.174.220 with SMTP id n89mr11293619ioo.166.1488213805883; Mon, 27 Feb 2017 08:43:25 -0800 (PST) Received: from [10.0.10.3] (cpe-24-165-207-226.neo.res.rr.com. [24.165.207.226]) by smtp.googlemail.com with ESMTPSA id u206sm4499660itc.24.2017.02.27.08.43.19 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 27 Feb 2017 08:43:23 -0800 (PST) Message-ID: <58B45732.8060001@gmail.com> Date: Mon, 27 Feb 2017 11:43:30 -0500 From: Ernie Luzar User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Adam Weinberger CC: Andrew Hotlab , "freebsd-ports@freebsd.org" Subject: Re: [SOLVED] How to create a port only for specific FreeBSD releases References: <605504AE-19B6-4269-A8A0-7BECEDE9975C@adamw.org> In-Reply-To: <605504AE-19B6-4269-A8A0-7BECEDE9975C@adamw.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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:43:26 -0000 Adam Weinberger wrote: >> On 27 Feb, 2017, at 9:07, Andrew Hotlab wrote: >> >>> 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 >> >>> 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...). >>> >>> 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.html >> >> Sorry, just found by myself. I included these lines before the do-install section: >> >> .include >> .if ${OSVERSION} < 1000100 >> IGNORE= 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 > > Thats not true. I have port version just for 9.x and even today I still see the source file the port fetches still being downloaded. It has IGNORE_FreeBSD_10= and IGNORE_FreeBSD_11= in it's Makefile. Best you have IGNORE_FreeBSD_9= in your Makefile to be sure you get what you want.