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 The new comment in the file says i...



details:   https://anonhg.NetBSD.org/src/rev/69efc449ea50
branches:  netbsd-1-6
changeset: 529475:69efc449ea50
user:      tron <tron%NetBSD.org@localhost>
date:      Sun Nov 24 13:49:48 2002 +0000

description:
The new comment in the file says it all:

# UNDER NO CIRCUMSTANCES SHOULD THIS MAKEFILE TEST THE OUTPUT OF uname!!
# DOING DO BREAKS CROSS COMPILING.

diffstat:

 usr.sbin/pkg_install/Makefile.inc |  58 +++++++++++++++-----------------------
 1 files changed, 23 insertions(+), 35 deletions(-)

diffs (84 lines):

diff -r 8b60f9b900b5 -r 69efc449ea50 usr.sbin/pkg_install/Makefile.inc
--- a/usr.sbin/pkg_install/Makefile.inc Sat Nov 23 15:45:32 2002 +0000
+++ b/usr.sbin/pkg_install/Makefile.inc Sun Nov 24 13:49:48 2002 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.16.2.2 2002/08/06 00:24:53 lukem Exp $
+# $NetBSD: Makefile.inc,v 1.16.2.3 2002/11/24 13:49:48 tron Exp $
 # Original from FreeBSD, no rcs id.
 
 .include <bsd.own.mk>
@@ -6,40 +6,33 @@
 LIBINSTALL != cd ${.CURDIR}/../lib && ${PRINTOBJDIR}
 CPPFLAGS+=-I${.CURDIR}/../lib ${DEBUG} -DBINDIR='"${BINDIR}"'
 
-.if !defined(OPSYS)
-.if exists(/usr/bin/uname)
-OPSYS!= /usr/bin/uname -s
-.elif exists(/bin/uname)
-OPSYS!= /bin/uname -s
-.else
-OPSYS="unknown"
-.endif
-.endif
+# If building for Zoularis on Solaris, some other Makefile should do:
+#LOCALBASE?= /usr/pkg
+#TAR_CMD?= tar
+#FTP_CMD?= ftp
+#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
+#CHGRP?= /usr/bin/chgrp
+#WARNS=0
 
-.if ${OPSYS} == "NetBSD"
+# If building for Zoularis on Linux, some other Makefile should do:
+#CHMOD?= /bin/chmod
+#CHOWN?= /bin/chown
+#CHGRP?= /bin/chgrp
+
+# UNDER NO CIRCUMSTANCES SHOULD THIS MAKEFILE TEST THE OUTPUT OF uname!!
+# DOING DO BREAKS CROSS COMPILING.
+
 CHMOD?= /bin/chmod
 CHOWN?= /usr/sbin/chown
 CHGRP?= /usr/bin/chgrp
 WARNS=2
-.elif ${OPSYS} == "SunOS"
-LOCALBASE?= /usr/pkg
-TAR_CMD?= tar
-FTP_CMD?= ftp
-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
-CHGRP?= /usr/bin/chgrp
-WARNS=0
-.elif ${OPSYS} == "Linux"
-CHMOD?= /bin/chmod
-CHOWN?= /bin/chown
-CHGRP?= /bin/chgrp
-.endif
 
 CPPFLAGS+= -DCHMOD='"${CHMOD}"' -DCHOWN='"${CHOWN}"' -DCHGRP='"${CHGRP}"'
 
@@ -50,11 +43,6 @@
 .include "${.CURDIR}/../../Makefile.inc"
 .endif
 
-
-
-
-
-
 #CFLAGS+=      -g
 #STRIPFLAG=    # unset
 #LDFLAGS+=     -L/usr/pkg/lib -lefence



Home | Main Index | Thread Index | Old Index