67e6201bc8
The main goal of this move is to have the SHA-256 implementation under libsemanage, since upcoming patches will make use of SHA-256 for a different (but similar) purpose in libsemanage. Having the hashing code in libsemanage will reduce code duplication and allow for easier hash algorithm upgrade in the future. Note that libselinux currently also contains a hash function implementation (for yet another different purpose). This patch doesn't make any effort to address that duplicity yet. This patch also changes the format of the hash string printed by semodule to include the name of the hash. The intent is to avoid ambiguity and potential collisions when the algorithm is potentially changed in the future. Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
39 lines
1,015 B
Makefile
39 lines
1,015 B
Makefile
# Installation directories.
|
|
LINGUAS ?= ru
|
|
PREFIX ?= /usr
|
|
SBINDIR ?= $(PREFIX)/sbin
|
|
MANDIR = $(PREFIX)/share/man
|
|
|
|
CFLAGS ?= -Werror -Wall -W
|
|
override LDLIBS += -lsepol -lselinux -lsemanage
|
|
SEMODULE_OBJS = semodule.o
|
|
|
|
all: semodule genhomedircon
|
|
|
|
semodule: $(SEMODULE_OBJS)
|
|
|
|
genhomedircon:
|
|
ln -sf semodule genhomedircon
|
|
|
|
install: all
|
|
-mkdir -p $(DESTDIR)$(SBINDIR)
|
|
install -m 755 semodule $(DESTDIR)$(SBINDIR)
|
|
(cd $(DESTDIR)$(SBINDIR); ln -sf semodule genhomedircon)
|
|
test -d $(DESTDIR)$(MANDIR)/man8 || install -m 755 -d $(DESTDIR)$(MANDIR)/man8
|
|
install -m 644 semodule.8 $(DESTDIR)$(MANDIR)/man8/
|
|
install -m 644 genhomedircon.8 $(DESTDIR)$(MANDIR)/man8/
|
|
for lang in $(LINGUAS) ; do \
|
|
if [ -e $${lang} ] ; then \
|
|
test -d $(DESTDIR)$(MANDIR)/$${lang}/man8 || install -m 755 -d $(DESTDIR)$(MANDIR)/$${lang}/man8 ; \
|
|
install -m 644 $${lang}/*.8 $(DESTDIR)$(MANDIR)/$${lang}/man8/ ; \
|
|
fi ; \
|
|
done
|
|
|
|
relabel:
|
|
|
|
clean:
|
|
-rm -f semodule *.o genhomedircon
|
|
|
|
indent:
|
|
../../scripts/Lindent $(wildcard *.[ch])
|
|
|