# SliTaz package receipt. PACKAGE="tacacs+" VERSION="4.0.4.28" CATEGORY="misc" SHORT_DESC="Authentication server for cisco devices." MAINTAINER="allan316@gmail.com" LICENSE="MIT" WEB_SITE="https://www.shrubbery.net/tac_plus" TARBALL="${PACKAGE/+/}-F$VERSION.tar.gz" WGET_URL="https://shrubbery.net/pub/tac_plus/$TARBALL" DEPENDS="libwrap pam" BUILD_DEPENDS="libwrap-dev pam-dev" # What is the latest version available today? current_version() { wget -O - ${WGET_URL%/*}/ 2>/dev/null | \ sed "/latest/d;/$PACKAGE-F[0-9]/!d;/tar/!d;s|.*$PACKAGE-F\\(.*\\).tar.*|\\1|" | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { ./configure \ --prefix=/usr \ --infodir=/usr/share/info \ --mandir=/usr/share/man \ $CONFIGURE_ARGS && make && make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr cp -a $install/usr/bin $fs/usr cp -a $install/usr/sbin $fs/usr }