Author: lslezak
Date: Mon Jul 27 10:24:43 2009
New Revision: 58155
URL: http://svn.opensuse.org/viewcvs/yast?rev=58155&view=rev
Log:
first testing version (doesn't compile yet)
Added:
branches/tmp/lslezak/dbus-server/
branches/tmp/lslezak/dbus-server/MAINTAINER
branches/tmp/lslezak/dbus-server/Makefile.cvs
branches/tmp/lslezak/dbus-server/RPMNAME
branches/tmp/lslezak/dbus-server/VERSION
branches/tmp/lslezak/dbus-server/configure.in.in
branches/tmp/lslezak/dbus-server/package/
branches/tmp/lslezak/dbus-server/package/yast2-dbus-server.changes
branches/tmp/lslezak/dbus-server/src/
branches/tmp/lslezak/dbus-server/src/Makefile.am
branches/tmp/lslezak/dbus-server/src/liby2dbus/ (props changed)
- copied from r57977, trunk/core/liby2dbus/
branches/tmp/lslezak/dbus-server/src/services/
branches/tmp/lslezak/dbus-server/src/services/Makefile.am (contents, props changed)
- copied, changed from r57977, trunk/core/dbus/Makefile.am
branches/tmp/lslezak/dbus-server/src/services/SCR_service/ (props changed)
- copied from r57977, trunk/core/dbus/SCR_service/
branches/tmp/lslezak/dbus-server/src/services/namespace_service/ (props changed)
- copied from r57977, trunk/core/dbus/namespace_service/
branches/tmp/lslezak/dbus-server/yast2-dbus-server.spec.in
Added: branches/tmp/lslezak/dbus-server/MAINTAINER
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/lslezak/dbus-server/MAINTAINER?rev=58155&view=auto
==============================================================================
--- branches/tmp/lslezak/dbus-server/MAINTAINER (added)
+++ branches/tmp/lslezak/dbus-server/MAINTAINER Mon Jul 27 10:24:43 2009
@@ -0,0 +1 @@
+Ladislav Slezák
Added: branches/tmp/lslezak/dbus-server/Makefile.cvs
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/lslezak/dbus-server/Makefile.cvs?rev=58155&view=auto
==============================================================================
--- branches/tmp/lslezak/dbus-server/Makefile.cvs (added)
+++ branches/tmp/lslezak/dbus-server/Makefile.cvs Mon Jul 27 10:24:43 2009
@@ -0,0 +1,23 @@
+#
+# Makefile.cvs
+#
+
+LIB = $(shell y2tool get-lib)
+
+PREFIX = /usr
+
+configure: all
+ ./configure --prefix=$(PREFIX) --libdir=$(PREFIX)/$(LIB)
+
+all:
+ y2tool y2autoconf
+ y2tool y2automake
+ autoreconf --force --install -v
+
+install: configure
+ make
+ make install
+
+reconf: all
+ ./config.status --recheck
+ ./config.status
Added: branches/tmp/lslezak/dbus-server/RPMNAME
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/lslezak/dbus-server/RPMNAME?rev=58155&view=auto
==============================================================================
--- branches/tmp/lslezak/dbus-server/RPMNAME (added)
+++ branches/tmp/lslezak/dbus-server/RPMNAME Mon Jul 27 10:24:43 2009
@@ -0,0 +1 @@
+yast2-dbus-server
Added: branches/tmp/lslezak/dbus-server/VERSION
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/lslezak/dbus-server/VERSION?rev=58155&view=auto
==============================================================================
--- branches/tmp/lslezak/dbus-server/VERSION (added)
+++ branches/tmp/lslezak/dbus-server/VERSION Mon Jul 27 10:24:43 2009
@@ -0,0 +1 @@
+2.18.0
Added: branches/tmp/lslezak/dbus-server/configure.in.in
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/lslezak/dbus-server/configure.in.in?rev=58155&view=auto
==============================================================================
--- branches/tmp/lslezak/dbus-server/configure.in.in (added)
+++ branches/tmp/lslezak/dbus-server/configure.in.in Mon Jul 27 10:24:43 2009
@@ -0,0 +1,83 @@
+## initialize
+@YAST2-INIT-COMMON@
+@YAST2-INIT-PROGRAM@
+
+## some common checks
+@YAST2-CHECKS-COMMON@
+@YAST2-CHECKS-PROGRAM@
+
+AX_CHECK_DOCBOOK
+
+PKG_CHECK_MODULES(DBUS, dbus-1)
+
+## check for PolicyKit
+AC_ARG_ENABLE([policykit],
+ AS_HELP_STRING([--enable-policykit], [Enable PolicyKit support]),
+ [
+ case "${enableval}" in
+ yes) policykit=yes ;;
+ no) policykit=no ;;
+ *) AC_MSG_ERROR(--enable-policykit: Unknwon value ${enableval}) ;;
+ esac
+ ],
+ [policykit=yes])
+
+if test "x${policykit}" == xyes ; then
+ PKG_CHECK_MODULES(POLKIT, [ polkit-dbus >= 0.7 ],
+ [
+ HAVE_POLKIT=1
+ AC_DEFINE([HAVE_POLKIT], 1, [Have PolicyKit])
+ policydir=`pkg-config polkit-dbus --variable prefix`/share/PolicyKit/policy/
+ AC_SUBST(policydir)
+ ],
+ [
+ HAVE_POLKIT=0
+ AC_MSG_ERROR([*** PolicyKit support not found, install PolicyKit-devel: 'zypper in PolicyKit-devel' or libpolkit-dbus-dev.deb])
+ ])
+else
+ HAVE_POLKIT=0
+fi
+
+#
+# configuration for dbus/SCR_service
+#
+
+# set access mode according to the PolicyKit status
+# if policykit is disabled only root can access the service
+if test $HAVE_POLKIT -ne 0; then
+ACCESS_MODE=allow
+else
+ACCESS_MODE=deny
+fi
+
+YAST_DBUS_SERVICE=org.opensuse.YaST.modules
+AC_SUBST(YAST_DBUS_SERVICE)
+YAST_DBUS_RAW_INTERFACE=org.opensuse.YaST.Values
+AC_SUBST(YAST_DBUS_RAW_INTERFACE)
+YAST_DBUS_YCP_INTERFACE=org.opensuse.YaST.YCPValues
+AC_SUBST(YAST_DBUS_YCP_INTERFACE)
+YAST_DBUS_MGR_INTERFACE=org.opensuse.YaST.modules.ModuleManager
+AC_SUBST(YAST_DBUS_MGR_INTERFACE)
+YAST_DBUS_OBJ_PREFIX=/org/opensuse/YaST/modules
+AC_SUBST(YAST_DBUS_OBJ_PREFIX)
+
+YAST_POLKIT_PREFIX_MANAGER=org.opensuse.yast.module-manager
+AC_SUBST(YAST_POLKIT_PREFIX_MANAGER)
+
+YAST_SCR_SERVICE=org.opensuse.yast.SCR
+YAST_SCR_INTERFACE=$YAST_SCR_SERVICE.Methods
+# @ybindir@ expands to ${prefix}/lib/..., force full expansion here
+YAST_SCR_SERVICE_DIR=$ybindir
+AC_SUBST(YAST_SCR_SERVICE)
+AC_SUBST(YAST_SCR_INTERFACE)
+AC_SUBST(YAST_SCR_SERVICE_DIR)
+
+AC_SUBST(ACCESS_MODE)
+
+AC_SUBST(POLKIT_CFLAGS)
+AC_SUBST(POLKIT_LIBS)
+AC_SUBST(HAVE_POLKIT)
+AM_CONDITIONAL([HAVE_POLKIT], [test "x$HAVE_POLKIT" = x1])
+
+## and generate the output
+@YAST2-OUTPUT@
Added: branches/tmp/lslezak/dbus-server/package/yast2-dbus-server.changes
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/lslezak/dbus-server/package/yast2-dbus-server.changes?rev=58155&view=auto
==============================================================================
--- branches/tmp/lslezak/dbus-server/package/yast2-dbus-server.changes (added)
+++ branches/tmp/lslezak/dbus-server/package/yast2-dbus-server.changes Mon Jul 27 10:24:43 2009
@@ -0,0 +1,5 @@
+-------------------------------------------------------------------
+Mon Jul 27 09:37:48 CEST 2009 - lslezak@suse.cz
+
+- Initial version (2.18.0)
+
Added: branches/tmp/lslezak/dbus-server/src/Makefile.am
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/lslezak/dbus-server/src/Makefile.am?rev=58155&view=auto
==============================================================================
--- branches/tmp/lslezak/dbus-server/src/Makefile.am (added)
+++ branches/tmp/lslezak/dbus-server/src/Makefile.am Mon Jul 27 10:24:43 2009
@@ -0,0 +1 @@
+SUBDIRS=liby2dbus services
Copied: branches/tmp/lslezak/dbus-server/src/services/Makefile.am (from r57977, trunk/core/dbus/Makefile.am)
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/lslezak/dbus-server/src/services/Makefile.am?p2=branches/tmp/lslezak/dbus-server/src/services/Makefile.am&p1=trunk/core/dbus/Makefile.am&r1=57977&r2=58155&rev=58155&view=diff
==============================================================================
--- trunk/core/dbus/Makefile.am (original)
+++ branches/tmp/lslezak/dbus-server/src/services/Makefile.am Mon Jul 27 10:24:43 2009
@@ -1,5 +1,5 @@
#
-# Makefile.am for core/dbus
+# Makefile.am dbus-server/src/services
#
SUBDIRS=SCR_service namespace_service
Added: branches/tmp/lslezak/dbus-server/yast2-dbus-server.spec.in
URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/lslezak/dbus-server/yast2-dbus-server.spec.in?rev=58155&view=auto
==============================================================================
--- branches/tmp/lslezak/dbus-server/yast2-dbus-server.spec.in (added)
+++ branches/tmp/lslezak/dbus-server/yast2-dbus-server.spec.in Mon Jul 27 10:24:43 2009
@@ -0,0 +1,87 @@
+@HEADER-COMMENT@
+
+
+@HEADER@
+Group: System/YaST
+License: GPL v2 or later
+# obviously
+BuildRequires: gcc-c++
+# needed for all yast packages
+BuildRequires: yast2-devtools
+# testsuite
+BuildRequires: dejagnu
+# autodocs
+BuildRequires: doxygen
+# docbook docs
+BuildRequires: docbook-xsl-stylesheets libxslt
+# catalog: convert URIs to local filenames
+BuildRequires: sgml-skel
+
+# for SCR DBus service
+BuildRequires: dbus-1-devel dbus-1-x11 PolicyKit-devel
+
+Summary: YaST2 - Core Libraries
+
+%description
+This package contains the scanner, parser, and interpreter runtime
+library for the YCP scripting language used in YaST2.
+
+#@HEADER-DEVEL@
+#Summary: YaST2 - Core Libraries
+# Provides: liby2util-devel = 2.16.1
+# Obsoletes: liby2util-devel < 2.16.1
+#Requires: libxcrypt-devel hwinfo-devel
+#Requires: glibc-devel libstdc++-devel pcre-devel libblocxx-devel sysfsutils
+# required for libscr
+#Requires: PolicyKit-devel dbus-1-devel
+
+@PREP@
+
+%build
+@BUILD@
+
+@INSTALL@
+
+@CLEAN@
+
+%post
+/sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root)
+
+%dir %{_libdir}/YaST2
+%if "%_lib" == "lib64"
+%dir /usr/lib/YaST2
+%endif
+%dir /usr/share/YaST2
+
+%dir %attr(0700,root,root) @logdir@
+%dir @ybindir@
+%dir @plugindir@
+%dir @scrconfdir@
+%dir @execcompdir@/servers
+%dir @execcompdir@/servers_non_y2
+
+%{_libdir}/lib*.so.*
+@plugindir@/lib*.so.*
+@scrconfdir@/*.scr
+@execcompdir@/servers/scr
+@execcompdir@/servers_non_y2/ag_*
+
+# DBus service
+@ybindir@/SCR_dbus_server
+# DBus service config
+/usr/share/dbus-1/system-services/org.opensuse.yast.SCR.service
+%config /etc/dbus-1/system.d/org.opensuse.yast.SCR.conf
+# PolicyKit default policies
+/usr/share/PolicyKit/policy/org.opensuse.yast.scr.policy
+
+# DBus namespace service
+@ybindir@/yast_modules_dbus_server
+/usr/share/dbus-1/system-services/org.opensuse.YaST.modules.service
+%config /etc/dbus-1/system.d/org.opensuse.YaST.modules.conf
+/usr/share/PolicyKit/policy/org.opensuse.yast.module-manager.policy
+
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org