# HG changeset patch # User Dominique Corbex # Date 1365789564 -7200 # Node ID 15fb93be191202c5b83b14526161d9ba6ae3c21f # Parent b9fe5b87a4de6c1867d5b6ac5da269c5fa6321c2 Up: enlightenment-pam (0.17.2.1) diff -r b9fe5b87a4de -r 15fb93be1912 enlightenment-pam/receipt --- a/enlightenment-pam/receipt Fri Apr 12 19:57:58 2013 +0200 +++ b/enlightenment-pam/receipt Fri Apr 12 19:59:24 2013 +0200 @@ -2,37 +2,47 @@ PACKAGE="enlightenment-pam" SOURCE="enlightenment" -VERSION="0.16.999.55225" +VERSION="0.17.2.1" CATEGORY="x-window" SHORT_DESC="Enlightenment window manager (E17) with PAM, Bluez and connman support." MAINTAINER="pankso@slitaz.org" TARBALL="$SOURCE-$VERSION.tar.gz" WEB_SITE="http://www.enlightenment.org/" -WGET_URL="http://download.enlightenment.org/snapshots/2010-12-03/$TARBALL" +WGET_URL="http://download.enlightenment.org/releases/$TARBALL" PROVIDE="enlightenment:pam" TAGS="e17" +LOCALES="da de es fr fr_CH it pt_BR ru zh_CN zh_TW" # Add PAM and bluez support (enlightenment is smaller). -DEPENDS="eina eet ecore evas edje efreet edbus alsa-lib pam bluez connman" -BUILD_DEPENDS="eina-dev eet-dev ecore-dev evas-dev edje-dev efreet-dev -edbus-dev alsa-lib-dev pam-dev bluez-dev connman-dev" +DEPENDS="eina eet ecore evas edje eio efreet edbus eeze alsa-lib pam bluez connman xcb-util-keysyms +emotion" +BUILD_DEPENDS="eina-dev eet-dev ecore-dev evas-dev edje-dev eio-dev efreet-dev eeze-dev emotion-dev +edbus-dev alsa-lib-dev pam-dev bluez-dev connman-dev xcb-util-keysyms-dev pm-utils" # Rules to configure and make the package. compile_rules() { - ./configure $CONFIGURE_ARGS && make && make install + CFLAGS="$CFLAGS -fvisibility=hidden" + LDFLAGS="$LDFLAGS -fvisibility=hidden" + export LDFLAGS + ./configure \ + --sysconfdir=/etc \ + --disable-doc \ + $CONFIGURE_ARGS && + make && make install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/usr/lib $fs/usr/share + mkdir -p $fs/usr/lib $fs/usr/share/applications # Use a modified sysactions.conf - cp -a $WOK/$SOURCE/stuff/etc $fs + cp -a $stuff/etc $fs - cp -a $_pkg/usr/bin $fs/usr - cp -a $_pkg/usr/lib/enlightenment $fs/usr/lib - cp -a $_pkg/usr/share/enlightenment $fs/usr/share + cp -a $install/usr/bin $fs/usr + cp -a $install/usr/lib/enlightenment $fs/usr/lib + cp -a $install/usr/share/enlightenment $fs/usr/share + cp -a $install/usr/share/xsessions/enlightenment.desktop $fs/usr/share/applications # Remove devel files *.a/*.la rm -rf $fs/usr/lib/$SOURCE/preload/*.*a @@ -40,16 +50,22 @@ # Rm backgrouds (1,6 Mb) and desktop file already provides by other. rm -rf $fs/usr/share/enlightenment/data/backgrounds/* - rm $fs/usr/share/enlightenment/data/other/desktop_files* + + # locales + for locale in $LOCALES; do + mv $install/usr/share/locale/$locale $fs/usr/share/locale + done } post_install() { - res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//` + res=$(grep ^session <$1/etc/slim.conf | sed s/"sessions. *"// \ + | sed s/,e17//) # Adding WM to SLIM available sessions. - if ! echo "$res" | grep -q e17; then - echo -n "Adding e17 to /etc/slim.conf..." - sed -i "s/^sessions.*/sessions ${res},e17/" /etc/slim.conf + if ! echo "$res" | grep -q enlightenment; then + echo -n "Adding enlightenment to /etc/slim.conf..." + sed -i "s/^sessions.*/sessions enlightenment,${res}/" \ + /etc/slim.conf status fi } @@ -57,7 +73,7 @@ post_remove() { # Remove WM from SLIM available sessions. - if grep -q e17 $1/etc/slim.conf; then - sed -i s/,e17// $1/etc/slim.conf + if grep -q enlightenment $1/etc/slim.conf; then + sed -i s/enlightenement,// $1/etc/slim.conf fi } diff -r b9fe5b87a4de -r 15fb93be1912 enlightenment-pam/stuff/etc/enlightenment/sysactions.conf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/enlightenment-pam/stuff/etc/enlightenment/sysactions.conf Fri Apr 12 19:59:24 2013 +0200 @@ -0,0 +1,73 @@ +# ENLIGHTENMENT SYSTEM ACTIONS CONFIGURATION +# +# This is a system configuration for allowing or denying certain users or +# groups to be able to do certain actions that involve system restricted +# actions such as halt, reboot, suspend, hibernate etc. +# +# This file is read in order from top to bottom - the first rule to MATCH +# will be used for a user or a group, and nothing after that is read. +# +# You must put all the ACTION definitons BEFORE user and group rule matches. +# Any action definitons after a rule match has been found will be ignored. +# This allows actions to be re-defined for different user groups, so matches +# so the command for an action can change for matches to the rules later on. +# +# Any user or group NOT matched by an allow or a deny will be ALLOWED to +# perform the action by default (system administrators should be aware of +# this and implement whatever policies they see fit). Generally speaking +# a user of a workstation, desktop or laptop is intended to have such abilities +# to perform these actions, thus the default of allow. For multi-user systems +# the system administrator is considerd capable enough to restrict what they +# see they need to. +# +# A WARNING to admins: do NOT allow access for users to this system remotely +# UNLESS you fully trust them or you have locked down permissions to halt/reboot +# suspend etc. here first. You have been warned. +# +# FORMAT: +# +# action: halt /sbin/shutdown -h now +# action: reboot /sbin/shutdown -r now +# action: suspend /etc/acpi/sleep.sh force +# action: hibernate /etc/acpi/hibernate.sh force +# +# user: username allow: halt reboot suspend hibernate +# group: groupname deny: * +# group: * deny: * +# user: * allow: suspend +# user: billy allow: halt reboot +# group: staff deny: halt suspend hibernate +# +# etc. +# +# user and group name can use glob matches (* == all for example) like the +# shell. as can action names allowed or denied. + +action: halt poweroff +action: reboot reboot +action: suspend /usr/sbin/pm-suspend +action: hibernate /usr/sbin/pm-hibernate + +# root is allowed to do anything - but it needs to be here explicitly anyway +user: root allow: * +# members of operator, staff and admin groups should be able to do all +group: operator allow: * +group: staff allow: * +group: admin allow: * +group: sys allow: * +# common "user" groups for "console users" on desktops/laptops +group: dialout allow: * +group: disk allow: * +group: adm allow: * +group: cdrom allow: * +group: floppy allow: * +group: audio allow: * +group: dip allow: * +group: plugdev allow: * +# put in a list of other users and groups here that are allowed or denied etc. +# e.g. +# user: myuser allow: * +# user: another allow: suspend hibernate +# deny everyone else by default +user: * deny: * +user: tux allow: *