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