SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "csync"

# SliTaz package receipt.

PACKAGE="csync"
VERSION="0.50.8"
CATEGORY="network"
SHORT_DESC="File synchronizer"
MAINTAINER="erjo@slitaz.org"
LICENSE="GPL2"
WEB_SITE="https://csync.org/"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WGET_URL="https://web.archive.org/web/20121102081006if_/http://download.owncloud.com/download/$TARBALL"

DEPENDS="libsqlite neon"
BUILD_DEPENDS="check-dev cmake sqlite-dev iniparser-dev  \
 expat-dev openssl-dev log4c-dev neon-dev samba-dev"

# What is the latest version available today?
current_version()
{
    wget -O - https://csync.org/ 2>/dev/null | \
    sed '/csync version/!d;s|.*version ||;s|<.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    sed -i 's|^\( *\)/opt/local\(.*\)$|&\n\1/opt/samba\2|' cmake/Modules/FindLibsmbclient.cmake
    mkdir csync-build && cd csync-build
    cmake -DCMAKE_INSTALL_PREFIX=/usr \
        -DWITH_LOG4C=OFF \
        -DLOG_TO_CALLBACK=ON .. \
        && make && make install
    
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib 
    
    cp -a $install/usr/etc $fs/
    cp -a $install/usr/bin $fs/usr
    cp -a $install/usr/lib/*.so* $fs/usr/lib
    cp -a $install/usr/lib/csync-0 $fs/usr/lib
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)