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