wok-6.x rev 21982
updated sudo and sudo-pam (1.8.20p2 -> 1.8.27)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Oct 12 10:45:05 2019 +0100 (2019-10-12) |
parents | 85fdb414ac4e |
children | 7f4bf91f0eb9 |
files | sudo-pam/receipt sudo/receipt |
line diff
1.1 --- a/sudo-pam/receipt Sat Oct 12 10:07:49 2019 +0100 1.2 +++ b/sudo-pam/receipt Sat Oct 12 10:45:05 2019 +0100 1.3 @@ -1,30 +1,32 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="sudo-pam" 1.7 -VERSION="1.8.20p2" 1.8 +VERSION="1.8.27" 1.9 CATEGORY="security" 1.10 -SHORT_DESC="Sudo (su \"do\") allows a system administrator to delegate authority using PAM." 1.11 +SHORT_DESC="Allows command execution as root for specified users using PAM." 1.12 MAINTAINER="erjo@slitaz.org" 1.13 LICENSE="ISC" 1.14 +WEB_SITE="https://www.sudo.ws/" 1.15 + 1.16 SOURCE="sudo" 1.17 TARBALL="$SOURCE-$VERSION.tar.gz" 1.18 -WEB_SITE="https://www.sudo.ws/" 1.19 -WGET_URL="http://www.gratisoft.us/sudo/dist/$TARBALL" 1.20 +WGET_URL="${WEB_SITE}sudo/dist/$TARBALL" 1.21 + 1.22 PROVIDE="sudo:pam" 1.23 - 1.24 DEPENDS="pam" 1.25 BUILD_DEPENDS="pam-dev" 1.26 1.27 # Rules to configure and make the package. 1.28 compile_rules() 1.29 { 1.30 - ./configure \ 1.31 - --sysconfdir=/etc \ 1.32 - --with-pam \ 1.33 - --with-editor=/bin/vi \ 1.34 - --libexecdir=/usr/lib \ 1.35 + ./configure \ 1.36 + --sysconfdir=/etc \ 1.37 + --with-pam \ 1.38 + --with-editor=/bin/vi \ 1.39 + --libexecdir=/usr/lib \ 1.40 $CONFIGURE_ARGS && 1.41 - make && make install 1.42 + make && 1.43 + make install 1.44 } 1.45 1.46 # Rules to gen a SliTaz package suitable for Tazpkg. 1.47 @@ -32,26 +34,29 @@ 1.48 { 1.49 mkdir -p $fs/usr/lib 1.50 mkdir -p $fs/etc/pam.d 1.51 - cp -a $install/usr/bin $fs/usr 1.52 - cp -a $install/usr/sbin $fs/usr 1.53 - cp -a $install/etc/sudoers $fs/etc/ 1.54 - cp -a $stuff/sudo $fs/etc/pam.d/ 1.55 - cp -a $install/usr/lib $fs/usr 1.56 + 1.57 + cp -a $install/usr/bin $fs/usr 1.58 + cp -a $install/usr/sbin $fs/usr 1.59 + cp -a $install/etc/sudoers $fs/etc/ 1.60 + cp -a $stuff/sudo $fs/etc/pam.d/ 1.61 + cp -a $install/usr/lib $fs/usr 1.62 } 1.63 1.64 pre_install() 1.65 { 1.66 - if [ -f "$1/etc/sudoers" ]; then 1.67 + if [ -f "$1/etc/sudoers" ] 1.68 + then 1.69 cp "$1/etc/sudoers" "$1/etc/sudoers.bak" 1.70 fi 1.71 } 1.72 1.73 post_install() 1.74 { 1.75 - if [ -f "$1/etc/sudoers.bak" ]; then 1.76 + if [ -f "$1/etc/sudoers.bak" ] 1.77 + then 1.78 rm -f "$1/etc/sudoers" 1.79 mv "$1/etc/sudoers.bak" "$1/etc/sudoers" 1.80 - else 1.81 + else 1.82 chown root.root "$1/etc/sudoers" 1.83 chmod 0440 "$1/etc/sudoers" 1.84 fi
2.1 --- a/sudo/receipt Sat Oct 12 10:07:49 2019 +0100 2.2 +++ b/sudo/receipt Sat Oct 12 10:45:05 2019 +0100 2.3 @@ -1,26 +1,31 @@ 2.4 # SliTaz package receipt. 2.5 2.6 PACKAGE="sudo" 2.7 -VERSION="1.8.20p2" 2.8 +VERSION="1.8.27" 2.9 CATEGORY="security" 2.10 -SHORT_DESC="Sudo (su \"do\") allows a system administrator to delegate authority." 2.11 +SHORT_DESC="Allows command execution as root for specified users." 2.12 MAINTAINER="erjo@slitaz.org" 2.13 LICENSE="ISC" 2.14 +WEB_SITE="https://www.sudo.ws/" 2.15 + 2.16 TARBALL="$PACKAGE-$VERSION.tar.gz" 2.17 -WEB_SITE="https://www.sudo.ws/" 2.18 -WGET_URL="http://www.gratisoft.us/sudo/dist/$TARBALL" 2.19 +WGET_URL="${WEB_SITE}sudo/dist/$TARBALL" 2.20 + 2.21 CONFIG_FILES="/etc/sudoers" 2.22 2.23 # Rules to configure and make the package. 2.24 compile_rules() 2.25 { 2.26 - ./configure --sysconfdir=/etc \ 2.27 - --without-pam \ 2.28 - --with-editor=/bin/vi \ 2.29 - --libexecdir=/usr/lib \ 2.30 - $CONFIGURE_ARGS && 2.31 + ./configure \ 2.32 + --sysconfdir=/etc \ 2.33 + --without-pam \ 2.34 + --with-editor=/bin/vi \ 2.35 + --libexecdir=/usr/lib \ 2.36 + $CONFIGURE_ARGS && 2.37 + 2.38 # Build everything 2.39 make && 2.40 + 2.41 # Install everything 2.42 make install 2.43 } 2.44 @@ -29,25 +34,28 @@ 2.45 genpkg_rules() 2.46 { 2.47 mkdir -p $fs/usr/lib 2.48 - cp -a $install/usr/bin $fs/usr 2.49 - cp -a $install/usr/sbin $fs/usr 2.50 - cp -a $install/usr/lib/ $fs/usr 2.51 - cp -a $install/etc $fs/ 2.52 + 2.53 + cp -a $install/usr/bin $fs/usr 2.54 + cp -a $install/usr/sbin $fs/usr 2.55 + cp -a $install/usr/lib/ $fs/usr 2.56 + cp -a $install/etc $fs/ 2.57 } 2.58 2.59 pre_install() 2.60 { 2.61 - if [ -f "$1/etc/sudoers" ]; then 2.62 + if [ -f "$1/etc/sudoers" ] 2.63 + then 2.64 cp "$1/etc/sudoers" "$1/etc/sudoers.bak" 2.65 fi 2.66 } 2.67 2.68 post_install() 2.69 { 2.70 - if [ -f "$1/etc/sudoers.bak" ]; then 2.71 - mv "$1/etc/sudoers" "$1/etc/sudoers-dist" 2.72 - mv "$1/etc/sudoers.bak" "$1/etc/sudoers" 2.73 - else 2.74 + if [ -f "$1/etc/sudoers.bak" ] 2.75 + then 2.76 + mv "$1/etc/sudoers" "$1/etc/sudoers-dist" 2.77 + mv "$1/etc/sudoers.bak" "$1/etc/sudoers" 2.78 + else 2.79 chown root.root "$1/etc/sudoers" 2.80 chmod 0440 "$1/etc/sudoers" 2.81 fi