1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

list of software with BSD license

Discussion in 'Installation and Maintenance of Ports or Packages' started by antolap, Jun 20, 2012.

  1. antolap

    antolap New Member

    Messages:
    27
    Thanks Received:
    0
    Hi,

    How can I get a list of software (from /usr/ports) with BSD license? (no GPL or anything else)
     
  2. SirDice

    SirDice Moderator Staff Member Moderator

    Messages:
    17,622
    Thanks Received:
    2,384
    This should do the trick:
    find /usr/ports/ -name 'Makefile' -exec egrep -l "LICENSE=[[:space:]]+BSD" {} \;
     
    caesius thanks for this.
  3. antolap

    antolap New Member

    Messages:
    27
    Thanks Received:
    0
    Ok, thanks.
     
  4. antolap

    antolap New Member

    Messages:
    27
    Thanks Received:
    0
    I think there's a problem. In some Makefiles there isn't a LICENSE string, for example editors/vim. So the list generated by find is not complete.
     
  5. SirDice

    SirDice Moderator Staff Member Moderator

    Messages:
    17,622
    Thanks Received:
    2,384
    Yes, it does only show the ports that have a correct LICENSE set in the Makefile.
     
  6. JamesElstone

    JamesElstone New Member

    Messages:
    52
    Thanks Received:
    5
    If a port does not specify a LICENSE string, what is the license of the port? is BSD 2-clause assumed, or BSD 3-clause if older??

    James
     
  7. wblock@

    wblock@ Administrator Staff Member Administrator Moderator Developer

    Messages:
    11,704
    Thanks Received:
    2,268
    If a port does not specify a license, you have to check the application's source files or web site.
     
    JamesElstone thanks for this.