wok-current view sudo/receipt @ rev 25642
Bump linux to 4.19.305, add linux-pae-ipv6
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Wed Jan 17 12:05:22 2024 +0000 (11 months ago) |
parents | 059bb2e67481 |
children | 5926178cd6fa |
line source
1 # SliTaz package receipt.
3 PACKAGE="sudo"
4 VERSION="1.9.5p2"
5 CATEGORY="security"
6 SHORT_DESC="Allows command execution as root for specified users."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="ISC"
9 WEB_SITE="https://www.sudo.ws/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="${WEB_SITE}dist/$TARBALL"
14 CONFIG_FILES="/etc/sudoers"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - $WEB_SITE 2>/dev/null | \
20 grep -A 1 'The current' | sed '/>sudo/!d;s|.*>sudo *||;s|<.*||;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 ./configure \
27 --sysconfdir=/etc \
28 --without-pam \
29 --with-editor=/bin/vi \
30 --libexecdir=/usr/lib \
31 $CONFIGURE_ARGS &&
33 # Build everything
34 make &&
36 # Install everything
37 make install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/lib
45 cp -a $install/usr/bin $fs/usr
46 cp -a $install/usr/sbin $fs/usr
47 cp -a $install/usr/lib/ $fs/usr
48 cp -a $install/etc $fs/
49 }
51 pre_install()
52 {
53 if [ -f "$1/etc/sudoers" ]
54 then
55 cp "$1/etc/sudoers" "$1/etc/sudoers.bak"
56 fi
57 }
59 post_install()
60 {
61 if [ -f "$1/etc/sudoers.bak" ]
62 then
63 mv "$1/etc/sudoers" "$1/etc/sudoers-dist"
64 mv "$1/etc/sudoers.bak" "$1/etc/sudoers"
65 else
66 chown root.root "$1/etc/sudoers"
67 chmod 0440 "$1/etc/sudoers"
68 fi
69 }