# SliTaz package receipt. PACKAGE="jabberd2" VERSION="2.7.0" CATEGORY="network" TAGS="im instant-messaging server" SHORT_DESC="XMPP server (real-time communication)." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2" WEB_SITE="https://jabberd2.org/" SOURCE="jabberd" TARBALL="$SOURCE-$VERSION.tar.xz" WGET_URL="https://github.com/$PACKAGE/$PACKAGE/releases/download/$SOURCE-$VERSION/$TARBALL" DEPENDS="expat gsasl libidn libcomerr3 libkrb5 openssl perl udns zlib" BUILD_DEPENDS="cppunit-dev db-dev expat expat-dev gsasl gsasl-dev \ libidn-dev mysql openldap-dev openssl-dev postgresql \ sqlite sqlite-dev udns udns-dev zlib-dev libgcrypt-dev" CONFIG_FILES="/etc/jabberd" current_version() { wget -O - ${WGET_URL%/down*} 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/jabberd-\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { # Removed for version 2.7.0: # sed -i 's|#else /.*|&\nint set_debug_log_from_config(config_t c){}|' util/log.c CFLAGS="-march=$ARCH -O2 -pipe -fomit-frame-pointer" ./configure \ --prefix=/usr \ --infodir=/usr/share/info \ --enable-sqlite \ --sysconfdir=/etc/jabberd \ --mandir=/usr/share/man \ $CONFIGURE_ARGS && make -j 1 && make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib/jabberd cp -a $install/etc $fs cp -a $install/usr/bin $fs/usr cp -a $install/usr/lib/jabberd/*so* $fs/usr/lib/jabberd }