SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "ldapvi"

# SliTaz package receipt.

PACKAGE="ldapvi"
VERSION="1.7"
CATEGORY="system-tools"
SHORT_DESC="Interactive LDAP client for Unix terminals."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="GPL2"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://www.lichteblau.com/ldapvi/"
WGET_URL="http://www.lichteblau.com/download/$TARBALL"
TAGS="LDAP"

DEPENDS="openldap glib popt openssl readline cyrus-sasl"
BUILD_DEPENDS="openldap-dev glib-dev popt-dev openssl-dev ncurses-dev \
readline-dev cyrus-sasl-dev"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/*} 2>/dev/null | \
    sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{
    export LDFLAGS="$LDFLAGS -ltinfo"
    grep -qs getline_ldapvi common.h ||
    sed -i 's/char .getline(.*/#define getline getline_ldapvi\n&/' common.h
    ./configure --prefix=/usr $CONFIGURE_ARGS && make
}

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