Changes between Version 4 and Version 5 of howto/AdvancedDailyAdm
- Timestamp:
- May 22, 2021, 1:13:40 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
howto/AdvancedDailyAdm
v4 v5 19 19 {{{ 20 20 declare prefix='/opt/local' 21 declare version='2. 6.4'21 declare version='2.7.0' 22 22 }}} 23 23 … … 131 131 if [ ! -e MacPorts-${version}.tar.gz ] 132 132 then 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" 134 135 fi 135 136 136 137 rm -rf ./MacPorts-${version} 137 tar -zxf MacPorts-${version}.tar.gz 138 tar -zxf MacPorts-${version}.tar.gz 2>/dev/null \ 139 || { echo "error expanding MacPorts-${version}.tar.gz" ; exit } 138 140 139 141 cd MacPorts-${version} 140 142 #patch -p0 </Volumes/Bjarne/WebServer/MacPorts/newPorts/pathces/mp-base-no-progress-if-stdout-no-tty.patch 141 143 #./configure LDFLAGS=-L/Developer/SDKs/MacOSX10.6.sdk/usr/X11/lib --prefix=${prefix} 142 ./configure --prefix=${prefix} 143 make 144 make install 144 CC=/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 } 145 153 146 154 # update MacPorts itself … … 148 156 149 157 # let's get bash, zsh & nano 150 ${prefix}/bin/port - cuNp install bash zsh nano151 echo "${prefix}/bin/bash">> /etc/shells152 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 153 161 154 162 # cleanup 163 cd .. 155 164 rm -rf ./MacPorts-${version} 156 165