Skip to content

Commit

Permalink
generate Debian copyright file from LICENSE
Browse files Browse the repository at this point in the history
Debian requires a specific file format for copyright information.

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
  • Loading branch information
joergsteffens authored and Marco van Wieringen committed Jul 21, 2014
1 parent b1c0749 commit 8770e5a
Show file tree
Hide file tree
Showing 7 changed files with 35 additions and 30 deletions.
2 changes: 1 addition & 1 deletion Makefile.in
Expand Up @@ -24,7 +24,7 @@ fd_subdirs = src scripts src/lib src/findlib @LMDB_DIR@ src/filed \
# Non-client-only directores
subdirs = src/cats @NDMP_DIR@ @DIRD_DIR@ @STORED_DIR@ @SD_BACKENDS_DIR@ @SD_PLUGIN_DIR@ @DIR_PLUGIN_DIR@ src/tools

all_subdirs = ${fd_subdirs} ${@ALL_DIRS@} manpages
all_subdirs = ${fd_subdirs} ${@ALL_DIRS@} manpages platforms

DIST = INSTALL README.configure configure Makefile Makefile.in ChangeLog

Expand Down
29 changes: 2 additions & 27 deletions debian/copyright → debian/copyright.footer
@@ -1,28 +1,3 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: Bareos
Upstream-Contact: <info@bareos.org>
Source: https://github.com/bareos/bareos
Comment: BAREOS is a fork of the Bacula source code.
The original Bacula code was Copyright Kern Sibbald and John Walker.
After November 2004, it became Copyright Kern Sibbald, and finally,
the copyright was transferred to the Free Software Foundation Europe
on 15 November 2006. The license was changed from GPLv2 to AGPLv3
on 24 July 2010.
The name Bacula is a registered trademark of Kern Sibbald.
The name BAREOS is a registered trademark of Bareos GmbH & Co. KG


Files: *
Copyright: 2000-2012 Free Software Foundation Europe e.V.
2011-2012 Planets Communications B.V.
2013-2014 Bareos GmbH & Co. KG
License: AGPL-3.0 with Bacula and other exceptions
The full text of the license including the varios exceptions
can be found in the file `/usr/share/doc/bareos-common/LICENSE'.
It includes the preexisting license information of Bacula
(from 06/05/2013, i.e. the date the source was forked into BAREOS).
Exceptions for special files are also listed below.


Files: src/lib/bmtio.h
Copyright: 1982,1986,1993 The Regents of the University of California
Expand Down Expand Up @@ -158,7 +133,7 @@ Copyright: 2001-2002 Ralf S. Engelschall <rse@engelschall.com>
License: permissive and AGPL-3.0


Files: src/win32/compat/sys/mtio.h
Files: src/win32/compat/include/sys/mtio.h
Copyright: 1996, 1997 Free Software Foundation, Inc.
License: LGPL-2.1+

Expand Down Expand Up @@ -202,7 +177,7 @@ License: BSD-3-clause
* SUCH DAMAGE.


License: LGPL-2.1
License: LGPL-2.1+
On Debian systems, the full text of the GNU General Public
License version 2 can be found in the file
`/usr/share/common-licenses/LGPL-2.1'.
Expand Down
22 changes: 22 additions & 0 deletions debian/copyright.header
@@ -0,0 +1,22 @@
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: Bareos
Upstream-Contact: <info@bareos.org>
Source: https://github.com/bareos/bareos
Comment: BAREOS is a fork of the Bacula source code.
The original Bacula code was Copyright Kern Sibbald and John Walker.
After November 2004, it became Copyright Kern Sibbald, and finally,
the copyright was transferred to the Free Software Foundation Europe
on 15 November 2006. The license was changed from GPLv2 to AGPLv3
on 24 July 2010.
The name Bacula is a registered trademark of Kern Sibbald.
The name BAREOS is a registered trademark of Bareos GmbH & Co. KG


Files: *
Copyright: 2000-2012 Free Software Foundation Europe e.V.
2011-2012 Planets Communications B.V.
2013-2014 Bareos GmbH & Co. KG
License: AGPL-3.0 with Bacula and other exceptions
This section is the reformated version of
`/usr/share/doc/bareos-common/LICENSE'.
.
6 changes: 5 additions & 1 deletion platforms/debian/Makefile.in
Expand Up @@ -8,7 +8,11 @@
#
@MCOMMON@

nothing:
all:
$(INSTALL) ../../debian/copyright.header ../../debian/copyright
$(SED) -r -e 's/^$$/./' -e 's/^[ ]*(.*)$$/ \1/' ../../LICENSE >> ../../debian/copyright
cat ../../debian/copyright.footer >> ../../debian/copyright


install: install_logrotate install-dbconfig

Expand Down
2 changes: 1 addition & 1 deletion platforms/packaging/bareos.spec
Expand Up @@ -832,7 +832,7 @@ echo "This is a meta package to install a full bareos system" > %{buildroot}%{_d
%{_mandir}/man8/btraceback.8.gz
%attr(0770, %{daemon_user}, %{daemon_group}) %dir %{working_dir}
%attr(0775, %{daemon_user}, %{daemon_group}) %dir /var/log/bareos
%doc AGPL-3.0.txt AUTHORS LICENSE README.* debian/copyright
%doc AGPL-3.0.txt AUTHORS LICENSE README.*

%if !0%{?client_only}

Expand Down
2 changes: 2 additions & 0 deletions platforms/univention/Makefile.in
Expand Up @@ -8,6 +8,8 @@
#
@MCOMMON@

nothing:

install:
(cd ../debian; $(MAKE) $@;)

Expand Down
2 changes: 2 additions & 0 deletions platforms/unknown/Makefile.in
Expand Up @@ -8,6 +8,8 @@
#
@MCOMMON@

nothing:

install:

all:
Expand Down

0 comments on commit 8770e5a

Please sign in to comment.