wok-6.x annotate ldapvi/receipt @ rev 25107
Up open-iscsi (2.0.873)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jun 22 17:23:49 2022 +0000 (2022-06-22) |
parents | e93301ba4fec |
children |
rev | line source |
---|---|
pascal@6587 | 1 # SliTaz package receipt. |
pascal@6587 | 2 |
pascal@6587 | 3 PACKAGE="ldapvi" |
pascal@6587 | 4 VERSION="1.7" |
pascal@6587 | 5 CATEGORY="system-tools" |
pascal@6587 | 6 SHORT_DESC="Interactive LDAP client for Unix terminals." |
pascal@6587 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
pascal@6587 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@6587 | 10 WEB_SITE="http://www.lichteblau.com/ldapvi/" |
pascal@6587 | 11 WGET_URL="http://www.lichteblau.com/download/$TARBALL" |
pascal@15000 | 12 TAGS="LDAP" |
pascal@15000 | 13 |
pascal@6587 | 14 DEPENDS="openldap glib popt openssl readline cyrus-sasl" |
pascal@6587 | 15 BUILD_DEPENDS="openldap-dev glib-dev popt-dev openssl-dev ncurses-dev \ |
pascal@6587 | 16 readline-dev cyrus-sasl-dev" |
pascal@6587 | 17 |
pascal@24447 | 18 # What is the latest version available today? |
pascal@24447 | 19 current_version() |
pascal@24447 | 20 { |
pascal@24447 | 21 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24447 | 22 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q |
pascal@24447 | 23 } |
pascal@24447 | 24 |
pascal@6587 | 25 # Rules to configure and make the package. |
pascal@6587 | 26 compile_rules() |
pascal@6587 | 27 { |
pascal@17628 | 28 export LDFLAGS="$LDFLAGS -ltinfo" |
pascal@6587 | 29 grep -qs getline_ldapvi common.h || |
pascal@6587 | 30 sed -i 's/char .getline(.*/#define getline getline_ldapvi\n&/' common.h |
pascal@6587 | 31 ./configure --prefix=/usr $CONFIGURE_ARGS && make |
pascal@6587 | 32 } |
pascal@6587 | 33 |
pascal@6587 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@6587 | 35 genpkg_rules() |
pascal@6587 | 36 { |
pascal@6587 | 37 mkdir -p $fs/usr/bin |
pascal@6587 | 38 cp -a $src/ldapvi $fs/usr/bin |
pascal@6587 | 39 } |