wok-6.x annotate jabberd2/receipt @ rev 25565

Reenable rpc for glibc, fix gpxe grub4dos receipt, fix linld url
author Stanislas Leduc <shann@slitaz.org>
date Tue May 09 17:24:00 2023 +0000 (18 months ago)
parents 86f5a6f059cb
children
rev   line source
pascal@2139 1 # SliTaz package receipt.
pascal@2139 2
pascal@2139 3 PACKAGE="jabberd2"
Hans-G?nter@21069 4 VERSION="2.7.0"
pascal@2139 5 CATEGORY="network"
Hans-G?nter@21069 6 TAGS="im instant-messaging server"
pascal@2139 7 SHORT_DESC="XMPP server (real-time communication)."
pascal@2139 8 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15002 9 LICENSE="GPL2"
Hans-G?nter@21069 10 WEB_SITE="https://jabberd2.org/"
Hans-G?nter@21069 11
pascal@2139 12 SOURCE="jabberd"
Hans-G?nter@21069 13 TARBALL="$SOURCE-$VERSION.tar.xz"
Hans-G?nter@21069 14 WGET_URL="https://github.com/$PACKAGE/$PACKAGE/releases/download/$SOURCE-$VERSION/$TARBALL"
Hans-G?nter@21069 15
pascal@21103 16 DEPENDS="expat gsasl libidn libcomerr3 libkrb5 openssl perl udns zlib"
Hans-G?nter@21069 17 BUILD_DEPENDS="cppunit-dev db-dev expat expat-dev gsasl gsasl-dev \
Hans-G?nter@21069 18 libidn-dev mysql openldap-dev openssl-dev postgresql \
pascal@23893 19 sqlite sqlite-dev udns udns-dev zlib-dev libgcrypt-dev"
Hans-G?nter@21079 20 CONFIG_FILES="/etc/jabberd"
pascal@2139 21
pascal@24055 22 current_version()
pascal@24055 23 {
pascal@24055 24 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
pascal@24055 25 sed '/archive.*tar/!d;s|.*/jabberd-\(.*\).tar.*|\1|;q'
pascal@24055 26 }
pascal@24055 27
pascal@2139 28 # Rules to configure and make the package.
pascal@2139 29 compile_rules()
pascal@2139 30 {
Hans-G?nter@21079 31 # Removed for version 2.7.0:
Hans-G?nter@21075 32 # sed -i 's|#else /.*|&\nint set_debug_log_from_config(config_t c){}|' util/log.c
pascal@10561 33 CFLAGS="-march=$ARCH -O2 -pipe -fomit-frame-pointer"
Hans-G?nter@21069 34
Hans-G?nter@21070 35 ./configure \
Hans-G?nter@21069 36 --prefix=/usr \
Hans-G?nter@21069 37 --infodir=/usr/share/info \
Hans-G?nter@21069 38 --enable-sqlite \
Hans-G?nter@21069 39 --sysconfdir=/etc/jabberd \
Hans-G?nter@21069 40 --mandir=/usr/share/man \
Hans-G?nter@21069 41 $CONFIGURE_ARGS &&
Hans-G?nter@21069 42 make -j 1 &&
pascal@10561 43 make DESTDIR=$DESTDIR install
pascal@2139 44 }
pascal@2139 45
pascal@2139 46 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@2139 47 genpkg_rules()
pascal@2139 48 {
pascal@2139 49 mkdir -p $fs/usr/lib/jabberd
Hans-G?nter@21069 50
Hans-G?nter@21069 51 cp -a $install/etc $fs
Hans-G?nter@21069 52 cp -a $install/usr/bin $fs/usr
Hans-G?nter@21069 53 cp -a $install/usr/lib/jabberd/*so* $fs/usr/lib/jabberd
pascal@2139 54 }