diff options
| author | Eugen Wissner <belka@caraus.de> | 2026-09-22 23:32:38 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2026-09-22 23:32:38 +0200 |
| commit | 93c11444174013050aac719fd9c48d79e6b7fa66 (patch) | |
| tree | c8b5465c82d4fb528ecfeba1fdf10699d34217d8 /rabbitmq-c | |
| parent | b9f03cb474149ad5388f1d9c150f4e03b971a0ef (diff) | |
| download | slackbuilds-93c11444174013050aac719fd9c48d79e6b7fa66.tar.gz | |
librabbitmq-c: Renamed to rabbitmq-c
Diffstat (limited to 'rabbitmq-c')
| -rw-r--r-- | rabbitmq-c/README | 55 | ||||
| -rw-r--r-- | rabbitmq-c/rabbitmq-c.SlackBuild | 114 | ||||
| -rw-r--r-- | rabbitmq-c/rabbitmq-c.info | 10 | ||||
| -rw-r--r-- | rabbitmq-c/slack-desc | 19 |
4 files changed, 198 insertions, 0 deletions
diff --git a/rabbitmq-c/README b/rabbitmq-c/README new file mode 100644 index 0000000..5eda5e7 --- /dev/null +++ b/rabbitmq-c/README @@ -0,0 +1,55 @@ +This is a C-language AMQP client library for use with v2.0+ of the +RabbitMQ broker. + +* `BUILD_EXAMPLES=ON/OFF` toggles building the examples. + OFF by default. + +* `BUILD_SHARED_LIBS=ON/OFF` toggles building rabbitmq-c as a shared + library. + ON by default. + +* `BUILD_STATIC_LIBS=ON/OFF` toggles building rabbitmq-c as a static + library. + OFF by default. + +* `BUILD_TESTS=ON/OFF` toggles building test code. + OFF by default. + +* `BUILD_TOOLS=ON/OFF` toggles building the command line tools. + ON by default. + +* `BUILD_TOOLS_DOCS=ON/OFF` toggles building the man pages for the + command line tools. + ON by default if BUILD_TOOLS is ON and xmlto is installed. + +* `ENABLE_SSL_SUPPORT=ON/OFF` toggles building rabbitmq-c with SSL + support. + ON by default if the OpenSSL headers and library can be found. + +* `BUILD_API_DOCS=ON/OFF` toggles building the Doxygen API documentation + OFF by default. + +* `RUN_SYSTEM_TESTS=ON/OFF` toggles building the system tests. Tests + require an accessible RabbitMQ server instance on localhost. + OFF by default. + +If BUILD_EXAMPLES=ON or BUILD_TESTS=ON then executable programs will +be compiled from sources in /usr/doc/rabbitmq-c-$VERSION/examples/src/ +-and-or- /usr/doc/rabbitmq-c-$VERSION/examples/src/ The Extra Programs +will be installed in /usr/doc/rabbitmq-c-$VERSION/{examples,tests}/bin/ + +For Example, to build examples and tests: + +BUILD_EXAMPLES=ON BUILD_TESTS=ON ./rabbitmq-c.SlackBuild + +To build a nice html Doxygen API documentation tree in the directory +/usr/doc/rabbitmq-c-$VERSION/html/ you need to pass BUILD_API_DOCS=ON +to the script, for example + + BUILD_API_DOCS=ON ./rabbitmq-c.SlackBuild + +To build examples, tests and the html documentation: + +BUILD_EXAMPLES=ON \ +BUILD_TESTS=ON \ +BUILD_API_DOCS=ON ./rabbitmq-c.SlackBuild diff --git a/rabbitmq-c/rabbitmq-c.SlackBuild b/rabbitmq-c/rabbitmq-c.SlackBuild new file mode 100644 index 0000000..d588412 --- /dev/null +++ b/rabbitmq-c/rabbitmq-c.SlackBuild @@ -0,0 +1,114 @@ +#!/bin/bash + +# Slackware build script for librabbitmq-c + +# Copyright 2026 Eugene Wissner, Mannheim, Germany +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "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 AUTHOR 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. + +cd $(dirname $0) ; CWD=$(pwd) + +PRGNAM=rabbitmq-c +VERSION=${VERSION:-0.17.0} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +elif [ "$ARCH" = "aarch64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +mkdir -p build +cd build + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib${LIBDIRSUFFIX} \ + -DBUILD_SHARED_LIBS=ON \ + -DBUILD_STATIC_LIBS=OFF \ + -DBUILD_TESTING=OFF \ + -DBUILD_TOOLS=OFF \ + -DCMAKE_BUILD_TYPE=Release .. + +make +make install/strip DESTDIR=$PKG + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + $TMP/$PRGNAM-$VERSION/README.md \ + $TMP/$PRGNAM-$VERSION/LICENSE \ + $TMP/$PRGNAM-$VERSION/ChangeLog.md \ + $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/rabbitmq-c/rabbitmq-c.info b/rabbitmq-c/rabbitmq-c.info new file mode 100644 index 0000000..376cd80 --- /dev/null +++ b/rabbitmq-c/rabbitmq-c.info @@ -0,0 +1,10 @@ +PRGNAM="rabbitmq-c" +VERSION="0.17.0" +HOMEPAGE="https://github.com/alanxz/rabbitmq-c" +DOWNLOAD="https://mirrors.caraus.tech/hosted-sources/rabbitmq-c/rabbitmq-c-0.17.0.tar.gz" +MD5SUM="5dc34eb3b0684967932f08dd54e8bdc0" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="rabbitmq-server" +MAINTAINER="Eugene Wissner" +EMAIL="belka@caraus.de" diff --git a/rabbitmq-c/slack-desc b/rabbitmq-c/slack-desc new file mode 100644 index 0000000..4732cfe --- /dev/null +++ b/rabbitmq-c/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. Line +# up the first '|' above the ':' following the base package name, and the '|' +# on the right side marks the last column you can put a character in. You must +# make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':'. + + |-----handy-ruler------------------------------------------------------| +rabbitmq-c: rabbitmq-c (an AMQP client library for the RabbitMQ broker) +rabbitmq-c: +rabbitmq-c: rabbitmq-c is a C-language client library implementing the Advanced +rabbitmq-c: Message Queuing Protocol (AMQP) 0-9-1 protocol, for use with RabbitMQ +rabbitmq-c: or any other AMQP-compliant message broker. +rabbitmq-c: +rabbitmq-c: +rabbitmq-c: +rabbitmq-c: +rabbitmq-c: +rabbitmq-c: |
