aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2021-09-05 19:18:05 +0200
committerTeddy Wing2021-09-05 19:30:10 +0200
commit0d0d8d72aeabe59449680ecd565b64c412608e3e (patch)
tree675aacbf9737812d5ca7036a1816a0d1489e6116
parent109f74115579454eba038a5d268f67a4dd2bce6e (diff)
downloadmacports-ports-0d0d8d72aeabe59449680ecd565b64c412608e3e.tar.bz2
README: Add usage information
Describe how to add this custom repository as a local MacPorts source. Based on this tutorial: https://trac.macports.org/wiki/howto/SyncingWithGit
-rw-r--r--README.md18
1 files changed, 18 insertions, 0 deletions
diff --git a/README.md b/README.md
index f8db333..51bd3b1 100644
--- a/README.md
+++ b/README.md
@@ -4,6 +4,24 @@ MacPorts Ports
A collection of ports for various projects.
+## Adding this repository source
+Clone the repository to the local filesystem:
+
+ $ cd /opt/local/var/macports/sources/
+ $ sudo mkdir -p github.com/teddywing/macports-ports/
+ $ sudo chown -R $USER:admin github.com
+ $ git clone https://github.com/teddywing/macports-ports.git github.com/teddywing/macports-ports
+
+Edit the `/opt/local/etc/macports/sources.conf` and add the following line
+_above_ the default MacPorts source:
+
+ file:///opt/local/var/macports/sources/github.com/teddywing/macports-ports
+
+Synchronize the ports tree:
+
+ sudo port -v sync
+
+
## License
Licensed under the Mozilla Public License v. 2.0 (see the included LICENSE
file).