summaryrefslogtreecommitdiff
path: root/security/skey/patches/patch-aa
blob: 042371917fb83d99e8d7a20b28b914b11eabb482 (plain)
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
$NetBSD: patch-aa,v 1.2 2003/07/23 16:03:56 salo Exp $

--- Makefile.in.orig	Thu May 10 18:10:49 2001
+++ Makefile.in	Wed Jul 23 17:18:18 2003
@@ -18,15 +18,18 @@
 AR=@AR@
 RANLIB=@RANLIB@
 INSTALL=@INSTALL@
-INSTALL_PROGRAM=${INSTALL} -c -s -m 555
-INSTALL_MAN=${INSTALL} -c -m 444
-INSTALL_SCRIPT=${INSTALL} -c -m 555
-INSTALL_DATA=${INSTALL} -c -m 444
+INSTALL_PROGRAM=${BSD_INSTALL_PROGRAM}
+INSTALL_MAN=${BSD_INSTALL_MAN}
+INSTALL_SCRIPT=${BSD_INSTALL_SCRIPT}
+INSTALL_DATA=${BSD_INSTALL_DATA}
 PERL=@PERL@
 SENDMAIL=@SENDMAIL@
 TOUCH=@TOUCH@
 LDFLAGS=-L. @LDFLAGS@
 
+GCC=@GCC@
+host=@host@
+
 TARGETS=skey skeyinit skeyinfo skeyaudit
 LIBOBJS=skeylogin.o skeysubr.o put.o errx.o md4c.o md5c.o rmd160.o rmd160hl.o sha1.o sha1hl.o flock.o strlcpy.o login_cap.o
 SKEYOBJS=skey.o
@@ -49,6 +52,13 @@
 
 all: ${TARGETS} ${MANPAGES}
 
+ifeq (sparc64, $(findstring sparc64, $(host)))
+ifdef GCC
+sha1.o: config.h
+	${CC} ${CFLAGS:-O%=-O0} -c -o $@ sha1.c
+endif
+endif
+
 ${LIBOBJS}: config.h
 
 libskey.a: ${LIBOBJS}
@@ -88,14 +98,6 @@
 	done
 
 install: ${TARGETS}
-	$(INSTALL) -d $(DESTDIR)$(bindir)
-	$(INSTALL) -d $(DESTDIR)$(libdir)
-	$(INSTALL) -d $(DESTDIR)$(mandir)
-	$(INSTALL) -d $(DESTDIR)$(etcdir)
-	$(INSTALL) -d $(DESTDIR)$(mandir)/$(mansubdir)1
-	$(INSTALL) -d $(DESTDIR)$(mandir)/$(mansubdir)8
-	$(INSTALL) -d $(DESTDIR)$(includedir)
-	$(INSTALL) -d $(DESTDIR)$(sysconfdir)
 	${INSTALL_DATA} libskey.a $(DESTDIR)$(libdir)
 	${INSTALL_DATA} ${HDRS} $(DESTDIR)$(includedir)
 	@for target in ${TARGETS}; do \