wok annotate unfs3/receipt @ rev 25687

updated sc-im (0.8.2 -> 0.8.3)
author Hans-G?nter Theisgen
date Thu Apr 11 14:51:51 2024 +0100 (7 months ago)
parents 65ff25c4de90
children
rev   line source
erjo@171 1 # SliTaz package receipt.
erjo@171 2
erjo@171 3 PACKAGE="unfs3"
erjo@2984 4 VERSION="0.9.22"
pankso@211 5 CATEGORY="network"
erjo@171 6 SHORT_DESC="User-land NFSv3 Server"
erjo@784 7 MAINTAINER="erjo@slitaz.org"
pascal@15601 8 LICENSE="BSD"
erjo@171 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@25460 10 WEB_SITE="https://unfs3.sourceforge.net/"
pascal@25465 11 WGET_URL="$SF_MIRROR/project/unfs3/unfs3/$VERSION/$TARBALL"
jozee@4974 12 TAGS="network nfs"
pascal@5884 13 CONFIG_FILES="/etc/exports"
erjo@171 14
pascal@15601 15 DEPENDS="portmap"
pascal@15601 16 BUILD_DEPENDS="flex"
pascal@15601 17
pascal@24353 18 # What is the latest version available today?
pascal@24353 19 current_version()
pascal@24353 20 {
pascal@24353 21 wget -O - https://sourceforge.net/projects/unfs3/files/unfs3/ 2>/dev/null | \
pascal@25607 22 sed '/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \
pascal@24353 23 sed '/scope="row/!d;s|.*/unfs3/||;s|/.*||;q'
pascal@24353 24 }
pascal@24353 25
erjo@171 26 # Rules to configure and make the package.
erjo@171 27 compile_rules()
erjo@171 28 {
erjo@171 29 ./configure --prefix=/usr --infodir=/usr/share/info \
erjo@171 30 --sysconfdir=/etc \
pascal@5884 31 --mandir=/usr/share/man $CONFIGURE_ARGS &&
pascal@22345 32 make -j 1
erjo@171 33 }
erjo@171 34
erjo@171 35 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@171 36 genpkg_rules()
erjo@171 37 {
erjo@171 38 mkdir -p $fs/usr/bin
erjo@171 39 install -g root -o root -m 0755 -s $src/unfsd $fs/usr/bin
erjo@171 40
erjo@171 41 mkdir -p $fs/etc/init.d
pascal@4342 42 install -g root -o root -m 0644 stuff/etc/exports $fs/etc
erjo@171 43 install -g root -o root -m 0755 stuff/etc/init.d/unfsd $fs/etc/init.d
erjo@171 44 }
erjo@171 45
erjo@171 46 post_install()
erjo@171 47 {
erjo@171 48
erjo@171 49 echo -e "\nTo starts $PACKAGE server you can run :\n"
erjo@171 50 echo "/etc/init.d/$PACKAGE start"
erjo@171 51 echo -e "Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf\n"
erjo@171 52 }