diff options
author | Christoph Willing <c.willing@uq.edu.au> | 2012-09-28 19:20:06 +1000 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2012-09-28 21:26:57 -0500 |
commit | 5ccfa068d73b4f63c566b858f55061f1c1bc671c (patch) | |
tree | 4c4970c89356e90c05d48e719cf7a7247d1cf17a /misc/mosquitto/mosquitto.SlackBuild | |
parent | ab754049d78a9e7b0c33aa5b871f9dd21282d305 (diff) | |
download | slackbuilds-5ccfa068d73b4f63c566b858f55061f1c1bc671c.tar.gz |
misc/mosquitto: Updated for version 1.0.3.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'misc/mosquitto/mosquitto.SlackBuild')
-rw-r--r-- | misc/mosquitto/mosquitto.SlackBuild | 22 |
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 |