diff options
author | Michał Łyszczek <michal.lyszczek@bofc.pl> | 2018-10-23 12:05:50 +0200 |
---|---|---|
committer | Michał Łyszczek <michal.lyszczek@bofc.pl> | 2018-10-23 19:07:28 +0200 |
commit | 662344c820c10e83baaeec1993c97caaf9e8b54f (patch) | |
tree | 79ea3945fdf5a45a27397c4235e99a44925f2b3d | |
parent | c2439f0967f723467acb7fa9c84c70899045237c (diff) | |
download | librb-662344c820c10e83baaeec1993c97caaf9e8b54f.tar.gz librb-662344c820c10e83baaeec1993c97caaf9e8b54f.tar.bz2 librb-662344c820c10e83baaeec1993c97caaf9e8b54f.zip |
add: files to build debian packagespkgs
-rw-r--r-- | pkg/debian/changelog.template | 5 | ||||
-rw-r--r-- | pkg/debian/compat | 1 | ||||
-rw-r--r-- | pkg/debian/control.template | 34 | ||||
-rw-r--r-- | pkg/debian/copyright | 34 | ||||
-rw-r--r-- | pkg/debian/librb-dev.install | 4 | ||||
-rw-r--r-- | pkg/debian/librb1.install | 1 | ||||
-rwxr-xr-x | pkg/debian/rules | 26 | ||||
-rw-r--r-- | pkg/debian/source/format | 1 | ||||
l--------- | pkg/debian9 | 1 | ||||
-rw-r--r-- | pkg/test.c | 23 |
10 files changed, 130 insertions, 0 deletions
diff --git a/pkg/debian/changelog.template b/pkg/debian/changelog.template new file mode 100644 index 0000000..24fd27b --- /dev/null +++ b/pkg/debian/changelog.template @@ -0,0 +1,5 @@ +librb (${VERSION}) stable; urgency=low + + * librb package + + -- Michał Łyszczek <michal.lyszczek@bofc.pl> ${DATE} diff --git a/pkg/debian/compat b/pkg/debian/compat new file mode 100644 index 0000000..f599e28 --- /dev/null +++ b/pkg/debian/compat @@ -0,0 +1 @@ +10 diff --git a/pkg/debian/control.template b/pkg/debian/control.template new file mode 100644 index 0000000..578e27b --- /dev/null +++ b/pkg/debian/control.template @@ -0,0 +1,34 @@ +Source: librb +Section: devel +Priority: optional +Maintainer: Michał Łyszczek <michal.lyszczek@bofc.pl> +Build-Depends: debhelper (>=10), autotools-dev, dh-autoreconf +Standards-Version: 3.9.8 +Vcs-Git: https://git.kurwinet.pl/librb +Vcs-browser: https://git.kurwinet.pl/librb +Homepage: https://librb.kurwinet.pl + +Package: librb${ABI_VERSION} +Section: libs +Pre-Depends: ${misc:Pre-Depends} +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: Library that provides fast, easy to use ring buffer. + This is library that provides fast, easy to use ring buffer. It's + interface is very similar to read/write interface from POSIX. It + also provides optional thread awarness and thread safety for + concurrent access. If used without threads there are 0 (zero) + syscalls, everything is done in user's process without kernel + interfering and stealing precious cpu cycles. + +Package: librb-dev +Section: libdevel +Depends: librb${ABI_VERSION} (= ${binary:Version}), ${misc:Depends} +Architecture: any +Description: Library that provides fast, easy to use ring buffer. + This is library that provides fast, easy to use ring buffer. It's + interface is very similar to read/write interface from POSIX. It + also provides optional thread awarness and thread safety for + concurrent access. If used without threads there are 0 (zero) + syscalls, everything is done in user's process without kernel + interfering and stealing precious cpu cycles. diff --git a/pkg/debian/copyright b/pkg/debian/copyright new file mode 100644 index 0000000..cfbf3dc --- /dev/null +++ b/pkg/debian/copyright @@ -0,0 +1,34 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: librb +Source: https://git.kurwinet.pl/librb + +Files: * +Copyright: 2017, 2018 Michał Łyszczek <michal.lyszczek@bofc.pl> +License: BSD-2-Clause + +Files: debian/* +Copyright: 2018 Michał Łyszczek <michal.lyszczek@bofc.pl> +License: BSD-2-Clause + +License: BSD-2-Clause + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions are met: + . + 1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + . + 2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. diff --git a/pkg/debian/librb-dev.install b/pkg/debian/librb-dev.install new file mode 100644 index 0000000..8d58c59 --- /dev/null +++ b/pkg/debian/librb-dev.install @@ -0,0 +1,4 @@ +usr/lib/*/*.so +usr/include/rb.h +usr/share/man/man3/* +usr/share/man/man7/* diff --git a/pkg/debian/librb1.install b/pkg/debian/librb1.install new file mode 100644 index 0000000..3de3b10 --- /dev/null +++ b/pkg/debian/librb1.install @@ -0,0 +1 @@ +usr/lib/*/*.so.* diff --git a/pkg/debian/rules b/pkg/debian/rules new file mode 100755 index 0000000..f733e96 --- /dev/null +++ b/pkg/debian/rules @@ -0,0 +1,26 @@ +#!/usr/bin/make -f +# See debhelper(7) (uncomment to enable) +# output every command that modifies files on the build system. +export DH_VERBOSE = 1 + + +# see FEATURE AREAS in dpkg-buildflags(1) +#export DEB_BUILD_MAINT_OPTIONS = hardening=+all + +# see ENVIRONMENT in dpkg-buildflags(1) +# package maintainers to append CFLAGS +#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic +# package maintainers to append LDFLAGS +#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed + + +%: + dh $@ --list-missing --with autoreconf + +override_dh_auto_test: + $(MAKE) check + +# dh_make generated override targets +# This is example for Cmake (See https://bugs.debian.org/641051 ) +#override_dh_auto_configure: +# dh_auto_configure -- # -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) diff --git a/pkg/debian/source/format b/pkg/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/pkg/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/pkg/debian9 b/pkg/debian9 new file mode 120000 index 0000000..b2f7fd3 --- /dev/null +++ b/pkg/debian9 @@ -0,0 +1 @@ +debian
\ No newline at end of file diff --git a/pkg/test.c b/pkg/test.c new file mode 100644 index 0000000..0688f8f --- /dev/null +++ b/pkg/test.c @@ -0,0 +1,23 @@ +/* ========================================================================== + Licensed under BSD 2clause license See LICENSE file for more information + Author: Michał Łyszczek <michal.lyszczek@bofc.pl> + ========================================================================== */ + +/* this is very minimum program, just to check if librb is installed + * on the system or not + */ + +#include <rb.h> + +int main(void) +{ + struct rb *rb; + + if ((rb = rb_new(4, 1, 0)) == NULL) + { + return 1; + } + + rb_destroy(rb); + return 0; +} |