wok-6.x rev 151

Add : Midnight Commander, sudo.
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Sat Jan 26 00:27:46 2008 +0100 (2008-01-26)
parents cdba62f24f35
children fa4ad91af01b
files mc/receipt sudo/receipt sudo/stuff/sudoers
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/mc/receipt	Sat Jan 26 00:27:46 2008 +0100
     1.3 @@ -0,0 +1,38 @@
     1.4 +# SliTaz package receipt.
     1.5 +#
     1.6 +
     1.7 +PACKAGE="mc"
     1.8 +VERSION="4.6.1"
     1.9 +CATEGORY="extra"
    1.10 +SHORT_DESC="Midnight Commander - ncurses based file manager."
    1.11 +MAINTAINER="Erjo <erjo@slitaz.org>"
    1.12 +DEPENDS="ncurses"
    1.13 +BUILD_DEPENDS="ncurses-dev glib-dev"
    1.14 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.15 +WEB_SITE="http://www.ibiblio.org/mc/"
    1.16 +WGET_URL="http://www.ibiblio.org/pub/Linux/utils/file/managers/mc/$TARBALL"
    1.17 +
    1.18 +# Rules to configure and make the package.
    1.19 +compile_rules()
    1.20 +{
    1.21 +	cd $src
    1.22 +	./configure --prefix=/usr \
    1.23 +	--with-screen=ncurses \
    1.24 +	--infodir=/usr/share/info \
    1.25 +	--mandir=/usr/share/man $CONFIGURE_ARGS
    1.26 +	make
    1.27 +	make DESTDIR=$PWD/_pkg install
    1.28 +}
    1.29 +
    1.30 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.31 +genpkg_rules()
    1.32 +{
    1.33 +	mkdir -p $fs/usr/share/locale
    1.34 +	cp -a $_pkg/usr/bin $fs/usr
    1.35 +	cp -a $_pkg/usr/lib $fs/usr
    1.36 +	cp -a $_pkg/usr/share/mc $fs/usr/share
    1.37 +	cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale
    1.38 +	strip -s $fs/usr/bin/*
    1.39 +	strip -s $fs/usr/lib/mc/*
    1.40 +}
    1.41 +
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/sudo/receipt	Sat Jan 26 00:27:46 2008 +0100
     2.3 @@ -0,0 +1,52 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="sudo"
     2.7 +VERSION="1.6.9p12"
     2.8 +CATEGORY="extra"
     2.9 +SHORT_DESC="Sudo (su "do") allows a system administrator to delegate authority."
    2.10 +MAINTAINER="Erjo <erjo@slitaz.org>"
    2.11 +DEPENDS=""
    2.12 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    2.13 +WEB_SITE="http://www.gratisoft.us/sudo/"
    2.14 +WGET_URL="http://www.gratisoft.us/sudo/dist/$TARBALL"
    2.15 +
    2.16 +# Rules to configure and make the package.
    2.17 +compile_rules()
    2.18 +{
    2.19 +	cd $src
    2.20 +	./configure --prefix=/usr \
    2.21 +	--sysconfdir=/etc \
    2.22 +	--without-pam \
    2.23 +	--with-editor=/bin/vi \
    2.24 +	--libexecdir=/usr/lib
    2.25 +	
    2.26 +	# Build everything
    2.27 +	make
    2.28 +	# Install everything
    2.29 +	make DESTDIR=$PWD/_pkg install
    2.30 +}
    2.31 +
    2.32 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.33 +genpkg_rules()
    2.34 +{
    2.35 +	mkdir -p $fs/usr/lib
    2.36 +	mkdir -p $fs/etc
    2.37 +	cp -a $_pkg/usr/bin $fs/usr
    2.38 +	cp -a $_pkg/usr/sbin $fs/usr
    2.39 +	cp -a $_pkg/usr/libi/*.so $fs/usr/lib
    2.40 +	cp -a stuff/sudoers $fs/etc
    2.41 +	strip -s $fs/usr/bin/*
    2.42 +	strip -s $fs/usr/sbin/*
    2.43 +	strip -s $fs/usr/lib/sudo_noexec.so
    2.44 +	
    2.45 +}
    2.46 +
    2.47 +
    2.48 +post_install()
    2.49 +{
    2.50 +        local root
    2.51 +        root=$1
    2.52 +        echo "Processing post-install commands..."
    2.53 +        chown root.root $root/etc/sudoers
    2.54 +        chmod 0440 $root/etc/sudoers
    2.55 +}                        
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/sudo/stuff/sudoers	Sat Jan 26 00:27:46 2008 +0100
     3.3 @@ -0,0 +1,15 @@
     3.4 +#
     3.5 +# This file MUST be edited with the 'visudo' command as root.
     3.6 +#
     3.7 +# See the man page for details on how to write a sudoers file.
     3.8 +#
     3.9 + 
    3.10 +# Host alias specification
    3.11 +
    3.12 +# User alias specification
    3.13 +
    3.14 +# Cmnd alias specification
    3.15 + 
    3.16 +# User privilege specification
    3.17 +root    ALL=(ALL) ALL
    3.18 +