$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'