wok-6.x annotate autofs/receipt @ rev 24336
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jan 28 18:19:21 2022 +0000 (2022-01-28) |
parents | 6f4496f6c83c |
children | 5f6c5106b1f5 |
rev | line source |
---|---|
pascal@7287 | 1 # SliTaz package receipt. |
pascal@7287 | 2 |
pascal@7287 | 3 PACKAGE="autofs" |
Hans-G?nter@24335 | 4 VERSION="5.1.8" |
pascal@7287 | 5 CATEGORY="system-tools" |
Hans-G?nter@22521 | 6 TAGS="filesystem" |
pascal@7287 | 7 SHORT_DESC="Linux automounter." |
pascal@7287 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15000 | 9 LICENSE="GPL2" |
pascal@20194 | 10 WEB_SITE="https://www.kernel.org/pub/linux/daemons/autofs/v${VERSION%%.*}" |
Hans-G?nter@22521 | 11 |
Hans-G?nter@22521 | 12 TARBALL="$PACKAGE-$VERSION.tar.xz" |
pascal@7287 | 13 WGET_URL="$WEB_SITE/$TARBALL" |
pascal@14772 | 14 |
pascal@7323 | 15 DEPENDS="linux-autofs" |
Hans-G?nter@22521 | 16 BUILD_DEPENDS="cyrus-sasl-dev flex krb5-dev libxml2-dev openldap-dev openssl-dev" |
Hans-G?nter@22521 | 17 |
Hans-G?nter@24335 | 18 CONFIG_FILES="/etc/autofs.conf" |
Hans-G?nter@24335 | 19 |
Hans-G?nter@22521 | 20 TAZPANEL_DAEMON="man|help::automount|edit::/etc/auto.misc|options::AUTOMOUNT_OPTIONS|web::$WEB_SITE" |
pascal@7287 | 21 |
pascal@24336 | 22 # What is the latest version available today? |
pascal@24336 | 23 current_version() |
pascal@24336 | 24 { |
pascal@24336 | 25 wget -O - ${WGET_URL%/*/*}/$(wget -O - ${WGET_URL%/*/*} 2>/dev/null | \ |
pascal@24336 | 26 sed '/>v/!d;s|.*="||;s|".*||' | sort -Vr | sed q) 2>/dev/null | \ |
pascal@24336 | 27 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24336 | 28 } |
pascal@24336 | 29 |
pascal@7287 | 30 # Rules to configure and make the package. |
pascal@7287 | 31 compile_rules() |
pascal@7287 | 32 { |
Hans-G?nter@24335 | 33 sed -i -e 's|-b --suffix=.orig||' \ |
Hans-G?nter@24335 | 34 -e 's|install -v|install|' \ |
Hans-G?nter@22521 | 35 */Makefile* |
al@19275 | 36 |
Hans-G?nter@22521 | 37 ./configure \ |
Hans-G?nter@22521 | 38 --prefix=/usr \ |
Hans-G?nter@22521 | 39 --infodir=/usr/share/info \ |
Hans-G?nter@22521 | 40 --mandir=/usr/share/man \ |
al@19275 | 41 $CONFIGURE_ARGS && |
pascal@20196 | 42 make LDFLAGS="-lrt" && |
pascal@14772 | 43 make DESTDIR=$DESTDIR install |
pascal@7287 | 44 } |
pascal@7287 | 45 |
pascal@7287 | 46 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@7287 | 47 genpkg_rules() |
pascal@7287 | 48 { |
Hans-G?nter@24335 | 49 mkdir -p $fs/etc |
pascal@7287 | 50 mkdir -p $fs/usr |
Hans-G?nter@22521 | 51 |
Hans-G?nter@24335 | 52 cp -a $stuff/etc/* $fs/etc |
Hans-G?nter@24335 | 53 # Create empty configuration file |
Hans-G?nter@24335 | 54 touch $fs/etc/autofs.conf |
Hans-G?nter@24335 | 55 cp -a $install/usr/lib $fs/usr |
Hans-G?nter@22521 | 56 cp -a $install/usr/sbin $fs/usr |
pascal@7287 | 57 } |
pascal@7323 | 58 |
Hans-G?nter@24335 | 59 # Post install commands for Tazpkg. |
pascal@7323 | 60 post_install() |
pascal@7323 | 61 { |
al@18667 | 62 mkdir -p "$1/mnt/auto" 2>/dev/null |
pascal@7323 | 63 } |