Changeset d04f1ac8


Ignore:
Timestamp:
12/09/13 13:43:23 (21 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, enter/10, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3, releng/10.1, releng/10.1.1, releng/10.1.2, releng/10.2
Children:
9db63e8
Parents:
f5897a1
Message:

Update the pc-updatemanager with new pkgng 1.2 stuff

Location:
src-sh
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src-sh/pc-extractoverlay/ports-overlay/usr/local/etc/pkg/repos/pcbsd.conf

    rcd20ca3 rd04f1ac8  
    1 pcbsd-build: { 
     1pcbsd: { 
    22               url: "http://pkg.cdn.pcbsd.org/VERSION/ARCH", 
    33               signature_type: "fingerprints", 
  • src-sh/pc-updatemanager/pc-updatemanager

    r2b62dde rd04f1ac8  
    408408rollback_update() 
    409409{ 
    410   cp /usr/local/etc/pkg.conf.preUpgrade /usr/local/etc/pkg.conf 
     410  cp /tmp/pcbsd.conf.preUpdate.$$ /usr/local/etc/pkg/repos/pcbsd.conf 
    411411  if [ "$PKGROLLBACK" = "YES" ] ; then 
    412412 
     
    468468  PKGROLLBACK="NO" 
    469469 
    470   # Lets backup the old pkg.conf file 
    471   cp /usr/local/etc/pkg.conf /usr/local/etc/pkg.conf.preUpgrade 
    472  
    473   # Set the new pkg.conf file to the new repo 
     470  # Save the repo file 
     471  cp /usr/local/etc/pkg/repos/pcbsd.conf /tmp/pcbsd.conf.preUpdate.$$ 
     472 
     473  # Set the new pcbsd.conf file to the new repo 
    474474  local arch=`uname -m` 
    475   echo "packagesite: pkg+http://pkg.cdn.pcbsd.org/$rel/$arch" >/usr/local/etc/pkg.conf 
    476   echo "PUBKEY: /usr/local/etc/pkg-pubkey.cert" >>/usr/local/etc/pkg.conf 
    477   echo "PKG_CACHEDIR: /usr/local/tmp" >>/usr/local/etc/pkg.conf 
     475  echo "pcbsd: { 
     476        url: "http://pkg.cdn.pcbsd.org/$rel/$arch", 
     477        signature_type: "fingerprints", 
     478        fingerprints: "/usr/local/etc/pkg/fingerprints/pcbsd", 
     479        enabled: true 
     480       }" > /usr/local/etc/pkg/repos/pcbsd.conf 
    478481 
    479482  # Lets backup old pkgng 
     
    510513     exit_err "Failed running \"freebsd-update install\"..." 
    511514  fi 
     515 
     516  # Remove backup repo file 
     517  rm /tmp/pcbsd.conf.preUpdate.$$ 
    512518 
    513519  echo "Major update finished!"  
Note: See TracChangeset for help on using the changeset viewer.