summaryrefslogtreecommitdiff
path: root/security/libcrack/patches/patch-aa
blob: 1901b083e72fc5a76f082a6bffc9d2512d4a79e6 (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
$NetBSD: patch-aa,v 1.3 2009/12/10 23:30:53 abs Exp $

--- Makefile.orig	1997-12-31 10:33:53.000000000 +0000
+++ Makefile
@@ -9,12 +9,12 @@
 ###
 # set this to the absolute path (less extn) of compressed dict.
 
-DICTPATH="/usr/local/lib/pw_dict"
+DICTPATH="${PREFIX}/libdata/pw_dict"
 
 ###
 # Set this to the path of one or more files continaing wordlists.
 
-SRCDICTS=/usr/dict/words
+SRCDICTS=/usr/share/dict/words
 
 ###
 # If you have installed the cracklib-dicts directory, use this
@@ -24,19 +24,19 @@ default:
 	@echo "you evidently don't know what you're doing. go read the README"
 
 all:
-	( cd cracklib && make && exit $$? )
-	( cd util && make DICTPATH=$(DICTPATH) && exit $$? )
-###	( cd passwd && make DICTPATH=$(DICTPATH) passwd && exit $$? )
+	( cd cracklib && $(MAKE) && exit $$? )
+	( cd util && $(MAKE) DICTPATH=$(DICTPATH) && exit $$? )
+###	( cd passwd && $(MAKE) DICTPATH=$(DICTPATH) passwd && exit $$? )
 ###	touch all
 
 clean:
-	-( cd cracklib && make clean && exit $$? )
-	-( cd util && make clean && exit $$? )
-###	-( cd passwd && make clean && exit $$? )
+	-( cd cracklib && $(MAKE) clean && exit $$? )
+	-( cd util && $(MAKE) clean && exit $$? )
+###	-( cd passwd && $(MAKE) clean && exit $$? )
 	-rm -f all installed Part* *.BAK *.bak *~
 
 install: all
 	@echo 'if "sort" dies from lack of space, see "util/mkdict"'
-	util/mkdict $(SRCDICTS) | util/packer $(DICTPATH)
+	util/mkdict $(SRCDICTS) | util/packer $(DESTDIR)$(DICTPATH)
 	touch installed
 ###	@echo 'now go install passwd/passwd where you want it'