Changes between Version 2 and Version 3 of howto/ShareArchives2


Ignore:
Timestamp:
Aug 3, 2011, 8:34:37 AM (13 years ago)
Author:
fracai
Comment:

Replaced /usr/local with /opt/local

Legend:

Unmodified
Added
Removed
Modified
  • howto/ShareArchives2

    v2 v3  
    3535}}}
    3636
    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/'''.
     37The 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/'''.
    3838
    3939Note: 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.
     
    5656{{{
    5757openssl dgst -ripemd160 \
    58     -sign /usr/local/share/macports/privkey.pem \
     58    -sign /opt/local/share/macports/privkey.pem \
    5959    -out /opt/local/var/macports/software/lighttpd/lighttpd-1.4.28_0+ssl+universal.darwin_10.i386-x86_64.tbz2.rmd160 \
    6060    /opt/local/var/macports/software/lighttpd/lighttpd-1.4.28_0+ssl+universal.darwin_10.i386-x86_64.tbz2
     
    6666#!/bin/sh
    6767
    68 PRIVKEY="/usr/local/share/macports/macports-donnybrook.priv"
    69 PUBKEY="/usr/local/share/macports/macports-donnybrook.pub"
     68PRIVKEY="/opt/local/share/macports/macports-donnybrook.priv"
     69PUBKEY="/opt/local/share/macports/macports-donnybrook.pub"
    7070SOFTWARE="/opt/local/var/macports/software"
    7171
     
    134134You should now be able to start the service...
    135135{{{
    136 /opt/local/sbin/lighttpd -D -f /usr/local/share/macports/macports-archives-lighttpd.conf
     136/opt/local/sbin/lighttpd -D -f /opt/local/share/macports/macports-archives-lighttpd.conf
    137137}}}
    138138and view your software archives in a browser:
     
    162162        <string>-D</string>
    163163        <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>
    165165    </array>
    166166    <key>StandardErrorPath</key>
     
    183183Finally we're ready to actually fetch some archives.
    184184
    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.
     185First, 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.
    186186
    187187Now, 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.
     
    194194A line indicating the location of the public key must also be added to '''${prefix}/etc/macports/pubkeys.conf'''. Something like:
    195195{{{
    196 /usr/local/share/macports/pubkey.pem
     196/opt/local/share/macports/pubkey.pem
    197197}}}
    198198