wok-current view unfs3/receipt @ rev 24353
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Feb 03 12:55:23 2022 +0000 (2022-02-03) |
parents | 951896e3e5b3 |
children | 1805f71c5d9f |
line source
1 # SliTaz package receipt.
3 PACKAGE="unfs3"
4 VERSION="0.9.22"
5 CATEGORY="network"
6 SHORT_DESC="User-land NFSv3 Server"
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="BSD"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://unfs3.sourceforge.net/"
11 WGET_URL="http://ovh.dl.sourceforge.net/sourceforge/unfs3/${TARBALL}"
12 TAGS="network nfs"
13 CONFIG_FILES="/etc/exports"
15 DEPENDS="portmap"
16 BUILD_DEPENDS="flex"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://sourceforge.net/projects/unfs3/files/unfs3/ 2>/dev/null | \
22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
23 sed '/scope="row/!d;s|.*/unfs3/||;s|/.*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 ./configure --prefix=/usr --infodir=/usr/share/info \
30 --sysconfdir=/etc \
31 --mandir=/usr/share/man $CONFIGURE_ARGS &&
32 make -j 1
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/bin
39 install -g root -o root -m 0755 -s $src/unfsd $fs/usr/bin
41 mkdir -p $fs/etc/init.d
42 install -g root -o root -m 0644 stuff/etc/exports $fs/etc
43 install -g root -o root -m 0755 stuff/etc/init.d/unfsd $fs/etc/init.d
44 }
46 post_install()
47 {
49 echo -e "\nTo starts $PACKAGE server you can run :\n"
50 echo "/etc/init.d/$PACKAGE start"
51 echo -e "Or add $PACKAGE to RUN_DAEMONS in /etc/rcS.conf\n"
52 }