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

Welcome To SNBForums

SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.

If you'd like to post a question, simply register and have at it!

While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!

[To all script writers] What Open Source License should I use?

Discussion in 'Asuswrt-Merlin' started by Xentrk, Jul 12, 2018.

  1. Xentrk

    Xentrk Very Senior Member

    Joined:
    Jul 21, 2016
    Messages:
    1,679
    Location:
    The Land of Smiles
    I have been revising my scripts that I use for Selective Routing on Asuswrt-Merlin and plan to post them on GitHub. I have been reading up on Open Source licenses. It seems the best choices come down to MIT vs GPL 2 vs GPL 3. I have posted snips of my code over time as the scripts have evolved. @Martineau was instrumental in helping me understand how Selective Routing works. @john9527, @RMerlin, @thelonelycoder and @Adamm have all offered input and suggestions or answered questions I had about the inner workings of the AsusWRT-Merlin and John's Fork. @Martineau provided his useful entware check function which I incorporated into the code. I greatly appreciated the collaboration. It has made the scripts much better and I have also learned in the process.

    I want to continue the collaboration and provide the ability for others to offer suggestions for improvement or make changes. So with that information, what license do you recommend? There are many pages on the net discussing the pros and cons. Following is one summary from https://exygy.com/which-license-should-i-use-mit-vs-apache-vs-gpl/ for a comparison of the differences.

    Thanks you for your input.
     
    martinr likes this.
  2. Please support SNBForums! Just click on this link before you buy something from Amazon and we'll get a small commission on anything you buy. Thanks!
  3. Twiglets

    Twiglets Regular Contributor

    Joined:
    Aug 15, 2014
    Messages:
    149
    On the basis of your summary, I would go with GPL as it covers more bases. :)
    Also someone on this forum recently changed their license from GPL v3 --> GPL v2 (it was mentioned in passing)....... just cannot remember who and it was not explained why !!!
    I would look more closely at the differences between GPLv2 & GPLv3.
     
    Xentrk likes this.
  4. sfx2000

    sfx2000 Part of the Furniture

    Joined:
    Aug 11, 2011
    Messages:
    13,480
    Location:
    San Diego, CA
    I'm not a lawyer, I'm an engineer, dammit...

    For scripts - one can license it whatever - BSD/MIT/Apache/GPL*/LGPL...

    For actual code - if you link to a GPL* library, you're stuck with it... same goes with code that is already GPL*

    In any event, copyright does apply in most countries - @copyright Some Guy <[email protected]> -- copyright is enforceable there.

    It's not an easy answer - if in doubt, touch base with a lawyer that understands SW licensing.
     
    Xentrk likes this.
  5. Xentrk

    Xentrk Very Senior Member

    Joined:
    Jul 21, 2016
    Messages:
    1,679
    Location:
    The Land of Smiles
    I looked at what other script writers on the forum use as OpenSource license and none of them had specified one, except for @thelonelycoder, who specified GPLv2 for the Asuswrt-Merlin Terminal Menu (amtm). I wondered why GPLv2 was chosen over GPLv3 and perhaps he can chime in as to why. There is the WTFPL license option. But as of May 2016, the WTFPL was used by less than one percent of open-source software projects. MIT license is the most popular.
     
    Last edited: Jul 14, 2018
  6. kfp

    kfp Very Senior Member

    Joined:
    Jun 26, 2014
    Messages:
    707
    IANAL, but a lot of OSS projects that wish to remain open/free/libre choose GPL2 because
     
    Xentrk likes this.
  7. sfx2000

    sfx2000 Part of the Furniture

    Joined:
    Aug 11, 2011
    Messages:
    13,480
    Location:
    San Diego, CA
    Again - depends on what you're doing - and the code that is touched...

    GPL can be a landmine - and can get one into trouble with upstream - a good example is pulling BSD/MIT code, and relicensing under GPL - that doesn't work, and upstream folks can get plenty angry about that. That includes shared libs that code might touch.

    I'm not a lawyer, but I have a good one on hand...

    My hint before was - talk to a lawyer that is familiar with open source licensing if you are not certain.
     
  8. bigeyes0x0

    bigeyes0x0 Senior Member

    Joined:
    Sep 9, 2015
    Messages:
    218
    I don't put a license on my code, people can do whatever they want with it. My code is pretty much my own now anyway. IMO don't worry too much about it, we're coder no lawyer.
     
Please support SNBForums! Just click on this link before you buy something from Amazon and we'll get a small commission on anything you buy. Thanks!