Commit | Line | Data |
---|---|---|
ed554bc5 C |
1 | # |
2 | # Copyright (c) 1990 Regents of the University of California. | |
3 | # All rights reserved. | |
4 | # | |
5 | # Redistribution and use in source and binary forms are permitted provided | |
6 | # that: (1) source distributions retain this entire copyright notice and | |
7 | # comment, and (2) distributions including binaries display the following | |
8 | # acknowledgement: ``This product includes software developed by the | |
9 | # University of California, Berkeley and its contributors'' in the | |
10 | # documentation or other materials provided with the distribution and in | |
11 | # all advertising materials mentioning features or use of this software. | |
12 | # Neither the name of the University nor the names of its contributors may | |
13 | # be used to endorse or promote products derived from this software without | |
14 | # specific prior written permission. | |
15 | # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED | |
16 | # WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF | |
17 | # MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | |
18 | # | |
19 | # @(#)Makefile 1.4 (Berkeley) 10/30/90 | |
20 | # | |
21 | # This makefile builds the foreign distribution tree for 4.4BSD | |
22 | # | |
23 | # Once a foreign distribution is built, it can be installed by running | |
24 | # `make install'. | |
25 | # | |
26 | # To initially build the foreign ditribution directory, several steps | |
27 | # need to be done by hand first. After these are completed run | |
28 | # `make buildit' to build the rest of the foreign distribution. | |
29 | # 1) Run `make snapshot' in the domestic directory to capture the initial | |
30 | # release. | |
31 | # 2) Put a version of libc/gen/crypt.c in foreign/src/libc/crypt.c that | |
32 | # has decryption disabled (see version 8.1.1.1 as an example). | |
33 | # 3) Put a version of libc/gen/crypt.3 in foreign/src/libc/crypt.3 that does | |
34 | # not include the decryption option (see version 8.1.1.1 as an example). | |
35 | # 4) Put non-Kerberos/non-crypt Makefiles for the following eight commands | |
36 | # in src/<prog>: login, passwd, rcp, rlogin, rlogind, rsh, rshd, su. | |
37 | # 5) Put updated files for telnet, telnetd, and libtelnet in their | |
38 | # respective directories (do `make nocrypt' in each of their source | |
39 | # directories to create the files). | |
40 | # 6) Run `make buildit' | |
41 | # 7) Verify that the sed scripts deleted the dirs noted below from the | |
42 | # list of things that these Makefiles build: | |
43 | # Makefile.usrbin: bdes, xsend | |
44 | # Makefile.libexec: kpasswdd | |
45 | # Makefile.old: crypt | |
46 | # 8) Run `make install' to finish the foreign distribution installation. | |
47 | # | |
48 | DESTDIR= | |
49 | DIST= /4.4BSD-Lite | |
50 | ROOT= | |
51 | ||
52 | all: | |
53 | @echo Must specify buildit or install | |
54 | @echo Before running buildit, consult instructions at top of Makefile | |
55 | ||
56 | buildit: | |
57 | @if [ ! -e /4.4BSD-Lite ]; \ | |
58 | then echo "Must NOT chroot to /4.4BSD-Lite!"; exit 1; fi | |
59 | sed -e 's/ bdes//' -e 's/ xsend//' > src/Makefile.usrbin \ | |
60 | < ${DESTDIR}${ROOT}/usr/src/usr.bin/Makefile | |
61 | sed -e 's/ kpasswdd//' > src/Makefile.libexec \ | |
62 | < ${DESTDIR}${ROOT}/usr/src/libexec/Makefile | |
63 | sed -e 's/ crypt//' > src/Makefile.old \ | |
64 | < ${DESTDIR}${ROOT}/usr/src/old/Makefile | |
65 | ||
66 | install: | |
67 | @if [ ! -e /4.4BSD-Lite ]; \ | |
68 | then echo "Must NOT chroot to /4.4BSD-Lite!"; exit 1; fi | |
69 | cp -p src/libc/crypt.c ${DESTDIR}${DIST}/usr/src/lib/libc/gen/crypt.c | |
70 | cp -p src/libc/crypt.3 ${DESTDIR}${DIST}/usr/src/lib/libc/gen/crypt.3 | |
71 | cp -p -R src/libtelnet ${DESTDIR}${DIST}/usr/src/lib | |
72 | rm -rf ${DESTDIR}${DIST}/usr/src/usr.bin/su/Makefile* | |
73 | cp -p -R src/su ${DESTDIR}${DIST}/usr/src/usr.bin | |
74 | rm -rf ${DESTDIR}${DIST}/usr/src/usr.bin/login/Makefile* | |
75 | cp -p -R src/login ${DESTDIR}${DIST}/usr/src/usr.bin | |
76 | rm -rf ${DESTDIR}${DIST}/usr/src/bin/rcp/Makefile* | |
77 | cp -p -R src/rcp ${DESTDIR}${DIST}/usr/src/bin | |
78 | rm -rf ${DESTDIR}${DIST}/usr/src/usr.bin/passwd/Makefile* | |
79 | cp -p -R src/passwd ${DESTDIR}${DIST}/usr/src/usr.bin | |
80 | rm -rf ${DESTDIR}${DIST}/usr/src/usr.bin/rlogin/Makefile* | |
81 | cp -p -R src/rlogin ${DESTDIR}${DIST}/usr/src/usr.bin | |
82 | cp -p -R src/telnet ${DESTDIR}${DIST}/usr/src/usr.bin | |
83 | rm -rf ${DESTDIR}${DIST}/usr/src/usr.bin/rsh/Makefile* | |
84 | cp -p -R src/rsh ${DESTDIR}${DIST}/usr/src/usr.bin | |
85 | rm -rf ${DESTDIR}${DIST}/usr/src/libexec/rlogind/Makefile* | |
86 | cp -p -R src/rlogind ${DESTDIR}${DIST}/usr/src/libexec | |
87 | cp -p -R src/telnetd ${DESTDIR}${DIST}/usr/src/libexec | |
88 | rm -rf ${DESTDIR}${DIST}/usr/src/libexec/rshd/Makefile* | |
89 | cp -p -R src/rshd ${DESTDIR}${DIST}/usr/src/libexec | |
90 | cp -p src/Makefile.usrbin ${DESTDIR}${DIST}/usr/src/usr.bin/Makefile | |
91 | cp -p src/Makefile.libexec ${DESTDIR}${DIST}/usr/src/libexec/Makefile | |
92 | cp -p src/Makefile.old ${DESTDIR}${DIST}/usr/src/old/Makefile | |
93 | rm -rf ${DESTDIR}${DIST}/usr/src/usr.bin/bdes | |
94 | rm -rf ${DESTDIR}${DIST}/usr/src/kerberosIV/des | |
95 | ||
96 | clean: | |
97 |