wok annotate autofs/receipt @ rev 24372
updated bison and bison-lang (3.5 -> 3.8.2)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Feb 05 15:15:36 2022 +0100 (2022-02-05) |
parents | 71360a13cd94 |
children |
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@24340 | 25 local version="$(wget -O - ${WGET_URL%/*/*} 2>/dev/null | \ |
pascal@24340 | 26 sed '/>v/!d;s|.*="||;s|".*||' | sort -Vr | sed q)" |
pascal@24340 | 27 wget -O - ${WGET_URL%/*/*}/$version 2>/dev/null | \ |
pascal@24336 | 28 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24336 | 29 } |
pascal@24336 | 30 |
pascal@7287 | 31 # Rules to configure and make the package. |
pascal@7287 | 32 compile_rules() |
pascal@7287 | 33 { |
Hans-G?nter@24335 | 34 sed -i -e 's|-b --suffix=.orig||' \ |
Hans-G?nter@24335 | 35 -e 's|install -v|install|' \ |
Hans-G?nter@22521 | 36 */Makefile* |
al@19275 | 37 |
Hans-G?nter@22521 | 38 ./configure \ |
Hans-G?nter@22521 | 39 --prefix=/usr \ |
Hans-G?nter@22521 | 40 --infodir=/usr/share/info \ |
Hans-G?nter@22521 | 41 --mandir=/usr/share/man \ |
al@19275 | 42 $CONFIGURE_ARGS && |
pascal@20196 | 43 make LDFLAGS="-lrt" && |
pascal@14772 | 44 make DESTDIR=$DESTDIR install |
pascal@7287 | 45 } |
pascal@7287 | 46 |
pascal@7287 | 47 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@7287 | 48 genpkg_rules() |
pascal@7287 | 49 { |
Hans-G?nter@24335 | 50 mkdir -p $fs/etc |
pascal@7287 | 51 mkdir -p $fs/usr |
Hans-G?nter@22521 | 52 |
Hans-G?nter@24335 | 53 cp -a $stuff/etc/* $fs/etc |
Hans-G?nter@24335 | 54 # Create empty configuration file |
Hans-G?nter@24335 | 55 touch $fs/etc/autofs.conf |
Hans-G?nter@24335 | 56 cp -a $install/usr/lib $fs/usr |
Hans-G?nter@22521 | 57 cp -a $install/usr/sbin $fs/usr |
pascal@7287 | 58 } |
pascal@7323 | 59 |
Hans-G?nter@24335 | 60 # Post install commands for Tazpkg. |
pascal@7323 | 61 post_install() |
pascal@7323 | 62 { |
al@18667 | 63 mkdir -p "$1/mnt/auto" 2>/dev/null |
pascal@7323 | 64 } |