diff options
author | csgr <csgr@FreeBSD.org> | 1994-08-09 18:49:04 +0000 |
---|---|---|
committer | csgr <csgr@FreeBSD.org> | 1994-08-09 18:49:04 +0000 |
commit | d1a6399b685999c7461bacbde66b100c127325a3 (patch) | |
tree | afe5f13dfcf870918b92442932144de3e9af0949 /lib/libcrypt | |
parent | 7a77128a944f19f2b6e954027ebfd94821a2cbdc (diff) | |
download | FreeBSD-src-d1a6399b685999c7461bacbde66b100c127325a3.zip FreeBSD-src-d1a6399b685999c7461bacbde66b100c127325a3.tar.gz |
The password scrambler now becomes libscrypt, and libcrypt is
a symlink to it. (The real libcrypt will be installed as libdescrypt.)
Submitted by: Geoff.
Diffstat (limited to 'lib/libcrypt')
-rw-r--r-- | lib/libcrypt/Makefile | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/libcrypt/Makefile b/lib/libcrypt/Makefile index 1792f89..30260ca 100644 --- a/lib/libcrypt/Makefile +++ b/lib/libcrypt/Makefile @@ -2,8 +2,27 @@ # $Id: Makefile,v 1.1.1.1 1994/04/04 14:57:18 g89r4222 Exp $ # +LCRYPTBASE= libcrypt +LCRYPTSO= $(LCRYPTBASE).so.$(SHLIB_MAJOR).$(SHLIB_MINOR) + + +LSCRYPTBASE= libscrypt +LSCRYPTSO= $(LSCRYPTBASE).so.$(SHLIB_MAJOR).$(SHLIB_MINOR) + # called libscrypt - for scramble crypt! LIB= scrypt SRCS= crypt.c +# We only install the links if they do not already exist. +# This may have to be revised +afterinstall: + @if [ ! -e $(LCRYPTSO) ]; then \ + cd $(DESTDIR)/$(LIBDIR); \ + rm -f $(LCRYPTSO); \ + ln -s $(LSCRYPTSO) $(LCRYPTSO); \ + rm -f $(LCRYPTBASE).a $(LCRYPTBASE)_p.a; \ + ln -s $(LSCRYPTBASE).a libcrypt.a; \ + ln -s $(LSCRYPTBASE)_p.a libcrypt_p.a; \ + fi + .include <bsd.lib.mk> |