Receipt for package "sarg"
# SliTaz package receipt. PACKAGE="sarg" VERSION="2.4.0" CATEGORY="network" SHORT_DESC="Squid Analysis Report Generator." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2" WEB_SITE="https://sourceforge.net/projects/sarg/" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/sarg/files/sarg/ 2>/dev/null | \ sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ sed '/scope="row/!d;s|.*/sarg-||;s|.tar.*||;q' } # Rules to configure and make the package. compile_rules() { sed -i 's/@mkdir_p@/mkdir -p/' po/Makefile* ./configure \ --sysconfdir=/etc/sarg \ --bindir=/usr/bin \ --htmldir=/var/www \ --enable-fontdir=/usr/share/sarg/fonts \ --enable-imagedir=/usr/share/sarg/images \ --enable-sargphp=/var/www/sarg-php && make && make install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/share #cp -a $install/var $fs cp -a $install/etc $fs cp -a $install/usr/bin $fs/usr cp -a $install/usr/share/sarg $fs/usr/share sed -i -e "s!^#access_log.*!access_log /var/log/squid/access_log!" \ -e "s!^#output_dir.*!output_dir /var/www/squid-reports!" \ $fs/etc/sarg/sarg.conf }
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)