SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "sudo"

# SliTaz package receipt.

PACKAGE="sudo"
VERSION="1.8.4"
CATEGORY="security"
SHORT_DESC="Sudo (su \"do\") allows a system administrator to delegate authority."
MAINTAINER="erjo@slitaz.org"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://www.gratisoft.us/sudo/"
WGET_URL="http://www.gratisoft.us/sudo/dist/$TARBALL"
CONFIG_FILES="/etc/sudoers"

# Rules to configure and make the package.
compile_rules()
{
    cd $src
    ./configure --sysconfdir=/etc \
    --without-pam \
    --with-editor=/bin/vi \
    --libexecdir=/usr/lib \
    $CONFIGURE_ARGS &&
    # Build everything
    make &&
    # Install everything
    make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib
    mkdir -p $fs/etc
    cp -a $_pkg/usr/bin $fs/usr
    cp -a $_pkg/usr/sbin $fs/usr
    cp -a $_pkg/usr/lib/*.so $fs/usr/lib
    cp -a stuff/sudoers $fs/etc
}

pre_install()
{
    echo "Processing pre-install commands..."
    if [ -f $root/etc/sudoers.bak ]; then
        cp $root/etc/sudoers $root/etc/sudoers.bak
    fi
}

post_install()
{
    local root
    root=$1
    echo "Processing post-install commands..."
    if [ -f $root/etc/sudoers.bak ]; then
        rm -f $root/etc/sudoers
        mv $root/etc/sudoers.bak $root/etc/sudoers
    else
        chown root.root $root/etc/sudoers
        chmod 0440 $root/etc/sudoers
    fi
}                        
3382 packages and 430813 files in stable database (Mon Mar 4 17:53:49 2019)