mirror of
https://github.com/darlinghq/darling-SmartCardServices.git
synced 2024-11-26 22:00:21 +00:00
79 lines
2.4 KiB
Makefile
79 lines
2.4 KiB
Makefile
# The other phases do nothing
|
|
|
|
MAN_DIR=$(DSTROOT)/usr/share/man/man8
|
|
PCSCDIR=$(DSTROOT)/usr/libexec/SmartCardServices
|
|
PKCS11_DIR=$(DSTROOT)/Library/Application\ Support/Mozilla/
|
|
EXTENSIONS_DIR=$(DSTROOT)/System/Library/Extensions
|
|
SCRIPTS_LOCATION=$(DSTROOT)/usr/sbin
|
|
|
|
build:
|
|
@echo null build.
|
|
|
|
debug:
|
|
@echo null debug.
|
|
|
|
profile:
|
|
@echo null profile.
|
|
|
|
install:
|
|
mkdir -p $(PCSCDIR)
|
|
mkdir -p $(PCSCDIR)/drivers
|
|
mkdir -p $(PCSCDIR)/services
|
|
chmod 755 $(PCSCDIR)
|
|
cp -r installPhase/drivers/*.bundle $(PCSCDIR)/drivers/
|
|
-rm -rf $(PCSCDIR)/drivers/*.bundle/CVS
|
|
-rm -rf $(PCSCDIR)/drivers/*.bundle/Contents/CVS
|
|
-rm -rf $(PCSCDIR)/drivers/*.bundle/Contents/MacOS/CVS
|
|
chmod 755 $(PCSCDIR)/drivers/*.bundle
|
|
chmod 755 $(PCSCDIR)/drivers/*.bundle/Contents
|
|
chmod 755 $(PCSCDIR)/drivers/*.bundle/Contents/MacOS
|
|
chmod 644 $(PCSCDIR)/drivers/*.bundle/Contents/*.*
|
|
chmod 644 $(PCSCDIR)/drivers/*.bundle/Contents/MacOS/*
|
|
/usr/bin/strip -S $(PCSCDIR)/drivers/*.bundle/Contents/MacOS/*
|
|
ifdef haveExtensions
|
|
mkdir -p $(EXTENSIONS_DIR)
|
|
chmod 755 $(DSTROOT)/System
|
|
chmod 755 $(DSTROOT)/System/Library
|
|
chmod 755 $(EXTENSIONS_DIR)
|
|
cp -r installPhase/Extensions/*.kext $(EXTENSIONS_DIR)/
|
|
-rm -rf $(EXTENSIONS_DIR)/*.kext/CVS
|
|
-rm -rf $(EXTENSIONS_DIR)/*.kext/Contents/CVS
|
|
-rm -rf $(EXTENSIONS_DIR)/*.kext/Contents/MacOS/CVS
|
|
-rm -rf $(EXTENSIONS_DIR)/*.kext/Contents/Resources/CVS
|
|
-rm -rf $(EXTENSIONS_DIR)/*.kext/Contents/Resources/*.lproj/CVS
|
|
chmod 755 $(EXTENSIONS_DIR)/*.kext
|
|
chmod 755 $(EXTENSIONS_DIR)/*.kext/Contents
|
|
chmod 755 $(EXTENSIONS_DIR)/*.kext/Contents/MacOS
|
|
-chmod 755 $(EXTENSIONS_DIR)/*.kext/Contents/Resources
|
|
-chmod 755 $(EXTENSIONS_DIR)/*.kext/Contents/Resources/*.lproj
|
|
chmod 644 $(EXTENSIONS_DIR)/*.kext/Contents/*.*
|
|
chmod 644 $(EXTENSIONS_DIR)/*.kext/Contents/MacOS/*
|
|
-chmod 644 $(EXTENSIONS_DIR)/*.kext/Contents/Resources/*.lproj/*.*
|
|
/usr/bin/strip -S $(EXTENSIONS_DIR)/*.kext/Contents/MacOS/*
|
|
endif
|
|
|
|
mkdir -p $(SCRIPTS_LOCATION)
|
|
|
|
cp installPhase/scripts/sc_auth $(SCRIPTS_LOCATION)
|
|
chown root:wheel $(SCRIPTS_LOCATION)/sc_auth
|
|
chmod 755 $(SCRIPTS_LOCATION)/sc_auth
|
|
|
|
# Copy over man pages
|
|
|
|
mkdir -p $(MAN_DIR)
|
|
cp installPhase/man/sc_auth.8 $(MAN_DIR)
|
|
chown root:wheel $(MAN_DIR)/sc_auth.8
|
|
|
|
# Deleting CVS subdirectories from the copy phase
|
|
|
|
rm -rf `find $(PCSCDIR)/drivers -name CVS`
|
|
|
|
installhdrs:
|
|
@echo null installhdrs.
|
|
|
|
installsrc:
|
|
@echo null installsrc.
|
|
|
|
clean:
|
|
@echo null clean.
|