Changes between Version 2 and Version 3 of howto/ShareArchives2
- Timestamp:
- Aug 3, 2011, 8:34:37 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
howto/ShareArchives2
v2 v3 35 35 }}} 36 36 37 The public and private keys can be stored anywhere as long as they are accessible to the following steps. This tutorial has them placed on the build system at '''/ usr/local/share/macports/'''.37 The public and private keys can be stored anywhere as long as they are accessible to the following steps. This tutorial has them placed on the build system at '''/opt/local/share/macports/'''. 38 38 39 39 Note: While the build system need only have access to the private key, it's a good idea to store both the public and private keys in the same location. The installation system should only have access to the public key. … … 56 56 {{{ 57 57 openssl dgst -ripemd160 \ 58 -sign / usr/local/share/macports/privkey.pem \58 -sign /opt/local/share/macports/privkey.pem \ 59 59 -out /opt/local/var/macports/software/lighttpd/lighttpd-1.4.28_0+ssl+universal.darwin_10.i386-x86_64.tbz2.rmd160 \ 60 60 /opt/local/var/macports/software/lighttpd/lighttpd-1.4.28_0+ssl+universal.darwin_10.i386-x86_64.tbz2 … … 66 66 #!/bin/sh 67 67 68 PRIVKEY="/ usr/local/share/macports/macports-donnybrook.priv"69 PUBKEY="/ usr/local/share/macports/macports-donnybrook.pub"68 PRIVKEY="/opt/local/share/macports/macports-donnybrook.priv" 69 PUBKEY="/opt/local/share/macports/macports-donnybrook.pub" 70 70 SOFTWARE="/opt/local/var/macports/software" 71 71 … … 134 134 You should now be able to start the service... 135 135 {{{ 136 /opt/local/sbin/lighttpd -D -f / usr/local/share/macports/macports-archives-lighttpd.conf136 /opt/local/sbin/lighttpd -D -f /opt/local/share/macports/macports-archives-lighttpd.conf 137 137 }}} 138 138 and view your software archives in a browser: … … 162 162 <string>-D</string> 163 163 <string>-f</string> 164 <string>/ usr/local/share/macports/macports-archives-lighttpd.conf</string>164 <string>/opt/local/share/macports/macports-archives-lighttpd.conf</string> 165 165 </array> 166 166 <key>StandardErrorPath</key> … … 183 183 Finally we're ready to actually fetch some archives. 184 184 185 First, copy the public key to each client system that will be installing from archives. As before, '''/ usr/local/share/macports/''' is a decent enough location.185 First, copy the public key to each client system that will be installing from archives. As before, '''/opt/local/share/macports/''' is a decent enough location. 186 186 187 187 Now, MacPorts needs to be configured to fetch archives from the build system. The '''archive_site_local''' setting can be set to an IP, but it will likely be more convenient to use the Bonjour name of the local system. This name can be found in the '''Sharing''' preference pane. … … 194 194 A line indicating the location of the public key must also be added to '''${prefix}/etc/macports/pubkeys.conf'''. Something like: 195 195 {{{ 196 / usr/local/share/macports/pubkey.pem196 /opt/local/share/macports/pubkey.pem 197 197 }}} 198 198