forked from Mirrors/flatpak-builder
Merge pull request #2 from vrutkovs/jhbuild-hook
Use sudo and DESTDIR in install-exec-hooktingping/wmclass
commit
f1c3b1e988
|
@ -30,5 +30,5 @@ xdg_app_LDADD = $(OSTREE_LIBS)
|
||||||
xdg_app_CFLAGS = $(OSTREE_CFLAGS)
|
xdg_app_CFLAGS = $(OSTREE_CFLAGS)
|
||||||
|
|
||||||
install-exec-hook:
|
install-exec-hook:
|
||||||
chown root $(bindir)/xdg-app-helper
|
$(SUDO_BIN) chown root $(DESTDIR)$(bindir)/xdg-app-helper
|
||||||
chmod u+s $(bindir)/xdg-app-helper
|
$(SUDO_BIN) chmod u+s $(DESTDIR)$(bindir)/xdg-app-helper
|
||||||
|
|
|
@ -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_CFLAGS)
|
||||||
AC_SUBST(OSTREE_LIBS)
|
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([
|
AC_CONFIG_FILES([
|
||||||
Makefile
|
Makefile
|
||||||
])
|
])
|
||||||
|
|
Loading…
Reference in New Issue