summaryrefslogtreecommitdiffstats
path: root/libraries/libmicrohttpd
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/libmicrohttpd')
-rw-r--r--libraries/libmicrohttpd/README27
-rw-r--r--libraries/libmicrohttpd/doinst.sh6
-rw-r--r--libraries/libmicrohttpd/libmicrohttpd.SlackBuild52
-rw-r--r--libraries/libmicrohttpd/libmicrohttpd.info6
4 files changed, 58 insertions, 33 deletions
diff --git a/libraries/libmicrohttpd/README b/libraries/libmicrohttpd/README
index 671f627350..b8350d177e 100644
--- a/libraries/libmicrohttpd/README
+++ b/libraries/libmicrohttpd/README
@@ -1,7 +1,7 @@
-GNU libmicrohttpd is a small C library that is supposed to make it easy to run
-an HTTP server as part of another application. GNU libmicrohttpd is free
-software and part of the GNU project. Key features that distinguish
-libmicrohttpd from other projects are:
+GNU libmicrohttpd is a small C library that is supposed to make
+it easy to run an HTTP server as part of another application. GNU
+libmicrohttpd is free software and part of the GNU project. Key
+features that distinguish libmicrohttpd from other projects are:
* C library: fast and small
* API is simple, expressive and fully reentrant
@@ -11,17 +11,18 @@ libmicrohttpd from other projects are:
* Support for incremental processing of POST data
* Creates binary of only 30k (without TLS/SSL support)
* Three different threading models
-* Supported platforms include GNU/Linux, FreeBSD, OpenBSD, NetBSD, OS X, W32,
- Symbian and z/OS
+* Supported platforms include GNU/Linux, FreeBSD, OpenBSD, NetBSD,
+ OS X, W32, Symbian and z/OS
* Optional support for SSL3 and TLS (requires libgcrypt)
-libmicrohttpd was started because the author needed an easy way to add a
-concurrent HTTP server to other projects. Existing alternatives were either
-non-free, not reentrant, standalone, of terrible code quality or a combination
-thereof. Do not use libmicrohttpd if you are looking for a standalone http
-server, there are many other projects out there that provide that kind of
-functionality already. However, if you want to be able to serve simple WWW
-pages from within your C or C++ application, check it out.
+libmicrohttpd was started because the author needed an easy way to add
+a concurrent HTTP server to other projects. Existing alternatives were
+either non-free, not reentrant, standalone, of terrible code quality
+or a combination thereof. Do not use libmicrohttpd if you are looking
+for a standalone http server, there are many other projects out there
+that provide that kind of functionality already. However, if you
+want to be able to serve simple WWW pages from within your C or C++
+application, check it out.
libmicrohttpd is licensed under the GNU LGPL. If you disable HTTPS/SSL
support, you can also choose the second license, the eCos License.
diff --git a/libraries/libmicrohttpd/doinst.sh b/libraries/libmicrohttpd/doinst.sh
new file mode 100644
index 0000000000..1bef502028
--- /dev/null
+++ b/libraries/libmicrohttpd/doinst.sh
@@ -0,0 +1,6 @@
+if [ -x /usr/bin/install-info -a -d usr/info ]; then
+ ( cd usr/info
+ rm -f dir
+ for i in *.info*; do /usr/bin/install-info $i dir 2>/dev/null; done
+ )
+fi
diff --git a/libraries/libmicrohttpd/libmicrohttpd.SlackBuild b/libraries/libmicrohttpd/libmicrohttpd.SlackBuild
index 668f5f9234..27bcb9db75 100644
--- a/libraries/libmicrohttpd/libmicrohttpd.SlackBuild
+++ b/libraries/libmicrohttpd/libmicrohttpd.SlackBuild
@@ -1,9 +1,9 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for libmicrohttpd.
#
# Copyright 2010-2011 Marco Bonetti <sid77@slackware.it>
-# Copyright 2015,2017 Kent Fritz <fritz.kent@gmail.com>
+# Copyright 2015,2017,2020 Kent Fritz <fritz.kent@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,10 +23,18 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 20230630 bkw: Modified by SlackBuilds.org, BUILD=2:
+# - move .png file out of /usr/info.
+# - add doinst.sh to handle /usr/info/dir.
+# - rm generic INSTALL instructions from doc dir.
+
+cd $(dirname $0) ; CWD=$(pwd)
+
PRGNAM=libmicrohttpd
-VERSION=${VERSION:-0.9.55}
-BUILD=${BUILD:-1}
+VERSION=${VERSION:-0.9.75}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -36,12 +44,16 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+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}
-DOCS="AUTHORS COPYING ChangeLog INSTALL README"
+DOCS="AUTHORS COPYING ChangeLog README"
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
@@ -69,9 +81,9 @@ 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 \
+ -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 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} +
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
@@ -86,22 +98,28 @@ CXXFLAGS="$SLKCFLAGS" \
--build=$ARCH-slackware-linux
make
-make install DESTDIR=$PKG
+make install-strip DESTDIR=$PKG
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
- | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-
-find $PKG/usr/man -type f -exec gzip -9 {} \;
+gzip -9 $PKG/usr/man/man*/*
rm -f $PKG/usr/info/dir
gzip -9 $PKG/usr/info/*.info*
-mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
-cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
+mkdir -p $PKGDOC
+cp -a $DOCS $PKGDOC
+cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild
+
+# 20230630 bkw: this is documentation, but not an .info file, put in the
+# main doc dir.
+mv $PKG/usr/info/*.png $PKGDOC
+
+rm -f $PKG/usr/lib*/*.la
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+cat $CWD/doinst.sh > $PKG/install/douninst.sh
cd $PKG
-/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
diff --git a/libraries/libmicrohttpd/libmicrohttpd.info b/libraries/libmicrohttpd/libmicrohttpd.info
index 1d20cf833e..0524711ffa 100644
--- a/libraries/libmicrohttpd/libmicrohttpd.info
+++ b/libraries/libmicrohttpd/libmicrohttpd.info
@@ -1,8 +1,8 @@
PRGNAM="libmicrohttpd"
-VERSION="0.9.55"
+VERSION="0.9.75"
HOMEPAGE="http://www.gnu.org/software/libmicrohttpd/"
-DOWNLOAD="http://ftpmirror.gnu.org/libmicrohttpd/libmicrohttpd-0.9.55.tar.gz"
-MD5SUM="1c20f84a8b9cf692dd50b558b3571a3a"
+DOWNLOAD="http://ftpmirror.gnu.org/libmicrohttpd/libmicrohttpd-0.9.75.tar.gz"
+MD5SUM="aff64581937b53f3a23b05216ad2cd02"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""