$NetBSD: patch-aa,v 1.2 2006/02/24 20:44:14 joerg Exp $ --- Makefile.orig 2004-06-21 05:18:18.000000000 +0000 +++ Makefile @@ -34,18 +34,14 @@ PROG= dtcpclient MAN= dtcpclient.8 BINDIR= $(PREFIX)/sbin -SCRIPTSDIR= $(PREFIX)/etc +SCRIPTSDIR= $(PREFIX)/sbin EXAMPLESDIR= $(PREFIX)/share/examples/dtcpclient -.if ($(OPSYS) == "NetBSD") -MANDIR= $(PREFIX)/man -.else -MANDIR= $(PREFIX)/man/man -.endif +MANDIR= $(PREFIX)/${PKGMANDIR} CFLAGS+= -Wall -DPREFIX=\"$(PREFIX)\" -.if ($(OPSYS) == "FreeBSD") +.if ($(OPSYS) == "FreeBSD") || ${OPSYS} == "DragonFly" CFLAGS+= -DHAVE_MD5 LDADD= -lmd .elif ($(OPSYS) == "NetBSD") || ($(OPSYS) == "OpenBSD") @@ -61,9 +57,10 @@ realinstall: dtcpclient $(BINDIR)/dtcpclient $(INSTALL) -d $(EXAMPLESDIR) $(INSTALL) $(COPY) -o $(BINOWN) -g $(BINGRP) -m 555 \ - dtcpclient.script $(EXAMPLESDIR)/dtcpclient.script - if [ ! -f $(SCRIPTSDIR)/dtcpclient.script ]; then \ - cp -p $(EXAMPLESDIR)/dtcpclient.script $(SCRIPTSDIR)/; \ + dtcpclient.script $(EXAMPLESDIR)/dtcpclient-script + if [ ! -f $(SCRIPTSDIR)/dtcpclient-script ]; then \ + cp -p $(EXAMPLESDIR)/dtcpclient-script \ + $(SCRIPTSDIR)/dtcpclient-script; \ fi dist: