| 1 |
README.smartos |
| 2 |
************** |
| 3 |
|
| 4 |
Introduction |
| 5 |
============ |
| 6 |
|
| 7 |
This file describes the steps required to build this bundle on SmartOS. A |
| 8 |
complete C/C++ toolchain for SmartOS is provided on the base-multiarch image. |
| 9 |
|
| 10 |
The user is currently using the following image for the development of fswatch |
| 11 |
on SmartOS: |
| 12 |
|
| 13 |
UUID: 9250f5a8-6e9c-11e5-9cdb-67fab8707bfd |
| 14 |
NAME: base-multiarch |
| 15 |
VERSION: 15.3.0 |
| 16 |
|
| 17 |
Setting Up a Development Zone |
| 18 |
============================= |
| 19 |
|
| 20 |
A development zone can be setup using the following procedure: |
| 21 |
|
| 22 |
* Search for the latest base-multiarch image: |
| 23 |
|
| 24 |
$ imgadm avail | grep base-multiarch |
| 25 |
9250f5a8-6e9c-11e5-9cdb-67fab8707bfd base-multiarch 15.3.0 smartos 2015-10-09T15:44:05Z |
| 26 |
|
| 27 |
* Install the latest image available: |
| 28 |
|
| 29 |
$ imgadm import 9250f5a8-6e9c-11e5-9cdb-67fab8707bfd |
| 30 |
|
| 31 |
* Create a zone manifest called development.json. A simple zone manifest |
| 32 |
template is the following: |
| 33 |
|
| 34 |
{ |
| 35 |
"brand": "joyent", |
| 36 |
"image_uuid": "9250f5a8-6e9c-11e5-9cdb-67fab8707bfd", |
| 37 |
"alias": "development", |
| 38 |
"hostname": "development", |
| 39 |
"max_physical_memory": 4096, |
| 40 |
"quota": 10, |
| 41 |
"resolvers": ["8.8.8.8", "8.8.4.4"], |
| 42 |
"nics": [ |
| 43 |
{ |
| 44 |
"nic_tag": "admin", |
| 45 |
"ip": "dhcp" |
| 46 |
} |
| 47 |
] |
| 48 |
} |
| 49 |
|
| 50 |
* Install a zone using the specified image and manifest: |
| 51 |
|
| 52 |
$ vmadm create -f development.json |
| 53 |
|
| 54 |
Prerequisites |
| 55 |
============= |
| 56 |
|
| 57 |
The following packages must be installed on the zone where fswatch is built: |
| 58 |
|
| 59 |
* autoconf |
| 60 |
|
| 61 |
* automake |
| 62 |
|
| 63 |
* gettext |
| 64 |
|
| 65 |
* libtool |
| 66 |
|
| 67 |
* gcc49 |
| 68 |
|
| 69 |
* git |
| 70 |
|
| 71 |
* gmake |
| 72 |
|
| 73 |
* gtexinfo |
| 74 |
|
| 75 |
Packages can be installed using pkgin: |
| 76 |
|
| 77 |
$ pkgin update |
| 78 |
$ pkgin install package ... |
| 79 |
|
| 80 |
Installation |
| 81 |
============ |
| 82 |
|
| 83 |
See the INSTALL file for detailed information about how to configure and install |
| 84 |
fswatch. |
| 85 |
|
| 86 |
fswatch is a C++ program and a C++ compiler compliant with the C++11 standard is |
| 87 |
required to compile it. Check the documentation of your distribution to learn |
| 88 |
how to install the required software. |
| 89 |
|
| 90 |
The configure script enforces an ordered compiler search list and clang++ will |
| 91 |
be used first if available. If you do not like this choice and wish to use |
| 92 |
another compiler set the value of the CXX environment variable to the name of |
| 93 |
your compiler binary. If, for example, you wish to use the g++ compiler, then |
| 94 |
use this command to configure the build: |
| 95 |
|
| 96 |
$ ./configure CXX=g++ |
| 97 |
|
| 98 |
----- |
| 99 |
|
| 100 |
Copyright (c) 2015 Enrico M. Crisostomo |
| 101 |
|
| 102 |
This program is free software; you can redistribute it and/or modify it under |
| 103 |
the terms of the GNU General Public License as published by the Free Software |
| 104 |
Foundation; either version 3, or (at your option) any later version. |
| 105 |
|
| 106 |
This program is distributed in the hope that it will be useful, but WITHOUT ANY |
| 107 |
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
| 108 |
PARTICULAR PURPOSE. See the GNU General Public License for more details. |
| 109 |
|
| 110 |
You should have received a copy of the GNU General Public License along with |
| 111 |
this program. If not, see <http://www.gnu.org/licenses/>. |