mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-04 09:09:56 +00:00
Remove the old crypt/no-crypt rules and replace them with
the choice of building with the password scrambler or the DES libraries. Folks outside the US can simply drop in the other DES libraries. (stupid laws...) Everything still keys off of the old NOCRYPT variable so building a portable distribution remains the same. Submitted by: pst
This commit is contained in:
parent
86641d8f9c
commit
012f2ce756
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=2538
30
etc/Makefile
30
etc/Makefile
@ -1,5 +1,5 @@
|
||||
# from: @(#)Makefile 5.11 (Berkeley) 5/21/91
|
||||
# $Id: Makefile,v 1.76 1994/06/29 21:19:38 jkh Exp $
|
||||
# $Id: Makefile,v 1.77 1994/09/05 05:14:01 gpalmer Exp $
|
||||
|
||||
# disktab may be wrong -- hcx9 is a tahoe, but gets its own.
|
||||
# -rw-r--r--
|
||||
@ -108,7 +108,8 @@ CPIO_CPIO+= usr/share/misc/termcap
|
||||
CPIO_CPIO_DIRS= tmp usr/lib usr/libexec usr/share usr/share/misc
|
||||
CPIO_CPIO_DIRS+= var var/tmp var/run var/spool var/spool/lock
|
||||
|
||||
CRYPT_LIB= lib/libcrypt
|
||||
SCRYPT_LIB= lib/libscrypt
|
||||
DESCRYPT_LIB= secure/lib/libdescrypt
|
||||
CRYPT_SRCS= bin/ed bin/rcp
|
||||
CRYPT_SRCS+= libexec/ftpd libexec/makekey libexec/rexecd libexec/rlogind
|
||||
CRYPT_SRCS+= libexec/rshd libexec/telnetd libexec/uucpd
|
||||
@ -119,21 +120,24 @@ CRYPT_DIRS= bin sbin usr usr/bin usr/lib usr/libexec
|
||||
|
||||
all depend etc install lint:
|
||||
|
||||
crypt:
|
||||
scrypt:
|
||||
rm -f ${LIBCRYPT};
|
||||
(cd ${.CURDIR}/../${CRYPT_LIB}; \
|
||||
(cd ${.CURDIR}/../${SCRYPT_LIB}; \
|
||||
${MAKE} cleandir obj depend all install)
|
||||
for i in ${CRYPT_SRCS}; do \
|
||||
cd ${.CURDIR}/../$$i; \
|
||||
${MAKE} cleandir obj depend all; \
|
||||
done
|
||||
|
||||
descrypt:
|
||||
rm -f ${LIBCRYPT};
|
||||
(cd ${.CURDIR}/../${DESCRYPT_LIB}; \
|
||||
${MAKE} cleandir obj depend all install)
|
||||
for i in ${CRYPT_SRCS}; do \
|
||||
cd ${.CURDIR}/../$$i; \
|
||||
${MAKE} cleandir obj depend all; \
|
||||
done
|
||||
|
||||
non-crypt:
|
||||
rm -f ${LIBCRYPT}
|
||||
for i in ${CRYPT_SRCS}; do \
|
||||
cd ${.CURDIR}/../$$i; \
|
||||
${MAKE} cleandir obj depend all; \
|
||||
done
|
||||
|
||||
distribution: distrib-dirs
|
||||
(cd ${.CURDIR}; \
|
||||
@ -188,10 +192,10 @@ distribution: distrib-dirs
|
||||
(cd ${.CURDIR}/etc.${MACHINE}; install -c -o ${BINOWN} -g ${BINGRP} \
|
||||
-m 444 fstab.* ${DESTDIR}/etc)
|
||||
.if defined(NOCRYPT)
|
||||
(cd ${.CURDIR}; ${MAKE} non-crypt)
|
||||
(cd ${.CURDIR}/..; NOCRYPT=nocrypt; export NOCRYPT; ${MAKE} install)
|
||||
(cd ${.CURDIR}; ${MAKE} scrypt)
|
||||
(cd ${.CURDIR}/..; ${MAKE} install)
|
||||
.else
|
||||
(cd ${.CURDIR}; ${MAKE} crypt)
|
||||
(cd ${.CURDIR}; ${MAKE} descrypt)
|
||||
(cd ${.CURDIR}/..; ${MAKE} install)
|
||||
.endif
|
||||
(cd ${.CURDIR}/../usr.sbin/sendmail/src; \
|
||||
|
Loading…
Reference in New Issue
Block a user