X-Git-Url: http://git.jankratochvil.net/?a=blobdiff_plain;f=src%2Fclient%2Fsandbox-server%2FMakefile.am;h=ac952a9b311c2cd8469897cba59c79f55a3b6527;hb=56c29066a72eaeb7e84a28aedc597f13f419359e;hp=4b159bd87dabac37fa80787aa34a4902ddfbccaa;hpb=574d3735969bc83d10b10554976f578bbeee241b;p=captive.git diff --git a/src/client/sandbox-server/Makefile.am b/src/client/sandbox-server/Makefile.am index 4b159bd..ac952a9 100644 --- a/src/client/sandbox-server/Makefile.am +++ b/src/client/sandbox-server/Makefile.am @@ -20,6 +20,32 @@ include $(top_srcdir)/Makefile-head.am captive_sandbox_server_SOURCES= \ main.c -captive_sandbox_server_LDADD=$(captive_library) $(INTLLIBS) -sbin_PROGRAMS+=captive-sandbox-server +captive_sandbox_server_CFLAGS=$(ORBIT_CFLAGS) $(LINC_CFLAGS) $(GNOME_VFS_CFLAGS) $(LIBXML_CFLAGS) +captive_sandbox_server_LDADD =$(ORBIT_LIBS) $(LINC_LIBS) $(GNOME_VFS_LIBS) $(LIBXML_LIBS) $(captive_library) $(INTLLIBS) +libexec_PROGRAMS=captive-sandbox-server +libexecPROGRAMS_INSTALL=${INSTALL} -o root -g root -m 4755 EXTRA_DIST+=.gdbinit + +install-data-hook: + $(mkinstalldirs) $(DESTDIR)$(CAPTIVE_SANDBOX_CHROOT) + $(mkinstalldirs) $(DESTDIR)$(CAPTIVE_SANDBOX_CHROOT)/tmp + chmod 1777 $(DESTDIR)$(CAPTIVE_SANDBOX_CHROOT)/tmp + +install-exec-hook: + if test `id -u` -eq 0 -a -z "$(DESTDIR)";then \ + if grep -q '^$(CAPTIVE_SANDBOX_SETGID):' /etc/group;then true;else \ + echo "ERROR: Add '$(CAPTIVE_SANDBOX_SETGID)' to your '/etc/group'; see README and groupadd(8)"; \ + exit 1; \ + fi; \ + if grep -q '^$(CAPTIVE_SANDBOX_SETUID):' /etc/passwd;then true;else \ + echo "ERROR: Add '$(CAPTIVE_SANDBOX_SETUID)' to your '/etc/passwd'; see README and useradd(8)"; \ + exit 1; \ + fi; \ + fi + +EXTRA_DIST+=captive-sandbox-server.pod.pl.in +CLEANFILES+=captive-sandbox-server.pod captive-sandbox-server.1 +if ENABLE_MAN_PAGES +captive_sandbox_server_man_cond=captive-sandbox-server.1 +endif +man_MANS=$(captive_sandbox_server_man_cond)