Mailinglist Archive: yast-commit (1914 mails)

< Previous Next >
[yast-commit] <rest-service> network : package the policy file
  • From: Jiri Suchomel <jsuchome@xxxxxxx>
  • Date: Wed, 9 Sep 2009 15:01:09 +0200
  • Message-id: <E1MlP4F-0004v1-A0@xxxxxxxxxxxxxxxx>
ref: refs/heads/network
commit a970a4ca093424d74f254c43dfca5318cb7bfea2
Author: Jiri Suchomel <jsuchome@xxxxxxx>
Date: Wed Sep 9 15:01:09 2009 +0200

package the policy file
---
.../package/yast2-webservice-services.spec | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/plugins/services/package/yast2-webservice-services.spec
b/plugins/services/package/yast2-webservice-services.spec
index f008eb2..dca5fc0 100644
--- a/plugins/services/package/yast2-webservice-services.spec
+++ b/plugins/services/package/yast2-webservice-services.spec
@@ -19,7 +19,7 @@ Version: 0.0.3
Release: 0
Summary: YaST2 - Webservice - Services
Source: www.tar.bz2
-#Source1: org.opensuse.yast.system.services.policy
+Source1: org.opensuse.yast.modules.yapi.services.policy
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch

@@ -54,7 +54,7 @@ cp -a *
$RPM_BUILD_ROOT/srv/www/%{pkg_user}/vendor/plugins/%{plugin_name}

# Policies
mkdir -p $RPM_BUILD_ROOT/usr/share/PolicyKit/policy
-#install -m 0644 %SOURCE1 $RPM_BUILD_ROOT/usr/share/PolicyKit/policy/
+install -m 0644 %SOURCE1 $RPM_BUILD_ROOT/usr/share/PolicyKit/policy/

%clean
rm -rf $RPM_BUILD_ROOT
@@ -64,6 +64,7 @@ rm -rf $RPM_BUILD_ROOT
# granting all permissions for root
#
/etc/yastws/tools/policyKit-rights.rb --user root --action grant >& /dev/null
|| :
+/etc/yastws/tools/policyKit-rights.rb --user yastws --action grant >&
/dev/null || :

%files
%defattr(-,root,root)
@@ -81,9 +82,7 @@ rm -rf $RPM_BUILD_ROOT
/srv/www/%{pkg_user}/vendor/plugins/%{plugin_name}/uninstall.rb
/srv/www/%{pkg_user}/vendor/plugins/%{plugin_name}/app
/srv/www/%{pkg_user}/vendor/plugins/%{plugin_name}/config
-#/srv/www/%{pkg_user}/vendor/plugins/%{plugin_name}/lib
/srv/www/%{pkg_user}/vendor/plugins/%{plugin_name}/tasks
/srv/www/%{pkg_user}/vendor/plugins/%{plugin_name}/doc/custom_services.yml

-#/srv/www/%{pkg_user}/vendor/plugins/%{plugin_name}/test
-#%attr(644,root,root)
/usr/share/PolicyKit/policy/org.opensuse.yast.system.%{plugin_name}.policy
+%attr(644,root,root) %config
/usr/share/PolicyKit/policy/org.opensuse.yast.modules.yapi.%{plugin_name}.policy
--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages