Joyent pkgsrc updating
updating database: 100% # pkgin ug calculating dependencies... 4 packages to be upgraded: pkgin-0.6.0 nodejs-0.8.11 mongodb-2.2.0 smtools-20121010 4 packages to be installed: pkgin-0.6.0nb1 nodejs-0.8.16 mongodb-2.2.2 smtools-20130103 (192M to download, 0B to install) proceed ? pkgin-0.6.0nb1100% 363KB 362.9KB/s 362.9KB/s nodejs-0.8.16100% 5320KB 5.2MB/s 5.2MB/s mongodb-2.2.2100% 54MB 54.0MB/s 54.0MB/s smtools-20130103100% 25KB 25.4KB/s 25.4KB/s removing packages to be upgraded... pkg_install warnings: 0, errors: 0 reading local summary... updating database: 100%# This is an example config file for Mongo DB.dbpath = /var/mongodb #bind_ip = 127.0.0.1 port = 27017 pidfilepath = /var/mongodb/logpath = /var/log/mongodb/logappend = true journal = true nohttpinterface = true directoryperdb = true The list of members in your Replica Set separated by commas. In the example below, the IP addresses also include the default Mongo DB port number. Please see where you will find the latest package sets and improved instructions.
Including the SVR4 tools and metadata would bloat the system.
You can set a different port number in /opt/local/etc/mongodb.conf# svcadm enable ipfilter # svccfg -s svc:/pkgsrc/mongodb setprop replication/name = joyent # svccfg -s svc:/pkgsrc/mongodb setprop replication/key = secretkey # svccfg -s svc:/pkgsrc/mongodb setprop replication/members = .2017,.2017,.2017 # svcadm refresh mongodb # svcadm restart mongodb# svcadm enable ipfilter # svccfg -s svc:/pkgsrc/mongodb setprop replication/name = joyent # svccfg -s svc:/pkgsrc/mongodb setprop replication/key = secretkey # svcadm refresh mongodb # svcadm restart mongodb After configuring the Replica Set you need to initiate the set which connects them all together and starts the initial data sync of the other members.
You must perform this on the primary member in the set.
The current release is The pkgsrc guide is packed with information about the internals of pkgsrc, and is useful if you would like to dig deeper and start hacking.
There are also various pkgsrc-related posts on my blog which contain various hints and tricks, though you may want to skip the Smart OS-specific sections. We hang out on Freenode There are over 14,000 packages in pkgsrc, so there are quite a few which currently do not build on OSX.