diff --git a/policycoreutils/scripts/Makefile b/policycoreutils/scripts/Makefile index 17ad6cae..fe6427cc 100644 --- a/policycoreutils/scripts/Makefile +++ b/policycoreutils/scripts/Makefile @@ -1,7 +1,8 @@ # Installation directories. PREFIX ?= $(DESTDIR)/usr BINDIR ?= $(PREFIX)/bin -SBINDIR ?= $(PREFIX)/sbin +USRSBINDIR ?= $(PREFIX)/sbin +SBINDIR ?= $(DESTDIR)/sbin MANDIR ?= $(PREFIX)/share/man LOCALEDIR ?= /usr/share/locale @@ -10,8 +11,8 @@ all: fixfiles genhomedircon chcat install: all -mkdir -p $(BINDIR) install -m 755 chcat $(BINDIR) - install -m 755 fixfiles $(DESTDIR)/sbin - install -m 755 genhomedircon $(SBINDIR) + install -m 755 fixfiles $(SBINDIR) + install -m 755 genhomedircon $(USRSBINDIR) -mkdir -p $(MANDIR)/man8 install -m 644 fixfiles.8 $(MANDIR)/man8/ install -m 644 genhomedircon.8 $(MANDIR)/man8/