wok-6.x view jabberd2/receipt @ rev 24758
xfe: cheat configure
author | Hans-G?nter Theisgen |
---|---|
date | Fri Mar 18 07:44:06 2022 +0100 (2022-03-18) |
parents | 86f5a6f059cb |
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 current_version()
23 {
24 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
25 sed '/archive.*tar/!d;s|.*/jabberd-\(.*\).tar.*|\1|;q'
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 # Removed for version 2.7.0:
32 # sed -i 's|#else /.*|&\nint set_debug_log_from_config(config_t c){}|' util/log.c
33 CFLAGS="-march=$ARCH -O2 -pipe -fomit-frame-pointer"
35 ./configure \
36 --prefix=/usr \
37 --infodir=/usr/share/info \
38 --enable-sqlite \
39 --sysconfdir=/etc/jabberd \
40 --mandir=/usr/share/man \
41 $CONFIGURE_ARGS &&
42 make -j 1 &&
43 make DESTDIR=$DESTDIR install
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 mkdir -p $fs/usr/lib/jabberd
51 cp -a $install/etc $fs
52 cp -a $install/usr/bin $fs/usr
53 cp -a $install/usr/lib/jabberd/*so* $fs/usr/lib/jabberd
54 }