source: trunk/README @ 3656

Last change on this file since 3656 was 3656, checked in by fkr, 16 years ago

Bug:
Submitted by:
Reviewed by:
Approved by:
Obtained from:

point to the new location of the guide. finally!

  • Property svn:eol-style set to native
File size: 4.1 KB
Line 
1WHAT IS THE DARWIN PORTS SYSTEM
2
3    DarwinPorts is a software build, install, and packaging infrastructure
4designed to meet the same functionality requirements as the FreeBSD ports
5architecture while maintaining extensibility for future enhancement.
6
7    DarwinPorts currently builds and runs on MacOS X 10.2 (Darwin 6.0). The
8system is portable, written in TCL with a limited set of TCL extensions in C.
9
10        The "DarwinPorts User Guide" is available at:
11        http://www.opendarwin.org/projects/darwinports/guide/
12
13    For in-depth documentation on the internals of the ports system
14architecture, refer to base/doc/INTERNALS.
15
16    Please note that DarwinPorts is split into two parts.  The "darwin ports
17infrastructure", which lives in the base/ subdirectory and is the only
18mandatory component of the system, and the "dports" directory which contains
19the actual ported software descriptions.  The latter is optional and can be
20either fetched on demand over the net or a local copy can be used.  See
21documentation on /etc/ports/sources.conf below.
22
23INSTALLATION
24
25    Installation Steps:
26        1. make
27                Run 'make' to compile all necessary software.
28               
29
30        2. sudo make install
31                Run 'sudo make install' to install DarwinPorts on your system.
32
33
34        3. [optional] edit /etc/ports/ports.conf
35                The /etc/ports/ports.conf configuration file defines several
36                configuration options for the DarwinPorts infrastructure. If
37                you wish to change installation paths or the location at
38                which various port system specific data is stored, change the
39                following settings:
40
41                portdbpath - Specifies path to store ports system specific data.
42
43                prefix - Specifies directory in which to install ports
44
45        4. edit /etc/ports/sources.conf
46                The /etc/ports/sources.conf file lists the location of
47                both local and remote port software hierarchies. Be sure
48                to add an entry for your local ports tree
49                (usually the darwinports/dports directory)
50
51    All necessary code and TCL will be compiled and installed as follows:
52        [Mac OS X] /System/Library/Tcl/darwinports1.0
53        [FreeBSD] /usr/local/lib/tcl8.3/darwinports1.0
54            - TCL library for interfacing with the DarwinPorts System
55
56        PREFIX is set to /opt/local but can be overridden by changing
57        directory to the base/ directory and running ./configure
58        manually with a --prefix argument
59
60        $PREFIX/bin/port
61            - Command line port building utility
62        $PREFIX/share/darwinports/
63            - TCL libraries internal to the ports system
64
65        The following files are provided for customization of the system:
66
67        /etc/defaults/ports.conf
68            - System-wide port default settings
69        /etc/ports/ports.conf
70            - User customizable port settings
71        /etc/ports/sources.conf
72            - List of port sources (places to get ports data from)
73
74
75USING THE PORT COMMAND
76
77    If you haven't already, add /opt/local/bin to your path (or $PREFIX/bin
78if you've elected to install DarwinPorts somewhere else). If you're
79unsure how, add the following line to your ~/.cshrc file.
80
81        set path=($path /opt/local/bin)
82
83    Your changes to ~/.cshrc will not take effect until you have opened
84a new shell.
85
86    The following command will build and install a port:
87
88        port install <portname>
89
90    To find a specific port, try using "port search".
91
92        port search vi
93
94    Please refer to the port man page for complete documentation on the port
95    command.
96
97    It is also possible to do operations, like building or fetching, for
98    all ports on the system using the portall command.  It takes essentially
99    the same arguments as the port command but operates iteratively on every
100    port in dports/.  When you do a "make clean" from this directory, for
101    example, a "portall clean" is also invoked to completely clean things up.
102
103
104CREATING NEW PORTS
105
106    Ports consist of directory containing both a Portfile and associated
107files. Currently the only bundled files are patch files, and these are likely
108to be kept to a minimum.
109
110    A Portfile consists of valid TCL, evaluated by a TCL interpreter
111instantiated by the DarwinPorts System. Portfiles use extremely straight-
112forward key/value pair syntax, while allowing the author to use the full
113extent of TCL's functionality where necessary.
114
115    To get started, refer to base/doc/exampleport and the portfile(7) man page.
Note: See TracBrowser for help on using the repository browser.