Giter Site home page Giter Site logo

uci's Introduction

Using UCI on Mac OS X

The following HOWTO introduces the building of UCI (Unified Configuration Interface) on Mac OS X.


	1.Some extra package are required:

		$ sudo port install lua cmake

	2.The libubox library is required. It should to compiled from source. To do this, first you have to get the source from git:  

		$ git clone git://nbd.name/luci2/libubox.git
		$ cd libubox

	3. Please follow the next steps to build libubox:

		$ mkdir build
		$ cd build
		$ cmake ..
		$ make ubox

	4. Install libubox:

		$ sudo mkdir -p /opt/local/include/libubox
		$ sudo cp ../*.h /opt/local/include/libubox
		$ sudo cp libubox.dylib /opt/local/lib

	5. Get UCI source from git:

		$ git clone git://nbd.name/uci.git uci
		$ cd uci

	6.Please follow the next steps to build uci:

		$ mkdir build
		$ cd build
		$ cmake ..
		$ make uci cli

	7.Install uci:

		$ sudo mkdir -p /opt/local/include/uci
		$ sudo cp ../uci.h ../uci_config.h /opt/local/include/uci
		$ sudo cp ../uci_blob.h ../ucimap.h /opt/local/include/uci
		$ sudo cp libuci.dylib /opt/local/lib
		$ sudo cp uci /opt/local/bin

	8.Testing:

		$ mkdir test
		$ cat > test/test << EOF
		> config 'test' 'abc'
		> option 'test_var' 'value'
		> EOF

		$ uci -c `pwd`/test show test
		test.abc=test
		test.abc.test_var=value
		$ uci -c `pwd`/test set test.abc.test_var=foobar
		$ uci -c `pwd`/test commit test
		$ uci -c `pwd`/test show test
		test.abc=test
		test.abc.test_var=foobar


uci's People

Contributors

yousong avatar ynezz avatar jow- avatar jackiexie168 avatar nbd168 avatar dedeckeh avatar lperkov avatar kylo avatar neheb avatar karlp avatar hauke avatar dirkfeytons avatar yegorich avatar tg-- avatar ecsv avatar stintel avatar sbyx avatar mgorbachyov avatar larsclausen avatar ticpu avatar jminer avatar ryd avatar champtar avatar andrerochacastro avatar alinnastac avatar lynxis avatar

Stargazers

Georgiy Odisharia avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.