Re: [SOLVED] How to create a port only for specific FreeBSD releases

2017-02-27 Thread Chris H
On Mon, 27 Feb 2017 10:05:01 -0700 Adam Weinberger  wrote

> > On 27 Feb, 2017, at 10:00, Andrew Hotlab  wrote:
> > 
> >> 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 
> > 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.
> > 
> > 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=revision=431746
> 
> It's a block, but it's overridable.

A big thanks, for not making it /terminal/!

> 
> # Adam
> 

--chris


___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: [SOLVED] How to create a port only for specific FreeBSD releases

2017-02-27 Thread Andrew Hotlab
> From: Adam Weinberger 
> Sent: Monday, February 27, 2017 6:05 PM
> To: Andrew Hotlab
> Cc: Ernie Luzar; freebsd-ports@freebsd.org
> Subject: Re: [SOLVED] How to create a port only for specific FreeBSD releases
> 
>> On 27 Feb, 2017, at 10:00, Andrew Hotlab  wrote:
>> 
>>> 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
>>> 
>> 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.
>> 
>> 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=revision=431746
> 
> It's a block, but it's overridable.
> 

Ok, I guess the better way is to let bsd.port.mk do the job for me! :)

Thanks to all you guys!
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: [SOLVED] How to create a port only for specific FreeBSD releases

2017-02-27 Thread Adam Weinberger
> On 27 Feb, 2017, at 10:00, Andrew Hotlab  wrote:
> 
>> 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
>> 
> 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.
> 
> 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=revision=431746

It's a block, but it's overridable.

# Adam


-- 
Adam Weinberger
ad...@adamw.org
https://www.adamw.org



___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: [SOLVED] How to create a port only for specific FreeBSD releases

2017-02-27 Thread Andrew Hotlab
> 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
> 
 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.

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=revision=431746
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: [SOLVED] How to create a port only for specific FreeBSD releases

2017-02-27 Thread Andrew Hotlab
> From: Adam Weinberger 
> 
> Sent: Monday, February 27, 2017 5:30 PM
> To: Andrew Hotlab
> Cc: freebsd-ports@freebsd.org
> Subject: Re: [SOLVED] How to create a port only for specific FreeBSD releases
>     
>> 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

Thank you Adam, I wrote my previous post before reading Matthew's reply.

I removed that check from my port.
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: [SOLVED] How to create a port only for specific FreeBSD releases

2017-02-27 Thread Ernie Luzar

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.

___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: [SOLVED] How to create a port only for specific FreeBSD releases

2017-02-27 Thread Ernie Luzar

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



IGNORE_FreeBSD_9= This version only for FreeBSD 10+
___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"


Re: [SOLVED] How to create a port only for specific FreeBSD releases

2017-02-27 Thread Adam Weinberger
> 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


-- 
Adam Weinberger
ad...@adamw.org
https://www.adamw.org

___
freebsd-ports@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"