wok annotate sudo/receipt @ rev 22793
recompiled claws-mail and claws-mail-perl
author | Hans-G?nter Theisgen |
---|---|
date | Mon Jan 27 09:33:23 2020 +0100 (2020-01-27) |
parents | 95bad7889d0e |
children | ff210fc49547 |
rev | line source |
---|---|
erjo@151 | 1 # SliTaz package receipt. |
erjo@151 | 2 |
erjo@151 | 3 PACKAGE="sudo" |
pascal@21988 | 4 VERSION="1.8.28" |
pankso@209 | 5 CATEGORY="security" |
Hans-G?nter@21982 | 6 SHORT_DESC="Allows command execution as root for specified users." |
erjo@784 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@15593 | 8 LICENSE="ISC" |
Hans-G?nter@21982 | 9 WEB_SITE="https://www.sudo.ws/" |
Hans-G?nter@21982 | 10 |
erjo@151 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@21982 | 12 WGET_URL="${WEB_SITE}sudo/dist/$TARBALL" |
Hans-G?nter@21982 | 13 |
erjo@2631 | 14 CONFIG_FILES="/etc/sudoers" |
erjo@2631 | 15 |
erjo@151 | 16 # Rules to configure and make the package. |
erjo@151 | 17 compile_rules() |
erjo@151 | 18 { |
Hans-G?nter@21982 | 19 ./configure \ |
Hans-G?nter@21982 | 20 --sysconfdir=/etc \ |
Hans-G?nter@21982 | 21 --without-pam \ |
Hans-G?nter@21982 | 22 --with-editor=/bin/vi \ |
Hans-G?nter@21982 | 23 --libexecdir=/usr/lib \ |
Hans-G?nter@21982 | 24 $CONFIGURE_ARGS && |
Hans-G?nter@21982 | 25 |
erjo@151 | 26 # Build everything |
pascal@1476 | 27 make && |
Hans-G?nter@21982 | 28 |
erjo@151 | 29 # Install everything |
slaxemulator@8963 | 30 make install |
erjo@151 | 31 } |
erjo@151 | 32 |
erjo@151 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@151 | 34 genpkg_rules() |
erjo@151 | 35 { |
erjo@151 | 36 mkdir -p $fs/usr/lib |
Hans-G?nter@21982 | 37 |
Hans-G?nter@21982 | 38 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21982 | 39 cp -a $install/usr/sbin $fs/usr |
Hans-G?nter@21982 | 40 cp -a $install/usr/lib/ $fs/usr |
Hans-G?nter@21982 | 41 cp -a $install/etc $fs/ |
erjo@151 | 42 } |
erjo@151 | 43 |
erjo@1852 | 44 pre_install() |
erjo@1852 | 45 { |
Hans-G?nter@21982 | 46 if [ -f "$1/etc/sudoers" ] |
Hans-G?nter@21982 | 47 then |
pascal@18730 | 48 cp "$1/etc/sudoers" "$1/etc/sudoers.bak" |
erjo@1852 | 49 fi |
erjo@1852 | 50 } |
erjo@151 | 51 |
erjo@151 | 52 post_install() |
erjo@151 | 53 { |
Hans-G?nter@21982 | 54 if [ -f "$1/etc/sudoers.bak" ] |
Hans-G?nter@21982 | 55 then |
Hans-G?nter@21982 | 56 mv "$1/etc/sudoers" "$1/etc/sudoers-dist" |
Hans-G?nter@21982 | 57 mv "$1/etc/sudoers.bak" "$1/etc/sudoers" |
Hans-G?nter@21982 | 58 else |
pascal@18730 | 59 chown root.root "$1/etc/sudoers" |
pascal@18730 | 60 chmod 0440 "$1/etc/sudoers" |
erjo@1852 | 61 fi |
al@18734 | 62 } |