Skip to content

Commit da82765

Browse files
committed
Switch to MIT license; fixes #31
1 parent 3cb3901 commit da82765

6 files changed

Lines changed: 152 additions & 745 deletions

File tree

LICENSE

Lines changed: 19 additions & 674 deletions
Large diffs are not rendered by default.

RoboFile.php

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,40 @@
11
<?php
22
/**
3-
* This is project's console commands configuration for Robo task runner.
3+
* -------------------------------------------------------------------------
4+
* {NAME} plugin for GLPI
5+
* Copyright (C) {YEAR} by the {NAME} Development Team.
6+
* -------------------------------------------------------------------------
47
*
5-
* @see http://robo.li/
8+
* MIT License
9+
*
10+
* Permission is hereby granted, free of charge, to any person obtaining a copy
11+
* of this software and associated documentation files (the "Software"), to deal
12+
* in the Software without restriction, including without limitation the rights
13+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14+
* copies of the Software, and to permit persons to whom the Software is
15+
* furnished to do so, subject to the following conditions:
16+
*
17+
* The above copyright notice and this permission notice shall be included in all
18+
* copies or substantial portions of the Software.
19+
*
20+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26+
* SOFTWARE.
27+
*
28+
* --------------------------------------------------------------------------
629
*/
730

831
require_once 'vendor/autoload.php';
932

33+
/**
34+
* This is project's console commands configuration for Robo task runner.
35+
*
36+
* @see http://robo.li/
37+
*/
1038
class RoboFile extends Glpi\Tools\RoboFile
1139
{
1240
protected $csfiles = ['./', 'setup.php.tpl', 'hook.php.tpl'];

hook.php.tpl

Lines changed: 27 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,31 @@
11
<?php
2-
/*
3-
-------------------------------------------------------------------------
4-
{NAME} plugin for GLPI
5-
Copyright (C) {YEAR} by the {NAME} Development Team.
6-
7-
https://github.com/pluginsGLPI/{LNAME}
8-
-------------------------------------------------------------------------
9-
10-
LICENSE
11-
12-
This file is part of {NAME}.
13-
14-
{NAME} is free software; you can redistribute it and/or modify
15-
it under the terms of the GNU General Public License as published by
16-
the Free Software Foundation; either version 2 of the License, or
17-
(at your option) any later version.
18-
19-
{NAME} is distributed in the hope that it will be useful,
20-
but WITHOUT ANY WARRANTY; without even the implied warranty of
21-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22-
GNU General Public License for more details.
23-
24-
You should have received a copy of the GNU General Public License
25-
along with {NAME}. If not, see <http://www.gnu.org/licenses/>.
26-
--------------------------------------------------------------------------
2+
/**
3+
* -------------------------------------------------------------------------
4+
* {NAME} plugin for GLPI
5+
* Copyright (C) {YEAR} by the {NAME} Development Team.
6+
* -------------------------------------------------------------------------
7+
*
8+
* MIT License
9+
*
10+
* Permission is hereby granted, free of charge, to any person obtaining a copy
11+
* of this software and associated documentation files (the "Software"), to deal
12+
* in the Software without restriction, including without limitation the rights
13+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14+
* copies of the Software, and to permit persons to whom the Software is
15+
* furnished to do so, subject to the following conditions:
16+
*
17+
* The above copyright notice and this permission notice shall be included in all
18+
* copies or substantial portions of the Software.
19+
*
20+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26+
* SOFTWARE.
27+
*
28+
* --------------------------------------------------------------------------
2729
*/
2830

2931
/**

plugin.sh

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,32 @@
11
#!/bin/bash
2+
#
3+
# -------------------------------------------------------------------------
4+
# {NAME} plugin for GLPI
5+
# Copyright (C) {YEAR} by the {NAME} Development Team.
6+
# -------------------------------------------------------------------------
7+
#
8+
# MIT License
9+
#
10+
# Permission is hereby granted, free of charge, to any person obtaining a copy
11+
# of this software and associated documentation files (the "Software"), to deal
12+
# in the Software without restriction, including without limitation the rights
13+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14+
# copies of the Software, and to permit persons to whom the Software is
15+
# furnished to do so, subject to the following conditions:
16+
#
17+
# The above copyright notice and this permission notice shall be included in all
18+
# copies or substantial portions of the Software.
19+
#
20+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26+
# SOFTWARE.
27+
#
28+
# --------------------------------------------------------------------------
29+
#
230

331
if [[ $# -ne 2 && $# -ne 3 ]]; then
432
echo $0: usage: plugin.sh name version [destination/path]

setup.php.tpl

Lines changed: 27 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,31 @@
11
<?php
2-
/*
3-
-------------------------------------------------------------------------
4-
{NAME} plugin for GLPI
5-
Copyright (C) {YEAR} by the {NAME} Development Team.
6-
7-
https://github.com/pluginsGLPI/{LNAME}
8-
-------------------------------------------------------------------------
9-
10-
LICENSE
11-
12-
This file is part of {NAME}.
13-
14-
{NAME} is free software; you can redistribute it and/or modify
15-
it under the terms of the GNU General Public License as published by
16-
the Free Software Foundation; either version 2 of the License, or
17-
(at your option) any later version.
18-
19-
{NAME} is distributed in the hope that it will be useful,
20-
but WITHOUT ANY WARRANTY; without even the implied warranty of
21-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22-
GNU General Public License for more details.
23-
24-
You should have received a copy of the GNU General Public License
25-
along with {NAME}. If not, see <http://www.gnu.org/licenses/>.
26-
--------------------------------------------------------------------------
2+
/**
3+
* -------------------------------------------------------------------------
4+
* {NAME} plugin for GLPI
5+
* Copyright (C) {YEAR} by the {NAME} Development Team.
6+
* -------------------------------------------------------------------------
7+
*
8+
* MIT License
9+
*
10+
* Permission is hereby granted, free of charge, to any person obtaining a copy
11+
* of this software and associated documentation files (the "Software"), to deal
12+
* in the Software without restriction, including without limitation the rights
13+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14+
* copies of the Software, and to permit persons to whom the Software is
15+
* furnished to do so, subject to the following conditions:
16+
*
17+
* The above copyright notice and this permission notice shall be included in all
18+
* copies or substantial portions of the Software.
19+
*
20+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26+
* SOFTWARE.
27+
*
28+
* --------------------------------------------------------------------------
2729
*/
2830

2931
define('PLUGIN_{UNAME}_VERSION', '{VERSION}');

tools/HEADER

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,26 @@
1-
-------------------------------------------------------------------------
2-
{NAME} plugin for GLPI
3-
Copyright (C) {YEAR} by the {NAME} Development Team.
1+
-------------------------------------------------------------------------
2+
{NAME} plugin for GLPI
3+
Copyright (C) {YEAR} by the {NAME} Development Team.
4+
-------------------------------------------------------------------------
45

5-
https://github.com/pluginsGLPI/{LNAME}
6-
-------------------------------------------------------------------------
6+
MIT License
77

8-
LICENSE
8+
Permission is hereby granted, free of charge, to any person obtaining a copy
9+
of this software and associated documentation files (the "Software"), to deal
10+
in the Software without restriction, including without limitation the rights
11+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12+
copies of the Software, and to permit persons to whom the Software is
13+
furnished to do so, subject to the following conditions:
914

10-
This file is part of {NAME}.
15+
The above copyright notice and this permission notice shall be included in all
16+
copies or substantial portions of the Software.
1117

12-
{NAME} is free software; you can redistribute it and/or modify
13-
it under the terms of the GNU General Public License as published by
14-
the Free Software Foundation; either version 2 of the License, or
15-
(at your option) any later version.
18+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24+
SOFTWARE.
1625

17-
{NAME} is distributed in the hope that it will be useful,
18-
but WITHOUT ANY WARRANTY; without even the implied warranty of
19-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20-
GNU General Public License for more details.
21-
22-
You should have received a copy of the GNU General Public License
23-
along with {NAME}. If not, see <http://www.gnu.org/licenses/>.
24-
--------------------------------------------------------------------------
26+
--------------------------------------------------------------------------

0 commit comments

Comments
 (0)