Source-Changes-HG archive

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

[src/trunk]: src/etc/root Update example PKG_PATH entry to use the CDN fronte...



details:   https://anonhg.NetBSD.org/src/rev/c6d5c0700647
branches:  trunk
changeset: 828299:c6d5c0700647
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Thu Dec 07 18:26:51 2017 +0000

description:
Update example PKG_PATH entry to use the CDN frontend, use uname -p instead
of uname -m for processor subdirectory, and derive the OS release from
uname -r.

diffstat:

 etc/root/dot.cshrc   |  5 ++---
 etc/root/dot.profile |  7 +++----
 2 files changed, 5 insertions(+), 7 deletions(-)

diffs (38 lines):

diff -r d55d77e20386 -r c6d5c0700647 etc/root/dot.cshrc
--- a/etc/root/dot.cshrc        Thu Dec 07 16:22:22 2017 +0000
+++ b/etc/root/dot.cshrc        Thu Dec 07 18:26:51 2017 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: dot.cshrc,v 1.25 2014/11/30 23:43:30 riz Exp $
+#      $NetBSD: dot.cshrc,v 1.26 2017/12/07 18:26:51 jmcneill Exp $
 
 alias  h       history
 alias  j       jobs -l
@@ -22,8 +22,7 @@
 
 # Uncomment the following line(s) to install binary packages
 # from ftp.NetBSD.org via pkg_add.  (See also pkg_install.conf)
-#setenv PKG_PATH "ftp://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/`uname -m`/7.0/All"
-#setenv PKG_PATH "${PKG_PATH};ftp://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/`uname -m`/6.0/All"
+#setenv PKG_PATH "http://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/`uname -p`/`uname -r|cut -f '1 2' -d.|cut -f 1 -d_`/All"
 
 set history=1000
 set path=(/sbin /usr/sbin /bin /usr/bin /usr/pkg/sbin /usr/pkg/bin /usr/X11R7/bin /usr/X11R6/bin /usr/local/sbin /usr/local/bin)
diff -r d55d77e20386 -r c6d5c0700647 etc/root/dot.profile
--- a/etc/root/dot.profile      Thu Dec 07 16:22:22 2017 +0000
+++ b/etc/root/dot.profile      Thu Dec 07 18:26:51 2017 +0000
@@ -1,12 +1,11 @@
-#      $NetBSD: dot.profile,v 1.28 2016/03/08 09:51:15 mlelstv Exp $
+#      $NetBSD: dot.profile,v 1.29 2017/12/07 18:26:51 jmcneill Exp $
 
 export PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/pkg/sbin:/usr/pkg/bin
 export PATH=${PATH}:/usr/X11R7/bin:/usr/X11R6/bin:/usr/local/sbin:/usr/local/bin
 
 # Uncomment the following line(s) to install binary packages
-# from ftp.NetBSD.org via pkg_add.  (See also pkg_install.conf)
-#export PKG_PATH=ftp://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/$(uname -m)/7.0/All
-#export PKG_PATH="${PKG_PATH};ftp://ftp.NetBSD.org/pub/pkgsrc/packages/NetBSD/$(uname -m)/6.0/All"
+# from cdn.NetBSD.org via pkg_add.  (See also pkg_install.conf)
+#export PKG_PATH="http://cdn.NetBSD.org/pub/pkgsrc/packages/NetBSD/$(uname -p)/$(uname -r|cut -f '1 2' -d.|cut -f 1 -d_)/All"
 
 export BLOCKSIZE=1k
 



Home | Main Index | Thread Index | Old Index