summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorcheusov <cheusov@pkgsrc.org>2011-08-02 14:16:12 +0000
committercheusov <cheusov@pkgsrc.org>2011-08-02 14:16:12 +0000
commit43845fe4820ad1dafb19901d6802cd3421eedd7d (patch)
tree660afb98ff8cddabcd7146b503a04638d4457a35 /pkgtools
parent71ec7b6bce03108dd325287683b49a10749fc3d9 (diff)
downloadpkgsrc-43845fe4820ad1dafb19901d6802cd3421eedd7d.tar.gz
Use /usr/bin/ftp on *BSD systems and ftp command from net/tnftp package.
++pkgrevision
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/nih/Makefile15
1 files changed, 14 insertions, 1 deletions
diff --git a/pkgtools/nih/Makefile b/pkgtools/nih/Makefile
index 990bd8daa43..d369cbea22e 100644
--- a/pkgtools/nih/Makefile
+++ b/pkgtools/nih/Makefile
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.4 2011/07/30 10:46:01 cheusov Exp $
+# $NetBSD: Makefile,v 1.5 2011/08/02 14:16:12 cheusov Exp $
DISTNAME= pkgnih-0.8.0
PKGNAME= ${DISTNAME:S/pkgnih/nih/}
+PKGREVISION= 1
CATEGORIES= pkgtools
MASTER_SITES= ftp://ftp.NetBSD.org/pub/NetBSD/misc/cheusov/nih/ \
http://mova.org/~cheusov/pub/pkgnih/
@@ -41,4 +42,16 @@ MAKE_ENV+= MANDIR=${PREFIX}/${PKGMANDIR}
MAKE_PROGRAM= mkcmake
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == NetBSD || ${OPSYS} == FreeBSD || ${OPSYS} == OpenBSD || \
+ ${OPSYS} == DragonFly || ${OPSYS} == MirBSD
+FTP_CMD=/usr/bin/ftp
+.else
+FTP_CMD=${PREFIX}/bin/ftp
+DEPENDS+= tnftp-[0-9]*:../../net/tnftp
+.endif
+
+MAKE_ENV+= FTP=${FTP_CMD:Q}
+
.include "../../mk/bsd.pkg.mk"