Merge pull request #2 from vrutkovs/jhbuild-hook

Use sudo and DESTDIR in install-exec-hook
tingping/wmclass
Alexander Larsson 2015-01-13 21:49:37 +01:00
commit f1c3b1e988
2 changed files with 7 additions and 2 deletions

View File

@ -30,5 +30,5 @@ xdg_app_LDADD = $(OSTREE_LIBS)
xdg_app_CFLAGS = $(OSTREE_CFLAGS)
install-exec-hook:
chown root $(bindir)/xdg-app-helper
chmod u+s $(bindir)/xdg-app-helper
$(SUDO_BIN) chown root $(DESTDIR)$(bindir)/xdg-app-helper
$(SUDO_BIN) chmod u+s $(DESTDIR)$(bindir)/xdg-app-helper

View File

@ -29,6 +29,11 @@ PKG_CHECK_MODULES(OSTREE, [glib-2.0 libgsystem >= 2015.1 gio-2.0 ostree-1 >= 201
AC_SUBST(OSTREE_CFLAGS)
AC_SUBST(OSTREE_LIBS)
AC_ARG_ENABLE(sudo,
AS_HELP_STRING([--enable-sudo],[Use sudo to set setuid flags on binaries during install]),
[SUDO_BIN="sudo"], [SUDO_BIN=""])
AC_SUBST([SUDO_BIN])
AC_CONFIG_FILES([
Makefile
])