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/lib Pull up revision 1.44 (request...
details: https://anonhg.NetBSD.org/src/rev/5e2bdbe2569a
branches: netbsd-1-6
changeset: 529524:5e2bdbe2569a
user: tron <tron%NetBSD.org@localhost>
date: Sun Nov 24 22:34:13 2002 +0000
description:
Pull up revision 1.44 (requested by jschauma in ticket #1011):
- eliminate the hard-coding of pathnames in the default install.
- all command executions now use the path [execvp/execlp/system].
- normalize the macro names as <COMMAND>_CMD.
- in some OS's full pathnames for commands can still be provided, but this
is not the default.
This was needed to fix -DTAR_FULLPATHNAME="/usr/bin/tar"
diffstat:
usr.sbin/pkg_install/lib/lib.h | 20 +++++++++++---------
1 files changed, 11 insertions(+), 9 deletions(-)
diffs (39 lines):
diff -r ca7c130df5dd -r 5e2bdbe2569a usr.sbin/pkg_install/lib/lib.h
--- a/usr.sbin/pkg_install/lib/lib.h Sun Nov 24 22:34:03 2002 +0000
+++ b/usr.sbin/pkg_install/lib/lib.h Sun Nov 24 22:34:13 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lib.h,v 1.38.2.2 2002/07/21 04:42:39 lukem Exp $ */
+/* $NetBSD: lib.h,v 1.38.2.3 2002/11/24 22:34:13 tron Exp $ */
/* from FreeBSD Id: lib.h,v 1.25 1997/10/08 07:48:03 charnier Exp */
@@ -63,19 +63,21 @@
#define TAR_CMD "tar"
#endif
-/* Full path name of TAR_CMD */
-#ifndef TAR_FULLPATHNAME
-#define TAR_FULLPATHNAME "/usr/bin/tar"
-#endif
-
/* Define ftp as a string, in case the ftp client is called something else */
#ifndef FTP_CMD
#define FTP_CMD "ftp"
#endif
-/* Full path name of FTP_CMD */
-#ifndef FTP_FULLPATHNAME
-#define FTP_FULLPATHNAME "/usr/bin/ftp"
+#ifndef CHOWN_CMD
+#define CHOWN_CMD "chown"
+#endif
+
+#ifndef CHMOD_CMD
+#define CHMOD_CMD "chmod"
+#endif
+
+#ifndef CHGRP_CMD
+#define CHGRP_CMD "chgrp"
#endif
/* Where we put logging information by default, else ${PKG_DBDIR} if set */
Home |
Main Index |
Thread Index |
Old Index