SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "siproxd"

# SliTaz package receipt.

PACKAGE="siproxd"
VERSION="0.8.3"
CATEGORY="network"
SHORT_DESC="A masquerading SIP Proxy Server."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://siproxd.sourceforge.net/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"

DEPENDS="osip"
BUILD_DEPENDS="libtool osip-dev sqlite-dev"

CONFIG_FILES="/etc/siproxd"

# What is the latest version available today?
current_version()
{
    wget -O - https://sourceforge.net/projects/$PACKAGE/files/ 2>/dev/null | \
    sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
    sed "/$PACKAGE-/!d;s|.*$PACKAGE-||;s|.[zt].*||;s|_|.|g;q"
}

# Rules to configure and make the package.
compile_rules()
{
    sed -i 's/.*const ident.*/#undef lt_preloaded_symbols\n#define lt_preloaded_symbols lt_libltdl_LTX_preloaded_symbols\nextern const lt_dlsymlist lt_preloaded_symbols[];\n&/' \
        src/plugins.c

    ./configure                \
        --prefix=/usr            \
        --mandir=/usr/share/man        \
        --sysconfdir=/etc/siproxd    \
        --localstatedir=/var        \
        $CONFIGURE_ARGS &&
    make &&
    make install DESTDIR=$DESTDIR
}

# Rules to gen a SliTaz package suitable for Tazpkg.   
genpkg_rules()                                      
{
    mkdir -p $install/usr/share

    cp -a $src/doc        $install/usr/share
    rm -f            $install/usr/share/doc/Makefile*
    cook_copy_folders    etc
    cook_copy_folders    lib
    cook_copy_folders    sbin
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)