-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.installPhase
78 lines (64 loc) · 2.37 KB
/
Makefile.installPhase
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# 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.