wok rev 14331

Up: enlightenment-pam (0.17.2.1)
author Dominique Corbex <domcox@slitaz.org>
date Fri Apr 12 19:59:24 2013 +0200 (2013-04-12)
parents b9fe5b87a4de
children 16faa1f83ea9
files enlightenment-pam/receipt enlightenment-pam/stuff/etc/enlightenment/sysactions.conf
line diff
     1.1 --- a/enlightenment-pam/receipt	Fri Apr 12 19:57:58 2013 +0200
     1.2 +++ b/enlightenment-pam/receipt	Fri Apr 12 19:59:24 2013 +0200
     1.3 @@ -2,37 +2,47 @@
     1.4  
     1.5  PACKAGE="enlightenment-pam"
     1.6  SOURCE="enlightenment"
     1.7 -VERSION="0.16.999.55225"
     1.8 +VERSION="0.17.2.1"
     1.9  CATEGORY="x-window"
    1.10  SHORT_DESC="Enlightenment window manager (E17) with PAM, Bluez and connman support."
    1.11  MAINTAINER="pankso@slitaz.org"
    1.12  TARBALL="$SOURCE-$VERSION.tar.gz"
    1.13  WEB_SITE="http://www.enlightenment.org/"
    1.14 -WGET_URL="http://download.enlightenment.org/snapshots/2010-12-03/$TARBALL"
    1.15 +WGET_URL="http://download.enlightenment.org/releases/$TARBALL"
    1.16  PROVIDE="enlightenment:pam"
    1.17  TAGS="e17"
    1.18 +LOCALES="da de es fr fr_CH it pt_BR ru zh_CN zh_TW"
    1.19  
    1.20  # Add PAM and bluez support (enlightenment is smaller).
    1.21 -DEPENDS="eina eet ecore evas edje efreet edbus alsa-lib pam bluez connman"
    1.22 -BUILD_DEPENDS="eina-dev eet-dev ecore-dev evas-dev edje-dev efreet-dev
    1.23 -edbus-dev alsa-lib-dev pam-dev bluez-dev connman-dev"
    1.24 +DEPENDS="eina eet ecore evas edje eio efreet edbus eeze alsa-lib pam bluez connman xcb-util-keysyms
    1.25 +emotion"
    1.26 +BUILD_DEPENDS="eina-dev eet-dev ecore-dev evas-dev edje-dev eio-dev efreet-dev eeze-dev emotion-dev
    1.27 +edbus-dev alsa-lib-dev pam-dev bluez-dev connman-dev xcb-util-keysyms-dev pm-utils"
    1.28  
    1.29  # Rules to configure and make the package.
    1.30  compile_rules()
    1.31  {
    1.32 -	./configure $CONFIGURE_ARGS && make && make install
    1.33 +	CFLAGS="$CFLAGS -fvisibility=hidden"
    1.34 +	LDFLAGS="$LDFLAGS -fvisibility=hidden"
    1.35 +	export LDFLAGS
    1.36 +	./configure \
    1.37 +		--sysconfdir=/etc \
    1.38 +		--disable-doc \
    1.39 +		$CONFIGURE_ARGS &&
    1.40 +	make && make install
    1.41  }
    1.42  
    1.43  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.44  genpkg_rules()
    1.45  {
    1.46 -	mkdir -p $fs/usr/lib $fs/usr/share
    1.47 +	mkdir -p $fs/usr/lib $fs/usr/share/applications
    1.48  	# Use a modified sysactions.conf
    1.49 -	cp -a $WOK/$SOURCE/stuff/etc $fs
    1.50 +	cp -a $stuff/etc $fs
    1.51  
    1.52 -	cp -a $_pkg/usr/bin $fs/usr
    1.53 -	cp -a $_pkg/usr/lib/enlightenment $fs/usr/lib
    1.54 -	cp -a $_pkg/usr/share/enlightenment $fs/usr/share
    1.55 +	cp -a $install/usr/bin $fs/usr
    1.56 +	cp -a $install/usr/lib/enlightenment $fs/usr/lib
    1.57 +	cp -a $install/usr/share/enlightenment $fs/usr/share
    1.58 +	cp -a $install/usr/share/xsessions/enlightenment.desktop $fs/usr/share/applications
    1.59  
    1.60  	# Remove devel files *.a/*.la
    1.61  	rm -rf $fs/usr/lib/$SOURCE/preload/*.*a
    1.62 @@ -40,16 +50,22 @@
    1.63  
    1.64  	# Rm backgrouds (1,6 Mb) and desktop file already provides by other.
    1.65  	rm -rf $fs/usr/share/enlightenment/data/backgrounds/*
    1.66 -	rm $fs/usr/share/enlightenment/data/other/desktop_files*
    1.67 +
    1.68 +	# locales
    1.69 +	for locale in $LOCALES; do
    1.70 +		mv $install/usr/share/locale/$locale $fs/usr/share/locale
    1.71 +	done
    1.72  }
    1.73  
    1.74  post_install()
    1.75  {
    1.76 -	res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//`
    1.77 +	res=$(grep ^session <$1/etc/slim.conf | sed s/"sessions. *"// \
    1.78 +		| sed s/,e17//)
    1.79  	# Adding WM to SLIM available sessions.
    1.80 -	if ! echo "$res" | grep -q e17; then
    1.81 -		echo -n "Adding e17 to /etc/slim.conf..."
    1.82 -		sed -i "s/^sessions.*/sessions            ${res},e17/" /etc/slim.conf
    1.83 +	if ! echo "$res" | grep -q enlightenment; then
    1.84 +		echo -n "Adding enlightenment to /etc/slim.conf..."
    1.85 +		sed -i "s/^sessions.*/sessions            enlightenment,${res}/" \
    1.86 +			/etc/slim.conf
    1.87  		status
    1.88  	fi
    1.89  }
    1.90 @@ -57,7 +73,7 @@
    1.91  post_remove()
    1.92  {
    1.93  	# Remove WM from SLIM available sessions.
    1.94 -	if grep -q e17 $1/etc/slim.conf; then
    1.95 -		sed -i s/,e17// $1/etc/slim.conf
    1.96 +	if grep -q enlightenment $1/etc/slim.conf; then
    1.97 +		sed -i s/enlightenement,// $1/etc/slim.conf
    1.98  	fi
    1.99  }
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/enlightenment-pam/stuff/etc/enlightenment/sysactions.conf	Fri Apr 12 19:59:24 2013 +0200
     2.3 @@ -0,0 +1,73 @@
     2.4 +# ENLIGHTENMENT SYSTEM ACTIONS CONFIGURATION
     2.5 +#
     2.6 +# This is a system configuration for allowing or denying certain users or
     2.7 +# groups to be able to do certain actions that involve system restricted
     2.8 +# actions such as halt, reboot, suspend, hibernate etc.
     2.9 +#
    2.10 +# This file is read in order from top to bottom - the first rule to MATCH
    2.11 +# will be used for a user or a group, and nothing after that is read.
    2.12 +#
    2.13 +# You must put all the ACTION definitons BEFORE user and group rule matches.
    2.14 +# Any action definitons after a rule match has been found will be ignored.
    2.15 +# This allows actions to be re-defined for different user groups, so matches
    2.16 +# so the command for an action can change for matches to the rules later on.
    2.17 +#
    2.18 +# Any user or group NOT matched by an allow or a deny will be ALLOWED to
    2.19 +# perform the action by default (system administrators should be aware of
    2.20 +# this and implement whatever policies they see fit). Generally speaking
    2.21 +# a user of a workstation, desktop or laptop is intended to have such abilities
    2.22 +# to perform these actions, thus the default of allow. For multi-user systems
    2.23 +# the system administrator is considerd capable enough to restrict what they
    2.24 +# see they need to.
    2.25 +#
    2.26 +# A WARNING to admins: do NOT allow access for users to this system remotely
    2.27 +# UNLESS you fully trust them or you have locked down permissions to halt/reboot
    2.28 +# suspend etc. here first. You have been warned.
    2.29 +#
    2.30 +# FORMAT:
    2.31 +#
    2.32 +# action:   halt      /sbin/shutdown -h now
    2.33 +# action:   reboot    /sbin/shutdown -r now
    2.34 +# action:   suspend   /etc/acpi/sleep.sh force
    2.35 +# action:   hibernate /etc/acpi/hibernate.sh force
    2.36 +#
    2.37 +# user:  username  allow: halt reboot suspend hibernate
    2.38 +# group: groupname deny:  *
    2.39 +# group: *         deny:  *
    2.40 +# user:  *         allow: suspend
    2.41 +# user:  billy     allow: halt reboot
    2.42 +# group: staff     deny:  halt suspend hibernate
    2.43 +#
    2.44 +# etc.
    2.45 +#
    2.46 +# user and group name can use glob matches (* == all for example) like the
    2.47 +# shell. as can action names allowed or denied.
    2.48 +
    2.49 +action:   halt      poweroff
    2.50 +action:   reboot    reboot
    2.51 +action:   suspend   /usr/sbin/pm-suspend
    2.52 +action:   hibernate /usr/sbin/pm-hibernate
    2.53 +
    2.54 +# root is allowed to do anything - but it needs to be here explicitly anyway
    2.55 +user:     root      allow: *
    2.56 +# members of operator, staff and admin groups should be able to do all
    2.57 +group:    operator  allow: *
    2.58 +group:    staff     allow: *
    2.59 +group:    admin     allow: *
    2.60 +group:    sys       allow: *
    2.61 +# common "user" groups for "console users" on desktops/laptops
    2.62 +group:    dialout   allow: *
    2.63 +group:    disk      allow: *
    2.64 +group:    adm       allow: *
    2.65 +group:    cdrom     allow: *
    2.66 +group:    floppy    allow: *
    2.67 +group:    audio     allow: *
    2.68 +group:    dip       allow: *
    2.69 +group:    plugdev   allow: *
    2.70 +# put in a list of other users and groups here that are allowed or denied etc.
    2.71 +# e.g.
    2.72 +# user:     myuser     allow:  *
    2.73 +# user:     another    allow:  suspend hibernate
    2.74 +# deny everyone else by default
    2.75 +user:     *         deny:  *
    2.76 +user:     tux       allow: *