Quellcode durchsuchen

Build/install docs updated

Jakob Borg vor 13 Jahren
Ursprung
Commit
4b7cb15d95
2 geänderte Dateien mit 26 neuen und 0 gelöschten Zeilen
  1. 2 0
      Makefile
  2. 24 0
      README.md

+ 2 - 0
Makefile

@@ -6,6 +6,8 @@ TAR := smartos-zsnapper.tar.gz
 UID = $(shell id -u)
 
 
+smartos: $(TAR)
+
 $(TAR): $(BIN) $(SMF) $(ETC) $(BUILD)/opt/local/bin $(BUILD)/opt/local/etc $(BUILD)/opt/custom/smf
 ifneq ($(UID), 0)
 	$(error Should run as uid 0 for correct file ownership; consider fakeroot)

+ 24 - 0
README.md

@@ -11,6 +11,30 @@ This is a ZFS snapshotting service for Solaris, OpenIndiana, SmartOS and friends
 Installation
 ============
 
+SmartOS
+-------
+
+### Build the tar.gz
+
+Two alternatives:
+
+ 1. Use my "compiled" version from http://nym.se/t/smartos-snapper.tar.gz
+
+ 2.  In a zone that has npm and build tools available, or on a machine running
+     Mac OS X or whatever with Node.js installed:
+
+     # git clone https://github.com/calmh/zsnapper.git
+     # cd zsnapper
+     # fakeroot make smartos
+
+Transfer the tarball to your GZ and unpack it from the root. Read below about
+configuring (the config file is in `/opt/local/etc`), then enable the service
+with `svcadm import /opt/custom/smf/zsnapper.xml`. Check the log
+`/var/svc/log/site-zsnapper.log` for issues.
+
+Non-SmartOS Solaris, Linux, or FreeBSD
+--------------------------------------
+
     # npm -g install zsnapper
 
 Configure