* set USE_BSD_MAKEFILE=yes
* add user-destdir installation support.
This commit is contained in:
parent
7b4b7f0628
commit
b154cf7955
3 changed files with 21 additions and 12 deletions
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.14 2010/01/17 12:02:31 wiz Exp $
|
||||
# $NetBSD: Makefile,v 1.15 2010/03/08 11:47:19 obache Exp $
|
||||
#
|
||||
|
||||
DISTNAME= dtcpclient-20060526
|
||||
|
@ -14,6 +14,10 @@ COMMENT= Dynamic Tunnel Configuration Protocol client
|
|||
ONLY_FOR_PLATFORM= FreeBSD-*-* NetBSD-*-* OpenBSD-*-* Darwin-*-*
|
||||
ONLY_FOR_PLATFORM+= DragonFly-*-*
|
||||
|
||||
PKG_DESTDIR_SUPPORT= user-destdir
|
||||
|
||||
USE_BSD_MAKEFILE= yes
|
||||
|
||||
RCD_SCRIPTS= dtcpclient
|
||||
|
||||
SUBST_CLASSES+= paths
|
||||
|
@ -24,7 +28,7 @@ SUBST_SED.paths= -e 's|/usr/local/etc|${PKG_SYSCONFDIR}|g'
|
|||
SUBST_SED.paths+= -e 's|/usr/local|${PREFIX}|g'
|
||||
SUBST_SED.paths+= -e 's|/var|${VARBASE}|g'
|
||||
|
||||
MAKE_ENV+= ${BSD_MAKE_ENV} VARBASE=${VARBASE}
|
||||
MAKE_ENV+= VARBASE=${VARBASE}
|
||||
|
||||
BUILD_DEFS+= VARBASE
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
$NetBSD: distinfo,v 1.7 2007/09/15 11:39:16 obache Exp $
|
||||
$NetBSD: distinfo,v 1.8 2010/03/08 11:47:19 obache Exp $
|
||||
|
||||
SHA1 (dtcpclient-20060526.tar.gz) = bcafcfbc90a64dbb8f9f3104ebcacd43a3222aa7
|
||||
RMD160 (dtcpclient-20060526.tar.gz) = 60c4d85cb71af8514cf3ab50dcc4a5bb47994e4b
|
||||
Size (dtcpclient-20060526.tar.gz) = 13571 bytes
|
||||
SHA1 (patch-aa) = 4a3700c367d0fd0b3d5ad9db8f43ace6a1d13915
|
||||
SHA1 (patch-aa) = a93a99918f7724e0a101fccf84ad7e6811c8e30c
|
||||
SHA1 (patch-ab) = 235e037b7fee523e3039ed94497136885eb43277
|
||||
SHA1 (patch-ac) = d98e45c284143bc0790685cb9cb743cd0833a0af
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
$NetBSD: patch-aa,v 1.3 2007/06/17 04:23:32 obache Exp $
|
||||
$NetBSD: patch-aa,v 1.4 2010/03/08 11:47:19 obache Exp $
|
||||
|
||||
--- Makefile.orig 2005-12-28 07:29:24.000000000 +0000
|
||||
+++ Makefile
|
||||
|
@ -25,17 +25,22 @@ $NetBSD: patch-aa,v 1.3 2007/06/17 04:23:32 obache Exp $
|
|||
CFLAGS+= -DHAVE_MD5
|
||||
LDADD= -lmd
|
||||
.elif ($(OPSYS) == "NetBSD") || ($(OPSYS) == "OpenBSD")
|
||||
@@ -61,9 +57,10 @@ realinstall:
|
||||
dtcpclient $(BINDIR)/dtcpclient
|
||||
$(INSTALL) -d $(EXAMPLESDIR)
|
||||
@@ -58,12 +54,13 @@ all: $(PROG)
|
||||
|
||||
realinstall:
|
||||
$(INSTALL) -s $(COPY) -o $(BINOWN) -g $(BINGRP) -m 555 \
|
||||
- dtcpclient $(BINDIR)/dtcpclient
|
||||
- $(INSTALL) -d $(EXAMPLESDIR)
|
||||
+ dtcpclient $(DESTDIR)$(BINDIR)/dtcpclient
|
||||
+ $(INSTALL) -d $(DESTDIR)$(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; \
|
||||
+ dtcpclient.script $(DESTDIR)$(EXAMPLESDIR)/dtcpclient-script
|
||||
+ if [ ! -f $(DESTDIR)$(SCRIPTSDIR)/dtcpclient-script ]; then \
|
||||
+ cp -p $(DESTDIR)$(EXAMPLESDIR)/dtcpclient-script \
|
||||
+ $(DESTDIR)$(SCRIPTSDIR)/dtcpclient-script; \
|
||||
fi
|
||||
|
||||
dist:
|
||||
|
|
Loading…
Reference in a new issue