# SliTaz package receipt. PACKAGE="mtop" VERSION="0.6.6" CATEGORY="system-tools" SHORT_DESC="Monitors a MySQL server." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="https://mtop.sourceforge.net/" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" DEPENDS="perl-curses perl-dbd-mysql" BUILD_DEPENDS="perl-curses perl-dbd-mysql" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/mtop/files/mtop/ 2>/dev/null | \ sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ sed '/scope="row/!d;s|.*/mtop/v||;s|/.*||;q' } # Rules to configure and make the package. compile_rules() { perl Makefile.PL --prefix=/usr && make && make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cp -a $install/usr $fs }