# HG changeset patch # User Hans-G?nter Theisgen # Date 1570873505 -3600 # Node ID 95bad7889d0e6a89fa10a79f74b0c426d831bc21 # Parent 85fdb414ac4e797105dedccba7d7712c82b90180 updated sudo and sudo-pam (1.8.20p2 -> 1.8.27) diff -r 85fdb414ac4e -r 95bad7889d0e sudo-pam/receipt --- a/sudo-pam/receipt Sat Oct 12 10:07:49 2019 +0100 +++ b/sudo-pam/receipt Sat Oct 12 10:45:05 2019 +0100 @@ -1,30 +1,32 @@ # SliTaz package receipt. PACKAGE="sudo-pam" -VERSION="1.8.20p2" +VERSION="1.8.27" CATEGORY="security" -SHORT_DESC="Sudo (su \"do\") allows a system administrator to delegate authority using PAM." +SHORT_DESC="Allows command execution as root for specified users using PAM." MAINTAINER="erjo@slitaz.org" LICENSE="ISC" +WEB_SITE="https://www.sudo.ws/" + SOURCE="sudo" TARBALL="$SOURCE-$VERSION.tar.gz" -WEB_SITE="https://www.sudo.ws/" -WGET_URL="http://www.gratisoft.us/sudo/dist/$TARBALL" +WGET_URL="${WEB_SITE}sudo/dist/$TARBALL" + PROVIDE="sudo:pam" - DEPENDS="pam" BUILD_DEPENDS="pam-dev" # Rules to configure and make the package. compile_rules() { - ./configure \ - --sysconfdir=/etc \ - --with-pam \ - --with-editor=/bin/vi \ - --libexecdir=/usr/lib \ + ./configure \ + --sysconfdir=/etc \ + --with-pam \ + --with-editor=/bin/vi \ + --libexecdir=/usr/lib \ $CONFIGURE_ARGS && - make && make install + make && + make install } # Rules to gen a SliTaz package suitable for Tazpkg. @@ -32,26 +34,29 @@ { mkdir -p $fs/usr/lib mkdir -p $fs/etc/pam.d - cp -a $install/usr/bin $fs/usr - cp -a $install/usr/sbin $fs/usr - cp -a $install/etc/sudoers $fs/etc/ - cp -a $stuff/sudo $fs/etc/pam.d/ - cp -a $install/usr/lib $fs/usr + + cp -a $install/usr/bin $fs/usr + cp -a $install/usr/sbin $fs/usr + cp -a $install/etc/sudoers $fs/etc/ + cp -a $stuff/sudo $fs/etc/pam.d/ + cp -a $install/usr/lib $fs/usr } pre_install() { - if [ -f "$1/etc/sudoers" ]; then + if [ -f "$1/etc/sudoers" ] + then cp "$1/etc/sudoers" "$1/etc/sudoers.bak" fi } post_install() { - if [ -f "$1/etc/sudoers.bak" ]; then + if [ -f "$1/etc/sudoers.bak" ] + then rm -f "$1/etc/sudoers" mv "$1/etc/sudoers.bak" "$1/etc/sudoers" - else + else chown root.root "$1/etc/sudoers" chmod 0440 "$1/etc/sudoers" fi diff -r 85fdb414ac4e -r 95bad7889d0e sudo/receipt --- a/sudo/receipt Sat Oct 12 10:07:49 2019 +0100 +++ b/sudo/receipt Sat Oct 12 10:45:05 2019 +0100 @@ -1,26 +1,31 @@ # SliTaz package receipt. PACKAGE="sudo" -VERSION="1.8.20p2" +VERSION="1.8.27" CATEGORY="security" -SHORT_DESC="Sudo (su \"do\") allows a system administrator to delegate authority." +SHORT_DESC="Allows command execution as root for specified users." MAINTAINER="erjo@slitaz.org" LICENSE="ISC" +WEB_SITE="https://www.sudo.ws/" + TARBALL="$PACKAGE-$VERSION.tar.gz" -WEB_SITE="https://www.sudo.ws/" -WGET_URL="http://www.gratisoft.us/sudo/dist/$TARBALL" +WGET_URL="${WEB_SITE}sudo/dist/$TARBALL" + CONFIG_FILES="/etc/sudoers" # Rules to configure and make the package. compile_rules() { - ./configure --sysconfdir=/etc \ - --without-pam \ - --with-editor=/bin/vi \ - --libexecdir=/usr/lib \ - $CONFIGURE_ARGS && + ./configure \ + --sysconfdir=/etc \ + --without-pam \ + --with-editor=/bin/vi \ + --libexecdir=/usr/lib \ + $CONFIGURE_ARGS && + # Build everything make && + # Install everything make install } @@ -29,25 +34,28 @@ genpkg_rules() { mkdir -p $fs/usr/lib - cp -a $install/usr/bin $fs/usr - cp -a $install/usr/sbin $fs/usr - cp -a $install/usr/lib/ $fs/usr - cp -a $install/etc $fs/ + + cp -a $install/usr/bin $fs/usr + cp -a $install/usr/sbin $fs/usr + cp -a $install/usr/lib/ $fs/usr + cp -a $install/etc $fs/ } pre_install() { - if [ -f "$1/etc/sudoers" ]; then + if [ -f "$1/etc/sudoers" ] + then cp "$1/etc/sudoers" "$1/etc/sudoers.bak" fi } post_install() { - if [ -f "$1/etc/sudoers.bak" ]; then - mv "$1/etc/sudoers" "$1/etc/sudoers-dist" - mv "$1/etc/sudoers.bak" "$1/etc/sudoers" - else + if [ -f "$1/etc/sudoers.bak" ] + then + mv "$1/etc/sudoers" "$1/etc/sudoers-dist" + mv "$1/etc/sudoers.bak" "$1/etc/sudoers" + else chown root.root "$1/etc/sudoers" chmod 0440 "$1/etc/sudoers" fi