2 # automake source for sandbox filesystem sandbox server
3 # Copyright (C) 2003 Jan Kratochvil <project-captive@jankratochvil.net>
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; exactly version 2 of June 1991 is required
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 include $(top_srcdir)/Makefile-head.am
21 captive_sandbox_server_SOURCES= \
23 captive_sandbox_server_CFLAGS=$(ORBIT_CFLAGS) $(LINC_CFLAGS)
24 captive_sandbox_server_LDADD =$(ORBIT_LIBS) $(LINC_LIBS) $(captive_library) $(INTLLIBS)
25 libexec_PROGRAMS=captive-sandbox-server
26 libexecPROGRAMS_INSTALL=${INSTALL} -o root -g root -m 4755
30 $(mkinstalldirs) $(DESTDIR)$(CAPTIVE_SANDBOX_CHROOT)
31 $(mkinstalldirs) $(DESTDIR)$(CAPTIVE_SANDBOX_CHROOT)/tmp
32 chmod 1777 $(DESTDIR)$(CAPTIVE_SANDBOX_CHROOT)/tmp
35 if test `id -u` -eq 0 -a -z "$(DESTDIR)";then \
36 if grep -q '^$(CAPTIVE_SANDBOX_SETGID):' /etc/group;then true;else \
37 echo "ERROR: Add '$(CAPTIVE_SANDBOX_SETGID)' to your '/etc/group'; see README and groupadd(8)"; \
40 if grep -q '^$(CAPTIVE_SANDBOX_SETUID):' /etc/passwd;then true;else \
41 echo "ERROR: Add '$(CAPTIVE_SANDBOX_SETUID)' to your '/etc/passwd'; see README and useradd(8)"; \
46 EXTRA_DIST+=captive-sandbox-server.pod.pl.in
47 CLEANFILES+=captive-sandbox-server.pod captive-sandbox-server.1
49 captive_sandbox_server_man_cond=captive-sandbox-server.1
51 man_MANS=$(captive_sandbox_server_man_cond)