-rw-r--r-- | doc/.gitignore | 1 | ||||
-rw-r--r-- | doc/000000000000.conf | 17 | ||||
-rw-r--r-- | doc/Makefile.am | 6 | ||||
-rw-r--r-- | doc/iiid.8.in | 106 |
4 files changed, 130 insertions, 0 deletions
diff --git a/doc/.gitignore b/doc/.gitignore new file mode 100644 index 0000000..b6c3d7c --- a/dev/null +++ b/doc/.gitignore | |||
@@ -0,0 +1 @@ | |||
iiid.8 | |||
diff --git a/doc/000000000000.conf b/doc/000000000000.conf new file mode 100644 index 0000000..d7b365f --- a/dev/null +++ b/doc/000000000000.conf | |||
@@ -0,0 +1,17 @@ | |||
1 | # target directory for uploaded files, if the name contains %s, it is replaced | ||
2 | # with eyefi card mac address. | ||
3 | targetdir = "/var/lib/eyekindo/%s/" | ||
4 | # the upload key as seen in Mac and (perhaps) windows Settings.xml file | ||
5 | uploadkey = "e3e2c4a305cee6bce0ebb38a3259ac08" | ||
6 | |||
7 | # commands to be executed at certain events, the commands also receive certain | ||
8 | # values of interested passed via environment. | ||
9 | # for on-start-session: EYEFI_MACADDRESS, EYEFI_TRANSFER_MODE, EYEFI_TRANSFERMODETIMESTAMP | ||
10 | on-start-session = "bash /usr/local/lib/iii/on-start-session.bash" | ||
11 | # for on-upload-photo: EYEFI_MACADDRESS, EYEFI_UPLOADED (uploaded file name) | ||
12 | on-upload-photo = "bash /usr/local/lib/iii/on-upload-photo.bash" | ||
13 | # for on-mark-last-photo-in-roll: EYEFI_MACADDRESS, EYEFI_MERGEDELTA | ||
14 | on-mark-last-photo-in-roll = "bash /usr/local/lib/iii/on-mark-last-photo-in-roll.bash" | ||
15 | |||
16 | # file mode creation mask | ||
17 | umask = 002 | ||
diff --git a/doc/Makefile.am b/doc/Makefile.am new file mode 100644 index 0000000..4a22498 --- a/dev/null +++ b/doc/Makefile.am | |||
@@ -0,0 +1,6 @@ | |||
1 | man_MANS=iiid.8 | ||
2 | |||
3 | EXTRA_DIST = 000000000000.conf | ||
4 | |||
5 | clean-local: | ||
6 | rm -f iiid.8 | ||
diff --git a/doc/iiid.8.in b/doc/iiid.8.in new file mode 100644 index 0000000..63a941e --- a/dev/null +++ b/doc/iiid.8.in | |||
@@ -0,0 +1,106 @@ | |||
1 | .TH iiid 8 "March 8th, 2009" "iiid(8)" "Klever Group (http://www.klever.net/)" | ||
2 | .hla en | ||
3 | |||
4 | .SH NAME | ||
5 | |||
6 | iiid \- An eye-fi card management daemon | ||
7 | |||
8 | .SH SYNOPSYS | ||
9 | |||
10 | \fBiiid\fR | ||
11 | [\fB-h\fR] [\fB--help\fR] [\fB--usage\fR] | ||
12 | [\fB-V\fR] [\fB--version\fR] | ||
13 | [\fB-L\fR] [\fB--license\fR] | ||
14 | [\fB-p\fR \fIport\fR] [\fB--port=\fR\fIport\fR] | ||
15 | |||
16 | .SH DESCRIPTION | ||
17 | |||
18 | iiid daemon is a minimalistic open source eye-fi management daemon | ||
19 | implementation. It is listening for incoming connections and accepts files from | ||
20 | eye-fi card, optionally invoking scripts to sort out files or send out | ||
21 | notifications. | ||
22 | |||
23 | .SH OPTIONS | ||
24 | |||
25 | .TP | ||
26 | \fB-p\fR \fIport\fR, \fB--port=\fR\fIport\fR | ||
27 | Set the port to listen to. You're not likely to ever need to change this, | ||
28 | perhaps for debugging purpose or if you want to proxy connections. | ||
29 | .TP | ||
30 | \fB-h\fR, \fB--help\fR, \fB--usage\fR | ||
31 | Display short usage instructions and exit. | ||
32 | .TP | ||
33 | \fB-V\fR, \fB--version\fR | ||
34 | Report version and exit. | ||
35 | .TP | ||
36 | \fB-L\fR, \fB--license\fR | ||
37 | Show licensing terms. | ||
38 | |||
39 | .SH EXIT STATUS | ||
40 | |||
41 | The daemon isn't supposed to exit at this point, but, like most executables, it returns zero in case of success, non-zero otherwise. | ||
42 | |||
43 | .SH FILES | ||
44 | |||
45 | .TP | ||
46 | @sysconfdir@/iii/\fBXXXXXXXXXXXX.conf/fR | ||
47 | Upon successfull connection, the daemon reads the configuration from this file, | ||
48 | where XXXXXXXXXXXX is the macaddress of your eyefi card. You can lookup the mac | ||
49 | address of your card in your Mac/Windows Settings.xml file. Be sure to remove | ||
50 | dashes from it. | ||
51 | |||
52 | .SH CONFIGURATION OPTIONS | ||
53 | |||
54 | .TP | ||
55 | \fBtargetdir\fR = "\fI/var/lib/iii/%s/\fR" | ||
56 | Sets the target directory for uploaded files. If the \fI%s\fR placeholder is | ||
57 | present in the string, it is replaced with card mac address. | ||
58 | .TP | ||
59 | \fBuploadkey\fR = "\fIxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\fR" | ||
60 | The upload key as seen in Mac/Windows Settings.xml file. | ||
61 | .TP | ||
62 | \fBon-start-session\fR = "\fIlogger iii-StartSession ${EYEFI_MACADDRESS} ${EYEFI_TRANSFER_MODE} ${EYEFI_TRANSFERMODETIMESTAMP}\fR" | ||
63 | The command to execute on \fBStartSession\fR request. The command receives some | ||
64 | information via environment variables. | ||
65 | .TP | ||
66 | \fBon-upload-photo\fR = "\fIlogger iii-UploadPhoto ${EYEFI_MACADDRESS} ${EYEFI_UPLOADED}\fR" | ||
67 | The command to execute after successfull photo upload. The information about | ||
68 | the card mac address and uploaded file name is passed via environment | ||
69 | variables. | ||
70 | .TP | ||
71 | \fBon-mark-last-photo-in-roll\fR = "\fIlogger iii-MarkLastPhotoInRoll ${EYEFI_MACADDRESS} ${EYEFI_MERGEDELTA}\fR" | ||
72 | The command to execute on \fBMarkLastPhotoInRoll\fR request. The information | ||
73 | about request is passed via environment variables. | ||
74 | .TP | ||
75 | \fBumask\fR = \fI002\fR | ||
76 | The file mode creation mask. | ||
77 | |||
78 | .SH AUTHOR | ||
79 | |||
80 | Written by Michael Krelin <hacker@klever.net> | ||
81 | |||
82 | .SH COPYRIGHT | ||
83 | |||
84 | Copyright (c) 2009 Klever Group (http://www.klever.net/) | ||
85 | |||
86 | Permission is hereby granted, free of charge, to any person obtaining a copy of | ||
87 | this software and associated documentation files (the "Software"), to deal in | ||
88 | the Software without restriction, including without limitation the rights to | ||
89 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies | ||
90 | of the Software, and to permit persons to whom the Software is furnished to do | ||
91 | so, subject to the following conditions: | ||
92 | |||
93 | The above copyright notice and this permission notice shall be included in all | ||
94 | copies or substantial portions of the Software. | ||
95 | |||
96 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
97 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
98 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
99 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
100 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
101 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
102 | SOFTWARE. | ||
103 | |||
104 | .SH BUGS | ||
105 | |||
106 | You tell me. Send reports to <iii-bugs@klever.net> | ||