use a service file for system activation

This commit is contained in:
Richard Hughes 2007-08-14 00:02:19 +01:00
parent 511d2d1788
commit 012633d85a
2 changed files with 32 additions and 0 deletions

View File

@ -98,6 +98,27 @@ if test x$enable_tests = xyes ; then
fi
AM_CONDITIONAL([HAVE_TESTS], [test $have_tests = yes])
dnl ---------------------------------------------------------------------------
dnl - Are we specifying a different dbus root ?
dnl ---------------------------------------------------------------------------
AC_ARG_WITH(dbus-sys,
[AC_HELP_STRING([--with-dbus-sys=<dir>],
[where D-BUS system.d directory is])])
AC_ARG_WITH(dbus-services,
[AC_HELP_STRING([--with-dbus-services=<dir>],
[where D-BUS system-services directory is])])
if ! test -z "$with_dbus_sys" ; then
DBUS_SYS_DIR="$with_dbus_sys"
else
DBUS_SYS_DIR="$SYSCONFDIR/dbus-1/system.d"
fi
if ! test -z "$with_dbus_services" ; then
DBUS_SERVICES_DIR="$with_dbus_services"
else
DBUS_SERVICES_DIR="$DATADIR/dbus-1/system-services"
fi
AC_SUBST(DBUS_SYS_DIR)
AC_SUBST(DBUS_SERVICES_DIR)
dnl ---------------------------------------------------------------------------
dnl - Compile time choice of backend

View File

@ -3,9 +3,17 @@ AUTOMAKE_OPTIONS = 1.7
NULL =
servicedir = $(DBUS_SERVICES_DIR)
service_in_files = packagekitd.service.in
service_DATA = $(service_in_files:.service.in=.service)
$(service_DATA): $(service_in_files) Makefile
@sed -e "s|\@servicedir\@|$(sbindir)|" $< > $@
EXTRA_DIST = \
pk-marshal.list \
pk-interface.xml \
$(service_in_files) \
$(NULL)
INCLUDES = \
@ -85,6 +93,9 @@ clean-local:
rm -f *~
rm -f pk-marshal.c pk-marshal.h
DISTCLEANFILES = \
packagekitd.service
CLEANFILES = $(BUILT_SOURCES)
MAINTAINERCLEANFILES = \