Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-6]: src/usr.sbin/pkg_install Pull up revisions 1.17-1.18 (reque...



details:   https://anonhg.NetBSD.org/src/rev/3c12fd67e551
branches:  netbsd-1-6
changeset: 528253:3c12fd67e551
user:      lukem <lukem%NetBSD.org@localhost>
date:      Fri Jun 28 12:41:56 2002 +0000

description:
Pull up revisions 1.17-1.18 (requested by taca in ticket #369):
- fix buffer size checks
- define PKG_PATTEN_MAX and PKG_SUFFIX_MAX and
  use them instead of constants like 255.
- add asserts and buffer size checks.
- constify and make WARNS=2 clean.
- Fixes provided by Stoned Elipot <seb%script.jussieu.fr@localhost> in PR 17323

diffstat:

 usr.sbin/pkg_install/Makefile.inc |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r c964d1a26c8f -r 3c12fd67e551 usr.sbin/pkg_install/Makefile.inc
--- a/usr.sbin/pkg_install/Makefile.inc Fri Jun 28 12:00:30 2002 +0000
+++ b/usr.sbin/pkg_install/Makefile.inc Fri Jun 28 12:41:56 2002 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.16 2001/04/08 14:11:48 hubertf Exp $
+# $NetBSD: Makefile.inc,v 1.16.2.1 2002/06/28 12:41:56 lukem Exp $
 # Original from FreeBSD, no rcs id.
 
 .include <bsd.own.mk>
@@ -20,12 +20,16 @@
 CHMOD?= /bin/chmod
 CHOWN?= /usr/sbin/chown
 CHGRP?= /usr/bin/chgrp
+WARNS=2
 .elif ${OPSYS} == "SunOS"
-LOCALBASE?= /usr/local
+LOCALBASE?= /usr/pkg
 TAR_CMD?= tar
+FTP_CMD?= tar
 ZOULARISBASE?= ${LOCALBASE}/bsd
 TAR_FULLPATHNAME?= ${ZOULARISBASE}/bin/${TAR_CMD}
+FTP_FULLPATHNAME?= ${ZOULARISBASE}/bin/${FTP_CMD}
 CPPFLAGS+=-DTAR_CMD='"${TAR_CMD}"' -DTAR_FULLPATHNAME='"${TAR_FULLPATHNAME}"'
+CPPFLAGS+=-DFTP_CMD='"${FTP_CMD}"' -DFTP_FULLPATHNAME='"${FTP_FULLPATHNAME}"'
 BINDIR=${ZOULARISBASE}/bin
 CHMOD?= /usr/bin/chmod
 CHOWN?= /usr/bin/chown



Home | Main Index | Thread Index | Old Index