paul | 8d60e1a | 2005-04-11 07:58:35 +0000 | [diff] [blame] | 1 | To build packages for Solaris 10: |
| 2 | |
| 3 | Requirements: |
| 4 | ------------- |
| 5 | |
| 6 | - Development environment including gcc (eg as shipped with Solaris 10) |
| 7 | |
| 8 | - The Package tools from S10 |
| 9 | |
| 10 | - i.manifest and r.manifest scripts as supplied with Solaris Express |
| 11 | in /usr/sadm/install/scripts/ or alternatively from the |
| 12 | download/binaries/solaris/ directory on quagga.net. i.manifest must be at |
| 13 | least version 1.5. You can place these scripts in this directory if you |
| 14 | are using Solaris 10 GA (which does not ship with these scripts). |
| 15 | |
| 16 | |
| 17 | Package creation instructions: |
| 18 | ------------------------------ |
| 19 | |
| 20 | 1. Configure and build Quagga in the top level build directory as per |
| 21 | normal, eg: |
| 22 | |
| 23 | ./configure --prefix=/usr/local/quagga \ |
| 24 | --localstatedir=/var/run/quagga |
| 25 | --enable-gcc-rdynamic --enable-opaque-lsa --enable-ospf-te \ |
| 26 | --enable-multipath=64 --enable-user=quagga \ |
| 27 | --enable-ospfclient=yes --enable-ospfapi=yes \ |
| 28 | --enable-group=quagga --enable-nssa --enable-opaque-lsa |
| 29 | |
| 30 | You will need /usr/sfw/bin and /usr/ccs/bin in your path. |
| 31 | |
| 32 | 2. make install in the top-level build directory, it's a good idea to make |
| 33 | use of DESTDIR to install to an alternate root, eg: |
| 34 | |
| 35 | make DESTDIR=/var/tmp/qroot install |
| 36 | |
| 37 | 3. In this directory, run make packages, specifying DESTDIR if appropriate, |
| 38 | eg: |
| 39 | |
| 40 | make DESTDIR=/var/tmp/qroot packages |
| 41 | |
| 42 | This should result in 4 packages being created: |
| 43 | |
| 44 | quagga-libs-...-$ARCH.pkg - QUAGGAlibs |
| 45 | quagga-daemons-...-$ARCH.pkg - QUAGGAdaemons |
| 46 | quagga-doc-...-$ARCH.pkg - QUAGGAdoc |
| 47 | quagga-dev-...-$ARCH.pkg - QUAGGAdev |
| 48 | |
| 49 | QUAGGAlibs and QUAGGAdaemons are needed for daemon runtime. |
| 50 | |
| 51 | |
| 52 | Install and post-install configuration notes: |
| 53 | --------------------------------------------- |
| 54 | |
| 55 | - If you specified a user/group which does not exist per default on Solaris |
| 56 | (eg quagga/quagga) you *must* create these before installing these on a |
| 57 | system. The packages do *not* create the users. |
| 58 | |
| 59 | - The configuration files are not created. You must create the configuration |
| 60 | file yourself, either with your complete desired configuration, or else if |
| 61 | you wish to use the telnet interface for further configuration you must |
| 62 | create them containing at least: |
| 63 | |
| 64 | password whatever |
| 65 | |
| 66 | The user which quagga runs as must have write permissions on this file, no |
| 67 | other user should have read permissions, and you would also have to enable |
| 68 | the telnet interface (see below). |
| 69 | |
| 70 | - Configuration of common options are by way of SMF properties named Quagga, |
| 71 | the defaults should be inline with how you configured Quagga in Step 1 |
| 72 | above, eg: |
| 73 | |
| 74 | Quagga/config_file astring /usr/local/quagga/etc/zebra.conf |
| 75 | Quagga/daemon_name astring zebra |
| 76 | Quagga/group astring quagga |
| 77 | Quagga/pid_file astring /var/run/quagga/zebra.pid |
| 78 | Quagga/stability astring Evolving |
| 79 | Quagga/user astring quagga |
| 80 | Quagga/vty_addr astring 127.1 |
| 81 | Quagga/vty_port integer 0 |
| 82 | |
| 83 | Note that by default the telnet 'vty' interface is disabled - |
| 84 | Quagga/vty_port is set to 0. Other daemon-specific options may be |
| 85 | available, however they are not yet honoured/used (eg ospfd/apiserver on |
| 86 | svc:/network/ospf). |
| 87 | |
| 88 | You can change these properties with the 'svccfg' SMF utility, eg: |
| 89 | |
| 90 | # svccfg |
| 91 | svc:> select svc:/network/zebra |
| 92 | svc:/network/zebra> listprop Quagga/vty_port |
| 93 | Quagga/vty_port integer 0 |
| 94 | svc:/network/zebra> setprop Quagga/vty_port = 2601 |
| 95 | svc:/network/zebra> listprop Quagga/vty_port |
| 96 | Quagga/vty_port integer 2601 |
| 97 | svc:/network/zebra> quit |
| 98 | # svcprop -p Quagga/vty_port network/zebra |
| 99 | 2601 |
| 100 | |
| 101 | As SMF is dependency aware, restarting network/zebra will restart all the |
| 102 | other daemons. |
| 103 | |
| 104 | - These packages are not supported by Sun Microsystems, report bugs via the |
| 105 | usual Quagga channels, ie Bugzilla. Improvements/contributions of course |
| 106 | would be greatly appreciated. |
| 107 | |