Nice work, mekius!

I did not read the code or tried the executable (going to catch a plane
back to brazil) but it looks promising!

Taking to gnome guys at Linux Plumbers Conf they said they have the same
agent to talk natively the protocols of the ssh and gpg agents, then they
can show an unified experience for users. What do you think?

Last but not least, we have a way to use elm from e17 and I'd wonder how
difficult is to make it generate a module that would be started by e17 and
sit quiet until a request comes in. Maybe build the bulk of code as a
static lib (noinst_LTLIBRARIES) and link it from the module and the stand
alone executable.

BR,
-- Gustavo

On Saturday, September 1, 2012, Enlightenment SVN wrote:

> Log:
> Empower is now a polkit Authentication Agent
>
>     Empower has changed completely.  It no longer wraps
>     sudo nor does it provide askpass support.  Askpass
>     support may be added back in later.  Version 2.0
>     can be used if these features are still required.
>
>     This is by no means final code, just wanted to get
>     it up in SVN for others to see.  I'm sure there are
>     many leaks and problems, but it does work.  Interface
>     looks terrible and already plan to improve that.
>
>     This has been tested to work for mounting disks in
>     E17 when authentication is required.  Also works
>     with pkexec (note that pkexec clears DISPLAY
>     environment variable by default so X11 programs
>     will not run with it.  Look at their docs for
>     info on changing this).
>
>
>
> Author:       mekius
> Date:         2012-09-01 09:22:43 -0700 (Sat, 01 Sep 2012)
> New Revision: 75930
> Trac:         http://trac.enlightenment.org/e/changeset/75930
>
> Added:
>   trunk/empower/TODO trunk/empower/m4/ trunk/empower/po/Makevars
> trunk/empower/src/bin/Empower.h trunk/empower/src/bin/Makefile.am
> trunk/empower/src/bin/gui.c trunk/empower/src/bin/gui.h
> trunk/empower/src/bin/main.c trunk/empower/src/bin/marshal.c
> trunk/empower/src/bin/marshal.h trunk/empower/src/bin/pka.c
> trunk/empower/src/bin/pka.h
> Removed:
>   trunk/empower/po/LINGUAS 
> trunk/empower/po/Makefile.in.intrunk/empower/po/Makevars 
> trunk/empower/po/POTFILES.in
> trunk/empower/po/ar.po trunk/empower/po/bg.po trunk/empower/po/cs.po
> trunk/empower/po/da.po trunk/empower/po/de.po trunk/empower/po/el.po
> trunk/empower/po/eo.po trunk/empower/po/es.po trunk/empower/po/fi.po
> trunk/empower/po/fr.po trunk/empower/po/he.po trunk/empower/po/hr.po
> trunk/empower/po/hu.po trunk/empower/po/it.po trunk/empower/po/ja.po
> trunk/empower/po/lt.po trunk/empower/po/nl.po trunk/empower/po/pl.po
> trunk/empower/po/pt.po trunk/empower/po/pt_BR.po trunk/empower/po/ru.po
> trunk/empower/po/sk.po trunk/empower/po/sl.po trunk/empower/po/sv.po
> trunk/empower/po/tr.po trunk/empower/po/uk.po trunk/empower/po/zh_CN.po
> trunk/empower/src/bin/Makefile.am trunk/empower/src/bin/elm/
> trunk/empower/src/bin/ewl/
> Modified:
>   trunk/empower/AUTHORS trunk/empower/ChangeLog trunk/empower/INSTALL
> trunk/empower/Makefile.am trunk/empower/README trunk/empower/autogen.sh
> trunk/empower/configure.ac trunk/empower/data/Makefile.am trunk/empower/
> empower.spec.in
>
> Modified: trunk/empower/AUTHORS
> ===================================================================
> --- trunk/empower/AUTHORS       2012-09-01 14:56:16 UTC (rev 75929)
> +++ trunk/empower/AUTHORS       2012-09-01 16:22:43 UTC (rev 75930)
> @@ -1,3 +1 @@
> -Mekius_ (Nick Hughart) <meki...@satus.net <javascript:;>> (EWL version
> maintainer)
> -CodeWarrior (Hisham Mardam Bey) <his...@hisham.cc> (ETK version
> maintainer)
> -UnixTitan (Stephen Houston) <unixti...@gmail.com <javascript:;>> (EWL
> version contributor)
> +Nick "mekius" Hughart <mek...@mekius.net <javascript:;>>
>
> Modified: trunk/empower/ChangeLog
> ===================================================================
> --- trunk/empower/ChangeLog     2012-09-01 14:56:16 UTC (rev 75929)
> +++ trunk/empower/ChangeLog     2012-09-01 16:22:43 UTC (rev 75930)
> @@ -1,3 +1,6 @@
> +7-21-12 -- Version 3.0.0
> +  - Empower is now a PolicyKit authentication agent.  It maintains
> +         the askpass support.
>  7-10-09 -- Version 2.0.0
>    - Remove ETK version
>    - Add Elementary version
>
> Modified: trunk/empower/INSTALL
> ===================================================================
> --- trunk/empower/INSTALL       2012-09-01 14:56:16 UTC (rev 75929)
> +++ trunk/empower/INSTALL       2012-09-01 16:22:43 UTC (rev 75930)
> @@ -1,10 +1,5 @@
> -To build and install empower, do the following:
> +To build and install Empower, do the following:
>         ./autogen.sh
>         make
>         make install (as root)
>
> -By default the Elementary version will be built unless it's not installed
> -or the EWL version is explicitly enabled by passing --enable-ewl to
> autogen.sh.
> -The program will build and install as 'empower' in either case.  Both
> versions
> -cannot be installed at the same time without renaming the resulting binary
> -manually.
>
> Modified: trunk/empower/Makefile.am
> ===================================================================
> --- trunk/empower/Makefile.am   2012-09-01 14:56:16 UTC (rev 75929)
> +++ trunk/empower/Makefile.am   2012-09-01 16:22:43 UTC (rev 75930)
> @@ -1,13 +1,36 @@
>  ## Process this file with automake to produce Makefile.in
> -ACLOCAL_AMFLAGS = -I m4
> +SUBDIRS = src data
>
> -SUBDIRS = src data po
> +if HAVE_PO
> +SUBDIRS += po
> +endif
>
> -EXTRA_DIST = README AUTHORS COPYING empower.spec
> -
> -
>  MAINTAINERCLEANFILES = Makefile.in aclocal.m4 config.guess \
>                         config.h.in config.sub configure install-sh \
> -                      ltconfig ltmain.sh missing mkinstalldirs \
> -                      stamp-h.in  empower.spec compile depcomp \
> -                      empower-*.tar.gz empower-*/
> +                       ltconfig ltmain.sh missing mkinstalldirs \
> +                       stamp-h.in  empower.spec compile depcomp \
> +                       empower-*.tar.gz empower-* ABOUT-NLS* \
> +                       config.rpath m4/* m4
> +
> +if HAVE_PO
> +
> +MAINTAINERCLEANFILES += \
> +po/boldquot.sed \
> +po/en@boldquot.header \
> +po/en@quot.header \
> +po/insert-header.sin \
> +po/Makefile.in.in \
> +po/Makevars.template \
> +po/quot.sed \
> +po/remove-potcdate.sin \
> +po/Rules-quot \
> +po/empower.pot
> +
> +endif
> +
> +EXTRA_DIST = config.rpath README AUTHORS COPYING empower.spec
> +
> +filesdir = $(datadir)/empower/
> +files_DATA = AUTHORS COPYING
> +
> +ACLOCAL_AMFLAGS = -I m4
> \ No newline at end of file
>
> Modified: trunk/empower/README
> ===================================================================
> --- trunk/empower/README        2012-09-01 14:56:16 UTC (rev 75929)
> +++ trunk/empower/README        2012-09-01 16:22:43 UTC (rev 75930)
> @@ -1,22 +1,12 @@
> -Empower - A graphical sudo tool based on the Enlightenment Foundation
> Libraries
> -Version 2.0.0
> +Empower - A graphical PolicyKit authentication agent based on the
> +          Enlightenment Foundation Libraries
> +Version 3.0.0
>
>  Usage:
> -    Sudo: empower [SUDO OPTIONS] [program] [PROGRAM OPTIONS] [EWL OPTIONS]
> -    AskPass: empower-askpass [EWL OPTIONS] or empower -p [EWL OPTIONS]
> -
> -    Note: EWL options are only valid on the EWL version.
> +    PolicyKit Agent: empower
> +    AskPass Support: empower-askpass or empower -p
>
> -Usage Note:
> -    If no options are passed to empower, you will be prompted to provide
> an
> -    executable and your password (if not authenticated already).  You can
> -    specify sudo options as well as program args by following this format
> in
> -    the execute entry:
> -
> -        empower [SUDO OPTIONS] <program> [PROGRAM OPTIONS]
> -
> -
>  See INSTALL for installation instructions
>  See COPYING and COPYING-PLAIN for license information
>
> -Created by and Copyright 2005-2009 Nicholas "Mekius_" Hughart
> +Created by and Copyright 2005-2009 Nicholas "mekius" Hughart
>
> Modified: trunk/empower/autogen.sh
> ===================================================================
> --- trunk/empower/autogen.sh    2012-09-01 14:56:16 UTC (rev 75929)
> +++ trunk/empower/autogen.sh    2012-09-01 16:22:43 UTC (rev 75930)
> @@ -4,7 +4,6 @@
>  rm -f aclocal.m4 ltmain.sh
>
>  touch README
> -touch ABOUT-NLS
>
>  echo "Running autopoint..." ; autopoint -f || :
>  echo "Running aclocal..." ; aclocal -I m4 $ACLOCAL_FLAGS || exit 1
>
> Modified: trunk/empower/configure.ac
> ===================================================================
> --- trunk/empower/configure.ac  2012-09-01 14:56:16 UTC (rev 75929)
> +++ trunk/empower/configure.ac  2012-09-01 16:22:43 UTC (rev 75930)
> @@ -3,7 +3,7 @@
>  # get rid of that stupid cache mechanism
>  rm -f config.cache
>
> -AC_INIT([empower], [2.0.0], [mek...@mekius.net <javascript:;>])
> +AC_INIT([empower], [3.0.0], [mek...@mekius.net <javascript:;>])
>  AC_PREREQ([2.52])
>  AC_CONFIG_SRCDIR([configure.ac])
>  AC_CONFIG_MACRO_DIR([m4])
> @@ -57,9 +57,32 @@
>  packagesrcdir=`cd $srcdir && pwd`
>  AC_DEFINE_UNQUOTED(PACKAGE_SOURCE_DIR, "${packagesrcdir}", [Source code
> directory])
>
> -AM_GNU_GETTEXT([external])
> -AM_GNU_GETTEXT_VERSION([0.12.1])
> +ALL_LINGUAS=""
> +AC_SUBST(ALL_LINGUAS)
>
> +m4_ifdef([AM_GNU_GETTEXT_VERSION], [
> +AM_GNU_GETTEXT_VERSION([0.17])
> +])
> +
> +m4_ifdef([AM_GNU_GETTEXT], [
> +AM_GNU_GETTEXT([external], [need-ngettext])
> +po_makefile_in=po/Makefile.in
> +have_po="yes"
> +],[
> +have_po="no"
> +])
> +AC_SUBST(LTLIBINTL)
> +if test "x$LIBINTL" = "x"; then
> +  LIBINTL="$INTLLIBS"
> +fi
> +
> +if test "x${POSUB}" = "x" ; then
> +   have_po="no"
> +fi
> +
> +AM_CONDITIONAL([HAVE_PO], [test "x${have_po}" = "xyes"])
> +
> +
>  PKG_CHECK_MODULES([EVAS], evas,
>     [],
>     [
> @@ -84,55 +107,29 @@
>     ]
>  )
>
> -AC_ARG_ENABLE(ewl,
> -        AC_HELP_STRING([--enable-ewl/--disable-ewl],
> -        [enable/disable ewl version (default=no)]),
> -        [enable_ewl=$enableval ], [ enable_ewl=no])
> -
> -if test "x$enable_ewl" = "xdefault" || test "x$enable_ewl" = "xyes"; then
> -   PKG_CHECK_MODULES([EWL], ewl >= 0.4.0,
> -      [  enable_ewl="yes"  ],
> -      [
> -         enable_ewl="no"
> -         echo "Could not find Ewl.  If it is installed, \nplease make
> sure its path is in PKG_CONFIG_PATH";
> -         AC_MSG_ERROR([Empower needs Ewl to compile the Ewl version.])
> -      ]
> +PKG_CHECK_MODULES([ELEMENTARY], elementary,
> +   [],
> +   [
> +      echo "Could not find Elementary.  If it is installed, \nplease make
> sure its path is in PKG_CONFIG_PATH";
> +      AC_MSG_ERROR([Empower needs Elementary to compile.])
> +   ]
>  )
> -fi
>
> -AM_CONDITIONAL(ENABLE_EWL, test x$enable_ewl = xyes)
> -
> -if test "x$enable_ewl" = "xno"; then
> -AC_ARG_ENABLE(elementary,
> -        AC_HELP_STRING([--enable-elementary/--disable-elementary],
> -        [enable/disable elementary version (default=autodetect)]),
> -        [enable_elementary=$enableval ], [ enable_elementary=default])
> -
> -if test "x$enable_elementary" = "xdefault" || test "x$enable_elementary"
> = "xyes"; then
> -   PKG_CHECK_MODULES([ELEMENTARY], elementary >= 0.3.0.0,
> -      [  enable_elementary="yes"  ],
> -      [
> -         enable_elementary="no"
> -         echo "Could not find Elementary.  If it is installed, \nplease
> makesure its path is in PKG_CONFIG_PATH";
> -         AC_MSG_ERROR([Empower needs Elementary to compile the Elementary
> version.])
> -      ]
> +PKG_CHECK_MODULES([EDBUS], edbus,
> +   [],
> +   [
> +      echo "Could not find Edbus.  If it is installed, \nplease make sure
> its path is in PKG_CONFIG_PATH";
> +      AC_MSG_ERROR([Empower needs Edbus to compile.])
> +   ]
>  )
> -fi
> -else
> -enable_elementary="no"
> -fi
>
> -AM_CONDITIONAL(ENABLE_ELEMENTARY, test x$enable_elementary = xyes)
> -
>  AC_OUTPUT([
> -Makefile
> +Makefile
>  empower.spec
>  src/Makefile
>  src/bin/Makefile
> -src/bin/ewl/Makefile
> -src/bin/elm/Makefile
>  data/Makefile
> -po/Makefile.in
> +$po_makefile_in
>  ])
>
>  echo
> @@ -140,8 +137,3 @@
>  echo
>  echo "  Install path:              ${prefix}"
>  echo
> -echo "  Toolkit Support"
> -echo "  ----------------"
> -echo "  EWL:                       $enable_ewl"
> -echo "  Elementary:                $enable_elementary"
> -echo
>
> Modified: trunk/empower/data/Makefile.am
> ===================================================================
> --- trunk/empower/data/Makefile.am      2012-09-01 14:56:16 UTC (rev 75929)
> +++ trunk/empower/data/Makefile.am      2012-09-01 16:22:43 UTC (rev 75930)
> @@ -1,9 +1,7 @@
>  MAINTAINERCLEANFILES = Makefile.in
>
> -if ENABLE_ELEMENTARY
>  EXTRA_DIST = \
>  trans.png
>
>  filesdir = $(datadir)/empower/data
>  files_DATA = trans.png
> -endif
>
> Modified: trunk/empower/empower.spec.in
> ===================================================================
> --- trunk/empower/empower.spec.in       2012-09-01 14:56:16 UTC (rev
> 75929)
> +++ trunk/empower/empower.spec.in       2012-09-01 16:22:43 UTC (rev
> 75930)
> @@ -1,22 +1,20 @@
> -Summary: Graphical SUDO Wrapper
> +Summary: Graphical PolicyKit Authentication Agent
>  Name: @PACKAGE@
>  Version: @VERSION@
>  Release: 0.%(date '+%Y%m%d')
>  License: 3-clause BSD
>  Group: Applications/Admin
> -URL: http://www.satus.net/empower/
> +URL: http://www.mekius.net/content/empower/
>  Source: %{name}-%{version}.tar.gz
>  Packager: %{?_packager:%{_packager}}%{!?_packager:Michael Jennings <
> m...@eterm.org <javascript:;>>}
>  Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:The Enlightenment
> Project (http://www.enlightenment.org.au/)}
>  Distribution:
> %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}
>  #BuildSuggests: xorg-x11-devel
> -BuildRequires: evas-devel, ecore-devel, ewl-devel
> +BuildRequires: evas-devel, ecore-devel, elementary-devel
>  BuildRoot: %{_tmppath}/%{name}-%{version}-root
>
>  %description
> -Empower is an EWL-based wrapper for the "sudo" (Super-User Do" command
> -which provides access to privileged commands based on a configurable
> -ACL.
> +Empower is an Elementary based PolicyKit authentication agent.
>
>  %prep
>  %setup -q
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> enlightenment-svn mailing list
> enlightenment-...@lists.sourceforge.net <javascript:;>
> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
>


-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--------------------------------------
MSN: barbi...@gmail.com
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to