From: Michael Wagner Date: Thu, 26 Nov 2020 11:02:37 +0000 (+0100) Subject: Merge branch 'master' of http://wagnertech.de/git/xhome X-Git-Tag: verleihnix_0.1-2~1 X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/projects.git/commitdiff_plain/8d00b092ec8d9b993776937f48a5a88de19cacda?hp=dc377ef9dd6f80187c8cd0232678692ef9c5a476 Merge branch 'master' of http://wagnertech.de/git/xhome --- diff --git a/README.md b/README.md new file mode 100644 index 0000000..b5bd55b --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +# projects +WagnerTech utility projects + +To build a debian package: +git checkout diff --git a/debian/libperl-x86-64-linux-gnu.changelog b/debian/libperl-x86-64-linux-gnu.changelog new file mode 100644 index 0000000..2c111e6 --- /dev/null +++ b/debian/libperl-x86-64-linux-gnu.changelog @@ -0,0 +1,6 @@ +projects (5.22.1-9ubuntu0.6) unstable; urgency=medium + * libperl for cross compile + * hint for build: a dir libperl* containing the files is expected to be + * parallel to the projects dir + -- Michael Wagner Sat, 6 Apr 2019 18:34:36 +0100 + diff --git a/debian/libperl-x86-64-linux-gnu.control b/debian/libperl-x86-64-linux-gnu.control new file mode 100644 index 0000000..8d4109f --- /dev/null +++ b/debian/libperl-x86-64-linux-gnu.control @@ -0,0 +1,12 @@ +Source: projects +Section: main +Priority: optional +Maintainer: Michael Wagner +Build-Depends: git + +Package: libperl-x86-64-linux-gnu +Architecture: all +Description: libperl for cross compile + . + This package contains libperl for cross compile + diff --git a/debian/libperl-x86-64-linux-gnu.cp b/debian/libperl-x86-64-linux-gnu.cp new file mode 100755 index 0000000..94fc7a9 --- /dev/null +++ b/debian/libperl-x86-64-linux-gnu.cp @@ -0,0 +1,8 @@ +#!/bin/bash +set -e + +base=$1 + +mkdir -p $base/usr/ +cp -a ../libperl*/usr/lib $base/usr/ + diff --git a/debian/mbuild.changelog b/debian/mbuild.changelog new file mode 100644 index 0000000..4ac574d --- /dev/null +++ b/debian/mbuild.changelog @@ -0,0 +1,34 @@ +projects (0.6-%BUILD%) unstable; urgency=medium + * calls PAKET.prepare (if present) in config step + * RSYNC_OPTS in rules.pre + * cpp build support + * correction of bug 58 (build in new sandbox) + -- Michael Wagner Thu, 11 Apr 2019 22:54:48 +0100 + +projects (0.5-%BUILD%) unstable; urgency=medium + * mconfigure -o for Debian 7 downward compatibility + * works with multiple git tags on the same commit + -- Michael Wagner Thu, 11 Apr 2019 22:54:48 +0100 + +projects (0.4-%BUILD%) unstable; urgency=medium + * architecture specific build + -- Michael Wagner Thu, 11 Apr 2019 22:54:48 +0100 + +projects (0.3) unstable; urgency=medium + * new number due to version numbering problems + * check for unversioned files + * git works with "-" in package name + -- Michael Wagner Wed, 09 Jan 2019 22:54:48 +0100 + +projects (0.2) unstable; urgency=medium + * Build in svn-Umgebung + * including build script + * new options + * including pre/post installation scripts + * packing for tgz and versioning + -- Michael Wagner Fri, 10 Aug 2018 22:54:48 +0100 + +projects (0.1) unstable; urgency=medium + * Build in neuer git-Umgebung + -- Michael Wagner Mon, 12 Feb 2018 09:45:25 +0100 + diff --git a/debian/mbuild.control b/debian/mbuild.control new file mode 100644 index 0000000..5650041 --- /dev/null +++ b/debian/mbuild.control @@ -0,0 +1,14 @@ +Source: projects +Section: main +Priority: optional +Maintainer: Michael Wagner +Build-Depends: git + +Package: mbuild +Architecture: all +Depends: dpkg-dev,mutil(>=0.1-200) +Description: WagnerTech build environment + Simple build environment for Debian packages + . + This package contains scripts and makefiles for + script and C/C++ packages. diff --git a/debian/mbuild.cp b/debian/mbuild.cp new file mode 100755 index 0000000..47558c7 --- /dev/null +++ b/debian/mbuild.cp @@ -0,0 +1,25 @@ +#!/bin/bash +set -e + +base=$1 + +mkdir -p $base/usr/bin/ +cp tools/make/mconfigure $base/usr/bin/ +cp tools/make/treecopy $base/usr/bin/ + +mkdir -p $base/usr/share/mbuild/ +cp tools/make/rules $base/usr/share/mbuild/ +cp tools/make/insert_build.sh $base/usr/share/mbuild/ +cp tools/make/mMakefile $base/usr/share/mbuild/makefile +cp tools/make/c_configure.sh $base/usr/share/mbuild/ +cp tools/make/cpp.make $base/usr/share/mbuild/ + +mkdir -p $base/usr/share/man/man8 +gzip -c doc/mbuild.8 >$base/usr/share/man/man8/mbuild.8.gz +mkdir -p $base/usr/share/man/man1 +gzip -c doc/mconfigure.1 >$base/usr/share/man/man1/mconfigure.1.gz + +mkdir -p $base/usr/share/doc/mbuild +cp doc/copyright $base/usr/share/doc/mbuild/ +cp debian/mbuild.changelog $base/usr/share/doc/mbuild/changelog + diff --git a/debian/sysd2sysv.changelog b/debian/sysd2sysv.changelog new file mode 100644 index 0000000..7c5564b --- /dev/null +++ b/debian/sysd2sysv.changelog @@ -0,0 +1,8 @@ +projects (0.2-%BUILD%) unstable; urgency=medium + * with template for init-script + -- Michael Wagner Sun, 11 Feb 2018 20:03:04 +0100 + +projects (0.1) unstable; urgency=medium + * initial version + -- Michael Wagner Sun, 11 Feb 2018 20:03:04 +0100 + diff --git a/debian/sysd2sysv.control b/debian/sysd2sysv.control new file mode 100644 index 0000000..c50d469 --- /dev/null +++ b/debian/sysd2sysv.control @@ -0,0 +1,12 @@ +Source: projects +Section: main +Priority: optional +Maintainer: Michael Wagner +Build-Depends: git + +Package: sysd2sysv +Architecture: all +Description: System V init compatibility wrapper + . + System V init compatibility wrapper + diff --git a/debian/sysd2sysv.cp b/debian/sysd2sysv.cp new file mode 100755 index 0000000..4632c02 --- /dev/null +++ b/debian/sysd2sysv.cp @@ -0,0 +1,13 @@ +#!/bin/bash +set -e + +mkdir -p $1/usr/bin/ +cp sh/sysd2sysv $1/usr/bin/ + +mkdir -p $1/var/sysd2sysv +cp etc/sysd2sysv.tpl $1/var/sysd2sysv/ + +# copy man page +mkdir -p $1/usr/share/man/man8 +gzip -c doc/sysd2sysv.8 >$1/usr/share/man/man8/sysd2sysv.8.gz + diff --git a/debian/sysd2sysv.postinst b/debian/sysd2sysv.postinst new file mode 100755 index 0000000..e47abd8 --- /dev/null +++ b/debian/sysd2sysv.postinst @@ -0,0 +1,20 @@ +#!/bin/bash +set -e + +# delete init files created from template +pushd /etc/init.d >/dev/null +for file in $(ls) +do + if grep "# sysd2sysv-template #" $file >/dev/null + then + echo "renew $file from template" + sed "s/%PROG%/$file/" /var/sysd2sysv/sysd2sysv.tpl > $file + fi +done + +# for downward compatibility +if [ -f mlistd ] +then + sed "s/%PROG%/mlistd/" /var/sysd2sysv/sysd2sysv.tpl > mlistd +fi + diff --git a/debian/verleihnix.changelog b/debian/verleihnix.changelog new file mode 100644 index 0000000..c24ef63 --- /dev/null +++ b/debian/verleihnix.changelog @@ -0,0 +1,4 @@ +projects (0.1-%BUILD%) unstable; urgency=medium + * initial version + -- Michael Wagner Sat, 06 Jun 2020 20:03:04 +0100 + diff --git a/debian/verleihnix.control b/debian/verleihnix.control new file mode 100644 index 0000000..0508f01 --- /dev/null +++ b/debian/verleihnix.control @@ -0,0 +1,12 @@ +Source: projects +Section: main +Priority: optional +Maintainer: Michael Wagner +Build-Depends: git, mbuild + +Package: verleihnix +Architecture: all +Description: Verleih Management + . + Verleih Management + diff --git a/debian/verleihnix.cp b/debian/verleihnix.cp new file mode 100755 index 0000000..5ca08da --- /dev/null +++ b/debian/verleihnix.cp @@ -0,0 +1,9 @@ +#!/bin/bash +set -e + +mkdir -p $1/usr/share/php/verleihnix +cp -a verleihnix/* $1/usr/share/php/verleihnix + +mkdir -p $1/etc/apache2/sites-available/ +cp verleihnix/etc/verleihnix.conf $1/etc/apache2/sites-available/ + diff --git a/debian/verleihnix.postinst b/debian/verleihnix.postinst new file mode 100755 index 0000000..9f30658 --- /dev/null +++ b/debian/verleihnix.postinst @@ -0,0 +1,47 @@ +#!/bin/bash +set -e + +# check MariaDB or MySQL +maria=$(mysql -V |grep MariaDB) || true + +# check, whether mkrimi user exists +if ! mysql -umkrimi -pmkrimi mkrimi -e";" +then + echo "Installation of mkrimi user ..." + # unix_socket authentification for MariaDB 10 + if [ -n "$maria" ] + then + mysql </dev/null 2>&1 +then + echo "Installation of mkrimi schema ..." + mysql -umkrimi -pmkrimi mkrimi + + + + + + + + + + + + + + + + + + + + + + + + + mmail/LICENSE at master · wagner-tech/mmail · GitHub + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ Skip to content + + + + + + + + + + + +
+ +
+ + +
+ +
+ + + +
+
+
+ + + + + + + + + + + + + + + + + + +
+
+ + + + + + + + + Permalink + + + + + +
+ + +
+ + Branch: + master + + + + + + + +
+ +
+ + Find file + + + Copy path + +
+
+ + +
+ + Find file + + + Copy path + +
+
+ + + +
+
+
+ +

+ wagner-tech/mmail is licensed under the +

+

GNU General Public License v3.0

+

Permissions of this strong copyleft license are conditioned on making available complete source code of licensed works and modifications, which include larger works using a licensed work, under the same license. Copyright and license notices must be preserved. Contributors provide an express grant of patent rights.

+
+ +
+
+

Permissions

+
    +
  • + + + Commercial use + +
  • +
  • + + + Modification + +
  • +
  • + + + Distribution + +
  • +
  • + + + Patent use + +
  • +
  • + + + Private use + +
  • +
+
+
+

Limitations

+
    +
  • + + + Liability + +
  • +
  • + + + Warranty + +
  • +
+
+
+

Conditions

+
    +
  • + + + License and copyright notice + +
  • +
  • + + + State changes + +
  • +
  • + + + Disclose source + +
  • +
  • + + + Same license + +
  • +
+
+
+
+

+ This is not legal advice. + Learn more about repository licenses. +

+
+ + + + +
+
+ + @bonzius + bonzius + + Initial commit + + + + 2c2de39 + Sep 5, 2017 + +
+ +
+
+ + 1 contributor + + +
+ +

+ Users who have contributed to this file +

+
+ +
+
+
+
+ + + + + +
+ +
+
+ + 674 lines (553 sloc) + + 34.3 KB +
+ +
+ +
+ Raw + Blame + History +
+ + +
+ + + +
+
+
+ + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
+
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
+
Preamble
+
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
+
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
+
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
+
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
+
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
+
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
+
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
+
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
+
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
+
The precise terms and conditions for copying, distribution and
modification follow.
+
TERMS AND CONDITIONS
+
0. Definitions.
+
"This License" refers to version 3 of the GNU General Public License.
+
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
+
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
+
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
+
A "covered work" means either the unmodified Program or a work based
on the Program.
+
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
+
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
+
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
+
1. Source Code.
+
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
+
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
+
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
+
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
+
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
+
The Corresponding Source for a work in source code form is that
same work.
+
2. Basic Permissions.
+
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
+
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
+
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
+
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
+
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
+
4. Conveying Verbatim Copies.
+
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
+
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
+
5. Conveying Modified Source Versions.
+
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
+
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
+
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
+
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
+
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
+
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
+
6. Conveying Non-Source Forms.
+
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
+
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
+
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
+
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
+
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
+
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
+
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
+
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
+
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
+
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
+
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
+
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
+
7. Additional Terms.
+
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
+
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
+
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
+
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
+
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
+
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
+
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
+
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
+
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
+
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
+
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
+
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
+
8. Termination.
+
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
+
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
+
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
+
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
+
9. Acceptance Not Required for Having Copies.
+
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
+
10. Automatic Licensing of Downstream Recipients.
+
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
+
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
+
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
+
11. Patents.
+
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
+
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
+
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
+
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
+
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
+
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
+
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
+
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
+
12. No Surrender of Others' Freedom.
+
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
+
13. Use with the GNU Affero General Public License.
+
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
+
14. Revised Versions of this License.
+
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
+
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
+
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
+
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
+
15. Disclaimer of Warranty.
+
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
16. Limitation of Liability.
+
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
+
17. Interpretation of Sections 15 and 16.
+
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
+
END OF TERMS AND CONDITIONS
+
How to Apply These Terms to Your New Programs
+
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
+
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
+
{one line to give the program's name and a brief idea of what it does.}
Copyright (C) {year} {name of author}
+
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
+
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
+
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
+
Also add information on how to contact you by electronic and paper mail.
+
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
+
{project} Copyright (C) {year} {fullname}
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
+
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".
+
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.
+
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
+ + + +
+ +
+ + + +
+ + +
+ + +
+
+ + + +
+
+ +
+
+ + +
+ + + + + + +
+ + + You can’t perform that action at this time. +
+ + + + + + + + + + + + + + +
+ + + + diff --git a/doc/mbuild.8 b/doc/mbuild.8 new file mode 100644 index 0000000..7b26cfc --- /dev/null +++ b/doc/mbuild.8 @@ -0,0 +1,89 @@ +.\" Manpage for mbuild. +.\" Contact mail@wagnertech.de to correct errors or typos. +.TH mbuild 8 "Jul 2018" GNU "WagnerTech Utilities" +.SH NAME +mbuild \- build system of WagnerTech UG +.SH SYNOPSIS +.B mbuild +.SH DESCRIPTION +.PP +mbuild provides a simple build system based on make, git, subversion. The build process +consists of 3 phases: configuration - compile - pack +.TP +configuration +is done by the +.B mconfigure +script. It determins the verion number from the git/subversion status. A +.B PAKET.changelog +file is needed. Per +default this script also performs compile and pack step. + +If a +.B PAKET.prepare +file is present in the debian directory, it is called. + +If a +.B PAKET.build +file is present in the debian directory, it is called with a -prepare parameter (deprecated). +The current tree is rsync_ed to ~/build. + +If a +.B PAKET.prebuild +file is present in the debian directory, it is called in the ~/build directory. + +.TP +compile +To perform the compile step a +.B PAKET.build +script is needed in the +.B debian +directory. +.TP +pack +To perform the pack step a +.B PAKET.cp +script and a +.B PAKET.control +file are needed in the debian directory. If pre/post installation scripts +are needed, these files must be also placed in the +.B debian +directory. +.SH FILES +.TP +PAKET.changelog +Example: +.br +projects (0.2-%BUILD%) unstable; urgency=medium + * Build in svn-Umgebung + -- Michael Wagner Fr 10. Aug 22:54:48 CEST 2018 +.TP +PAKET.prepare +Any executable script file executed in configure step +.TP +PAKET.prebuild +Any executable script file executed in configure step in the ../build directory +.TP +PAKET.build +Any executable script file executing the build in the ../build directory +.TP +PAKET.cp +An executable script file copying the artefacts to target paths preposed by $1: +.br +cp ../build/my_artefact $1/usr/bin/ +.TP +PAKET.preinst PAKET.postint PAKET.prerm PAKET.postrm +Optional pre/post installation scripts +.TP +PAKET.control +Debian control file +.PP +These files are expected in a +.B debian +directory, placed below the projects main directory. +.SH SEE ALSO +make(1), mconfigure(1) +.SH BUGS +No known bugs. +.SH AUTHOR +Michael Wagner (michael@wagnertech.de) + diff --git a/doc/mconfigure.1 b/doc/mconfigure.1 new file mode 100644 index 0000000..47ac178 --- /dev/null +++ b/doc/mconfigure.1 @@ -0,0 +1,38 @@ +.\" Manpage for mconfigure. +.\" Contact mail@wagnertech.de to correct errors or typos. +.TH mconfigure 1 "Aug 2018" "GNU" "WagnerTech Utilities" +.SH NAME +mconfigure \- interface to build system of WagnerTech UG +.SH SYNOPSIS +.B mconfigure +.I paket +.B [-cdp] +.SH DESCRIPTION +mconfigure builds the package +.I paket. +mconfigure has to be called in the projects base directory containing a directoty named +.B debian, +that contains the files described in +.B mbuild(8). +.SH OPTIONS +.TP +-c +select configuration step +.TP +-d +select compile step +.TP +-p +select pack step +.TP +-o +support old Debian 7 format +.PP +If no steps are selected all steps are performed. +.SH SEE ALSO +mbuild(8): Overview description +.SH BUGS +No known bugs. +.SH AUTHOR +Michael Wagner (michael@wagnertech.de) + diff --git a/doc/sysd2sysv.8 b/doc/sysd2sysv.8 new file mode 100644 index 0000000..d7bb403 --- /dev/null +++ b/doc/sysd2sysv.8 @@ -0,0 +1,16 @@ +.\" Manpage for sysd2sysv. +.\" Contact mail@wagnertech.de to correct errors or typos. +.TH man 8 "18.7.2018" "1.0" "sysd2sysv man page" +.SH NAME +sysd2sysv \- wrapper to run an old SystemV-init environments +.SH SYNOPSIS +.B sysd2sysv +COMMAND SERVICE +.SH DESCRIPTION +.PP +sysd2sysv checks, if the service is present in /etc/init.d. If not +it builds one from /etc/init.d/sysd2sysv.tpl. +.PP +Do not install in a Systemd environment! +.SH AUTHOR +Michael Wagner (michael@wagnertech.de) diff --git a/etc/.dummy b/etc/.dummy new file mode 100644 index 0000000..e69de29 diff --git a/etc/sysd2sysv.tpl b/etc/sysd2sysv.tpl new file mode 100644 index 0000000..8e61839 --- /dev/null +++ b/etc/sysd2sysv.tpl @@ -0,0 +1,123 @@ +#!/bin/bash +set -e # end if anything fails + +# tag: if the next line is changed/removed a reinstall of sysd2sysv will keep this file +# sysd2sysv-template # + +PROG=%PROG% +PROG_PATH=$(which $PROG) || { echo "$PROG missing"; exit 1; } + +syslog=/dev/null +syserr=/tmp/%PROG%.err + +RETVAL=0 + +. /lib/lsb/init-functions + +usage() { + echo "$0 [options] start|restart|stop" + echo " -l DEFAULT: $syslog" + echo " -e DEFAULT: $syserr" +} + +start () { + + # check, if process is already running + if [ `ps -ef | grep $PROG_PATH | grep -v grep | grep -v bash | wc -l` -gt 0 ] + then + log_end_msg 1 + exit 1 + fi + + log_daemon_msg $PROG || true + ($PROG &) 1>>$syslog 2>>$syserr + sleep 2 + if status_of_proc $PROG + then + log_end_msg 0 || true + else + log_end_msg 1 || true + fi +} + +status() { + if [ `ps -ef | grep $PROG_PATH | grep -v grep | grep -v bash | wc -l` -gt 0 ] + then + echo -n $PROG" is running..." + echo "" + else + echo -n $PROG" is stopped" + echo "" + fi +} + +stop () { + log_daemon_msg "Stopping $PROG" + kill $(ps aux |grep $PROG_PATH |grep -v grep | awk '{print $2}') || true + return 0 +} + +# evaluate parameters + +operation="NOP" + +while [ -n "$1" ] +do + case "$1" in + start) + operation=start + shift + ;; + restart) + operation=restart + shift + ;; + stop) + operation=stop + shift + ;; + -c) + configfile=$2 + shift 2 + ;; + -l) + syslog=$2 + if [ -f $syslog ]; then rm $syslog; fi + shift 2 + ;; + -e) + syserr=$2 + shift 2 + ;; + -h) + usage + exit 0 + ;; + *) + usage + exit 1 + ;; + esac +done + +if [ -f $syserr ]; then rm $syserr; fi + +case $operation in +start) + start + ;; +stop) + stop + ;; +restart) + stop + start + ;; +*) + usage + exit 1 + ;; +esac + +exit 0 + diff --git a/sh/sysd2sysv b/sh/sysd2sysv new file mode 100755 index 0000000..d1dec0d --- /dev/null +++ b/sh/sysd2sysv @@ -0,0 +1,26 @@ +#!/bin/bash +set -e + +if [ $# -ne 2 ] +then + echo "usage: sysd2sysv " + exit 1 +fi + +if [ ! -f /etc/init.d/$2 ] +then + sed "s/%PROG%/$2/" /var/sysd2sysv/sysd2sysv.tpl > /etc/init.d/$2 + chmod 755 /etc/init.d/$2 +fi + +if [ $1 = "enable" ] +then + update-rc.d $2 defaults 99 +elif [ $1 = "disable" ] +then + update-rc.d -f $2 remove +else + /etc/init.d/$2 $1 +fi + + diff --git a/tools/cpan2deb b/tools/cpan2deb new file mode 100755 index 0000000..8d43bf8 --- /dev/null +++ b/tools/cpan2deb @@ -0,0 +1,105 @@ +#!/bin/bash +set -e + +function process_lib { + pushd ~/locallib 1>/dev/null + if [ $(ls lib/p*/ |wc -w) -eq 1 ] + then + # seems to be arichtecturalsub dir + arch_dir=$(ls lib/p*/) + cd lib/p*/ + mv $arch_dir/* . + rmdir $arch_dir + cd ../.. + fi + + # check, if there is a real archtecturel depandence + shared_lib=$(find . -name "*.so") + if [ -n "$shared_lib" ] + then + arch=$(arch) + fi + popd 1>/dev/null + mv ~/locallib/lib $name/usr/ +} + +usage="cpan2deb " + +if [ $# -ne 1 ]; then + echo $usage + exit 1 +fi + +#cd $HOME +if [ -d locallib ]; then + rm -rf locallib +fi +#if [ -d build ]; then +# rm -rf build +#fi + +start_dir=$(pwd) + +echo "call CPAN ..." +cpan -m $1 1>$start_dir/cpan.out 2>&1 || (echo "cpan failed"; exit 1) + +# find build directory +mname=$1 +name=lib${mname/::/-}-perl +name=${name,,*} +builddir=$(ls -rtd ~/.cpan/build/*/ |tail -1) + +pushd $builddir 1>/dev/null + perl Makefile.PL INSTALL_BASE="~/locallib" + make + make install 1>>~/cpan.out 2>&1 + echo "Module $1 installed to ~/locallib, output written to $start_dir/cpan.out" +popd 1>/dev/null + +arch=all + +# move locallib content +mkdir -p $name/usr/ + +for dir in $(ls ~/locallib); do + case $dir in + lib) process_lib + ;; + share) mv ~/locallib/share $name/usr/ + ;; + man) mv ~/locallib/man $name/usr/ + ;; + esac +done + +# check version +export PERL5LIB="$start_dir/$name/usr/lib/perl5:$PERL5LIB" +version=$(perl -M$mname -e 'print $ARGV[0]->VERSION' $mname) + +arch_name="" +if [ "$arch" != "all" ] +then + arch_name="_$arch" + if [ "$arch" = "i686" ] + then + # i686-Paketarchitektur gibt es nicht + arch="i386" + fi +fi + +mkdir -p $name/DEBIAN +cat << EOF >$name/DEBIAN/control +Package: $name +Version: $version +Section: base +Priority: optional +Architecture: $arch +Depends: +Maintainer: WagnerTech UG +Description: $1 perl modul +EOF + +fakeroot dpkg-deb --build $name +cp $name.deb ${name}_$version$arch_name.deb +echo "${name}_$version$arch_name.deb erstellt." + diff --git a/tools/make/c_configure.sh b/tools/make/c_configure.sh new file mode 100755 index 0000000..57b395e --- /dev/null +++ b/tools/make/c_configure.sh @@ -0,0 +1,131 @@ +#!/bin/bash + +# util routines for a C/C++ - build + +function check_arch { + case $1 in + armel) ;; + i386) ;; + *) echo "unknown architecture $1" + exit 1 + esac +} + +function install_cpp_make { +# $1: dir to install +# $2 (opt): if set to "lib" the fPIC flag is added + + # find makefile + if [ -f /usr/share/mbuild/cpp.make ] + then + makefile=/usr/share/mbuild/cpp.make + elif [ -f $cwd/projects/tools/make/cpp.make ] + then + makefile=$cwd/projects/tools/make/cpp.make + else + echo "cannot find cpp makefile." >&2 + exit 1 + fi + src=$(pwd); + pushd $1 + if [ -f makefile ]; then rm makefile; fi + if [ -L makefile ]; then rm makefile; fi + if [ -f make.post ]; then rm make.post; fi + ln -s $makefile makefile + echo "SOURCE = \\" > make.pre + for file in $(ls *.cpp) + do + echo " $file \\" >> make.pre + done + echo >> make.pre + if [ "$DEB_HOST_ARCH" != "$DEB_BUILD_ARCH" ] + then + #cross compiling + echo "PREFIX = $DEB_HOST_GNU_TYPE-" >> make.pre + echo "SYSROOT = --sysroot=$HOME/cross" >> make.pre + fi + + if [ "$ARCH" = "armel" ] + then + echo "CXX = arm-linux-gnueabi-g++" >> make.pre + echo "CC = arm-linux-gnueabi-g++" >> make.pre + echo "CXXFLAGS += -D_ARMEL" >> make.pre + echo 'export PATH := /opt/eldk-5.0/armv5te/sysroots/i686-oesdk-linux/usr/bin/armv5te-linux-gnueabi/:/opt/eldk-5.0/armv5te/sysroots/i686-oesdk-linux/bin/armv5te-linux-gnueabi/:$(PATH)' >> make.pre + else + echo "CXXFLAGS += -std=c++0x" >> make.pre + fi + + # compilation of libraries need fPIC flag + if [ "$2" == "lib" ] + then + echo "CXXFLAGS += -fPIC" >> make.pre + fi + + popd +} + +function append_dependency_common { +# common part of append_dependency and append_library +# parameter: +# $1: main directory +# $2: dependency directory +# $3: dependency artefact + + src=$(pwd) + echo "DEPS += $3" >> $1/make.pre + echo "$3:" >> $1/make.post + echo " cd $src/$2 && make TARGET=$3" >> $1/make.post +} + +function append_dependency { +# adds another drectory, where a c++ compile is performed + append_dependency_common $* + echo "" >> $1/make.post +} + +function add_include { +# adds a include directory +# parameter: +# $1: main directory +# $2: include dir + + src=$(pwd) + echo "CXXFLAGS += -I$src/$2" >> $1/make.pre +} + +function add_library { +# adds a extern library +# parameter: +# $1: main directory +# $2: library name (without l or lib ) +# $3: library path (optional) + + src=$(pwd) + echo "EXTLIB += -l$2" >> $1/make.pre + if [ -n "$3" ] + then + lib_path=$3 + if [ ${lib_path:0:1} != "/" ] + then + lib_path="$src/$lib_path" + fi + echo "LDFLAGS += -L$lib_path" >> $1/make.pre + fi +} + +function append_library { +# same as append_dependency. In addition a include statement + a link to the library is added to "main directory" +# parameter: +# $1: main directory +# $2: dependency directory +# $3: dependency artefact + + append_dependency_common $* + echo " ln -sf $src/$2/$3 ." >> $1/make.post + echo "" >> $1/make.post + + echo "LDLIBS += $3" >> $1/make.pre + echo "CXXFLAGS += -I$src/$2" >> $1/make.pre + +} + diff --git a/tools/make/configure b/tools/make/configure new file mode 100755 index 0000000..a92ecbd --- /dev/null +++ b/tools/make/configure @@ -0,0 +1,144 @@ +#!/bin/bash +set -e + +function echo_usage { + echo "usage: configure [options]" + echo " -b " + echo " -a " + echo " -g " + echo " -n : do not delete src dir" +} + +# to build a package you need ... +# .co: checkout commands +# .cp (optional): copy step for package production +# .cpp.sh (optional): commands to setup the C++ compile environment + +if [ $# -lt 2 ] +then + echo_usage + exit 1 +fi + +paket=$1 +build=$2 +shift 2 +ARCH="" +cpp_build=0 +alt_repos="" +delete_src=1 + +while getopts ":a:b:g:n" opt; do + case $opt in + a) ARCH=$OPTARG + ;; + b) branch=$OPTARG + ;; + g) alt_repos="-g $OPTARG" + ;; + n) delete_src=0 + ;; + \?) echo "Invalid option: -$OPTARG" + echo_usage + exit 1 + ;; + :) echo "Option -$OPTARG requires an argument." + echo_usage + exit 1 + ;; + esac +done + +ln -sf projects/tools/make/makefile . + +# check standard files +if [ ! -x $paket.co ] +then + echo "file $paket.co missing or not executable." + exit 1 +fi + +# clean dirs and check out +if [ -d src -a $delete_src -eq 1 ] +then + rm -rf src +fi + +if [ -e $paket ] +then + rm -rf $paket +fi +rm *.stamp || true +rm make.pre || true + +mkdir -p src +cwd=$(pwd) + +# checkout +pushd src >/dev/null + ../$paket.co $alt_repos $build +popd >/dev/null + +# load util functions for C/C++ - build +if [ -f $paket.cpp.sh ] +then + cpp_build=1 + . projects/tools/make/c_configure.sh + . $paket.cpp.sh +fi + +# copy package control +control=$(find -L src -name $paket.control) +build_number=${build#*_} +if [ -z "$control" ] +then + echo "warning: control file not found" + echo " this file is necessary for any package production." +else + sed "s/%BUILD%/$build_number/" $control |sed "s/%ARCH%/$ARCH/" >$paket.control + echo "$paket.control written." + + # extract version + version=$(grep Version $paket.control |sed "s/Version: //") +fi + +# check for copy file +copy=$(find -L src -name $paket.cp) +if [ -n "$copy" ] +then + ln -sf $copy . +else + echo "warning: file $paket.cp missing or not executable:" + echo " this file is necessary for any package production." +fi + +# check for installation scripts +files=$(find -L src -name $paket.preinst) +files="$files $(find -L src -name $paket.postinst)" +files="$files $(find -L src -name $paket.prerm)" +files="$files $(find -L src -name $paket.postrm)" +for file in $files +do + ln -sf $file . +done + +# create generic make.pre, if not existing +if [ ! -f make.pre ] +then + cat >>make.pre <>make.pre + echo "_arch = _${ARCH}" >>make.pre + fi + echo "make.pre written." +fi + +# append version to make.pre +echo "version = $version" >> make.pre +echo "build = $build" >> make.pre + diff --git a/tools/make/cpp.make b/tools/make/cpp.make new file mode 100644 index 0000000..7f318af --- /dev/null +++ b/tools/make/cpp.make @@ -0,0 +1,25 @@ +# Generic cpp makefile for mBuild build process + +# default parameters +CC = $(PREFIX)g++ +CXX = $(PREFIX)g++ + +include make.pre + +# All Target +all: $(DEPS) $(SOURCE:%.cpp=%.o) $(TARGET) + +# Other Targets +clean: + -rm *.o + -rm $(TARGET) + +.PHONY: all make.post + +%.a: $(SOURCE:%.cpp=%.o) + ar r $(TARGET) *.o + +%.so: $(SOURCE:%.cpp=%.o) $(LDLIBS) + echo $(PATH) + $(CXX) -shared $(SYSROOT) -o $(TARGET) *.o $(LDFLAGS) $(LDLIBS) $(EXTLIB) +-include make.post diff --git a/tools/make/insert_build.sh b/tools/make/insert_build.sh new file mode 100755 index 0000000..00a90b0 --- /dev/null +++ b/tools/make/insert_build.sh @@ -0,0 +1,18 @@ +#!/bin/bash +set -e + +usage="insert_build.sh " + +# inserts _ before last dot of filename +# example: "insert_build.sh 45 foo.pdf" leads to "foo_45.pdf" + +if [ $# -ne 2 ]; then + echo $usage + exit 1 +fi + +stem=${1%.*} +ext=${1##*.} + +cp $1 ${stem}_$2.$ext + diff --git a/tools/make/mMakefile b/tools/make/mMakefile new file mode 100644 index 0000000..d6da7bb --- /dev/null +++ b/tools/make/mMakefile @@ -0,0 +1,39 @@ +# Generic makefile for mBuild build process + + +# default parameters +CC = g++ +INSERT_BUILD = /usr/share/mbuild/insert_build.sh + +include make.pre + +# All Target +all: $(DEPS) $(SOURCE:%.cpp=%.o) $(TARGET) + +# Other Targets +clean: + -rm *.o + -rm $(TARGET) + + +.PHONY: all make.post + +%.a: $(SOURCE:%.cpp=%.o) + ar r $(TARGET) *.o + +%.so: $(SOURCE:%.cpp=%.o) $(LDLIBS) + $(CXX) -shared -o $(TARGET) *.o $(LDLIBS) $(EXTLIB) + +make.pre: ~/build/debian/rules.pre + cp ~/build/debian/rules.pre make.pre + +-include make.post +# defile default operations + +#----------------------------------------------------------------- +# Build-Regeln +#----------------------------------------------------------------- +%.pdf : %.tex $(SOURCES) + pdflatex $< && pdflatex $< + cp $*.pdf ~/build + diff --git a/tools/make/makefile b/tools/make/makefile new file mode 100644 index 0000000..1bee6f4 --- /dev/null +++ b/tools/make/makefile @@ -0,0 +1,90 @@ +# Generic makefile for mBuild build process + +# defile default operations + +NOP = @echo "No operation for target $@" +COMPILE = $(NOP) +COMPILE_TARGET = compile.stamp +COPY = $(NOP) +ZIP = zip -r $(project).zip $(project) +DEB = fakeroot dpkg-deb --build $(project) +INSERT_BUILD = projects/tools/make/insert_build.sh + +#default parameters +project = default +SOURCES = +COPY_PRE = + +# Load project specification +include make.pre + +.SUFFIXES: .stamp .zip + + +#----------------------------------------------------------------- +# Hauptziele: +# +# : ohne Parameter wird compiliert +# - zip : packt ZIP file +# - deb : packt Debian package +# +#----------------------------------------------------------------- + +compile: $(COMPILE_TARGET) + # compile ist fertig + +zip: $(project).zip + # ZIP file ready + +deb: $(project).deb + # Debian package ready + +version: $(COMPILE_TARGET) + $(INSERT_BUILD) $(COMPILE_TARGET) $(build) + +#----------------------------------------------------------------- +# compile steps +#----------------------------------------------------------------- +compile.stamp: $(SOURCES) + $(COMPILE) + @touch compile.stamp + +#----------------------------------------------------------------- +# pack steps +#----------------------------------------------------------------- + +copy.stamp: $(COPY_PRE) + $(COPY) $(project) $(version) ${arch} + @touch copy.stamp + +control.stamp: $(project).control + mkdir -p $(project)/DEBIAN + cp $(project).control $(project)/DEBIAN/control + if [ -f $(project).preinst ]; then cp $(project).preinst $(project)/DEBIAN/preinst; fi + if [ -f $(project).postinst ]; then cp $(project).postinst $(project)/DEBIAN/postinst; fi + if [ -f $(project).prerm ]; then cp $(project).prerm $(project)/DEBIAN/prerm; fi + if [ -f $(project).postrm ]; then cp $(project).postrm $(project)/DEBIAN/postrm; fi + @touch control.stamp + +$(project).zip: copy.stamp $(project) + $(ZIP) + +$(project).deb: copy.stamp control.stamp + $(DEB) + cp $(project).deb $(project)_$(version)$(_arch).deb + +#----------------------------------------------------------------- +# utilities +#----------------------------------------------------------------- +clean: + -rm *.stamp 2>/dev/null + if [ -e $(project).zip ]; then rm $(project).zip; fi + if [ -e $(project) ]; then rm -rf $(project); fi + +#----------------------------------------------------------------- +# Build-Regeln +#----------------------------------------------------------------- +%.pdf : %.tex $(SOURCES) + pdflatex $< && pdflatex $< + + diff --git a/tools/make/mconfigure b/tools/make/mconfigure new file mode 100755 index 0000000..95e0006 --- /dev/null +++ b/tools/make/mconfigure @@ -0,0 +1,285 @@ +#!/bin/bash +set -e + +function echo_usage { + echo "usage: mconfigure [options] " + echo " -a " + echo " -c : configure" + echo " -d : compile" + echo " -p : pack default: do all" + echo " -o : support old Debian 7 format" +} + +function check_unversioned { + # has to be called in the projects base directory + # result: "M" in stdout or nothing + set -e + + # check if build is running in a sandbox + if ! [ -f .cm.ignore ] + then + # we create one + echo ".cm.ignore" > .cm.ignore + echo "debian.*" >> .cm.ignore + echo "up.*" >> .cm.ignore + fi + + project=$(pwd) + project=${project##*/} + pushd .. >/dev/null + mCM $project -b -an > /dev/null + wc=$(wc $project.batch) + rm $project.batch + if [ "${wc:0:5}" != "0 0 0" ] + then + echo "M" + fi + popd >/dev/null +} + +function set_build { + set -e + if [ -e .svn ] + then + version="0.0" + build=$(svnversion) + build=${build/:/-} + build="$build$(check_unversioned)" + elif [ -e .git ] + then + tag=$(git describe --tags --match "${paket}_*" 2>/dev/null) || true + if test -z "$tag" + then + tag="0.0-0TOP" + fi + changes=$(check_unversioned) + tag="$tag$changes" + version=${tag%-*} + version=${version##*_} + build=${tag##*-} + else + echo "No configuration system found. Cannot determine version." + exit 1 + fi +} + +function check_version { + set -e + + vline=$(head -1 debian/$paket.changelog) + vline=${vline%-*} + clversion=${vline#*(} + if [ $version = "0.0" ] + then + version=$clversion + return + fi + + # do no check on a modified git repos + if [ "${build: -1}" == "M" ] + then + return + fi + + if [ "$clversion" != $version ] + then + echo "version mismatch: git: $version, changelog: $clversion" + exit 1 + fi +} + +if [ ! -d debian ] +then + echo "run mconfigure in the project base directory with a debian directory in it!" + exit 2 +fi + +configure=0 +compile=0 +pack=0 +while getopts "a:cdpo" opt; do + case $opt in + a) ARCH=$OPTARG + ;; + c) configure=1 + ;; + d) compile=1 + ;; + p) pack=1 + ;; + o) oldpack="-Zgzip" + ;; + \?) echo "Invalid option: -$OPTARG" + echo_usage + exit 1 + ;; + :) echo "Option -$OPTARG requires an argument." + echo_usage + exit 1 + ;; + esac +done +shift $((OPTIND -1)) + +if [ $# -lt 1 ] +then + echo_usage + exit 1 +fi + +paket=$1 + +# if nothing is selected, select all +if [ $configure -eq 0 -a $compile -eq 0 -a $pack -eq 0 ] +then + configure=1 + compile=1 + pack=1 +fi + +if [ $configure -eq 1 ] +then + # delete changelog and control + rm debian/changelog debian/control 2>/dev/null || true + + # mconfigure builds 2 environment files: setenv.sh + rules.pre + + if [ -n "$ARCH" ] + then + arch_opt="-a $ARCH" + fi + dpkg-architecture $arch_opt > debian/setenv.sh + echo "" > debian/rules.pre + + echo "paket=$paket" >> debian/setenv.sh + echo "oldpack=\"$oldpack\"" >> debian/setenv.sh + + set_build + check_version + echo "version=$version" >> debian/setenv.sh + echo "build=$build" >> debian/setenv.sh + + # get repository name +# tmp=$(pwd) +# pwd=${tmp##*/} +# pwd=${pwd,,*} +# echo "pwd=$pwd" >> debian/rules.pre + + echo "building $paket with build $version-$build" + + pushd debian >/dev/null + # ./debian ------------------------------------- + + ln -sf /usr/share/mbuild/rules . + + if [ -e tmp ] + then + rm -rf tmp + fi + + # check for pre/post installation scripts + if [ -f $paket.preinst ] + then + echo "add_inst_tgt += debian/tmp/DEBIAN/preinst" >> rules.pre + fi + if [ -f $paket.postinst ] + then + echo "add_inst_tgt += debian/tmp/DEBIAN/postinst" >> rules.pre + fi + if [ -f $paket.prerm ] + then + echo "add_inst_tgt += debian/tmp/DEBIAN/prerm" >> rules.pre + fi + if [ -f $paket.postrm ] + then + echo "add_inst_tgt += debian/tmp/DEBIAN/postrm" >> rules.pre + fi + + mkdir -p tmp/DEBIAN + + # add export to setenv.sh + sed -i "s/^/export /" setenv.sh + + popd >/dev/null + # ./. --------------------------------------------- + + # copy package control + if [ -f debian/$paket.control ] + then + # proceed + echo + else + echo "warning: control file not found" + echo " this file is necessary for any package production." + fi + + # build prepare + if [ -x debian/$paket.prepare ] + then + . debian/setenv.sh + debian/$paket.prepare + fi + if [ -e debian/$paket.build ] + then + if [ -e ../build ] + then + rm -rf ../build + mkdir ../build + fi + if grep -- "-prepare" debian/$paket.build >/dev/null + then + debian/rules sync + debian/$paket.build -prepare + fi + # sync build dir + . debian/setenv.sh + debian/rules sync + + # executing prebuild + if [ -x debian/$paket.prebuild ] + then + pushd ~/build >/dev/null + debian/$paket.prebuild + popd >/dev/null + fi + fi + + # pack prepare + if [ -f debian/$paket.cp -a -f debian/$paket.control ] + then + echo "PACK=binary" >> debian/rules.pre + if grep "^Architecture: *all" debian/$paket.control >/dev/null + then + echo "arch = all" >> debian/rules.pre + echo "BINARY_INDEP = copy ../${paket}_$version-${build}_all.deb" >> debian/rules.pre + else + echo 'arch = ${DEB_HOST_ARCH}' >> debian/rules.pre + echo "BINARY_ARCH = copy ../${paket}_$version-${build}_"'$(arch).deb' >> debian/rules.pre + fi + elif [ -f debian/$paket.cp ] + then + echo "PACK=zip" >> debian/rules.pre + else + echo "PACK=version" >> debian/rules.pre + fi +fi + +if [ $compile -eq 1 -a ! -e debian/$paket.build ] +then + echo "no debian/$paket.build: skipping build step" + compile=0 +fi +if [ $compile -eq 1 ] +then + # build artefacts + . debian/setenv.sh + debian/rules build +fi + +if [ $pack -eq 1 ] +then + # build package + . debian/setenv.sh + debian/rules pack +fi + diff --git a/tools/make/rules b/tools/make/rules new file mode 100755 index 0000000..e446d53 --- /dev/null +++ b/tools/make/rules @@ -0,0 +1,96 @@ +#!/usr/bin/make -f + +# Generic rules for mBuild build process + +# defile default operations +NOP = @echo "No operation for target $@" +DEB = fakeroot dpkg-deb --build $(oldpack) debian/tmp +INSERT_BUILD = /usr/share/mbuild/insert_build.sh +RSYNC_OPT = -av --exclude="build" --exclude="debian/tmp" --exclude="Packages" --exclude=".*" + +include debian/rules.pre + +default: + echo "no default rule available" + +# Löschen aller kompilierten, erzeugten und nicht benötigten Dateien im Bauverzeichnis +clean: + -rm -rf debian/tmp + +# Bauen der kompilierten Programme und formatierten Dokumente aus den Quellen im Bauverzeichnis +build: debian/$(paket).build sync + cd ../build ; debian/$(paket).build + # Build succeeded + +pack: $(PACK) + # packing succeeded + +# Bauen der kompilierten architekturabhängigen Programme aus den Quellen im Bauverzeichnis +build-arch: + +# Bauen der architekturunabhängigen formatierten Dokumente aus den Quellen im Bauverzeichnis +build-indep: + +# Installieren der Dateien in einen Verzeichnisbaum unterhalb des Verzeichnisses debian für jedes Binärpaket. Falls sie festgelegt wurden, hängen binary*-Ziele effektiv von diesem Ziel ab (optional) +install: + +# Erstellen aller Binärpakete (effektiv ist dies die Kombination der binary-arch- und binary-indep-Ziele) +binary: binary-arch binary-indep + +# Erstellen Architektur-abhängiger (Architecture: any) Binärpakete im übergeordneten Verzeichnis +binary-arch: $(BINARY_ARCH) + +# Erstellen Architektur-unabhängiger (Architecture: all) Binärpakete im übergeordneten Verzeichnis +binary-indep: $(BINARY_INDEP) + +#copy ../$(paket)_$(version)-$(build)_all.deb + +version: ~/build/$(TARGET) + $(INSERT_BUILD) ~/build/$(TARGET) $(build) + cp ~/build/*$(build)* ../ + +../build: + mkdir ../build + +sync: ../build + rsync $(RSYNC_OPT) ./ ../build/ + +copy: debian/$(paket).cp + debian/$(paket).cp debian/tmp + +../$(paket)_$(version)-$(build)_$(arch).deb:debian/tmp/DEBIAN/control $(add_inst_tgt) + $(DEB) + mv debian/tmp.deb ../$(paket)_$(version)-$(build)_$(arch).deb + +debian/tmp/DEBIAN/control: debian/control debian/changelog + dpkg-gencontrol + +debian/control: debian/$(paket).control + sed "s/_DEB_HOST_ARCH/${DEB_HOST_ARCH}/" debian/$(paket).control >> debian/control + +debian/changelog: debian/$(paket).changelog debian/rules.pre + sed "s/%BUILD%/$(build)/" debian/$(paket).changelog > debian/changelog +# echo "${pwd} (${build}) unstable; urgency=medium" > debian/changelog +# echo " * generated by mbuild" >> debian/changelog +# echo " -- Michael Wagner Sun, 11 Feb 2018 20:03:04 +0100" >> debian/changelog +# mb_create_changelog + +debian/tmp/DEBIAN/preinst: debian/$(paket).preinst + cp debian/$(paket).preinst debian/tmp/DEBIAN/preinst + +debian/tmp/DEBIAN/postinst: debian/$(paket).postinst + cp debian/$(paket).postinst debian/tmp/DEBIAN/postinst + +debian/tmp/DEBIAN/prerm: debian/$(paket).prerm + cp debian/$(paket).prerm debian/tmp/DEBIAN/prerm + +debian/tmp/DEBIAN/postrm: debian/$(paket).postrm + cp debian/$(paket).postrm debian/tmp/DEBIAN/postrm + +# Load project specification +-include rules.post + +# if debian/control is missing, try old mbuild way +#debian/control: +# if [ -e debian/$(paket).control ]; then echo "trallala"; fi + diff --git a/tools/make/treecopy b/tools/make/treecopy new file mode 100755 index 0000000..761bd87 --- /dev/null +++ b/tools/make/treecopy @@ -0,0 +1,34 @@ +#!/bin/bash + +# copy all files below ($1), that match ($3) +# into target ($2) + +function fcp +{ + rel_path=${3#$1} + + # create target dir, if necessary + rel_dir=${rel_path%/*} + mkdir -p $2/$rel_dir + cp -a $1/$rel_path $2/$rel_dir +} + +usage="usage: treecopy |-e" + +if [ $# -ne 3 ] +then + echo $usage + exit 1 +fi +if [ $3 == "-e" ] +then + for file in $(find $1 \( -type f -o -type l \) -executable) + do + fcp $1 $2 $file + done +else + for file in $(find $1 \( -type f -o -type l \) -name "$3") + do + fcp $1 $2 $file + done +fi diff --git a/tools/tex/framed.sty b/tools/tex/framed.sty new file mode 100644 index 0000000..b044e96 --- /dev/null +++ b/tools/tex/framed.sty @@ -0,0 +1,548 @@ +% framed.sty v 0.96 2011/10/22 +% Copyright (C) 1992-2011 by Donald Arseneau (asnd@triumf.ca) +% These macros may be freely transmitted, reproduced, or modified +% for any purpose provided that this notice is left intact. +% +%====================== Begin Instructions ======================= +% +% framed.sty +% ~~~~~~~~~~ +% Create framed, shaded, or differently highlighted regions that can +% break across pages. The environments defined are +% framed - ordinary frame box (\fbox) with edge at margin +% oframed - framed with open top/bottom at page breaks +% shaded - shaded background (\colorbox) bleeding into margin +% shaded* - shaded background (\colorbox) with edge at margin +% snugshade - shaded with tight fit around text (esp. in lists) +% snugshade* - like snugshade with shading edge at margin +% leftbar - thick vertical line in left margin +% +% to be used like +% \begin{framed} +% copious text +% \end{framed} +% +% But the more general purpose of this package is to facilitate the +% definition of new environments that take multi-line material, +% wrap it with some non-breakable formatting (some kind of box or +% decoration) and allow page breaks in the material. Such environments +% are defined to declare (or use) \FrameCommand for applying the boxy +% decoration, and \MakeFramed{settings} ... \endMakeFramed wrapped +% around the main text argument (environment body). +% +% The "framed" environment uses "\fbox", by default, as its "\FrameCommand" +% with the additional settings "\fboxrule=\FrameRule" and "\fboxsep=\FrameSep". +% You can change these lengths (using "\setlength") and you can change +% the definition of "\FrameCommand" to use much fancier boxes. +% +% In fact, the "shaded" environment just redefines \FrameCommand to be +% "\colorbox{shadecolor}" (and you have to define the color `"shadecolor"': +% "\definecolor{shadecolor}..."). +% +% Although the intention is for other packages to define the varieties +% of decoration, a command "\OpenFbox" is defined for frames with open +% tops or bottoms, and used for the "oframed" environment. This facility +% is based on a more complex and capable command "\CustomFBox" which can +% be used for a wider range of frame styles. One such style of a title-bar +% frame with continuation marks is provided as an example. It is used by +% the "titled-frame" environment. To make use of "titled-frame" in your +% document, or the "\TitleBarFrame" command in your own environment +% definitions, you must define the colors TFFrameColor (for the frame) +% and a contrasting TFTitleColor (for the title text). +% +% A page break is allowed, and even encouraged, before the framed +% environment. If you want to attach some text (a box title) to the +% frame, then the text should be inserted by \FrameCommand so it cannot +% be separated from the body. +% +% The contents of the framed regions are restricted: +% Floats, footnotes, marginpars and head-line entries will be lost. +% (Some of these may be handled in a later version.) +% This package will not work with the page breaking of multicol.sty, +% or other systems that perform column-balancing. +% +% The MakeFramed environment does the work. Its `settings' argument +% should contain any adjustments to the text width (via a setting of +% "\hsize"). Here, the parameter "\width" gives the measured extra width +% added by the frame, so a common setting is "\advance\hsize-\width" +% which reduces the width of the text just enough that the outer edge +% of the frame aligns with the margins. The `settings' should also +% include a `restore' command -- "\@parboxrestore" or "\FrameRestore" +% or something similar; for instance, the snugshade environment uses +% settings to eliminate list indents and vertical space, but uses +% "\hspace" in "\FrameCommand" to reproduce the list margin ouside the +% shading. +% +% There are actually four variants of "\FrameCommand" to allow different +% formatting for each part of an environment broken over pages. Unbroken +% text is adorned by "\FrameCommand", whereas split text first uses +% "\FirstFrameCommand", possibly followed by "\MidFrameCommand", and +% finishing with "\LastFrameCommand". The default definitions for +% these three just invokes "\FrameCommand", so that all portions are +% framed the same way. See the oframe environment for use of distinct +% First/Mid/Last frames. +% +% Expert commands: +% \MakeFramed, \endMakeFramed: the "MakeFramed" environment +% \FrameCommand: command to draw the frame around its argument +% \FirstFrameCommand: the frame for the first part of a split environment +% \LastFrameCommand: for the last portion +% \MidFrameCommand: for any intermediate segments +% \FrameRestore: restore some text settings, but fewer than \@parboxrestore +% \FrameRule: length register; \fboxrule for default "framed". +% \FrameSep: length register; \fboxsep for default "framed". +% \FrameHeightAdjust: macro; height of frame above baseline at top of page +% \OuterFrameSep: vertical space before and after the framed env. Defaults to "\topsep" +% +% This is still a `pre-production' version because I can think of many +% features/improvements that should be made. Also, a detailed manual needs +% to be written. Nevertheless, starting with version 0.5 it should be bug-free. +% +% ToDo: +% Test more varieties of list +% Improve and correct documentation +% Propagation of \marks +% Handle footnotes (how??) floats (?) and marginpars. +% Stretchability modification. +% Make inner contents height/depth influence placement. +%======================== End Instructions ======================== + +\ProvidesPackage{framed}[2011/10/22 v 0.96: + framed or shaded text with page breaks] + +\newenvironment{framed}% using default \FrameCommand + {\MakeFramed {\advance\hsize-\width \FrameRestore}}% + {\endMakeFramed} + +\newenvironment{shaded}{% + \def\FrameCommand{\fboxsep=\FrameSep \colorbox{shadecolor}}% + \MakeFramed {\FrameRestore}}% + {\endMakeFramed} + +\newenvironment{shaded*}{% + \def\FrameCommand{\fboxsep=\FrameSep \colorbox{shadecolor}}% + \MakeFramed {\advance\hsize-\width \FrameRestore}}% + {\endMakeFramed} + +\newenvironment{leftbar}{% + \def\FrameCommand{\vrule width 3pt \hspace{10pt}}% + \MakeFramed {\advance\hsize-\width \FrameRestore}}% + {\endMakeFramed} + +% snugshde: Shaded environment that +% -- uses the default \fboxsep instead of \FrameSep +% -- leaves the text indent unchanged (shading bleeds out) +% -- eliminates possible internal \topsep glue (\@setminipage) +% -- shrinks inside the margins for lists +% An \item label will tend to hang outside the shading, thanks to +% the small \fboxsep. + +\newenvironment{snugshade}{% + \def\FrameCommand##1{\hskip\@totalleftmargin \hskip-\fboxsep + \colorbox{shadecolor}{##1}\hskip-\fboxsep + % There is no \@totalrightmargin, so: + \hskip-\linewidth \hskip-\@totalleftmargin \hskip\columnwidth}% + \MakeFramed {\advance\hsize-\width + \@totalleftmargin\z@ \linewidth\hsize + \@setminipage}% + }{\par\unskip\@minipagefalse\endMakeFramed} + +\newenvironment{snugshade*}{% + \def\FrameCommand##1{\hskip\@totalleftmargin + \colorbox{shadecolor}{##1}% + % There is no \@totalrightmargin, so: + \hskip-\linewidth \hskip-\@totalleftmargin \hskip\columnwidth}% + \MakeFramed {\advance\hsize-\width + \@totalleftmargin\z@ \linewidth\hsize + \advance\labelsep\fboxsep + \@setminipage}% + }{\par\unskip\@minipagefalse\endMakeFramed} + +\newenvironment{oframed}{% open (top or bottom) framed + \def\FrameCommand{\OpenFBox\FrameRule\FrameRule}% + \def\FirstFrameCommand{\OpenFBox\FrameRule\z@}% + \def\MidFrameCommand{\OpenFBox\z@\z@}% + \def\LastFrameCommand{\OpenFBox\z@\FrameRule}% + \MakeFramed {\advance\hsize-\width \FrameRestore}% + }{\endMakeFramed} + +% A simplified entry to \CustomFBox with two customized parameters: +% the thicknesses of the top and bottom rules. Perhaps we want to +% use less \fboxsep on the open edges? + +\def\OpenFBox#1#2{\fboxsep\FrameSep + \CustomFBox{}{}{#1}{#2}\FrameRule\FrameRule} + +% \CustomFBox is like an amalgamation of \fbox and \@frameb@x, +% so it can be used by an alternate to \fbox or \fcolorbox, but +% it has more parameters for various customizations. +% Parameter #1 is inserted (in vmode) right after the top rule +% (useful for a title or assignments), and #2 is similar, but +% inserted right above the bottom rule. +% The thicknesses of the top, bottom, left, and right rules are +% given as parameters #3,#4,#5,#6 respectively. They should be +% \fboxrule or \z@ (or some other thickness). +% The text argument is #7. +% An instance of this can be used for the frame of \fcolorbox by +% locally defining \fbox before \fcolorbox; e.g., +% \def\fbox{\CustomFBox{}{}\z@\z@\fboxrule\fboxrule}\fcolorbox +% +% Do we need to use different \fboxsep on different sides too? +% +\long\def\CustomFBox#1#2#3#4#5#6#7{% + \leavevmode\begingroup + \setbox\@tempboxa\hbox{% + \color@begingroup + \kern\fboxsep{#7}\kern\fboxsep + \color@endgroup}% + \hbox{% + % Here we calculate and shift for the depth. Done in + % a group because one of the arguments might be \@tempdima + % (we could use \dimexpr instead without grouping). + \begingroup + \@tempdima#4\relax + \advance\@tempdima\fboxsep + \advance\@tempdima\dp\@tempboxa + \expandafter\endgroup\expandafter + \lower\the\@tempdima\hbox{% + \vbox{% + \hrule\@height#3\relax + #1% + \hbox{% + \vrule\@width#5\relax + \vbox{% + \vskip\fboxsep % maybe these should be parameters too + \copy\@tempboxa + \vskip\fboxsep}% + \vrule\@width#6\relax}% + #2% + \hrule\@height#4\relax}% + }% + }% + \endgroup +} + + +% A particular type of titled frame with continuation marks. +% Parameter #1 is the title, repeated on each page. +\newenvironment{titled-frame}[1]{% + \def\FrameCommand{\fboxsep8pt\fboxrule2pt + \TitleBarFrame{\textbf{#1}}}% + \def\FirstFrameCommand{\fboxsep8pt\fboxrule2pt + \TitleBarFrame[$\blacktriangleright$]{\textbf{#1}}}% + \def\MidFrameCommand{\fboxsep8pt\fboxrule2pt + \TitleBarFrame[$\blacktriangleright$]{\textbf{#1\ (cont)}}}% + \def\LastFrameCommand{\fboxsep8pt\fboxrule2pt + \TitleBarFrame{\textbf{#1\ (cont)}}}% + \MakeFramed{\advance\hsize-20pt \FrameRestore}}% +% note: 8 + 2 + 8 + 2 = 20. Don't use \width because the frame title +% could interfere with the width measurement. + {\endMakeFramed} + +% \TitleBarFrame[marker]{title}{contents} +% Frame with a label at top, optional continuation marker at bottom right. +% Frame color is TFFrameColor and title color is a contrasting TFTitleColor; +% both need to be defined before use. The frame itself use \fboxrule and +% \fboxsep. If the title is omitted entirely, the title bar is omitted +% (use a blank space to force a blank title bar). +% +\newcommand\TitleBarFrame[3][]{\begingroup + \ifx\delimiter#1\delimiter + \let\TF@conlab\@empty + \else + \def\TF@conlab{% continuation label + \nointerlineskip + \smash{\rlap{\kern\wd\@tempboxa\kern\fboxrule\kern\fboxsep #1}}}% + \fi + \let\TF@savecolor\current@color + \textcolor{TFFrameColor}{% + \CustomFBox + {\TF@Title{#2}}{\TF@conlab}% + \fboxrule\fboxrule\fboxrule\fboxrule + {\let\current@color\TF@savecolor\set@color #3}% + }\endgroup +} + +% The title bar for \TitleBarFrame +\newcommand\TF@Title[1]{% + \ifx\delimiter#1\delimiter\else + \kern-0.04pt\relax + \begingroup + \setbox\@tempboxa\vbox{% + \kern0.8ex + \hbox{\kern\fboxsep\textcolor{TFTitleColor}{#1}\vphantom{Tj)}}% + \kern0.8ex}% + \hrule\@height\ht\@tempboxa + \kern-\ht\@tempboxa + \box\@tempboxa + \endgroup + \nointerlineskip + \kern-0.04pt\relax + \fi +} + +\chardef\FrameRestore=\catcode`\| % for debug +\catcode`\|=\catcode`\% % (debug: insert space after backslash) + +\newlength\OuterFrameSep \OuterFrameSep=\maxdimen \relax + +\def\MakeFramed#1{\par + % apply default \OuterFrameSep = \topsep + \ifdim\OuterFrameSep=\maxdimen \OuterFrameSep\topsep \fi + % measure added width and height; call result \width and \height + \fb@sizeofframe\FrameCommand + \let\width\fb@frw \let\height\fb@frh + % insert pre-penalties and skips + \begingroup + \skip@\lastskip + \if@nobreak\else + \penalty9999 % updates \page parameters + \ifdim\pagefilstretch=\z@ \ifdim\pagefillstretch=\z@ + % not infinitely stretchable, so encourage a page break here + \edef\@tempa{\the\skip@}% + \ifx\@tempa\zero@glue \penalty-30 + \else \vskip-\skip@ \penalty-30 \vskip\skip@ + \fi\fi\fi + \penalty\z@ + % Give a stretchy breakpoint that will always be taken in preference + % to the \penalty 9999 used to update page parameters. The cube root + % of 10000/100 indicates a multiplier of 0.21545, but the maximum + % calculated badness is really 8192, not 10000, so the multiplier + % is 0.2301. + \advance\skip@ \z@ plus-.5\baselineskip + \advance\skip@ \z@ plus-.231\height + \advance\skip@ \z@ plus-.231\skip@ + \advance\skip@ \z@ plus-.231\OuterFrameSep + \vskip-\skip@ \penalty 1800 \vskip\skip@ + \fi + \addvspace{\OuterFrameSep}% + \endgroup + % clear out pending page break + \penalty\@M \vskip 2\baselineskip \vskip\height + \penalty9999 \vskip -2\baselineskip \vskip-\height + \penalty9999 % updates \pagetotal +|\message{After clearout, \pagetotal=\the\pagetotal, \pagegoal=\the\pagegoal. }% + \fb@adjheight + \setbox\@tempboxa\vbox\bgroup + #1% Modifications to \hsize (can use \width and \height) + \textwidth\hsize \columnwidth\hsize +} + +\def\endMakeFramed{\par + \kern\z@ + \hrule\@width\hsize\@height\z@ % possibly bad + \penalty-100 % (\hrule moves depth into height) + \egroup +%%% {\showoutput\showbox\@tempboxa}% + \begingroup + \fb@put@frame\FrameCommand\FirstFrameCommand + \endgroup + \@minipagefalse % In case it was set and not cleared +} + +% \fb@put@frame takes the contents of \@tempboxa and puts all, or a piece, +% of it on the page with a frame (\FrameCommand, \FirstFrameCommand, +% \MidFrameCommand, or \LastFrameCommand). It recurses until all of +% \@tempboxa has been used up. (\@tempboxa must have zero depth.) +% #1 = attempted framing command, if no split +% #2 = framing command if split +% First iteration: Try to fit with \FrameCommand. If it does not fit, +% split for \FirstFrameCommand. +% Later iteration: Try to fit with \LastFrameCommand. If it does not +% fit, split for \MidFrameCommand. +\def\fb@put@frame#1#2{\relax + \ifdim\pagegoal=\maxdimen \pagegoal\vsize \fi +| \message{=============== Entering putframe ====================^^J +| \pagegoal=\the\pagegoal, \pagetotal=\the\pagetotal. }% + \ifinner + \fb@putboxa#1% + \fb@afterframe + \else + \dimen@\pagegoal \advance\dimen@-\pagetotal % natural space left on page + \ifdim\dimen@<2\baselineskip % Too little room on page +| \message{Page has only \the\dimen@\space room left; eject. }% + \eject \fb@adjheight \fb@put@frame#1#2% + \else % there's appreciable room left on the page + \fb@sizeofframe#1% +| \message{\string\pagetotal=\the\pagetotal, +| \string\pagegoal=\the\pagegoal, +| \string\pagestretch=\the\pagestretch, +| \string\pageshrink=\the\pageshrink, +| \string\fb@frh=\the\fb@frh. \space} +| \message{^^JBox of size \the\ht\@tempboxa\space}% + \begingroup % temporarily set \dimen@ to be... + \advance\dimen@.8\pageshrink % maximum space available on page + \advance\dimen@-\fb@frh\relax % max space available for frame's contents +%%% LOOKS SUBTRACTED AND ADDED, SO DOUBLE ACCOUNTING! + \expandafter\endgroup + % expand \ifdim, then restore \dimen@ to real room left on page + \ifdim\dimen@>\ht\@tempboxa % whole box does fit +| \message{fits in \the\dimen@. }% + % ToDo: Change this to use vsplit anyway to capture the marks + % MERGE THIS WITH THE else CLAUSE!!! + \fb@putboxa#1% + \fb@afterframe + \else % box must be split +| \message{must be split to fit in \the\dimen@. }% + % update frame measurement to use \FirstFrameCommand or \MidFrameCommand + \fb@sizeofframe#2% + \setbox\@tempboxa\vbox{% simulate frame and flexiblity of the page: + \vskip \fb@frh \@plus\pagestretch \@minus.8\pageshrink + \kern137sp\kern-137sp\penalty-30 + \unvbox\@tempboxa}% + \edef\fb@resto@set{\boxmaxdepth\the\boxmaxdepth + \splittopskip\the\splittopskip}% + \boxmaxdepth\z@ \splittopskip\z@ +| \message{^^JPadded box of size \the\ht\@tempboxa\space split to \the\dimen@}% + % Split box here + \setbox\tw@\vsplit\@tempboxa to\dimen@ +| \toks99\expandafter{\splitfirstmark}% +| \toks98\expandafter{\splitbotmark}% +| \message{Marks are: \the\toks99, \the\toks98. }% + \setbox\tw@\vbox{\unvbox\tw@}% natural-sized +| \message{Natural height of split box is \the\ht\tw@, leaving +| \the\ht\@tempboxa\space remainder. }% + % If the split-to size > (\vsize-\topskip), then set box to full size. + \begingroup + \advance\dimen@\topskip + \expandafter\endgroup + \ifdim\dimen@>\pagegoal +| \message{Frame is big -- Use up the full column. }% + \dimen@ii\pagegoal + \advance\dimen@ii -\topskip + \advance\dimen@ii \FrameHeightAdjust\relax + \else % suspect this is implemented incorrectly: + % If the split-to size > feasible room_on_page, rebox it smaller. + \advance\dimen@.8\pageshrink + \ifdim\ht\tw@>\dimen@ +| \message{Box too tall; rebox it to \the\dimen@. }% + \dimen@ii\dimen@ + \else % use natural size + \dimen@ii\ht\tw@ + \fi + \fi + % Re-box contents to desired size \dimen@ii + \advance\dimen@ii -\fb@frh + \setbox\tw@\vbox to\dimen@ii \bgroup + % remove simulated frame and page flexibility: + \vskip -\fb@frh \@plus-\pagestretch \@minus-.8\pageshrink + \unvbox\tw@ \unpenalty\unpenalty + \ifdim\lastkern=-137sp % whole box went to next page +| \message{box split at beginning! }% + % need work here??? + \egroup \fb@resto@set \eject % (\vskip for frame size was discarded) + \fb@adjheight + \fb@put@frame#1#2% INSERTED ??? + \else % Got material split off at the head + \egroup \fb@resto@set + \ifvoid\@tempboxa % it all fit after all +| \message{box split at end! }% + \setbox\@tempboxa\box\tw@ + \fb@putboxa#1% + \fb@afterframe + \else % it really did split +| \message{box split as expected. Its reboxed height is \the\ht\tw@. }% + \ifdim\wd\tw@>\z@ + \wd\tw@\wd\@tempboxa + \centerline{#2{\box\tw@}}% ??? \centerline bad idea + \else +| \message{Zero width means likely blank. Don't frame it (guess)}% + \box\tw@ + \fi + \hrule \@height\z@ \@width\hsize + \eject + \fb@adjheight + \fb@put@frame\LastFrameCommand\MidFrameCommand + \fi\fi\fi\fi\fi +} + +\def\fb@putboxa#1{% + \ifvoid\@tempboxa + \PackageWarning{framed}{Boxa is void -- discard it. }% + \else +| \message{Frame and place boxa. }% +| %{\showoutput\showbox\@tempboxa}% + \centerline{#1{\box\@tempboxa}}% + \fi +} + +\def\fb@afterframe{% + \nointerlineskip \null %{\showoutput \showlists} + \penalty-30 \vskip\OuterFrameSep \relax +} + +% measure width and height added by frame (#1 = frame command) +% call results \fb@frw and \fb@frh +% todo: a mechanism to handle wide frame titles +\newdimen\fb@frw +\newdimen\fb@frh +\def\fb@sizeofframe#1{\begingroup + \setbox\z@\vbox{\vskip-5in \hbox{\hskip-5in + #1{\hbox{\vrule \@height 4.7in \@depth.3in \@width 5in}}}% + \vskip\z@skip}% +| \message{Measuring frame addition for \string#1 in \@currenvir\space +| gives ht \the\ht\z@\space and wd \the\wd\z@. }% +| %{\showoutput\showbox\z@}% + \global\fb@frw\wd\z@ \global\fb@frh\ht\z@ + \endgroup +} + +\def\fb@adjheight{% + \vbox to\FrameHeightAdjust{}% get proper baseline skip from above. + \penalty\@M \nointerlineskip + \vskip-\FrameHeightAdjust + \penalty\@M} % useful for tops of pages + +\edef\zero@glue{\the\z@skip} + +\catcode`\|=\FrameRestore + +% Provide configuration commands: +\providecommand\FrameCommand{% + \setlength\fboxrule{\FrameRule}\setlength\fboxsep{\FrameSep}% + \fbox} +\@ifundefined{FrameRule}{\newdimen\FrameRule \FrameRule=\fboxrule}{} +\@ifundefined{FrameSep} {\newdimen\FrameSep \FrameSep =3\fboxsep}{} +\providecommand\FirstFrameCommand{\FrameCommand} +\providecommand\MidFrameCommand{\FrameCommand} +\providecommand\LastFrameCommand{\FrameCommand} + +% Height of frame above first baseline when frame starts a page: +\providecommand\FrameHeightAdjust{6pt} + +% \FrameRestore has parts of \@parboxrestore, performing a similar but +% less complete restoration of the default layout. See how it is used in +% the "settings" argument of \MakeFrame. Though not a parameter, \hsize +% should be set to the desired total line width available inside the +% frame before invoking \FrameRestore. +\def\FrameRestore{% + \let\if@nobreak\iffalse + \let\if@noskipsec\iffalse + \let\-\@dischyph + \let\'\@acci\let\`\@accii\let\=\@acciii + % \message{FrameRestore: + % \@totalleftmargin=\the \@totalleftmargin, + % \rightmargin=\the\rightmargin, + % \@listdepth=\the\@listdepth. }% + % Test if we are in a list (or list-like paragraph) + \ifnum \ifdim\@totalleftmargin>\z@ 1\fi + \ifdim\rightmargin>\z@ 1\fi + \ifnum\@listdepth>\z@ 1\fi 0>\z@ + % \message{In a list: \linewidth=\the\linewidth, \@totalleftmargin=\the\@totalleftmargin, + % \parshape=\the\parshape, \columnwidth=\the\columnwidth, \hsize=\the\hsize, + % \labelwidth=\the\labelwidth. }% + \@setminipage % snug fit around the item. I would like this to be non-global. + % Now try to propageate changes of width from \hsize to list parameters. + % This is deficient, but a more advanced way to indicate modification to text + % dimensions is not (yet) provided; in particular, no separate left/right + % adjustment. + \advance\linewidth-\columnwidth \advance\linewidth\hsize + \parshape\@ne \@totalleftmargin \linewidth + \else % Not in list + \linewidth=\hsize + %\message{No list, set \string\linewidth=\the\hsize. }% + \fi + \sloppy +} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% diff --git a/tools/tex/titling.sty b/tools/tex/titling.sty new file mode 100644 index 0000000..ed2eb33 --- /dev/null +++ b/tools/tex/titling.sty @@ -0,0 +1,270 @@ +%% +%% This is file `titling.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% titling.dtx (with options: `usc') +%% +%% ----------------------------------------------------------------- +%% Author: Peter Wilson (Herries Press) +%% Maintainer: Will Robertson (will dot robertson at latex-project dot org) +%% Copyright 2000--2004 Peter R. Wilson +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either +%% version 1.3c of this license or (at your option) any +%% later version: +%% +%% This work has the LPPL maintenance status "maintained". +%% The Current Maintainer of this work is Will Robertson. +%% +%% This work consists of the files listed in the README file. +%% ----------------------------------------------------------------- +%% +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{titling}[2009/09/04 v2.1d maketitle typesetting] + +\newcommand{\pretitle}[1]{\def\@bspretitle{#1}} +\newcommand{\posttitle}[1]{\def\@bsposttitle{#1}} +\newcommand{\preauthor}[1]{\def\@bspreauthor{#1}} +\newcommand{\postauthor}[1]{\def\@bspostauthor{#1}} +\newcommand{\predate}[1]{\def\@bspredate{#1}} +\newcommand{\postdate}[1]{\def\@bspostdate{#1}} + +\if@titlepage + \pretitle{\begin{center}\LARGE} + \posttitle{\par\end{center}\vskip 2em} + \preauthor{\begin{center} + \large \lineskip .75em% + \begin{tabular}[t]{c}} + \postauthor{\end{tabular}\par\end{center}} + \predate{\begin{center}\large} + \postdate{\par\end{center}} +\else + \pretitle{\begin{center}\LARGE} + \posttitle{\par\end{center}\vskip 0.5em} + \preauthor{\begin{center} + \large \lineskip .5em% + \begin{tabular}[t]{c}} + \postauthor{\end{tabular}\par\end{center}} + \predate{\begin{center}\large} + \postdate{\par\end{center}} +\fi + +\newcommand{\maketitlehooka}{} +\newcommand{\maketitlehookb}{} +\newcommand{\maketitlehookc}{} +\newcommand{\maketitlehookd}{} + +\newcommand{\thanksmarkseries}[1]{% + \def\@bsmarkseries{\renewcommand{\thefootnote}{\@nameuse{#1}{footnote}}}} +\newcommand{\symbolthanksmark}{\thanksmarkseries{\fnsymbol}} +\newcommand{\@bscontmark}{\setcounter{footnote}{0}} +\newcommand{\continuousmarks}{\def\@bscontmark{}} +\newcommand{\thanksheadextra}[2]{% + \def\@bsthanksheadpre{#1}% + \def\@bsthanksheadpost{#2}} +\newcommand{\thanksfootextra}[2]{% + \def\thanksfootpre{#1}% + \def\thanksfootpost{#2}} + +\DeclareRobustCommand{\thanksmark}[1]{\footnotemark[#1]} +\newcommand{\thanksgap}[1]{\hspace{#1}} +\newcommand{\tamark}{\@thefnmark} + +\newlength{\thanksmarkwidth} +\newlength{\thanksmargin} +\newcommand{\thanksscript}[1]{\textsuperscript{#1}} +\newcommand{\makethanksmarkhook}{} + +\newcommand{\thanksfootmark}{% + \hb@xt@\thanksmarkwidth{\hfil\normalfont\thanksscript{% + \thanksfootpre \tamark \thanksfootpost}}} + +\newcommand{\makethanksmark}{% + \leavevmode% + \makethanksmarkhook\relax + \parindent 1em\noindent + \leftskip\thanksmargin\relax + \advance\leftskip \thanksmarkwidth \null\nobreak\hskip -\leftskip + \thanksfootmark +} + +\newcommand{\usethanksrule}{\let\footnoterule\thanksrule} +\newcommand{\cancelthanksrule}{\let\footnoterule\@bsfootnoterule} + +\if@titlepage + \thanksmarkseries{arabic} % normal footnote numbers +\else + \thanksmarkseries{fnsymbol} +\fi +\thanksheadextra{}{} +\thanksfootextra{}{} +\setlength{\thanksmarkwidth}{1.8em} +\setlength{\thanksmargin}{-\thanksmarkwidth} + +\AtBeginDocument{% + \let\thanksrule\footnoterule + \let\@bsfootnoterule\footnoterule +} + +\newlength{\droptitle} +\setlength{\droptitle}{0pt} + +\providecommand{\maketitle}{} +\if@titlepage + \renewcommand{\maketitle}{\begin{titlepage}% + \let\footnotesize\small + \let\footnoterule\relax + \let \footnote \thanks + \@bsmarkseries + \def\@makefnmark{\rlap{\@textsuperscript{% + \normalfont\@bsthanksheadpre \tamark \@bsthanksheadpost}}}% + \long\def\@makefntext##1{\makethanksmark ##1} + \null\vfil + \vskip 60\p@ + \vspace*{\droptitle} + \maketitlehooka + {\@bspretitle \@title \@bsposttitle} + \maketitlehookb + {\@bspreauthor \@author \@bspostauthor} + \maketitlehookc + {\@bspredate \@date \@bspostdate} + \maketitlehookd + \par + \@thanks + \vfil\null + \end{titlepage}% + \@bscontmark % \setcounter{footnote}{0}% +%%% \@bsmtitlempty + } % end titlepage defs +\else + \renewcommand{\maketitle}{\par + \begingroup + \@bsmarkseries + \def\@makefnmark{\rlap{\@textsuperscript{% + \normalfont\@bsthanksheadpre \tamark \@bsthanksheadpost}}}% + \long\def\@makefntext##1{\makethanksmark ##1} + \if@twocolumn + \ifnum \col@number=\@ne + \@maketitle + \else + \twocolumn[\@maketitle]% + \fi + \else + \newpage + \global\@topnum\z@ + \@maketitle + \fi + \thispagestyle{plain}\@thanks + \endgroup + \@bscontmark % \setcounter{footnote}{0}% +%%% \@bsmtitlempty + } % end non-titlepage + + \def\@maketitle{% + \newpage + \null + \vskip 2em% + \vspace*{\droptitle} + \maketitlehooka + {\@bspretitle \@title \@bsposttitle} + \maketitlehookb + {\@bspreauthor \@author \@bspostauthor} + \maketitlehookc + {\@bspredate \@date \@bspostdate} + \maketitlehookd + \par + \vskip 1.5em} +\fi + +\newenvironment{titlingpage}% + {% + \let\footnoterule\relax + \let\footnotesize\small + \if@twocolumn + \@restonecoltrue\onecolumn + \else + \@restonecolfalse + \fi + \thispagestyle{empty} + \setcounter{page}\@ne + }{% + \thispagestyle{empty} + \if@restonecol\twocolumn \else \newpage \fi + \if@twoside\else \setcounter{page}\@ne\fi} + +\newcommand{\calccentering}[2]{ + #1 = \paperwidth + \advance #1 by -\textwidth + \divide #1 by \tw@ + \advance #1 by -#2 + \advance #1 by -\hoffset + \advance #1 by -1in +} + +\newcommand{\emptythanks}{\global\let\@thanks\@empty} + +\newcommand{\@bsmtitlempty}{% + \global\let\maketitle\relax + \global\let\@maketitle\relax + \global\let\title\relax + \global\let\author\relax + \global\let\date\relax + \global\let\thanksmarkseries\relax + \global\let\thanksheadextra\relax + \global\let\thanksfootextra\relax + \global\let\thanksmark\relax + \global\let\thanksgap\relax +} + +\newcommand{\keepthetitle}{% + \@bsmtitlempty + \global\let\thanks\relax + \global\let\and\relax + \global\let\@thanks\@empty + \global\let\@title\@empty + \global\let\@author\@empty + \global\let\@date\@empty +} + +\providecommand{\killtitle}{} +\renewcommand{\killtitle}{% + \keepthetitle + \global\let\thetitle\relax + \global\let\theauthor\relax + \global\let\thedate\relax +} + +\providecommand{\appendiargdef}[2]{\begingroup + \toks@\expandafter{#1{##1}#2}% + \edef\@bsx{\endgroup \def\noexpand#1####1{\the\toks@}}% + \@bsx} + +\appendiargdef{\title}{% + \begingroup + \renewcommand{\thanks}[1]{} + \renewcommand{\thanksmark}[1]{} + \renewcommand{\thanksgap}[1]{} + \protected@xdef\thetitle{#1} + \endgroup} +\appendiargdef{\author}{% + \begingroup + \renewcommand{\thanks}[1]{} + \renewcommand{\and}{\unskip, } + \renewcommand{\thanksmark}[1]{} + \renewcommand{\thanksgap}[1]{} + \protected@xdef\theauthor{#1} + \endgroup} +\appendiargdef{\date}{% + \begingroup + \renewcommand{\thanks}[1]{} + \renewcommand{\thanksmark}[1]{} + \renewcommand{\thanksgap}[1]{} + \protected@xdef\thedate{#1} + \endgroup} + +\endinput +%% +%% End of file `titling.sty'. diff --git a/tools/tex/wallpaper.sty b/tools/tex/wallpaper.sty new file mode 100644 index 0000000..c64e8c6 --- /dev/null +++ b/tools/tex/wallpaper.sty @@ -0,0 +1,250 @@ +%% +%% This is file `wallpaper.sty' v 1.10 +%% +%% Author Michael H.F. Wilkinson +%% April 21, 2006 +%% +%% Create background, either centered, tiled, or in any corner +%% relies heavily on eso-pic.sty, corrects for changes in \hoffset +%% by classes such as sciposter.cls +%% Problems, bugs and comments to +%% michael@cs.rug.nl +%% version 1.10, 2006/04/21: +%% - Commands added for corner wallpapers +%% +%% version 1.01, 2005/01/18: +%% - \providecommand{\LenToUnit} included to be compatible +%% with earlier versions of eso-pic.sty +%% +%% version 1.00, 2004/12/22: +%% - first release +%% +%% +\ProvidesPackage{wallpaper}[2005/01/18, v1.01 easy wallpaper formatting (MHFW)] +\NeedsTeXFormat{LaTeX2e}[1995/06/01] + +\RequirePackage{ifthen} +\RequirePackage{calc} +\RequirePackage{eso-pic} +\RequirePackage{graphicx} + +\providecommand{\LenToUnit}[1]{#1\@gobble} + + +\newlength{\wpXoffset} +\setlength{\wpXoffset}{-\hoffset} +\newlength{\wpYoffset} +\setlength{\wpYoffset}{0pt} +\newlength{\tileXoffset} +\newlength{\tileYoffset} +\newlength{\tilewidth} +\newlength{\tileheight} +\newlength{\tileX} +\newlength{\tileY} + +\newcommand{\LLCornerWallPaper}[2]{% +\AddToShipoutPicture{% + \AtPageLowerLeft{% + \includegraphics[width=#1\paperwidth,height=#1\paperheight,% + keepaspectratio]{#2}% + } + } +} + +\newcommand{\ThisLLCornerWallPaper}[2]{% +\AddToShipoutPicture*{% + \AtPageLowerLeft{% + \includegraphics[width=#1\paperwidth,height=#1\paperheight,% + keepaspectratio]{#2}% + } + } +} + +\newcommand{\ULCornerWallPaper}[2]{% + \AddToShipoutPicture{% + \AtPageLowerLeft{% + \parbox[b][\paperheight]{#1\paperwidth}{% + \includegraphics[width=#1\paperwidth,height=#1\paperheight,% + keepaspectratio]{#2}% + \vfill% + } + } + } +} + +\newcommand{\ThisULCornerWallPaper}[2]{% + \AddToShipoutPicture*{% + \AtPageLowerLeft{% + \parbox[b][\paperheight]{#1\paperwidth}{% + \includegraphics[width=#1\paperwidth,height=#1\paperheight,% + keepaspectratio]{#2}% + \vfill% + } + } + } +} + +\newcommand{\LRCornerWallPaper}[2]{% + \AddToShipoutPicture{% + \AtPageLowerLeft{% + \parbox[b]{\paperwidth}{% + \hfill \includegraphics[width=#1\paperwidth,height=#1\paperheight,% + keepaspectratio]{#2}% + } + } + } +} + +\newcommand{\ThisLRCornerWallPaper}[2]{% + \AddToShipoutPicture*{% + \AtPageLowerLeft{% + \parbox[b]{\paperwidth}{% + \hfill \includegraphics[width=#1\paperwidth,height=#1\paperheight,% + keepaspectratio]{#2}% + } + } + } +} + +\newcommand{\URCornerWallPaper}[2]{% + \AddToShipoutPicture{% + \AtPageLowerLeft{% + \parbox[b][\paperheight]{\paperwidth}{% + \hfill \includegraphics[width=#1\paperwidth,height=#1\paperheight,% + keepaspectratio]{#2}% + \vfill% + } + } + } +} +\newcommand{\ThisURCornerWallPaper}[2]{% + \AddToShipoutPicture*{% + \AtPageLowerLeft{% + \parbox[b][\paperheight]{\paperwidth}{% + \hfill \includegraphics[width=#1\paperwidth,height=#1\paperheight,% + keepaspectratio]{#2}% + \vfill% + } + } + } +} + +\newcommand{\CenterWallPaper}[2]{% +\AddToShipoutPicture{\put(\LenToUnit{\wpXoffset},\LenToUnit{\wpYoffset}){% + \parbox[b][\paperheight]{\paperwidth}{% + \vfill + \centering + \includegraphics[width=#1\paperwidth,height=#1\paperheight,% + keepaspectratio]{#2}% + \vfill + }} + } +} + +\newcommand{\ThisCenterWallPaper}[2]{% +\AddToShipoutPicture*{\put(\LenToUnit{\wpXoffset},\LenToUnit{\wpYoffset}){% + \parbox[b][\paperheight]{\paperwidth}{% + \vfill + \centering + \includegraphics[width=#1\paperwidth,height=#1\paperheight,% + keepaspectratio]{#2}% + \vfill + }}} +} + + + +\newcommand{\TileSquareWallPaper}[2]{% +\AddToShipoutPicture{% + \begingroup + \setlength{\tileYoffset}{\wpYoffset} + \setlength{\tilewidth}{\paperwidth/#1}% + \setlength{\tileheight}{\tilewidth}% + \setlength{\tileY}{0pt}% + \whiledo{\lengthtest{\tileY < \paperheight}}{% + \setlength{\tileX}{0pt}% + \setlength{\tileXoffset}{\wpXoffset}% + \whiledo{\lengthtest{\tileX < \paperwidth}}{% + \put(\LenToUnit{\tileXoffset},\LenToUnit{\tileYoffset}){% + \includegraphics[height=\tileheight,width=\tilewidth]{#2}}% + \addtolength{\tileX}{\tilewidth} + \addtolength{\tileXoffset}{\tilewidth} + }% + \addtolength{\tileY}{\tileheight} + \addtolength{\tileYoffset}{\tileheight} + }% + \endgroup +}% +} + +\newcommand{\ThisTileSquareWallPaper}[2]{% +\AddToShipoutPicture*{% + \begingroup + \setlength{\tileYoffset}{\wpYoffset} + \setlength{\tilewidth}{\paperwidth/#1}% + \setlength{\tileheight}{\tilewidth}% + \setlength{\tileY}{0pt}% + \whiledo{\lengthtest{\tileY < \paperheight}}{% + \setlength{\tileX}{0pt}% + \setlength{\tileXoffset}{\wpXoffset}% + \whiledo{\lengthtest{\tileX < \paperwidth}}{% + \put(\LenToUnit{\tileXoffset},\LenToUnit{\tileYoffset}){% + \includegraphics[height=\tileheight,width=\tilewidth]{#2}}% + \addtolength{\tileX}{\tilewidth} + \addtolength{\tileXoffset}{\tilewidth} + }% + \addtolength{\tileY}{\tileheight} + \addtolength{\tileYoffset}{\tileheight} + }% + \endgroup +}% +} + + +\newcommand{\TileWallPaper}[3]{% +\AddToShipoutPicture{% + \begingroup + \setlength{\tileYoffset}{\wpYoffset} + \setlength{\tilewidth}{#1}% + \setlength{\tileheight}{#2}% + \setlength{\tileY}{0pt}% + \whiledo{\lengthtest{\tileY < \paperheight}}{% + \setlength{\tileX}{0pt}% + \setlength{\tileXoffset}{\wpXoffset}% + \whiledo{\lengthtest{\tileX < \paperwidth}}{% + \put(\LenToUnit{\tileXoffset},\LenToUnit{\tileYoffset}){% + \includegraphics[height=\tileheight,width=\tilewidth]{#3}}% + \addtolength{\tileX}{\tilewidth} + \addtolength{\tileXoffset}{\tilewidth} + }% + \addtolength{\tileY}{\tileheight} + \addtolength{\tileYoffset}{\tileheight} + }% + \endgroup +}% +} + +\newcommand{\ThisTileWallPaper}[3]{% +\AddToShipoutPicture*{% + \begingroup + \setlength{\tileYoffset}{\wpYoffset} + \setlength{\tilewidth}{#1}% + \setlength{\tileheight}{#2}% + \setlength{\tileY}{0pt}% + \whiledo{\lengthtest{\tileY < \paperheight}}{% + \setlength{\tileX}{0pt}% + \setlength{\tileXoffset}{\wpXoffset}% + \whiledo{\lengthtest{\tileX < \paperwidth}}{% + \put(\LenToUnit{\tileXoffset},\LenToUnit{\tileYoffset}){% + \includegraphics[height=\tileheight,width=\tilewidth]{#3}}% + \addtolength{\tileX}{\tilewidth} + \addtolength{\tileXoffset}{\tilewidth} + }% + \addtolength{\tileY}{\tileheight} + \addtolength{\tileYoffset}{\tileheight} + }% + \endgroup +}% +} + +\newcommand{\ClearWallPaper}{\ClearShipoutPicture} \ No newline at end of file diff --git a/verleihnix/.dummy b/verleihnix/.dummy new file mode 100644 index 0000000..e69de29 diff --git a/verleihnix/Verleihnix/.dummy b/verleihnix/Verleihnix/.dummy new file mode 100644 index 0000000..e69de29 diff --git a/verleihnix/Verleihnix/VNAdministration.php b/verleihnix/Verleihnix/VNAdministration.php new file mode 100644 index 0000000..458edc2 --- /dev/null +++ b/verleihnix/Verleihnix/VNAdministration.php @@ -0,0 +1,14 @@ + array ( + 'intern' => 'Krimi', + 'extern' => 'Krimi'), + 2 => array ( + 'intern' => 'Horbuch', + 'extern' => 'Hörbuch'), + 3 => array ( + 'intern' => 'Roman', + 'extern' => 'Roman'), + 4 => array ( + 'intern' => 'Werkzeug', + 'extern' => 'Werkzeug') + ); + + $atdc_tab = array ( + + // Krimi + array ( + 'intern' => 'autor', + 'extern' => 'Autor', + 'moc' => 'Krimi', + 'props' => array (AttrProperty::AP_GET)), + array ( + 'intern' => 'titel', + 'extern' => 'Titel', + 'moc' => 'Krimi', + 'props' => array (AttrProperty::AP_GET)), + array ( + 'intern' => 'eigentumer', + 'extern' => 'Eigentümer', + 'moc' => 'Krimi', + 'props' => array (AttrProperty::AP_GET)), + array ( + 'intern' => 'zz_bei', + 'extern' => 'zur_Zeit_bei', + 'moc' => 'Krimi', + 'props' => array (AttrProperty::AP_GET, AttrProperty::AP_SET)), + array ( + 'intern' => 'kommentar', + 'extern' => 'Kommentar', + 'moc' => 'Krimi', + 'props' => array (AttrProperty::AP_GET, AttrProperty::AP_SET)), + + // Hörbuch + array ( + 'intern' => 'autor', + 'extern' => 'Autor', + 'moc' => 'Horbuch', + 'props' => array (AttrProperty::AP_GET)), + array ( + 'intern' => 'titel', + 'extern' => 'Titel', + 'moc' => 'Horbuch', + 'props' => array (AttrProperty::AP_GET)), + array ( + 'intern' => 'eigentumer', + 'extern' => 'Eigentümer', + 'moc' => 'Horbuch', + 'props' => array (AttrProperty::AP_GET)), + array ( + 'intern' => 'zz_bei', + 'extern' => 'zur_Zeit_bei', + 'moc' => 'Horbuch', + 'props' => array (AttrProperty::AP_GET, AttrProperty::AP_SET)), + array ( + 'intern' => 'kommentar', + 'extern' => 'Kommentar', + 'moc' => 'Horbuch', + 'props' => array (AttrProperty::AP_GET, AttrProperty::AP_SET)), + + // Roman + array ( + 'intern' => 'autor', + 'extern' => 'Autor', + 'moc' => 'Roman', + 'props' => array (AttrProperty::AP_GET)), + array ( + 'intern' => 'titel', + 'extern' => 'Titel', + 'moc' => 'Roman', + 'props' => array (AttrProperty::AP_GET)), + array ( + 'intern' => 'eigentumer', + 'extern' => 'Eigentümer', + 'moc' => 'Roman', + 'props' => array (AttrProperty::AP_GET)), + array ( + 'intern' => 'zz_bei', + 'extern' => 'zur_Zeit_bei', + 'moc' => 'Roman', + 'props' => array (AttrProperty::AP_GET, AttrProperty::AP_SET)), + array ( + 'intern' => 'kommentar', + 'extern' => 'Kommentar', + 'moc' => 'Roman', + 'props' => array (AttrProperty::AP_GET, AttrProperty::AP_SET)), + + // Werkzeug + array ( + 'intern' => 'typ', + 'extern' => 'Typ', + 'moc' => 'Werkzeug', + 'props' => array (AttrProperty::AP_GET)), + array ( + 'intern' => 'beschreibung', + 'extern' => 'Beschreibung', + 'moc' => 'Werkzeug', + 'props' => array (AttrProperty::AP_GET)), + array ( + 'intern' => 'eigentumer', + 'extern' => 'Eigentümer', + 'moc' => 'Werkzeug', + 'props' => array (AttrProperty::AP_GET)), + array ( + 'intern' => 'zz_bei', + 'extern' => 'zur_Zeit_bei', + 'moc' => 'Werkzeug', + 'props' => array (AttrProperty::AP_GET, AttrProperty::AP_SET)) + ); + +?> diff --git a/verleihnix/Verleihnix/impl/data/.dummy b/verleihnix/Verleihnix/impl/data/.dummy new file mode 100644 index 0000000..e69de29 diff --git a/verleihnix/Verleihnix/impl/data/build.properties b/verleihnix/Verleihnix/impl/data/build.properties new file mode 100644 index 0000000..82cc9ed --- /dev/null +++ b/verleihnix/Verleihnix/impl/data/build.properties @@ -0,0 +1,5 @@ +# Database driver +propel.database = mysql + +# Project name +propel.project = propel diff --git a/verleihnix/Verleihnix/impl/data/runtime-conf.xml b/verleihnix/Verleihnix/impl/data/runtime-conf.xml new file mode 100644 index 0000000..25eec8f --- /dev/null +++ b/verleihnix/Verleihnix/impl/data/runtime-conf.xml @@ -0,0 +1,25 @@ + + + + + + + + mysql + + mysql:host=localhost;dbname=mkrimi + mkrimi + mkrimi + + utf8 + + + + + + diff --git a/verleihnix/Verleihnix/impl/data/schema.xml b/verleihnix/Verleihnix/impl/data/schema.xml new file mode 100644 index 0000000..07d47c0 --- /dev/null +++ b/verleihnix/Verleihnix/impl/data/schema.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + +
+ + + + + + + +
+
diff --git a/verleihnix/etc/.dummy b/verleihnix/etc/.dummy new file mode 100644 index 0000000..e69de29 diff --git a/verleihnix/etc/verleihnix.conf b/verleihnix/etc/verleihnix.conf new file mode 100644 index 0000000..cd8cc69 --- /dev/null +++ b/verleihnix/etc/verleihnix.conf @@ -0,0 +1,9 @@ +# Configuration for mKrimi Verleihnix Gui + Alias /verleihnix "/usr/share/php/verleihnix/gui" + + Options +FollowSymlinks + RewriteEngine On + RewriteBase /verleihnix/ + RewriteRule ^.*php$ index.php + + diff --git a/verleihnix/gui/.dummy b/verleihnix/gui/.dummy new file mode 100644 index 0000000..e69de29 diff --git a/verleihnix/gui/ConfigurationData.php b/verleihnix/gui/ConfigurationData.php new file mode 100644 index 0000000..d9249d5 --- /dev/null +++ b/verleihnix/gui/ConfigurationData.php @@ -0,0 +1,8 @@ + array ("Verleihnix"), + "autoloader" => array ("ClassLoader", "autoload"), + "Verleihnix::InterfaceClass" => "VNAdministration", + "PropelClassPath" => "Verleihnix/impl/data/build" + ); diff --git a/verleihnix/gui/index.php b/verleihnix/gui/index.php new file mode 120000 index 0000000..4469e92 --- /dev/null +++ b/verleihnix/gui/index.php @@ -0,0 +1 @@ +mKrimiGui.php \ No newline at end of file diff --git a/verleihnix/gui/mKrimiGui.php b/verleihnix/gui/mKrimiGui.php new file mode 100644 index 0000000..3cc01a7 --- /dev/null +++ b/verleihnix/gui/mKrimiGui.php @@ -0,0 +1,42 @@ +log(__FILE__, $requestMethod); +$logger->log(__FILE__, "GET-Variabeles:"); +while ( list($key, $value) = each($_GET) ) { + $logger->log(__FILE__, $key . " : " . $value);; +} +$logger->log(__FILE__, "POST-Variabeles:"); +while ( list($key, $value) = each($_POST) ) { + $logger->log(__FILE__, $key . " : " . $value);; +} +$logger->log(__FILE__,"Redirect-URL:".$_SERVER["REDIRECT_URL"]); + +// call implementation +try { + $control = new GenadControl(); + $control->doIt(); +} +catch (Exception $e) { + $logger->logException(__FILE__, $e); + echo "Error occurred!"; +} + diff --git a/verleihnix/gui/name_map.php b/verleihnix/gui/name_map.php new file mode 100644 index 0000000..54afac8 --- /dev/null +++ b/verleihnix/gui/name_map.php @@ -0,0 +1,10 @@ +nameMap = array ( + "Back" => "Zurück", + "Class Selection" => "Typ", + "Create" => "Anlegen", + "List" => "Liste", + "Select" => "Auswählen", + "Submit changes" => "Änderungen speichern", + "zur_Zeit_bei" => "zur Zeit bei" +); diff --git a/verleihnix/gui/view/.dummy b/verleihnix/gui/view/.dummy new file mode 100644 index 0000000..e69de29 diff --git a/verleihnix/gui/view/admin.css b/verleihnix/gui/view/admin.css new file mode 120000 index 0000000..e0f1667 --- /dev/null +++ b/verleihnix/gui/view/admin.css @@ -0,0 +1 @@ +/usr/share/php/GenericAdmin/gui/view/admin.css \ No newline at end of file diff --git a/verleihnix/gui/view/gfx b/verleihnix/gui/view/gfx new file mode 120000 index 0000000..ac9994b --- /dev/null +++ b/verleihnix/gui/view/gfx @@ -0,0 +1 @@ +/usr/share/php/mLohn/gui/view/gfx/ \ No newline at end of file diff --git a/verleihnix/gui/view/gfx.dummy b/verleihnix/gui/view/gfx.dummy new file mode 100644 index 0000000..e69de29