Changeset 2596
- Timestamp:
- 23/01/2010 17:11:24 (8 months ago)
- Location:
- box/trunk
- Files:
-
- 1 added
- 1 removed
- 3 modified
- 1 copied
- 1 moved
-
COPYING.txt (added)
-
LICENSE-DUAL.txt (copied) (copied from box/trunk/LICENSE.txt) (2 diffs)
-
LICENSE-GPL.txt (moved) (moved from box/trunk/LICENSE.txt) (1 diff)
-
distribution/COMMON-MANIFEST.txt (modified) (3 diffs)
-
distribution/boxbackup/DISTRIBUTION-MANIFEST.txt (modified) (3 diffs)
-
distribution/boxbackup/LICENSE.txt (deleted)
-
infrastructure/makedistribution.pl.in (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
box/trunk/LICENSE-DUAL.txt
r2290 r2596 1 1 Box Backup, http://www.boxbackup.org/ 2 2 3 Copyright (c) 2003-2008 Ben Summers and contributors. All rights reserved. 4 3 Copyright (c) 2003-2010, Ben Summers and contributors. 4 All rights reserved. 5 6 Note that this project uses mixed licensing. Any file with this license 7 attached, or where the code LICENSE-DUAL appears on the first line, falls 8 under this license. See the file COPYING.txt for more information. 9 10 This file is dual licensed. You may use and distribute it providing that you 11 comply EITHER with the terms of the BSD license, OR the GPL license. It is 12 not necessary to comply with both licenses, only one. 13 14 The BSD license option follows: 15 5 16 Redistribution and use in source and binary forms, with or without 6 modification, are permitted provided that the following conditions 7 are met: 17 modification, are permitted provided that the following conditions are met: 8 18 9 19 1. Redistributions of source code must retain the above copyright … … 13 23 notice, this list of conditions and the following disclaimer in the 14 24 documentation and/or other materials provided with the distribution. 25 26 3. Neither the name of the Box Backup nor the names of its contributors may 27 be used to endorse or promote products derived from this software without 28 specific prior written permission. 15 29 16 3. All use of this software and associated advertising materials must 17 display the following acknowledgement: 30 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 31 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 32 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 33 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY 34 DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 35 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 36 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 37 ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 38 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 39 THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 18 40 19 This product includes software developed by Ben Summers and 20 contributors. 41 [http://en.wikipedia.org/wiki/BSD_licenses#3-clause_license_.28.22New_BSD_License.22.29] 21 42 22 4. The names of the Authors may not be used to endorse or promote 23 products derived from this software without specific prior written 24 permission. 43 The GPL license option follows: 25 44 26 [Where legally impermissible the Authors do not disclaim liability for 27 direct physical injury or death caused solely by defects in the software 28 unless it is modified by a third party.] 45 This program is free software; you can redistribute it and/or 46 modify it under the terms of the GNU General Public License 47 as published by the Free Software Foundation; either version 2 48 of the License, or (at your option) any later version. 29 49 30 THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR 31 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 32 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 33 DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, 34 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 35 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 36 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 37 HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 38 STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 39 ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 40 POSSIBILITY OF SUCH DAMAGE. 50 This program is distributed in the hope that it will be useful, 51 but WITHOUT ANY WARRANTY; without even the implied warranty of 52 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 53 GNU General Public License for more details. 54 55 You should have received a copy of the GNU General Public License 56 along with this program; if not, write to the Free Software 57 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 58 59 [http://www.gnu.org/licenses/old-licenses/gpl-2.0.html#SEC4] -
box/trunk/LICENSE-GPL.txt
r2290 r2596 1 1 Box Backup, http://www.boxbackup.org/ 2 2 3 Copyright (c) 2003-2008 Ben Summers and contributors. All rights reserved. 4 5 Redistribution and use in source and binary forms, with or without 6 modification, are permitted provided that the following conditions 7 are met: 3 Copyright (c) 2003-2010, Ben Summers and contributors. 4 All rights reserved. 8 5 9 1. Redistributions of source code must retain the above copyright 10 notice, this list of conditions and the following disclaimer. 6 Note that this project uses mixed licensing. Any file with this license 7 attached, or where the code LICENSE-GPL appears on the first line, falls 8 under this license. See the file COPYING.txt for more information. 11 9 12 2. Redistributions in binary form must reproduce the above copyright 13 notice, this list of conditions and the following disclaimer in the 14 documentation and/or other materials provided with the distribution. 10 This program is free software; you can redistribute it and/or 11 modify it under the terms of the GNU General Public License 12 as published by the Free Software Foundation; either version 2 13 of the License, or (at your option) any later version. 15 14 16 3. All use of this software and associated advertising materials must 17 display the following acknowledgement: 15 This program is distributed in the hope that it will be useful, 16 but WITHOUT ANY WARRANTY; without even the implied warranty of 17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 GNU General Public License for more details. 18 19 19 This product includes software developed by Ben Summers and 20 contributors. 20 You should have received a copy of the GNU General Public License 21 along with this program; if not, write to the Free Software 22 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 21 23 22 4. The names of the Authors may not be used to endorse or promote 23 products derived from this software without specific prior written 24 permission. 24 [http://www.gnu.org/licenses/old-licenses/gpl-2.0.html#SEC4] 25 25 26 [Where legally impermissible the Authors do not disclaim liability for 27 direct physical injury or death caused solely by defects in the software 28 unless it is modified by a third party.] 29 30 THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR 31 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 32 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 33 DISCLAIMED. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, 34 INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 35 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 36 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 37 HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 38 STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 39 ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 40 POSSIBILITY OF SUCH DAMAGE. 26 You may find a full copy of the GPLv2 license at: 27 [http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt] -
box/trunk/distribution/COMMON-MANIFEST.txt
r2574 r2596 1 LICENSE-DUAL.txt 2 3 LICENSE DUAL 4 1 5 RUN ./bootstrap 2 6 RUN cd docs; make 7 3 8 lib/common 4 9 lib/crypto … … 28 33 infrastructure/mingw 29 34 infrastructure/msvc 30 NO-LICENSE config.sub31 NO-LICENSE config.guess32 35 bootstrap 33 36 configure.ac … … 35 38 parcels.txt 36 39 runtest.pl.in 37 NO-LICENSE-IN-DIR infrastructure/m4 40 COPYING.txt 41 42 LICENSE none 43 config.sub 44 config.guess 45 infrastructure/m4 -
box/trunk/distribution/boxbackup/DISTRIBUTION-MANIFEST.txt
r2578 r2596 1 LICENSE-GPL.txt 2 3 LICENSE DUAL 1 4 lib/intercept 2 5 lib/raidfile 6 lib/httpserver 3 7 test/raidfile 4 8 test/raidfile/testfiles 9 test/httpserver 10 11 LICENSE GPL 5 12 lib/backupclient 6 13 lib/backupstore 7 lib/httpserver8 14 bin/bbstored 9 15 bin/bbstoreaccounts … … 21 27 test/bbackupd/testfiles 22 28 test/backupdiff 23 test/httpserver24 29 docs/Makefile 25 30 docs/tools 31 32 LICENSE DUAL 26 33 docs/api-notes 27 docs/api-notes/backup28 34 docs/api-notes/raidfile 29 35 docs/api-notes/raidfile/lib_raidfile.txt 30 docs/html 31 docs/html/images 36 37 LICENSE GPL 38 docs/api-notes/backup 39 40 docs/images 32 41 docs/htmlguide 33 42 docs/htmlguide/adminguide … … 65 74 BUGS.txt 66 75 contrib 67 NO-LICENSE-IN-DIR contrib/debian 68 NO-LICENSE-IN-DIR contrib/mac_osx 69 NO-LICENSE-IN-DIR contrib/redhat 70 NO-LICENSE-IN-DIR contrib/rpm 76 77 contrib/debian 78 contrib/mac_osx 79 contrib/redhat 80 contrib/rpm 71 81 REPLACE-VERSION-IN contrib/rpm/boxbackup.spec 72 NO-LICENSE-IN-DIRcontrib/solaris73 NO-LICENSE-IN-DIRcontrib/suse74 NO-LICENSE-IN-DIRcontrib/bbreporter75 NO-LICENSE-IN-DIRcontrib/windows76 NO-LICENSE-IN-DIRcontrib/windows/installer77 NO-LICENSE-IN-DIRcontrib/windows/installer/tools82 contrib/solaris 83 contrib/suse 84 contrib/bbreporter 85 contrib/windows 86 contrib/windows/installer 87 contrib/windows/installer/tools 78 88 infrastructure/msvc 79 NO-LICENSE-IN-DIRinfrastructure/msvc/200380 NO-LICENSE-IN-DIRinfrastructure/msvc/200589 infrastructure/msvc/2003 90 infrastructure/msvc/2005 -
box/trunk/infrastructure/makedistribution.pl.in
r2574 r2596 13 13 14 14 # files which don't get the license added 15 my %no_license = (); # 'filename' => 1 15 # my %file_license = (); # 'filename' => 'GPL', 'DUAL' or 'none' 16 16 17 17 # ---------------------------------------------- 18 18 19 19 # filled in from the manifest file 20 my %no_license_dir = (); 20 # my %dir_license = (); # 'dir' => 'GPL', 'DUAL' or 'none' 21 # 22 # most recently specified LICENSE become default until overridden 23 my $current_license; # 'GPL', 'DUAL' or 'none' 21 24 22 25 # distribution name … … 69 72 mkdir $base_name,0755; 70 73 71 # get license file 72 open LICENSE,"$dist_root/LICENSE.txt" or die "Can't open $dist_root/LICENSE.txt"; 73 my $license_f; 74 read LICENSE,$license_f,100000; 75 close LICENSE; 76 my @license = ('distribution '.$base_name.' (svn version: '.$svnversion.')',split(/\n/,$license_f)); 74 # get license files 75 my %license_text; # name of license => array of lines of license text 76 foreach my $license ("GPL", "DUAL") 77 { 78 my $file = "./LICENSE-$license.txt"; 79 open LICENSE, $file or die "Can't open $file: $!"; 80 my @lines = <LICENSE>; 81 close LICENSE; 82 unshift @lines, "distribution $base_name (svn version: $svnversion)\n"; 83 $license_text{$license} = \@lines; 84 } 77 85 78 86 # copy files, make a note of all the modules included … … 89 97 next unless $line =~ m/\S/; 90 98 chomp $line; 91 my ($src,$dst,$other) = split /\s+/, $line; 99 my @words = split /\s+/, $line; 100 my ($src,$dst,$other) = @words; 92 101 $dst = $src if $dst eq ''; 93 102 if($src eq 'MKDIR') … … 96 105 mkdir "$base_name/$dst",0755; 97 106 } 98 elsif($src eq 'NO-LICENSE-IN-DIR') 99 { 100 my ($junk,$spec) = split /\s+/, $line; 101 # record that this directory shouldn't have the license added 102 $no_license_dir{$dst} = 1; 103 104 # actually copy it, to remove redundancy in manifests 105 $src = $dst; 106 $dst = $other; 107 $dst = $src if $dst eq ''; 108 $modules_included{$spec} = 1; 109 copy_dir($src,$dst); 107 elsif($src eq 'LICENSE') 108 { 109 $current_license = $dst; 110 110 } 111 111 elsif($src eq 'REPLACE-VERSION-IN') 112 112 { 113 113 replace_version_in($dst); 114 }115 elsif($src eq 'NO-LICENSE')116 {117 $no_license{$dst} = 1;118 119 # actually copy it, to remove redundancy in manifests120 $src = $dst;121 $dst = $other;122 $dst = $src if $dst eq '';123 124 copy_file($src,$dst);125 114 } 126 115 elsif($src eq 'RUN') … … 190 179 my $ext; 191 180 $ext = $1 if $fn =~ m/\.(\w+)\Z/; 192 193 # licenses not used in this directory?194 my $license_in_dir = 1;195 181 $dst_fn =~ m~\A(.+)/[^/]+?\Z~; 196 $license_in_dir = 0 if exists $no_license_dir{$1};197 182 198 183 # licensed or not? 199 if(exists $comment_chars{$ext} && !exists $no_license{$fn} && $license_in_dir)184 if(exists $comment_chars{$ext} && $current_license ne "none") 200 185 { 201 186 # copy as text, inserting license … … 215 200 # write license 216 201 my $b = $comment_chars{$ext}; 217 for(@license) 218 { 219 print OUT $b,$_,"\n" 202 my $this_license = $license_text{$current_license}; 203 for (@$this_license) 204 { 205 print OUT $b, $_; 220 206 } 221 207
