pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk Add ftp as tool. On NetBSD and DragonFly, this will...
details: https://anonhg.NetBSD.org/pkgsrc/rev/b54edda4e92a
branches: trunk
changeset: 542612:b54edda4e92a
user: joerg <joerg%pkgsrc.org@localhost>
date: Thu May 22 20:11:55 2008 +0000
description:
Add ftp as tool. On NetBSD and DragonFly, this will use the system
version of tnftp, otherwise it will use net/tnftp. Require ftp as
bootstrap dependency when the package has files to fetch.
The dependency is currently unconditional and FETCH_CMD is set to
TOOLS_PATH.ftp by default.
diffstat:
mk/defaults/mk.conf | 8 ++------
mk/fetch/bsd.fetch-vars.mk | 4 ++--
mk/tools/replace.mk | 12 +++++++++++-
mk/tools/tools.DragonFly.mk | 3 ++-
mk/tools/tools.NetBSD.mk | 3 ++-
5 files changed, 19 insertions(+), 11 deletions(-)
diffs (100 lines):
diff -r 1afa5931c5f0 -r b54edda4e92a mk/defaults/mk.conf
--- a/mk/defaults/mk.conf Thu May 22 19:04:37 2008 +0000
+++ b/mk/defaults/mk.conf Thu May 22 20:11:55 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mk.conf,v 1.175 2008/05/22 15:51:35 tnn Exp $
+# $NetBSD: mk.conf,v 1.176 2008/05/22 20:11:55 joerg Exp $
#
# This file provides default values for variables that may be overridden
@@ -344,11 +344,7 @@
# This is the default view to which packages are added after installation.
# Default: "" (the empty view)
-.if exists(${LOCALBASE}/bin/ftp)
-FETCH_CMD?= ${LOCALBASE}/bin/ftp
-.else
-FETCH_CMD?= /usr/bin/ftp
-.endif
+FETCH_CMD?= ${TOOLS_PATH.ftp}
# Default program to fetch the files with pkgsrc.
# Default: NetBSD's ftp(1).
# Possible: any.
diff -r 1afa5931c5f0 -r b54edda4e92a mk/fetch/bsd.fetch-vars.mk
--- a/mk/fetch/bsd.fetch-vars.mk Thu May 22 19:04:37 2008 +0000
+++ b/mk/fetch/bsd.fetch-vars.mk Thu May 22 20:11:55 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.fetch-vars.mk,v 1.10 2008/05/22 16:27:22 joerg Exp $
+# $NetBSD: bsd.fetch-vars.mk,v 1.11 2008/05/22 20:11:55 joerg Exp $
#
# This Makefile fragment is included separately by bsd.pkg.mk and
# defines some variables which must be defined earlier than where
@@ -74,7 +74,7 @@
.endif
.if !empty(_CKSUMFILES)
-#USE_TOOLS+= ftp:bootstrap
+USE_TOOLS+= ftp:bootstrap
. if defined(FAILOVER_FETCH)
USE_TOOLS+= digest:bootstrap
. endif
diff -r 1afa5931c5f0 -r b54edda4e92a mk/tools/replace.mk
--- a/mk/tools/replace.mk Thu May 22 19:04:37 2008 +0000
+++ b/mk/tools/replace.mk Thu May 22 20:11:55 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: replace.mk,v 1.210 2008/04/15 13:00:11 tron Exp $
+# $NetBSD: replace.mk,v 1.211 2008/05/22 20:11:55 joerg Exp $
#
# Copyright (c) 2005 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -357,6 +357,16 @@
TOOLS_ALIASES.flex= lex
.endif
+.if !defined(TOOLS_IGNORE.ftp) && !empty(_USE_TOOLS:Mftp)
+. if !empty(PKGPATH:Mnet/tnftp)
+MAKEFLAGS+= TOOLS_IGNORE.ftp=
+. elif !empty(_TOOLS_USE_PKGSRC.ftp:M[yY][eE][sS])
+TOOLS_DEPENDS.ftp?= tnftp-[0-9]*:../../net/tnftp
+TOOLS_FIND_PREFIX+= TOOLS_PREFIX.ftp=ftp
+TOOLS_PATH.ftp= ${TOOLS_PREFIX.ftp}/bin/ftp
+. endif
+.endif
+
.if !defined(TOOLS_IGNORE.gawk) && !empty(_USE_TOOLS:Mgawk)
. if !empty(PKGPATH:Mlang/gawk)
MAKEFLAGS+= TOOLS_IGNORE.gawk=
diff -r 1afa5931c5f0 -r b54edda4e92a mk/tools/tools.DragonFly.mk
--- a/mk/tools/tools.DragonFly.mk Thu May 22 19:04:37 2008 +0000
+++ b/mk/tools/tools.DragonFly.mk Thu May 22 20:11:55 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: tools.DragonFly.mk,v 1.33 2007/08/20 11:00:33 joerg Exp $
+# $NetBSD: tools.DragonFly.mk,v 1.34 2008/05/22 20:11:55 joerg Exp $
#
# System-supplied tools for the DragonFly operating system.
@@ -29,6 +29,7 @@
TOOLS_PLATFORM.file?= /usr/bin/file
TOOLS_PLATFORM.find?= /usr/bin/find
TOOLS_PLATFORM.flex?= /usr/bin/lex
+TOOLS_PLATFORM.ftp?= /usr/bin/ftp
TOOLS_PLATFORM.grep?= /usr/bin/grep
TOOLS_PLATFORM.groff?= /usr/bin/groff
.if exists(/usr/bin/gtar)
diff -r 1afa5931c5f0 -r b54edda4e92a mk/tools/tools.NetBSD.mk
--- a/mk/tools/tools.NetBSD.mk Thu May 22 19:04:37 2008 +0000
+++ b/mk/tools/tools.NetBSD.mk Thu May 22 20:11:55 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: tools.NetBSD.mk,v 1.40 2007/09/30 12:19:12 rillig Exp $
+# $NetBSD: tools.NetBSD.mk,v 1.41 2008/05/22 20:11:55 joerg Exp $
#
# System-supplied tools for the NetBSD operating system.
@@ -31,6 +31,7 @@
TOOLS_PLATFORM.file?= /usr/bin/file
TOOLS_PLATFORM.find?= /usr/bin/find
TOOLS_PLATFORM.flex?= /usr/bin/lex
+TOOLS_PLATFORM.ftp?= /usr/bin/ftp
.if !empty(MACHINE_PLATFORM:MNetBSD-1.[0-6]*-*)
TOOLS_PLATFORM.gawk?= ${TOOLS_PLATFORM.awk}
.endif
Home |
Main Index |
Thread Index |
Old Index