File indexing completed on 2024-06-23 04:15:17
0001 #!/bin/sh 0002 0003 # SPDX-FileCopyrightText: 2013-2024 by Gilles Caulier <caulier dot gilles at gmail dot com> 0004 # This script must be run as sudo 0005 # 0006 # SPDX-License-Identifier: BSD-3-Clause 0007 # 0008 0009 # Ask to run as root 0010 (( EUID != 0 )) && exec sudo -- "$0" "$@" 0011 0012 # halt on error 0013 set -e 0014 0015 # Pre-processing checks 0016 0017 . ../common.sh 0018 StartScript 0019 CommonChecks 0020 0021 # Uninstall Macports packages 0022 0023 port -fp uninstall installed 0024 0025 # Remove Macports dirs 0026 0027 rm -rf \ 0028 $INSTALL_PREFIX \ 0029 /Applications/DarwinPorts \ 0030 /Applications/MacPorts \ 0031 /Library/LaunchDaemons/org.macports.* \ 0032 /Library/Receipts/DarwinPorts*.pkg \ 0033 /Library/Receipts/MacPorts*.pkg \ 0034 /Library/StartupItems/DarwinPortsStartup \ 0035 /Library/Tcl/darwinports1.0 \ 0036 /Library/Tcl/macports1.0 \ 0037 ~/.macports 0038 0039 TerminateScript