wok-undigest rev 1115
Add e18 (for testing)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Apr 02 10:04:41 2014 +0200 (2014-04-02) |
parents | 336af84e8c6c |
children | 6c847b7c5fe9 |
files | e18/receipt e18/stuff/etc/enlightenment/sysactions.conf |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/e18/receipt Wed Apr 02 10:04:41 2014 +0200 1.3 @@ -0,0 +1,82 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="e18" 1.7 +SOURCE="enlightenment" 1.8 +VERSION="0.18.6" 1.9 +CATEGORY="x-window" 1.10 +SHORT_DESC="Enlightenment (E18) desktop environment with PAM support." 1.11 +MAINTAINER="pankso@slitaz.org" 1.12 +LICENSE="BSD" 1.13 +TARBALL="$SOURCE-$VERSION.tar.bz2" 1.14 +WEB_SITE="http://www.enlightenment.org/" 1.15 +WGET_URL="http://download.enlightenment.org/rel/apps/$SOURCE/$TARBALL" 1.16 +PROVIDE="enlightenment" 1.17 +TAGS="e enlightenment e18 wm window-manager" 1.18 +LOCALES="da de es fr fr_CH it pt_BR ru zh_CN zh_TW" 1.19 +HOST_ARCH="i486 arm" 1.20 + 1.21 +SUGGESTED="wpa_supplicant connman pm-utils" 1.22 +DEPENDS="efl elementary pam xcb-util-keysyms" 1.23 +BUILD_DEPENDS="efl-dev elementary-dev pam-dev xcb-util-keysyms-dev" 1.24 + 1.25 +# Handle cross compilation 1.26 +case "$ARCH" in 1.27 + i?86) BUILD_DEPENDS="$BUILD_DEPENDS pm-utils connman-dev bluez-dev" ;; 1.28 +esac 1.29 + 1.30 +# Rules to configure and make the package. 1.31 +compile_rules() 1.32 +{ 1.33 + CFLAGS="$CFLAGS -fvisibility=hidden" 1.34 + LDFLAGS="$LDFLAGS -fvisibility=hidden" 1.35 + ./configure \ 1.36 + --sysconfdir=/etc \ 1.37 + --disable-doc \ 1.38 + $CONFIGURE_ARGS && 1.39 + make $MAKEFLAGS && make install 1.40 +} 1.41 + 1.42 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.43 +genpkg_rules() 1.44 +{ 1.45 + mkdir -p $fs/usr/lib $fs/usr/share 1.46 + # Use a modified sysactions.conf 1.47 + cp -a $stuff/etc $fs 1.48 + 1.49 + cp -a $install/usr/bin $fs/usr 1.50 + cp -a $install/usr/lib/enlightenment $fs/usr/lib 1.51 + cp -a $install/usr/share/enlightenment $fs/usr/share 1.52 + cp -a $install/usr/share/xsessions $fs/usr/share 1.53 + 1.54 + # Remove devel files *.a/*.la 1.55 + rm -rf $fs/usr/lib/$SOURCE/modules/*/*/*.*a 1.56 + 1.57 + # Rm backgrouds (1,6 Mb) and desktop file already provides by other. 1.58 + rm -rf $fs/usr/share/enlightenment/data/backgrounds/* 1.59 + 1.60 + # locales 1.61 + for locale in $LOCALES; do 1.62 + mv $install/usr/share/locale/$locale $fs/usr/share/locale 1.63 + done 1.64 +} 1.65 + 1.66 +post_install() 1.67 +{ 1.68 + res=$(grep ^session <$1/etc/slim.conf | sed s/"sessions. *"// \ 1.69 + | sed s/,e17//) 1.70 + # Adding WM to SLIM available sessions. 1.71 + if ! echo "$res" | grep -q enlightenment; then 1.72 + echo -n "Adding enlightenment to /etc/slim.conf..." 1.73 + sed -i "s/^sessions.*/sessions enlightenment,${res}/" \ 1.74 + /etc/slim.conf 1.75 + status 1.76 + fi 1.77 +} 1.78 + 1.79 +post_remove() 1.80 +{ 1.81 + # Remove WM from SLIM available sessions. 1.82 + if grep -q enlightenment $1/etc/slim.conf; then 1.83 + sed -i s/enlightenement,// $1/etc/slim.conf 1.84 + fi 1.85 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/e18/stuff/etc/enlightenment/sysactions.conf Wed Apr 02 10:04:41 2014 +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: *