wok-undigest rev 1057
add: enlightenment (0.18.0-alpha3)
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Wed Nov 27 21:39:42 2013 +0100 (2013-11-27) |
parents | e1aee532db9d |
children | eeb261309199 |
files | enlightenment/receipt enlightenment/stuff/etc/enlightenment/sysactions.conf |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/enlightenment/receipt Wed Nov 27 21:39:42 2013 +0100 1.3 @@ -0,0 +1,78 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="enlightenment" 1.7 +SOURCE="enlightenment" 1.8 +VERSION="0.18.0-alpha3" 1.9 +CATEGORY="x-window" 1.10 +SHORT_DESC="Enlightenment window manager with PAM support." 1.11 +MAINTAINER="pankso@slitaz.org" 1.12 +LICENSE="BSD" 1.13 +TARBALL="$SOURCE-$VERSION.tar.gz" 1.14 +WEB_SITE="http://www.enlightenment.org/" 1.15 +WGET_URL="http://download.enlightenment.org/rel/apps/$PACKAGE/$TARBALL" 1.16 +PROVIDE="enlightenment:pam" 1.17 +TAGS="e enlightenment wm window-manager" 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="elementary" 1.22 +BUILD_DEPENDS="elementary-dev bluez-dev connman-dev pam-dev pm-utils" 1.23 +SUGGESTED="bluez wpa_supplicant connman pm-utils" 1.24 + 1.25 +# Rules to configure and make the package. 1.26 +compile_rules() 1.27 +{ 1.28 + CFLAGS="$CFLAGS -fvisibility=hidden" 1.29 + LDFLAGS="$LDFLAGS -fvisibility=hidden" 1.30 + ./configure \ 1.31 + --sysconfdir=/etc \ 1.32 + --disable-doc \ 1.33 + --build=${ARCH}-slitaz-gnulinux \ 1.34 + $CONFIGURE_ARGS && 1.35 + make $MAKEFLAGS && make install 1.36 +} 1.37 + 1.38 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.39 +genpkg_rules() 1.40 +{ 1.41 + mkdir -p $fs/usr/lib $fs/usr/share 1.42 + # Use a modified sysactions.conf 1.43 + cp -a $stuff/etc $fs 1.44 + 1.45 + cp -a $install/usr/bin $fs/usr 1.46 + cp -a $install/usr/lib/enlightenment $fs/usr/lib 1.47 + cp -a $install/usr/share/enlightenment $fs/usr/share 1.48 + cp -a $install/usr/share/xsessions $fs/usr/share 1.49 + 1.50 + # Remove devel files *.a/*.la 1.51 + rm -rf $fs/usr/lib/$SOURCE/modules/*/*/*.*a 1.52 + 1.53 + # Rm backgrouds (1,6 Mb) and desktop file already provides by other. 1.54 + rm -rf $fs/usr/share/enlightenment/data/backgrounds/* 1.55 + 1.56 + # locales 1.57 + for locale in $LOCALES; do 1.58 + mv $install/usr/share/locale/$locale $fs/usr/share/locale 1.59 + done 1.60 +} 1.61 + 1.62 +post_install() 1.63 +{ 1.64 + res=$(grep ^session <$1/etc/slim.conf | sed s/"sessions. *"// \ 1.65 + | sed s/,e17//) 1.66 + # Adding WM to SLIM available sessions. 1.67 + if ! echo "$res" | grep -q enlightenment; then 1.68 + echo -n "Adding enlightenment to /etc/slim.conf..." 1.69 + sed -i "s/^sessions.*/sessions enlightenment,${res}/" \ 1.70 + /etc/slim.conf 1.71 + status 1.72 + fi 1.73 +} 1.74 + 1.75 +post_remove() 1.76 +{ 1.77 + # Remove WM from SLIM available sessions. 1.78 + if grep -q enlightenment $1/etc/slim.conf; then 1.79 + sed -i s/enlightenement,// $1/etc/slim.conf 1.80 + fi 1.81 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/enlightenment/stuff/etc/enlightenment/sysactions.conf Wed Nov 27 21:39:42 2013 +0100 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: *