install: install configuration and set permissions
authorJussi Laako <jussi.laako@linux.intel.com>
Fri, 28 Jun 2013 14:27:45 +0000 (17:27 +0300)
committerJussi Laako <jussi.laako@linux.intel.com>
Fri, 28 Jun 2013 14:37:59 +0000 (17:37 +0300)
Makefile.am
configure.ac
dists/rpm/gsignond-suse.spec
dists/rpm/gsignond-tizen.spec
src/daemon/Makefile.am

index 22f236b..85b9aba 100644 (file)
@@ -9,6 +9,8 @@ AM_DISTCHECK_CONFIGURE_FLAGS = \
 pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_DATA = gsignond.pc
 
+dist_sysconf_DATA = gsignond.conf
+
 SUBDIRS = src test
 
 EXTRA_DIST = dists tools
index a2cb769..48297cc 100644 (file)
@@ -119,6 +119,7 @@ AM_CONDITIONAL(USE_GTESTDBUS, [test x$gtestdbus = xyes])
 AC_SUBST(MESSAGE_BUS_TYPE, [$enable_dbus_type])
 
 AM_CONDITIONAL(HAVE_DEBUG, [test x$enable_debug = xyes])
+AM_CONDITIONAL(SET_PERMISSIONS, [test x$enable_distcheck != xyes])
 
 AC_SUBST(DBUS_SERVICES_DIR)
 AC_SUBST(DBUS_INTERFACES_DIR)
index 1776ee4..de72eb3 100644 (file)
@@ -7,10 +7,11 @@
 Name: gsignond
 Summary: GLib based Single Sign-On daemon
 Version: 0.0.2
-Release: 9
+Release: 10
 Group: System/Daemons
-License: LGPL
+License: LGPL-2.1+
 Source: %{name}-%{version}.tar.gz
+Provides: gsignon
 %if %{dbus_type} != "p2p"
 Requires: dbus-1
 %endif
@@ -89,6 +90,7 @@ chmod u+s %{_bindir}/%{name}
 %endif
 %exclude %{_libdir}/gsignond/extensions/*.la
 %exclude %{_libdir}/gsignond/plugins/*.la
+%config(noreplace) %{_sysconfdir}/gsignond.conf
 
 
 %files devel
index f5fa51d..d1372f8 100644 (file)
@@ -7,10 +7,11 @@
 Name: gsignond
 Summary: GLib based Single Sign-On daemon
 Version: 0.0.2
-Release: 9
+Release: 10
 Group: System/Daemons
-License: LGPL
+License: LGPL-2.1+
 Source: %{name}-%{version}.tar.gz
+Provides: gsignon
 %if %{dbus_type} != "p2p"
 Requires: dbus-1
 %endif
@@ -82,6 +83,7 @@ chmod u+s %{_bindir}/%{name}
 %if %{dbus_type} != "p2p"
 %{_datadir}/dbus-1/services/*SingleSignOn*.service
 %endif
+%config(noreplace) %{_sysconfdir}/gsignond.conf
 
 
 %files devel
index 9d45622..62b1367 100644 (file)
@@ -73,3 +73,9 @@ gsignond_LDADD = \
     $(GSIGNOND_LIBS) \
     $(NULL)
 
+if SET_PERMISSIONS
+install-exec-hook:
+       chown root $(bindir)/gsignond || true
+       chmod u+s $(bindir)/gsignond || true
+endif
+