Check-in [1fe5e639ec]
Overview
Comment:Added man page, updated to install mount.appfs, updated to obey "exec_destdir"
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 1fe5e639ec9a2b6da47221b640defd39bc3a75c5
User & Date: rkeene on 2014-12-29 04:41:13
Other Links: manifest | tags
Context
2014-12-29
04:41
AppFS 1.4 check-in: 3de2aab453 user: rkeene tags: trunk, 1.4
04:41
Added man page, updated to install mount.appfs, updated to obey "exec_destdir" check-in: 1fe5e639ec user: rkeene tags: trunk
03:50
Post-release version increment (a tad late) check-in: 94a220b715 user: rkeene tags: trunk
Changes

Modified Makefile from [7225a891c3] to [47c22e44ac].

1
2
3
4
5
6
7
8
9
10
11
12

13
14

15
16
17
18
19
20
21
APPFS_VERSION  = 1.3
CC             = gcc
PKG_CONFIG     = pkg-config
FUSE_CFLAGS    = $(shell $(PKG_CONFIG) --cflags fuse)
CFLAGS_DEBUG   = -Wall -g3 -ggdb3 -DDEBUG=1 -UNDEBUG -O0 -DAPPFS_EXIT_PATH=1
CFLAGS_RELEASE = -Wall -UDEBUG -DNDEBUG=1 -O3
CFLAGS         += $(FUSE_CFLAGS) $(TCL_CFLAGS) $(CFLAGS_RELEASE)
LDFLAGS        += $(TCL_LDFLAGS)
FUSE_LIBS      = $(shell $(PKG_CONFIG) --libs fuse)
LIBS           += $(FUSE_LIBS) $(TCL_LIBS)
PREFIX         = /usr/local
prefix         = $(PREFIX)

bindir         = $(prefix)/bin
sbindir        = $(prefix)/sbin


ifneq ($(TCLKIT_SDK_DIR),)
TCLCONFIG_SH_PATH = $(TCLKIT_SDK_DIR)/lib/tclConfig.sh
TCL_LDFLAGS = -Wl,-R,$(TCLKIT_SDK_DIR)/lib
export TCLKIT_SDK_DIR
else
TCLCONFIG_SH_PATH = $(shell echo 'puts [::tcl::pkgconfig get libdir,install]' | tclsh)/tclConfig.sh












>
|
|
>







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
APPFS_VERSION  = 1.3
CC             = gcc
PKG_CONFIG     = pkg-config
FUSE_CFLAGS    = $(shell $(PKG_CONFIG) --cflags fuse)
CFLAGS_DEBUG   = -Wall -g3 -ggdb3 -DDEBUG=1 -UNDEBUG -O0 -DAPPFS_EXIT_PATH=1
CFLAGS_RELEASE = -Wall -UDEBUG -DNDEBUG=1 -O3
CFLAGS         += $(FUSE_CFLAGS) $(TCL_CFLAGS) $(CFLAGS_RELEASE)
LDFLAGS        += $(TCL_LDFLAGS)
FUSE_LIBS      = $(shell $(PKG_CONFIG) --libs fuse)
LIBS           += $(FUSE_LIBS) $(TCL_LIBS)
PREFIX         = /usr/local
prefix         = $(PREFIX)
exec_prefix    = $(prefix)
bindir         = $(exec_prefix)/bin
sbindir        = $(exec_prefix)/sbin
mandir         = $(prefix)/share/man

ifneq ($(TCLKIT_SDK_DIR),)
TCLCONFIG_SH_PATH = $(TCLKIT_SDK_DIR)/lib/tclConfig.sh
TCL_LDFLAGS = -Wl,-R,$(TCLKIT_SDK_DIR)/lib
export TCLKIT_SDK_DIR
else
TCLCONFIG_SH_PATH = $(shell echo 'puts [::tcl::pkgconfig get libdir,install]' | tclsh)/tclConfig.sh
48
49
50
51
52
53
54
55
56
57

58

59
60

61
62
63
64
65
66
67
	openssl sha1 pki.tcl.new | grep 'aad7cca08cca00c8f7cd6eccc46e61da235753fc' >/dev/null
	mv pki.tcl.new pki.tcl

%.tcl.h: %.tcl
	sed 's@[\\"]@\\&@g;s@^@   "@;s@$$@\\n"@' $^ > $@.new
	mv $@.new $@

install: appfsd appfs-cache appfs-mkfs
	if [ ! -d '$(DESTDIR)$(sbindir)' ]; then mkdir -p '$(DESTDIR)$(sbindir)'; chmod 755 '$(DESTDIR)$(sbindir)'; fi
	if [ ! -d '$(DESTDIR)$(bindir)' ]; then mkdir -p '$(DESTDIR)$(bindir)'; chmod 755 '$(DESTDIR)$(bindir)'; fi

	cp appfsd '$(DESTDIR)$(sbindir)/'

	cp appfs-cache '$(DESTDIR)$(sbindir)/'
	cp appfs-mkfs '$(DESTDIR)$(bindir)/'


# Internal target to publish appfs application to AppFS
appfs-$(APPFS_VERSION).cpio: appfs-cache appfs-cert appfs-mkfs
	rm -rf __TMP__
	mkdir -p __TMP__/appfs/noarch-noarch/$(APPFS_VERSION)/bin
	cp appfs-cache appfs-cert appfs-mkfs __TMP__/appfs/noarch-noarch/$(APPFS_VERSION)/bin
	fossil cat -r packages build > __TMP__/appfs/noarch-noarch/$(APPFS_VERSION)/bin/appfs-build







|
|
|
>

>


>







50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
	openssl sha1 pki.tcl.new | grep 'aad7cca08cca00c8f7cd6eccc46e61da235753fc' >/dev/null
	mv pki.tcl.new pki.tcl

%.tcl.h: %.tcl
	sed 's@[\\"]@\\&@g;s@^@   "@;s@$$@\\n"@' $^ > $@.new
	mv $@.new $@

install: appfsd appfs-cache appfs-mkfs appfsd.8
	if [ ! -d '$(DESTDIR)$(sbindir)' ]; then mkdir -p '$(DESTDIR)$(sbindir)' && chmod 755 '$(DESTDIR)$(sbindir)'; fi
	if [ ! -d '$(DESTDIR)$(bindir)' ]; then mkdir -p '$(DESTDIR)$(bindir)' && chmod 755 '$(DESTDIR)$(bindir)'; fi
	if [ ! -d '$(DESTDIR)$(mandir)' ]; then mkdir -p '$(DESTDIR)$(mandir)' && chmod 755 '$(DESTDIR)$(mandir)'; fi
	cp appfsd '$(DESTDIR)$(sbindir)/'
	ln -s appfsd '$(DESTDIR)$(sbindir)/mount.appfs'
	cp appfs-cache '$(DESTDIR)$(sbindir)/'
	cp appfs-mkfs '$(DESTDIR)$(bindir)/'
	cp appfsd.8 '$(DESTDIR)$(mandir)/'

# Internal target to publish appfs application to AppFS
appfs-$(APPFS_VERSION).cpio: appfs-cache appfs-cert appfs-mkfs
	rm -rf __TMP__
	mkdir -p __TMP__/appfs/noarch-noarch/$(APPFS_VERSION)/bin
	cp appfs-cache appfs-cert appfs-mkfs __TMP__/appfs/noarch-noarch/$(APPFS_VERSION)/bin
	fossil cat -r packages build > __TMP__/appfs/noarch-noarch/$(APPFS_VERSION)/bin/appfs-build

Added appfsd.8 version [eeca8d4649].

























































































































































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
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
.TH APPFSD 8 "29 DEC 2014" "AppFS @@VERS@@"
.SH NAME
appfsd, mount.appfs - AppFS FUSE Daemon

.SH SYNOPSIS
.BI "appfsd [\-dfsh] [\-o " option "[," ... "]] " cachedir " " mount_point
.br
.BI "mount.appfs [\-dfsh] [\-o " option "[," ... "]] " cachedir " " mount_point

.SH DESCRIPTION
AppFS is a FUSE-based filesystem to present a manifest-based package format
from remote servers to the local system.  It works over HTTP (by default,
at least).  Remote sites are identified at the top-level of the mounted
directory and all sites are verified by PKI signature.

AppFS is started with the \fBappfsd\fR daemon, which may also be named
\fBmount.appfs\fR.

.SH OPTIONS
.TP 
.BR \-d
Enable FUSE debug mode. 

.TP
.B \-f
Run AppFS daemon in the foreground.

.TP
.B \-s
Enable single threaded mode.  This will significantly reduce performance and
responsiveness.

.TP
.B \-h
Request usage help.

.TP
.B "\-o nothreads"
Enable single threaded mode.  This will significantly reduce performance and
responsiveness.
This is the same as the "\fB-s\fR" option, provided for use in an
\fI/etc/fstab\fR option.

.TP
.B "\-o allow_other"
Allow other users to access this mountpoint (this is the default if the user
running \fBappfsd\fR is root).

.TP
.I cachedir
Path to a directory to store cache database and read configuration file from.
A suggested value for this for a system-wide \fBappfsd\fR is
\fI/var/cache/appfs\fR.

.TP
.I mount_point
Path to mount AppFS onto in the filesystem.  This should almost always be
\fI/opt/appfs\fR.

.SH FILES
.TP
.IB cachedir /config
Configuration file for this instance of AppFS.  This should be a valid
.BR Tcl (n)
script.  The configuration file can be modified at run-time and \fBappfsd\fR
reloaded by sending it a \fBSIGHUP\fR.

.TP
.IB cachedir /cache.db
SQLite3 database used for maintaining metadata for the cache directory.

.SH EXAMPLES
The most recommended method of running AppFS (directly):
.PP
.nf
.RS
# mkdir /opt/appfs
# appfsd /var/cache/appfs /opt/appfs
.RE
.fi

Create an \fI/etc/fstab\fR entry:
.PP
.nf
.RS
/var/cache/appfs /opt/appfs       appfs       defaults         0   0
.RE
.fi

.SH SEE ALSO
.BR Tcl (n) ,
.BR sqlite3 (1)

Modified build/makearch.info from [f8e1286c14] to [41bb149458].

25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#     @@VERS@@ becomes the utility version
#     @@DATE@@ becomes the current date
DOCS="README"
DOC_HDR="HEADER"

# These files follow the same convention as DOCS, but don't have the header
# tacked onto them.
UPDATE_VARS=""

# This script is executed immediately after copying the files
# to a temp directory to attempt to compile
BEFORE=""

# This script is executed after updating variables
UPDATED=""







|







25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#     @@VERS@@ becomes the utility version
#     @@DATE@@ becomes the current date
DOCS="README"
DOC_HDR="HEADER"

# These files follow the same convention as DOCS, but don't have the header
# tacked onto them.
UPDATE_VARS="appfsd.8"

# This script is executed immediately after copying the files
# to a temp directory to attempt to compile
BEFORE=""

# This script is executed after updating variables
UPDATED=""