wok view jabberd2/receipt @ rev 25794
created recipe for exo-lang
author | Hans-G?nter Theisgen |
---|---|
date | Wed Oct 23 16:19:52 2024 +0100 (5 weeks ago) |
parents | 5ea0ce1cecc0 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="jabberd2"
4 VERSION="2.7.0"
5 CATEGORY="network"
6 TAGS="im instant-messaging server"
7 SHORT_DESC="XMPP server (real-time communication)."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://jabberd2.org/"
12 SOURCE="jabberd"
13 TARBALL="$SOURCE-$VERSION.tar.xz"
14 WGET_URL="https://github.com/$PACKAGE/$PACKAGE/releases/download/$SOURCE-$VERSION/$TARBALL"
16 DEPENDS="expat gsasl libidn libcomerr3 libkrb5 openssl perl udns zlib"
17 BUILD_DEPENDS="cppunit-dev db-dev expat expat-dev gsasl gsasl-dev \
18 libidn-dev mysql openldap-dev openssl-dev postgresql \
19 sqlite sqlite-dev udns udns-dev zlib-dev libgcrypt-dev"
20 CONFIG_FILES="/etc/jabberd"
22 # What is the latest version available today?
23 current_version()
24 {
25 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
26 sed '/tag\//!d;s|.*tag/[a-z-]*||;s|".*||;q'
27 }
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 # Removed for version 2.7.0:
33 # sed -i 's|#else /.*|&\nint set_debug_log_from_config(config_t c){}|' util/log.c
34 CFLAGS="-march=$ARCH -O2 -pipe -fomit-frame-pointer"
36 ./configure \
37 --prefix=/usr \
38 --infodir=/usr/share/info \
39 --enable-sqlite \
40 --sysconfdir=/etc/jabberd \
41 --mandir=/usr/share/man \
42 $CONFIGURE_ARGS &&
43 make -j 1 &&
44 make DESTDIR=$DESTDIR install
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 mkdir -p $fs/usr/lib/jabberd
52 cp -a $install/etc $fs
53 cp -a $install/usr/bin $fs/usr
54 cp -a $install/usr/lib/jabberd/*so* $fs/usr/lib/jabberd
55 }