wok annotate jabberd2/receipt @ rev 25794

created recipe for exo-lang
author Hans-G?nter Theisgen
date Wed Oct 23 16:19:52 2024 +0100 (6 weeks ago)
parents 5ea0ce1cecc0
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@25599 22 # What is the latest version available today?
pascal@24055 23 current_version()
pascal@24055 24 {
pascal@24055 25 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
pascal@25599 26 sed '/tag\//!d;s|.*tag/[a-z-]*||;s|".*||;q'
pascal@24055 27 }
pascal@24055 28
pascal@2139 29 # Rules to configure and make the package.
pascal@2139 30 compile_rules()
pascal@2139 31 {
Hans-G?nter@21079 32 # Removed for version 2.7.0:
Hans-G?nter@21075 33 # sed -i 's|#else /.*|&\nint set_debug_log_from_config(config_t c){}|' util/log.c
pascal@10561 34 CFLAGS="-march=$ARCH -O2 -pipe -fomit-frame-pointer"
Hans-G?nter@21069 35
Hans-G?nter@21070 36 ./configure \
Hans-G?nter@21069 37 --prefix=/usr \
Hans-G?nter@21069 38 --infodir=/usr/share/info \
Hans-G?nter@21069 39 --enable-sqlite \
Hans-G?nter@21069 40 --sysconfdir=/etc/jabberd \
Hans-G?nter@21069 41 --mandir=/usr/share/man \
Hans-G?nter@21069 42 $CONFIGURE_ARGS &&
Hans-G?nter@21069 43 make -j 1 &&
pascal@10561 44 make DESTDIR=$DESTDIR install
pascal@2139 45 }
pascal@2139 46
pascal@2139 47 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@2139 48 genpkg_rules()
pascal@2139 49 {
pascal@2139 50 mkdir -p $fs/usr/lib/jabberd
Hans-G?nter@21069 51
Hans-G?nter@21069 52 cp -a $install/etc $fs
Hans-G?nter@21069 53 cp -a $install/usr/bin $fs/usr
Hans-G?nter@21069 54 cp -a $install/usr/lib/jabberd/*so* $fs/usr/lib/jabberd
pascal@2139 55 }