# SliTaz package receipt. PACKAGE="davfs2" VERSION="1.6.1" CATEGORY="network" SHORT_DESC="Remote collaborative authoring of Web resources." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL3" WEB_SITE="https://savannah.nongnu.org/projects/$PACKAGE" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="https://download.savannah.gnu.org/releases/$PACKAGE/$TARBALL" DEPENDS="expat krb5 libcomerr3 libkrb5 neon openssl zlib" BUILD_DEPENDS="expat-dev krb5 krb5-dev neon-dev openssl-dev" CONFIG_FILES="/etc/davfs2" # What is the latest version available today? current_version() { wget -O - ${WGET_URL%/*} 2>/dev/null | \ sed '/davfs2-/!d;/bin/d;s|.*davfs2-||;s|.tar.*||' | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { sed -i 's|-fstack-protector-strong ||' \ src/Makefile.* ./configure \ --prefix=/usr \ --infodir=/usr/share/info \ --sysconfdir=/etc \ --mandir=/usr/share/man \ $CONFIGURE_ARGS && make && make install DESTDIR=$DESTDIR } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr cp -a $install/usr/sbin $fs/usr cp -a $install/etc $fs sed -i -e 's|# dav_user|dav_user|' \ -e 's|# dav_group|dav_group|' \ -e 's| davfs2 | www |' \ $fs/etc/davfs2/davfs2.conf }