summaryrefslogtreecommitdiff
path: root/misc/mosquitto/mosquitto.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'misc/mosquitto/mosquitto.SlackBuild')
-rw-r--r--misc/mosquitto/mosquitto.SlackBuild22
1 files changed, 11 insertions, 11 deletions
diff --git a/misc/mosquitto/mosquitto.SlackBuild b/misc/mosquitto/mosquitto.SlackBuild
index 4a55abdab9..3d78bbfa5c 100644
--- a/misc/mosquitto/mosquitto.SlackBuild
+++ b/misc/mosquitto/mosquitto.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=mosquitto
-VERSION=${VERSION:-0.14.2}
+VERSION=${VERSION:-1.0.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -69,16 +69,15 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-# Patches for correct build/install on Slackware
-cat $CWD/01_config.mk.diff | patch -p0
-cat $CWD/02_client_Makefile.diff | patch -p0
+mkdir build
+cd build
+cmake ../ \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DLIB_SUFFIX=64 \
-# patch config.mk to respect CFLAGS
-sed -i "s/CFLAGS=/CFLAGS+=/" config.mk
-
-CFLAGS="$SLKCFLAGS" \
- make
-LIB_SUFFIX=$LIBDIRSUFFIX make install DESTDIR=$PKG
+make
+make install DESTDIR=$PKG
+cd -
# Preserve existing mosquitto.conf during package installation
mv $PKG/etc/mosquitto/mosquitto.conf $PKG/etc/mosquitto/mosquitto.conf.new
@@ -86,12 +85,13 @@ mv $PKG/etc/mosquitto/mosquitto.conf $PKG/etc/mosquitto/mosquitto.conf.new
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+mv $PKG/usr/share/man $PKG/usr/ && rmdir $PKG/usr/share
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
- COPYING ChangeLog.txt Makefile compiling.txt mosquitto.conf readme.txt \
+ LICENSE.txt LICENSE-3rd-party.txt compiling.txt mosquitto.conf *.example readme.txt \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild