mirror of
https://github.com/SELinuxProject/selinux
synced 2024-12-09 07:39:07 +00:00
eb014c79f1
Email: dwalsh@redhat.com Subject: Add modules support to semanage Date: Thu, 12 Nov 2009 11:23:15 -0500 On 11/11/2009 01:52 PM, Chad Sellers wrote: > On 9/30/09 2:33 PM, "Daniel J Walsh" <dwalsh@redhat.com> wrote: > >> Includes enable and disable. >> > I presume I should hold off on this patch until you have a chance to > resubmit the libsemanage support that it relies on. Let me know if that's > not the case. > > Thanks, > Chad > Lets do this patch. Moves load_policy from /usr/sbin to /sbin Removed cruft. Signed-off-by: Chad Sellers <csellers@tresys.com>
32 lines
817 B
Makefile
32 lines
817 B
Makefile
# Installation directories.
|
|
PREFIX ?= ${DESTDIR}/usr
|
|
SBINDIR ?= $(DESTDIR)/sbin
|
|
USRSBINDIR ?= $(PREFIX)/sbin
|
|
MANDIR ?= $(PREFIX)/share/man
|
|
LOCALEDIR ?= /usr/share/locale
|
|
|
|
CFLAGS ?= -Werror -Wall -W
|
|
override CFLAGS += $(LDFLAGS) -I$(PREFIX)/include -DUSE_NLS -DLOCALEDIR="\"$(LOCALEDIR)\"" -DPACKAGE="\"policycoreutils\""
|
|
LDLIBS += -lsepol -lselinux -L$(PREFIX)/lib
|
|
|
|
TARGETS=$(patsubst %.c,%,$(wildcard *.c))
|
|
|
|
all: $(TARGETS)
|
|
|
|
install: all
|
|
-mkdir -p $(SBINDIR)
|
|
install -m 755 $(TARGETS) $(SBINDIR)
|
|
test -d $(MANDIR)/man8 || install -m 755 -d $(MANDIR)/man8
|
|
install -m 644 load_policy.8 $(MANDIR)/man8/
|
|
-mkdir -p $(USRSBINDIR)
|
|
ln -sf /sbin/load_policy $(USRSBINDIR)/load_policy
|
|
|
|
clean:
|
|
-rm -f $(TARGETS) *.o
|
|
|
|
indent:
|
|
../../scripts/Lindent $(wildcard *.[ch])
|
|
|
|
relabel:
|
|
/sbin/restorecon $(SBINDIR)/load_policy
|