Changes between Version 4 and Version 5 of howto/AdvancedDailyAdm


Ignore:
Timestamp:
May 22, 2021, 1:13:40 PM (4 years ago)
Author:
BjarneDMat
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • howto/AdvancedDailyAdm

    v4 v5  
    1919{{{
    2020declare prefix='/opt/local'
    21 declare version='2.6.4'
     21declare version='2.7.0'
    2222}}}
    2323
     
    131131if [ ! -e MacPorts-${version}.tar.gz ]
    132132then
    133     curl -O --url "https://distfiles.macports.org/MacPorts/MacPorts-${version}.tar.gz"
     133    #https://github.com/macports/macports-base/releases/download/v2.7.0/MacPorts-2.7.0.tar.gz
     134    curl -L -O --url "https://github.com/macports/macports-base/releases/download/v${version}/MacPorts-${version}.tar.gz"
    134135fi
    135136
    136137rm  -rf  ./MacPorts-${version}
    137 tar -zxf   MacPorts-${version}.tar.gz
     138tar -zxf   MacPorts-${version}.tar.gz 2>/dev/null \
     139|| { echo "error expanding MacPorts-${version}.tar.gz" ; exit }
    138140
    139141cd MacPorts-${version}
    140142#patch -p0 </Volumes/Bjarne/WebServer/MacPorts/newPorts/pathces/mp-base-no-progress-if-stdout-no-tty.patch
    141143#./configure LDFLAGS=-L/Developer/SDKs/MacOSX10.6.sdk/usr/X11/lib --prefix=${prefix}
    142 ./configure --prefix=${prefix}
    143 make
    144 make install
     144CC=/usr/bin/cc ./configure \
     145     --prefix=/opt/local \
     146     --with-install-user=root \
     147     --with-install-group=admin \
     148     --with-directory-mode=0755 \
     149     --enable-readline \
     150&& make SELFUPDATING=1 \
     151&& make install SELFUPDATING=1 \
     152|| { echo "error compiling MacPorts-${version}" ; exit }
    145153
    146154# update MacPorts itself
     
    148156
    149157# let's get bash, zsh & nano
    150 ${prefix}/bin/port -cuNp install bash zsh nano
    151 echo "${prefix}/bin/bash" >> /etc/shells
    152 echo "${prefix}/bin/zsh"  >> /etc/shells
     158${prefix}/bin/port -N install bash  && echo "${prefix}/bin/bash" >> /etc/shells
     159${prefix}/bin/port -N install zsh   && echo "${prefix}/bin/zsh" >> /etc/shells
     160${prefix}/bin/port -N install nano
    153161
    154162# cleanup
     163cd ..
    155164rm  -rf  ./MacPorts-${version}
    156165