1
0
mirror of https://github.com/hashcat/hashcat.git synced 2024-11-23 16:38:29 +00:00

Merge pull request #1036 from gum0x/master

make install error on MacOS Sierra
This commit is contained in:
Jens Steube 2017-02-11 14:06:07 +01:00 committed by GitHub
commit 5d42f47c73

View File

@ -16,6 +16,11 @@ UNAME := $(shell uname -s)
# we need to strip the windows version number to be able to build hashcat on cygwin hosts # we need to strip the windows version number to be able to build hashcat on cygwin hosts
UNAME := $(patsubst CYGWIN_NT-%,CYGWIN,$(UNAME)) UNAME := $(patsubst CYGWIN_NT-%,CYGWIN,$(UNAME))
##
## Detect Operating System version
##
OSVERSION := $(shell uname -r|cut -d. -f1)
# same for msys # same for msys
UNAME := $(patsubst MSYS_NT-%,MSYS2,$(UNAME)) UNAME := $(patsubst MSYS_NT-%,MSYS2,$(UNAME))
UNAME := $(patsubst MINGW32_NT-%,MSYS2,$(UNAME)) UNAME := $(patsubst MINGW32_NT-%,MSYS2,$(UNAME))
@ -85,11 +90,17 @@ FIND := find
INSTALL := install INSTALL := install
RM := rm RM := rm
SED := sed SED := sed
SEDOPS := -i
ifeq ($(UNAME),Darwin) ifeq ($(UNAME),Darwin)
CC := clang CC := clang
ifeq ($(OSVERSION),16)
SED := sed
SEDOPS := -i ""
else
SED := gsed SED := gsed
endif endif
endif
ifeq ($(UNAME),FreeBSD) ifeq ($(UNAME),FreeBSD)
CC := cc CC := cc
@ -334,9 +345,9 @@ install_docs:
$(FIND) masks/ -type f -exec $(INSTALL) -m 644 {} $(DESTDIR)$(DOCUMENT_FOLDER)/{} \; $(FIND) masks/ -type f -exec $(INSTALL) -m 644 {} $(DESTDIR)$(DOCUMENT_FOLDER)/{} \;
$(FIND) rules/ -type d -exec $(INSTALL) -m 755 -d $(DESTDIR)$(DOCUMENT_FOLDER)/{} \; $(FIND) rules/ -type d -exec $(INSTALL) -m 755 -d $(DESTDIR)$(DOCUMENT_FOLDER)/{} \;
$(FIND) rules/ -type f -exec $(INSTALL) -m 644 {} $(DESTDIR)$(DOCUMENT_FOLDER)/{} \; $(FIND) rules/ -type f -exec $(INSTALL) -m 644 {} $(DESTDIR)$(DOCUMENT_FOLDER)/{} \;
$(SED) -i 's/\.\/hashcat/hashcat/' $(DESTDIR)$(DOCUMENT_FOLDER)/example0.sh $(SED) $(SEDOPS) 's/\.\/hashcat/hashcat/' $(DESTDIR)$(DOCUMENT_FOLDER)/example0.sh
$(SED) -i 's/\.\/hashcat/hashcat/' $(DESTDIR)$(DOCUMENT_FOLDER)/example400.sh $(SED) $(SEDOPS) 's/\.\/hashcat/hashcat/' $(DESTDIR)$(DOCUMENT_FOLDER)/example400.sh
$(SED) -i 's/\.\/hashcat/hashcat/' $(DESTDIR)$(DOCUMENT_FOLDER)/example500.sh $(SED) $(SEDOPS) 's/\.\/hashcat/hashcat/' $(DESTDIR)$(DOCUMENT_FOLDER)/example500.sh
install_shared: install_shared:
$(INSTALL) -m 755 -d $(DESTDIR)$(SHARED_FOLDER) $(INSTALL) -m 755 -d $(DESTDIR)$(SHARED_FOLDER)