2009-11-25 12:42:52 -06:00
|
|
|
SUBDIRS = ipa_kpasswd ipa_httpd ipa_dogtag
|
2008-02-08 10:09:06 -06:00
|
|
|
POLICY_MAKEFILE = /usr/share/selinux/devel/Makefile
|
|
|
|
POLICY_DIR = $(DESTDIR)/usr/share/selinux/targeted
|
|
|
|
|
|
|
|
all:
|
|
|
|
if [ ! -e $(POLICY_MAKEFILE) ]; then echo "You need to install the SELinux development tools (selinux-policy-devel)" && exit 1; fi
|
|
|
|
|
|
|
|
@for subdir in $(SUBDIRS); do \
|
|
|
|
(cd $$subdir && $(MAKE) -f $(POLICY_MAKEFILE) $@) || exit 1; \
|
|
|
|
done
|
|
|
|
|
|
|
|
clean:
|
|
|
|
@for subdir in $(SUBDIRS); do \
|
|
|
|
(cd $$subdir && $(MAKE) -f $(POLICY_MAKEFILE) $@) || exit 1; \
|
|
|
|
done
|
|
|
|
|
|
|
|
distclean: clean
|
2008-08-08 08:35:05 -05:00
|
|
|
rm -f ipa-server-selinux.spec
|
|
|
|
|
|
|
|
maintainer-clean: distclean
|
2008-02-08 10:09:06 -06:00
|
|
|
|
|
|
|
install: all
|
2008-02-20 21:14:44 -06:00
|
|
|
install -d $(POLICY_DIR)
|
2008-02-08 10:09:06 -06:00
|
|
|
install -m 644 ipa_kpasswd/ipa_kpasswd.pp $(POLICY_DIR)
|
2009-08-24 12:42:48 -05:00
|
|
|
install -m 644 ipa_httpd/ipa_httpd.pp $(POLICY_DIR)
|
2009-11-25 12:42:52 -06:00
|
|
|
install -m 644 ipa_dogtag/ipa_dogtag.pp $(POLICY_DIR)
|
2008-02-08 10:09:06 -06:00
|
|
|
|
|
|
|
load:
|
2009-11-03 14:26:00 -06:00
|
|
|
/usr/sbin/semodule -i ipa_kpasswd/ipa_kpasswd.pp ipa_httpd/ipa_httpd.pp
|