-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
79 lines (66 loc) · 2.31 KB
/
Makefile
File metadata and controls
79 lines (66 loc) · 2.31 KB
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
79
##
# Makefile for uucp
##
# Project info
Project = uucp
UserType = Developer
ToolType = Commands
GnuNoChown=YES
GnuAfterInstall = post-install install-plist
Extra_Configure_Flags= --with-newconfigdir=/usr/share/uucp --with-user=_uucp
# It's a GNU Source project
include $(MAKEFILEPATH)/CoreOS/ReleaseControl/GNUSource.make
DIRS=$(DSTROOT)/usr/share/uucp $(DSTROOT)/private/var/log/uucp $(DSTROOT)/private/var/spool/uucp
post-install:
$(MKDIR) $(DIRS)
$(INSTALL_FILE) $(SRCROOT)/configs/passwd $(DSTROOT)/usr/share/uucp
$(INSTALL_FILE) $(SRCROOT)/configs/port $(DSTROOT)/usr/share/uucp
$(INSTALL_FILE) $(SRCROOT)/configs/sys $(DSTROOT)/usr/share/uucp
$(CHOWN) _uucp $(DIRS)
OSV = $(DSTROOT)/usr/local/OpenSourceVersions
OSL = $(DSTROOT)/usr/local/OpenSourceLicenses
install-plist:
$(MKDIR) $(DSTROOT)/System/Library/LaunchDaemons
$(INSTALL_FILE) $(SRCROOT)/com.apple.uucp.plist $(DSTROOT)/System/Library/LaunchDaemons
$(MKDIR) $(OSV)
$(INSTALL_FILE) $(SRCROOT)/uucp.plist $(OSV)/uucp.plist
$(MKDIR) $(OSL)
$(INSTALL_FILE) $(Sources)/COPYING $(OSL)/uucp.txt
# there isn't a configuure option to not setuid a bunch of stuff, so we let it do that and then we "fix it"
chmod -R ug-s $(DSTROOT)/usr/*bin
# Automatic Extract & Patch
AEP = YES
AEP_Project = $(Project)
AEP_Version = 1.07
AEP_ProjVers = $(AEP_Project)-$(AEP_Version)
AEP_Filename = $(AEP_ProjVers).tar.gz
AEP_ExtractDir = $(AEP_ProjVers)
AEP_Patches = PR-3996371-conf.diff \
PR-4883535.patch \
PR-4383204.patch \
PR-4905054.manpages.patch
AEP_SubDir = uucp
AEP_TarDir := $(shell pwd)
ifeq ($(suffix $(AEP_Filename)),.bz2)
AEP_ExtractOption = j
else
AEP_ExtractOption = z
endif
# Extract the source.
install_source::
ifeq ($(AEP),YES)
$(TAR) -C $(SRCROOT) -$(AEP_ExtractOption)xf $(AEP_TarDir)/$(AEP_Filename)
-$(RMDIR) $(SRCROOT)/$(Project)
$(MV) $(SRCROOT)/$(AEP_ExtractDir) $(SRCROOT)/$(Project)
ls $(SRCROOT)/$(Project)
for patchfile in $(AEP_Patches); do \
cd $(SRCROOT)/$(Project) && patch -p0 < $(AEP_TarDir)/patches/$$patchfile; \
done
for newfile in $(shell find $(AEP_TarDir)/new -maxdepth 1 -type f); do \
echo copying $$newfile; \
cp -v $$newfile $(SRCROOT)/$(Project)/; \
done
endif
install::
chgrp -R wheel $(DSTROOT)
rm $(DSTROOT)/usr/share/info/dir