GPL - komercne ucely
Robim s Drupalom, co je PHP CMS framework, ktory je pod GPL2+. Drupal je mozne rozsirit prostrednictvom modulov. Tieto moduly nijako neupravuju zdrojaky Drupalu, akurat sa nainstaluju, tj. regnu sa v db a Drupal pri roznych akciach vola funkcie s urcitymi nazvami a vykona akcie podla tychto funkcii na datach. Cize moduly manipuluju s datami, opat, Drupal nie je nijako zasiahnuty.
Moja otazka je: chcel by som predavat moduly, resp. sa bude jednat o balik modulov. Zistil som ale, zevraj sa tieto moduly povazuju za odvodeninu Drupalu a teda taktiez musia byt sirene pod GPL licenciou, co sa mi samozrejme nepaci, kedze ak by som niekomu svoj produkt predal(nemam na mysli Drupal, ale len moje moduly), tak i ked by som ich predal za nejak uciastku, zakaznik by tieto moduly mohol volne zverenit, co samozrejme ak ovyvojar nechcem a je to pre mna neziaduce.
Co mi nesedi je to, ze moduly, ako som pisal, nijako nemanipuluju so zdrojakmi Drupalu, iba Drupal pri istych akciach vola moje funkcie, ktore menipuluju s datami, nie s Drupalom. A teda nerozumiem tomu, preco by mali byt moduly odvodeninou Drupalu a teda by mali byt sirene pod GPL2+ licenciou.
Mozete mi k tomu niekto nieco blizsie povedat? Resp. ako sa takato licencia riesi v nasom pripadne aj ceskom pravnom systeme.
Vdaka.
Pre pridávanie komentárov sa musíte prihlásiť.
http://www.fsf.org/licensing/licenses/gpl-faq.html#GPLAndPlugins
<?php
echo "Nejaky obsah generovany drupalom: ";
echo file_get_contents('http://server/drupal/nieco.php');
?>
Druhy priklad, vyuziva casti drupalu, musi byt pod gpl
<?php
echo "Nejaky obsah generovany drupalom: ";
include "drupal/nieco.php";
echo drupalNejakaFunkcia();
?>
Takze otazka, pouzivas v tvojom code INCLUDE alebo REQUIRE?
ale predvat SW pod GPL moze
prvy raz je to v preambule GPLv2
Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), ..
a ta isto v prvom clanku
You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee.
http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
Nemyslim si to. Ak by urobil toto api_k_drupalu.php:
<?php
include "drupal.php";
function fooNejakaFunkcia() {
return drupalNejakaFunkcia();
}
?>
A v hotovom produkte namiesto "drupalNejakaFunkcia" volal vsade "fooNejakaFunkcia":
<?php
include "api_k_drupalu.php";
fooNejakaFunkcia();
?>
Tak si vobec nepomoze, pretoze API musi byt pod GPL lebo aj drupal je, a potom aj tento program musi byt pod GPL lebo aj api je.
Binarne ovladace jadra mozu existovat preto, lebo skutocne ziaden GPL kod neobsajuju. Vsetok kod co obsahuju napisal priamo vyrobca drivera teda NVIDIA alebo ATI. V nasom php pripade ale obsahuje program GPL kod - z drupalu. Keby si druhy PHP kod skompiloval tak v nom aj tak bude volanie drupalNejakaFunkcia.
7: If I write a module or theme, do I have to license it under the GPL?
Yes. Drupal modules and themes are a derivative work of Drupal. If you distribute them, you must do so under the terms of the GPL version 2 or later. You are not required to distribute them at all, however. (See question 8 below.)
However, when distributing your own Drupal-based work, it is important to keep in mind what the GPL applies to. The GPL on code applies to code that interacts with that code, but not to data. That is, Drupal's PHP code is under the GPL, and so all PHP code that interacts with it must also be under the GPL or GPL compatible. Images, JavaScript, and Flash files that PHP sends to the browser are not affected by the GPL because they are data. However, Drupal's JavaScript, including the copy of jQuery that is included with Drupal, is itself under the GPL as well, so any Javascript that interacts with Drupal's JavaScript in the browser must also be under the GPL or a GPL compatible license.
When distributing your own module or theme, therefore, the GPL applies to any pieces that directly interact with parts of Drupal that are under the GPL. Images and Flash files you create yourself are not affected. However, if you make a new image based off of an image that is provided by Drupal under the GPL, then that image must also be under the GPL.
If you commit that module or theme to Drupal's CVS repository, however, then all parts of it must be under the GPL version 2 or later, and you must provide the source code. That means the editable form of all files, as described above.
Kratka odpoved: Ano musis.
Dlha odpoved: Nie uplne vsetko. Takze mozes do modulu vlozit veci na ktore nebude mat zakznik pravo ich distribuovat {Obrazky, javascripty, data}, mozes svoj kod podpisovat alebo kryptovat, ale taktiez mozes kriticke casti modulu umiestnit na svojom servery. Uvedom si ze tazis z prace mnozstva ludi a ze to nie je velmi eticke. Mozes taktiez svoj kod davat zadarmo a poskytovat instalaciu a spojazdnenie. Mozes dat prvu verziu zadarmo a poskytovat aktualizacie za uplatu. Moznosti je vela, preto vysla GPL3 a AGPL.