bzr branch
http://bzr.recompile.se/loggerhead/mandos/trunk
67
by Teddy Hogeborn
* mandos-keygen: New program to generate new client keys on |
1 |
WARN=-O -Wall -Wformat=2 -Winit-self -Wmissing-include-dirs \ |
2 |
-Wswitch-default -Wswitch-enum -Wunused-parameter \ |
|
3 |
-Wstrict-aliasing=2 -Wextra -Wfloat-equal -Wundef -Wshadow \ |
|
4 |
-Wunsafe-loop-optimizations -Wpointer-arith \ |
|
5 |
-Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings \ |
|
6 |
-Wconversion -Wstrict-prototypes -Wold-style-definition \ |
|
7 |
-Wpacked -Wnested-externs -Wunreachable-code -Winline \ |
|
8 |
-Wvolatile-register-var
|
|
21
by Teddy Hogeborn
* Makefile (CFLAGS): Changed to use $(WARN), $(DEBUG), $(COVERAGE) and |
9 |
DEBUG=-ggdb3 |
28
by Teddy Hogeborn
* server.conf: New file. |
10 |
# For info about _FORTIFY_SOURCE, see
|
11 |
# <http://gcc.gnu.org/ml/gcc-patches/2004-09/msg02055.html>
|
|
12 |
FORTIFY=-D_FORTIFY_SOURCE=2 # -fstack-protector-all |
|
73
by Teddy Hogeborn
* Makefile (COVERAGE): Change back to "--coverage". |
13 |
#COVERAGE=--coverage
|
24
by Teddy Hogeborn
* Makefile (OPTIMIZE): New; optimize for size. |
14 |
OPTIMIZE=-Os |
21
by Teddy Hogeborn
* Makefile (CFLAGS): Changed to use $(WARN), $(DEBUG), $(COVERAGE) and |
15 |
LANGUAGE=-std=gnu99 |
74
by Teddy Hogeborn
* Makefile (PREFIX, CONFDIR): New. |
16 |
# PREFIX=/usr/local
|
17 |
PREFIX=/usr |
|
18 |
# CONFDIR=/usr/local/lib/mandos
|
|
19 |
CONFDIR=/etc/mandos |
|
20 |
# MANDIR=/usr/local/man
|
|
21 |
MANDIR=/usr/share/man |
|
21
by Teddy Hogeborn
* Makefile (CFLAGS): Changed to use $(WARN), $(DEBUG), $(COVERAGE) and |
22 |
|
23 |
# Do not change these two
|
|
28
by Teddy Hogeborn
* server.conf: New file. |
24 |
CFLAGS=$(WARN) $(DEBUG) $(FORTIFY) $(COVERAGE) $(OPTIMIZE) $(LANGUAGE) |
21
by Teddy Hogeborn
* Makefile (CFLAGS): Changed to use $(WARN), $(DEBUG), $(COVERAGE) and |
25 |
LDFLAGS=$(COVERAGE) |
16
by Teddy Hogeborn
* Makefile: Include targets for all binaries. |
26 |
|
62
by Teddy Hogeborn
* Makefile (DOCBOOKTOMAN): Do not generate AUTHORS section. |
27 |
DOCBOOKTOMAN=xsltproc --nonet \ |
28 |
--param man.charmap.use.subset 0 \ |
|
29 |
--param make.year.ranges 1 \ |
|
30 |
--param make.single.year.ranges 1 \ |
|
31 |
--param man.output.quietly 1 \ |
|
32 |
--param man.authors.section.enabled 0 |
|
24.1.25
by Björn Påhlsson
* clients.conf.xml: Renamed to "mandos-clients.conf.xml". |
33 |
|
67
by Teddy Hogeborn
* mandos-keygen: New program to generate new client keys on |
34 |
PLUGINS=plugins.d/password-prompt plugins.d/password-request |
74
by Teddy Hogeborn
* Makefile (PREFIX, CONFDIR): New. |
35 |
PROGS=plugin-runner $(PLUGINS) |
36 |
DOCS=mandos.8 plugin-runner.8mandos mandos-keygen.8 \ |
|
67
by Teddy Hogeborn
* mandos-keygen: New program to generate new client keys on |
37 |
plugins.d/password-request.8mandos \ |
38 |
plugins.d/password-prompt.8mandos mandos.conf.5 \ |
|
74
by Teddy Hogeborn
* Makefile (PREFIX, CONFDIR): New. |
39 |
mandos-clients.conf.5
|
16
by Teddy Hogeborn
* Makefile: Include targets for all binaries. |
40 |
|
41 |
objects=$(shell for p in $(PROGS); do echo $${p}.o; done) |
|
42 |
||
67
by Teddy Hogeborn
* mandos-keygen: New program to generate new client keys on |
43 |
all: $(PROGS) |
44 |
||
45 |
doc: $(DOCS) |
|
24.1.25
by Björn Påhlsson
* clients.conf.xml: Renamed to "mandos-clients.conf.xml". |
46 |
|
47 |
%.5: %.xml |
|
67
by Teddy Hogeborn
* mandos-keygen: New program to generate new client keys on |
48 |
cd $(dir $^); $(DOCBOOKTOMAN) $(notdir $^) |
24.1.25
by Björn Påhlsson
* clients.conf.xml: Renamed to "mandos-clients.conf.xml". |
49 |
|
50 |
%.8: %.xml |
|
67
by Teddy Hogeborn
* mandos-keygen: New program to generate new client keys on |
51 |
cd $(dir $^); $(DOCBOOKTOMAN) $(notdir $^) |
24.1.25
by Björn Påhlsson
* clients.conf.xml: Renamed to "mandos-clients.conf.xml". |
52 |
|
53 |
%.8mandos: %.xml |
|
67
by Teddy Hogeborn
* mandos-keygen: New program to generate new client keys on |
54 |
cd $(dir $^); $(DOCBOOKTOMAN) $(notdir $^) |
16
by Teddy Hogeborn
* Makefile: Include targets for all binaries. |
55 |
|
74
by Teddy Hogeborn
* Makefile (PREFIX, CONFDIR): New. |
56 |
plugin-runner: plugin-runner.o |
16
by Teddy Hogeborn
* Makefile: Include targets for all binaries. |
57 |
$(LINK.o) -lgnutls $(COMMON) $^ $(LOADLIBES) $(LDLIBS) -o $@ |
58 |
||
47
by Teddy Hogeborn
* plugbasedclient.c: Renamed to "mandos-client.c". All users changed. |
59 |
plugins.d/password-request: plugins.d/password-request.o |
67
by Teddy Hogeborn
* mandos-keygen: New program to generate new client keys on |
60 |
$(LINK.o) -lgnutls -lavahi-core -lgpgme $(COMMON) $^ \ |
61 |
$(LOADLIBES) $(LDLIBS) -o $@ |
|
16
by Teddy Hogeborn
* Makefile: Include targets for all binaries. |
62 |
|
47
by Teddy Hogeborn
* plugbasedclient.c: Renamed to "mandos-client.c". All users changed. |
63 |
plugins.d/password-prompt: plugins.d/password-prompt.o |
16
by Teddy Hogeborn
* Makefile: Include targets for all binaries. |
64 |
$(LINK.o) $(COMMON) $^ $(LOADLIBES) $(LDLIBS) -o $@ |
65 |
||
67
by Teddy Hogeborn
* mandos-keygen: New program to generate new client keys on |
66 |
.PHONY : all clean distclean run-client run-server install \ |
67 |
install-server install-client uninstall uninstall-server \ |
|
68 |
uninstall-client purge purge-server purge-client |
|
47
by Teddy Hogeborn
* plugbasedclient.c: Renamed to "mandos-client.c". All users changed. |
69 |
|
1
by Björn Påhlsson
First working version with: IPv6, GnuTLS, X.509 certificates, DN |
70 |
clean: |
24.1.25
by Björn Påhlsson
* clients.conf.xml: Renamed to "mandos-clients.conf.xml". |
71 |
-rm --force $(PROGS) $(objects) $(DOCS) core |
47
by Teddy Hogeborn
* plugbasedclient.c: Renamed to "mandos-client.c". All users changed. |
72 |
|
73 |
distclean: clean |
|
74 |
mostlyclean: clean |
|
75 |
maintainer-clean: clean |
|
67
by Teddy Hogeborn
* mandos-keygen: New program to generate new client keys on |
76 |
-rm --force --recursive keydir |
47
by Teddy Hogeborn
* plugbasedclient.c: Renamed to "mandos-client.c". All users changed. |
77 |
|
67
by Teddy Hogeborn
* mandos-keygen: New program to generate new client keys on |
78 |
check: |
47
by Teddy Hogeborn
* plugbasedclient.c: Renamed to "mandos-client.c". All users changed. |
79 |
./mandos --check |
80 |
||
81 |
run-client: all |
|
67
by Teddy Hogeborn
* mandos-keygen: New program to generate new client keys on |
82 |
-mkdir keydir |
83 |
-./mandos-keygen --dir keydir |
|
74
by Teddy Hogeborn
* Makefile (PREFIX, CONFDIR): New. |
84 |
./plugin-runner --plugin-dir=plugins.d \ |
67
by Teddy Hogeborn
* mandos-keygen: New program to generate new client keys on |
85 |
--options-for=password-request:--keydir=keydir |
47
by Teddy Hogeborn
* plugbasedclient.c: Renamed to "mandos-client.c". All users changed. |
86 |
|
67
by Teddy Hogeborn
* mandos-keygen: New program to generate new client keys on |
87 |
run-server: |
47
by Teddy Hogeborn
* plugbasedclient.c: Renamed to "mandos-client.c". All users changed. |
88 |
./mandos --debug --configdir=. |
67
by Teddy Hogeborn
* mandos-keygen: New program to generate new client keys on |
89 |
|
90 |
install: install-server install-client |
|
91 |
||
92 |
install-server: doc |
|
74
by Teddy Hogeborn
* Makefile (PREFIX, CONFDIR): New. |
93 |
mkdir --mode=0755 --parents $(CONFDIR) $(MANDIR)/man5 \ |
94 |
$(MANDIR)/man8 |
|
95 |
install --mode=0755 mandos $(PREFIX)/sbin/mandos |
|
96 |
install --mode=0644 --target-directory=$(CONFDIR) mandos.conf |
|
97 |
install --mode=0640 --target-directory=$(CONFDIR) \ |
|
67
by Teddy Hogeborn
* mandos-keygen: New program to generate new client keys on |
98 |
clients.conf
|
99 |
gzip --best --to-stdout mandos.8 \ |
|
74
by Teddy Hogeborn
* Makefile (PREFIX, CONFDIR): New. |
100 |
> $(MANDIR)/man8/mandos.8.gz |
67
by Teddy Hogeborn
* mandos-keygen: New program to generate new client keys on |
101 |
gzip --best --to-stdout mandos.conf.5 \ |
74
by Teddy Hogeborn
* Makefile (PREFIX, CONFDIR): New. |
102 |
> $(MANDIR)/man5/mandos.conf.5.gz |
67
by Teddy Hogeborn
* mandos-keygen: New program to generate new client keys on |
103 |
gzip --best --to-stdout mandos-clients.conf.5 \ |
74
by Teddy Hogeborn
* Makefile (PREFIX, CONFDIR): New. |
104 |
> $(MANDIR)/man5/mandos-clients.conf.5.gz |
67
by Teddy Hogeborn
* mandos-keygen: New program to generate new client keys on |
105 |
|
106 |
install-client: all doc /usr/share/initramfs-tools/hooks/. |
|
74
by Teddy Hogeborn
* Makefile (PREFIX, CONFDIR): New. |
107 |
mkdir --mode=0755 --parents $(PREFIX)/lib/mandos $(CONFDIR) \ |
108 |
$(MANDIR)/man8 |
|
109 |
-mkdir --mode=0700 $(PREFIX)/lib/mandos/plugins.d |
|
110 |
chmod u=rwx,g=,o= $(PREFIX)/lib/mandos/plugins.d |
|
111 |
install --mode=0755 --target-directory=$(PREFIX)/lib/mandos \ |
|
112 |
plugin-runner
|
|
113 |
install --mode=0755 --target-directory=$(PREFIX)/sbin \ |
|
114 |
mandos-keygen
|
|
67
by Teddy Hogeborn
* mandos-keygen: New program to generate new client keys on |
115 |
install --mode=0755 \ |
74
by Teddy Hogeborn
* Makefile (PREFIX, CONFDIR): New. |
116 |
--target-directory=$(PREFIX)/lib/mandos/plugins.d \ |
67
by Teddy Hogeborn
* mandos-keygen: New program to generate new client keys on |
117 |
plugins.d/password-prompt
|
118 |
install --mode=4755 \ |
|
74
by Teddy Hogeborn
* Makefile (PREFIX, CONFDIR): New. |
119 |
--target-directory=$(PREFIX)/lib/mandos/plugins.d \ |
67
by Teddy Hogeborn
* mandos-keygen: New program to generate new client keys on |
120 |
plugins.d/password-request
|
121 |
install initramfs-tools-hook \ |
|
122 |
/usr/share/initramfs-tools/hooks/mandos
|
|
123 |
install initramfs-tools-hook-conf \ |
|
124 |
/usr/share/initramfs-tools/conf-hooks.d/mandos
|
|
74
by Teddy Hogeborn
* Makefile (PREFIX, CONFDIR): New. |
125 |
install initramfs-tools-script \ |
126 |
/usr/share/initramfs-tools/scripts/local-top/mandos
|
|
67
by Teddy Hogeborn
* mandos-keygen: New program to generate new client keys on |
127 |
gzip --best --to-stdout mandos-keygen.8 \ |
74
by Teddy Hogeborn
* Makefile (PREFIX, CONFDIR): New. |
128 |
> $(MANDIR)/man8/mandos-keygen.8.gz |
129 |
gzip --best --to-stdout plugin-runner.8mandos \ |
|
130 |
> $(MANDIR)/man8/plugin-runner.8mandos.gz |
|
67
by Teddy Hogeborn
* mandos-keygen: New program to generate new client keys on |
131 |
gzip --best --to-stdout plugins.d/password-prompt.8mandos \ |
74
by Teddy Hogeborn
* Makefile (PREFIX, CONFDIR): New. |
132 |
> $(MANDIR)/man8/password-prompt.8mandos.gz |
67
by Teddy Hogeborn
* mandos-keygen: New program to generate new client keys on |
133 |
gzip --best --to-stdout plugins.d/password-request.8mandos \ |
74
by Teddy Hogeborn
* Makefile (PREFIX, CONFDIR): New. |
134 |
> $(MANDIR)/man8/password-request.8mandos.gz |
135 |
-$(PREFIX)/sbin/mandos-keygen |
|
67
by Teddy Hogeborn
* mandos-keygen: New program to generate new client keys on |
136 |
update-initramfs -k all -u |
137 |
||
138 |
uninstall: uninstall-server uninstall-client |
|
139 |
||
74
by Teddy Hogeborn
* Makefile (PREFIX, CONFDIR): New. |
140 |
uninstall-server: $(PREFIX)/sbin/mandos |
141 |
-rm --force $(PREFIX)/sbin/mandos \ |
|
142 |
$(MANDIR)/man8/mandos.8.gz \ |
|
143 |
$(MANDIR)/man5/mandos.conf.5.gz \ |
|
144 |
$(MANDIR)/man5/mandos-clients.conf.5.gz |
|
145 |
-rmdir $(CONFDIR) |
|
67
by Teddy Hogeborn
* mandos-keygen: New program to generate new client keys on |
146 |
|
147 |
uninstall-client: |
|
74
by Teddy Hogeborn
* Makefile (PREFIX, CONFDIR): New. |
148 |
# Refuse to uninstall client if /etc/crypttab is explicitly configured
|
149 |
# to use it.
|
|
150 |
! grep --regexp='^ *[^ #].*keyscript=[^,=]*/mandos/' \ |
|
72
by Teddy Hogeborn
* Makefile (uninstall-client): Refuse to uninstall if it is in use. |
151 |
/etc/crypttab
|
74
by Teddy Hogeborn
* Makefile (PREFIX, CONFDIR): New. |
152 |
-rm --force $(PREFIX)/sbin/mandos-keygen \ |
153 |
$(PREFIX)/lib/mandos/plugin-runner \ |
|
154 |
$(PREFIX)/lib/mandos/plugins.d/password-prompt \ |
|
155 |
$(PREFIX)/lib/mandos/plugins.d/password-request \ |
|
67
by Teddy Hogeborn
* mandos-keygen: New program to generate new client keys on |
156 |
/usr/share/initramfs-tools/hooks/mandos \ |
157 |
/usr/share/initramfs-tools/conf-hooks.d/mandos \ |
|
74
by Teddy Hogeborn
* Makefile (PREFIX, CONFDIR): New. |
158 |
$(MANDIR)/man8/plugin-runner.8mandos.gz \ |
159 |
$(MANDIR)/man8/mandos-keygen.8.gz \ |
|
160 |
$(MANDIR)/man8/password-prompt.8mandos.gz \ |
|
161 |
$(MANDIR)/man8/password-request.8mandos.gz |
|
162 |
-rmdir $(PREFIX)/lib/mandos/plugins.d $(CONFDIR)/plugins.d \ |
|
163 |
$(PREFIX)/lib/mandos $(CONFDIR) |
|
164 |
update-initramfs -k all -u |
|
67
by Teddy Hogeborn
* mandos-keygen: New program to generate new client keys on |
165 |
|
166 |
purge: purge-server purge-client |
|
167 |
||
168 |
purge-server: uninstall-server |
|
74
by Teddy Hogeborn
* Makefile (PREFIX, CONFDIR): New. |
169 |
-rm --force $(CONFDIR)/mandos.conf $(CONFDIR)/clients.conf |
170 |
-rmdir $(CONFDIR) |
|
67
by Teddy Hogeborn
* mandos-keygen: New program to generate new client keys on |
171 |
|
172 |
purge-client: uninstall-client |
|
74
by Teddy Hogeborn
* Makefile (PREFIX, CONFDIR): New. |
173 |
-rm --force $(CONFDIR)/seckey.txt $(CONFDIR)/pubkey.txt |
174 |
-rmdir $(CONFDIR) $(CONFDIR)/plugins.d |