/mandos/trunk

To get this branch, use:
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 \
304 by Teddy Hogeborn
Four new interrelated features:
3
	-Wstrict-aliasing=1 -Wextra -Wfloat-equal -Wundef -Wshadow \
67 by Teddy Hogeborn
* mandos-keygen: New program to generate new client keys on
4
	-Wunsafe-loop-optimizations -Wpointer-arith \
5
	-Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings \
6
	-Wconversion -Wstrict-prototypes -Wold-style-definition \
177 by Teddy Hogeborn
* Makefile (CONFDIR): Changed to be the same ("/etc/mandos") in both a
7
	-Wpacked -Wnested-externs -Winline -Wvolatile-register-var
505.1.4 by Teddy Hogeborn
Removed superflous white space.
8
#	-Wunreachable-code
177 by Teddy Hogeborn
* Makefile (CONFDIR): Changed to be the same ("/etc/mandos") in both a
9
#DEBUG=-ggdb3
28 by Teddy Hogeborn
* server.conf: New file.
10
# For info about _FORTIFY_SOURCE, see
389 by Teddy Hogeborn
* plugins.d/splashy.c: Use exit codes from <sysexits.h>.
11
# <http://www.kernel.org/doc/man-pages/online/pages/man7/feature_test_macros.7.html>
12
# and <http://gcc.gnu.org/ml/gcc-patches/2004-09/msg02055.html>.
237.2.31 by Teddy Hogeborn
* Makefile: Don't use PIE if BROKEN_PIE is set.
13
FORTIFY=-D_FORTIFY_SOURCE=2 -fstack-protector-all -fPIC
14
LINK_FORTIFY_LD=-z relro -z now
15
LINK_FORTIFY=
399 by Teddy Hogeborn
* Makefile (BROKEN_PIE): Add comment.
16
17
# If BROKEN_PIE is set, do not build with -pie
237.2.31 by Teddy Hogeborn
* Makefile: Don't use PIE if BROKEN_PIE is set.
18
ifndef BROKEN_PIE
19
FORTIFY += -fPIE
20
LINK_FORTIFY += -pie
21
endif
24.1.90 by Björn Påhlsson
fixed two bugs:
22
#COVERAGE=--coverage
24.1.51 by Björn Påhlsson
Added configuration files support for mandos-client
23
OPTIMIZE=-Os
21 by Teddy Hogeborn
* Makefile (CFLAGS): Changed to use $(WARN), $(DEBUG), $(COVERAGE) and
24
LANGUAGE=-std=gnu99
217 by Teddy Hogeborn
* .bzrignore: Added "man" directory (created by "make install-html").
25
htmldir=man
237.4.39 by Teddy Hogeborn
* Makefile (version): Changed to "1.3.2".
26
version=1.6.3
217 by Teddy Hogeborn
* .bzrignore: Added "man" directory (created by "make install-html").
27
SED=sed
175 by Teddy Hogeborn
* Makefile: Clearly separate "local" install variable settings from
28
518.2.2 by Teddy Hogeborn
Directory with persistent state can now be changed with the "statedir"
29
USER=$(firstword $(subst :, ,$(shell getent passwd _mandos || getent passwd nobody || echo 65534)))
30
GROUP=$(firstword $(subst :, ,$(shell getent group _mandos || getent group nobody || echo 65534)))
31
175 by Teddy Hogeborn
* Makefile: Clearly separate "local" install variable settings from
32
## Use these settings for a traditional /usr/local install
33
# PREFIX=$(DESTDIR)/usr/local
177 by Teddy Hogeborn
* Makefile (CONFDIR): Changed to be the same ("/etc/mandos") in both a
34
# CONFDIR=$(DESTDIR)/etc/mandos
35
# KEYDIR=$(DESTDIR)/etc/mandos/keys
175 by Teddy Hogeborn
* Makefile: Clearly separate "local" install variable settings from
36
# MANDIR=$(PREFIX)/man
177 by Teddy Hogeborn
* Makefile (CONFDIR): Changed to be the same ("/etc/mandos") in both a
37
# INITRAMFSTOOLS=$(DESTDIR)/etc/initramfs-tools
518.2.2 by Teddy Hogeborn
Directory with persistent state can now be changed with the "statedir"
38
# STATEDIR=$(DESTDIR)/var/lib/mandos
640 by Teddy Hogeborn
Use architecture libdir.
39
# LIBDIR=$(PREFIX)/lib
177 by Teddy Hogeborn
* Makefile (CONFDIR): Changed to be the same ("/etc/mandos") in both a
40
##
175 by Teddy Hogeborn
* Makefile: Clearly separate "local" install variable settings from
41
177 by Teddy Hogeborn
* Makefile (CONFDIR): Changed to be the same ("/etc/mandos") in both a
42
## These settings are for a package-type install
96 by Teddy Hogeborn
* Makefile (PREFIX, CONFDIR, MANDIR): Use $(DESTDIR).
43
PREFIX=$(DESTDIR)/usr
44
CONFDIR=$(DESTDIR)/etc/mandos
160 by Teddy Hogeborn
* Makefile: Changed to use symbolic instead of octal modes throughout.
45
KEYDIR=$(DESTDIR)/etc/keys/mandos
175 by Teddy Hogeborn
* Makefile: Clearly separate "local" install variable settings from
46
MANDIR=$(PREFIX)/share/man
47
INITRAMFSTOOLS=$(DESTDIR)/usr/share/initramfs-tools
518.2.2 by Teddy Hogeborn
Directory with persistent state can now be changed with the "statedir"
48
STATEDIR=$(DESTDIR)/var/lib/mandos
640 by Teddy Hogeborn
Use architecture libdir.
49
LIBDIR=$(shell \
50
	for d in \
51
	"/usr/lib/`dpkg-architecture -qDEB_HOST_MULTIARCH 2>/dev/null`" \
52
	"`rpm --eval='%{_libdir}' 2>/dev/null`" /usr/lib; do \
53
		if [ -d "$$d" -a "$$d" = "$${d%/}" ]; then \
54
			echo "$(DESTDIR)$$d"; \
55
			break; \
56
		fi; \
57
	done)
177 by Teddy Hogeborn
* Makefile (CONFDIR): Changed to be the same ("/etc/mandos") in both a
58
##
21 by Teddy Hogeborn
* Makefile (CFLAGS): Changed to use $(WARN), $(DEBUG), $(COVERAGE) and
59
638 by Teddy Hogeborn
Add systemd service support for Mandos server.
60
SYSTEMD=$(DESTDIR)$(shell pkg-config systemd --variable=systemdsystemunitdir)
61
345 by Teddy Hogeborn
* Makefile (GNUTLS_CFLAGS, GNUTLS_LIBS): Use "pkg-config" instead of
62
GNUTLS_CFLAGS=$(shell pkg-config --cflags-only-I gnutls)
63
GNUTLS_LIBS=$(shell pkg-config --libs gnutls)
81 by Teddy Hogeborn
* Makefile (GNUTLS_CFLAGS, GNUTLS_LIBS, AVAHI_CFLAGS, AVAHI_LIBS,
64
AVAHI_CFLAGS=$(shell pkg-config --cflags-only-I avahi-core)
65
AVAHI_LIBS=$(shell pkg-config --libs avahi-core)
317 by Teddy Hogeborn
Use "getconf" to get correct LFS compile and link flags.
66
GPGME_CFLAGS=$(shell gpgme-config --cflags; getconf LFS_CFLAGS)
67
GPGME_LIBS=$(shell gpgme-config --libs; getconf LFS_LIBS; \
68
	getconf LFS_LDFLAGS)
81 by Teddy Hogeborn
* Makefile (GNUTLS_CFLAGS, GNUTLS_LIBS, AVAHI_CFLAGS, AVAHI_LIBS,
69
21 by Teddy Hogeborn
* Makefile (CFLAGS): Changed to use $(WARN), $(DEBUG), $(COVERAGE) and
70
# Do not change these two
626 by Teddy Hogeborn
* Makefile (CFLAGS, LDFLAGS): Keep default flags from environment.
71
CFLAGS+=$(WARN) $(DEBUG) $(FORTIFY) $(COVERAGE) $(OPTIMIZE) \
217 by Teddy Hogeborn
* .bzrignore: Added "man" directory (created by "make install-html").
72
	$(LANGUAGE) $(GNUTLS_CFLAGS) $(AVAHI_CFLAGS) $(GPGME_CFLAGS) \
73
	-DVERSION='"$(version)"'
626 by Teddy Hogeborn
* Makefile (CFLAGS, LDFLAGS): Keep default flags from environment.
74
LDFLAGS+=-Xlinker --as-needed $(COVERAGE) $(LINK_FORTIFY) $(foreach flag,$(LINK_FORTIFY_LD),-Xlinker $(flag))
16 by Teddy Hogeborn
* Makefile: Include targets for all binaries.
75
175 by Teddy Hogeborn
* Makefile: Clearly separate "local" install variable settings from
76
# Commands to format a DocBook <refentry> document into a manual page
398 by Teddy Hogeborn
* Makefile (DOCBOOKTOMAN, DOCBOOKTOHTML, common.ent, mandos,
77
DOCBOOKTOMAN=$(strip cd $(dir $<); xsltproc --nonet --xinclude \
62 by Teddy Hogeborn
* Makefile (DOCBOOKTOMAN): Do not generate AUTHORS section.
78
	--param man.charmap.use.subset		0 \
79
	--param make.year.ranges		1 \
80
	--param make.single.year.ranges		1 \
81
	--param man.output.quietly		1 \
84 by Teddy Hogeborn
* Makefile (DOCBOOKTOMAN): Use the local manpages/docbook.xsl file, do
82
	--param man.authors.section.enabled	0 \
595 by Teddy Hogeborn
* Makefile (DOCBOOKTOMAN): Don't show errors from "locale".
83
	/usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl \
91 by Teddy Hogeborn
* Makefile (DOCBOOKTOMAN): Include all DocBook-to-manpage-related
84
	$(notdir $<); \
505.1.14 by Teddy Hogeborn
* Makefile (DOCBOOKTOMAN): Also check manual pages for warnings.
85
	$(MANPOST) $(notdir $@);\
595 by Teddy Hogeborn
* Makefile (DOCBOOKTOMAN): Don't show errors from "locale".
86
	if locale --all 2>/dev/null | grep --regexp='^en_US\.utf8$$' \
87
	&& type man 2>/dev/null; then LANG=en_US.UTF-8 MANWIDTH=80 \
88
	man --warnings --encoding=UTF-8 --local-file $(notdir $@); \
89
	fi >/dev/null)
175 by Teddy Hogeborn
* Makefile: Clearly separate "local" install variable settings from
90
# DocBook-to-man post-processing to fix a '\n' escape bug
217 by Teddy Hogeborn
* .bzrignore: Added "man" directory (created by "make install-html").
91
MANPOST=$(SED) --in-place --expression='s,\\\\en,\\en,g;s,\\n,\\en,g'
24.1.25 by Björn Påhlsson
* clients.conf.xml: Renamed to "mandos-clients.conf.xml".
92
398 by Teddy Hogeborn
* Makefile (DOCBOOKTOMAN, DOCBOOKTOHTML, common.ent, mandos,
93
DOCBOOKTOHTML=$(strip xsltproc --nonet --xinclude \
216 by Teddy Hogeborn
* Makefile: Add HTML rules for manual pages.
94
	--param make.year.ranges		1 \
95
	--param make.single.year.ranges		1 \
96
	--param man.output.quietly		1 \
97
	--param man.authors.section.enabled	0 \
98
	--param citerefentry.link		1 \
99
	--output $@ \
100
	/usr/share/xml/docbook/stylesheet/nwalsh/xhtml/docbook.xsl \
398 by Teddy Hogeborn
* Makefile (DOCBOOKTOMAN, DOCBOOKTOHTML, common.ent, mandos,
101
	$<; $(HTMLPOST) $@)
216 by Teddy Hogeborn
* Makefile: Add HTML rules for manual pages.
102
# Fix citerefentry links
235 by Teddy Hogeborn
* INSTALL: Fixed typo.
103
HTMLPOST=$(SED) --in-place \
104
	--expression='s/\(<a class="citerefentry" href="\)\("><span class="citerefentry"><span class="refentrytitle">\)\([^<]*\)\(<\/span>(\)\([^)]*\)\()<\/span><\/a>\)/\1\3.\5\2\3\4\5\6/g'
216 by Teddy Hogeborn
* Makefile: Add HTML rules for manual pages.
105
205 by Teddy Hogeborn
* Makefile (PLUGINS, uninstall-client,
106
PLUGINS=plugins.d/password-prompt plugins.d/mandos-client \
425 by Teddy Hogeborn
* Makefile: Compile and install new "plymouth" plugin.
107
	plugins.d/usplash plugins.d/splashy plugins.d/askpass-fifo \
108
	plugins.d/plymouth
217 by Teddy Hogeborn
* .bzrignore: Added "man" directory (created by "make install-html").
109
CPROGS=plugin-runner $(PLUGINS)
430 by teddy at bsnet
* mandos-monitor.xml: New.
110
PROGS=mandos mandos-keygen mandos-ctl mandos-monitor $(CPROGS)
435 by teddy at bsnet
* Makefile (DOCS): Added "plymouth.8mandos".
111
DOCS=mandos.8 mandos-keygen.8 mandos-monitor.8 mandos-ctl.8 \
112
	mandos.conf.5 mandos-clients.conf.5 plugin-runner.8mandos \
171 by Teddy Hogeborn
Renamed "password-request" to "mandos-client".
113
	plugins.d/mandos-client.8mandos \
435 by teddy at bsnet
* Makefile (DOCS): Added "plymouth.8mandos".
114
	plugins.d/password-prompt.8mandos plugins.d/usplash.8mandos \
115
	plugins.d/splashy.8mandos plugins.d/askpass-fifo.8mandos \
493 by Teddy Hogeborn
* Makefile (DOCS): Added "intro.8mandos".
116
	plugins.d/plymouth.8mandos intro.8mandos
16 by Teddy Hogeborn
* Makefile: Include targets for all binaries.
117
216 by Teddy Hogeborn
* Makefile: Add HTML rules for manual pages.
118
htmldocs=$(addsuffix .xhtml,$(DOCS))
119
217 by Teddy Hogeborn
* .bzrignore: Added "man" directory (created by "make install-html").
120
objects=$(addsuffix .o,$(CPROGS))
16 by Teddy Hogeborn
* Makefile: Include targets for all binaries.
121
233 by Teddy Hogeborn
* Makefile (all): Also depend on "mandos.lsm".
122
all: $(PROGS) mandos.lsm
67 by Teddy Hogeborn
* mandos-keygen: New program to generate new client keys on
123
124
doc: $(DOCS)
24.1.25 by Björn Påhlsson
* clients.conf.xml: Renamed to "mandos-clients.conf.xml".
125
216 by Teddy Hogeborn
* Makefile: Add HTML rules for manual pages.
126
html: $(htmldocs)
127
217 by Teddy Hogeborn
* .bzrignore: Added "man" directory (created by "make install-html").
128
%.5: %.xml common.ent legalnotice.xml
129
	$(DOCBOOKTOMAN)
130
%.5.xhtml: %.xml common.ent legalnotice.xml
131
	$(DOCBOOKTOHTML)
132
133
%.8: %.xml common.ent legalnotice.xml
134
	$(DOCBOOKTOMAN)
135
%.8.xhtml: %.xml common.ent legalnotice.xml
136
	$(DOCBOOKTOHTML)
137
138
%.8mandos: %.xml common.ent legalnotice.xml
139
	$(DOCBOOKTOMAN)
140
%.8mandos.xhtml: %.xml common.ent legalnotice.xml
141
	$(DOCBOOKTOHTML)
142
493 by Teddy Hogeborn
* Makefile (DOCS): Added "intro.8mandos".
143
intro.8mandos: intro.xml common.ent legalnotice.xml
144
	$(DOCBOOKTOMAN)
145
intro.8mandos.xhtml: intro.xml common.ent legalnotice.xml
146
	$(DOCBOOKTOHTML)
147
217 by Teddy Hogeborn
* .bzrignore: Added "man" directory (created by "make install-html").
148
mandos.8: mandos.xml common.ent mandos-options.xml overview.xml \
149
		legalnotice.xml
150
	$(DOCBOOKTOMAN)
151
mandos.8.xhtml: mandos.xml common.ent mandos-options.xml \
152
		overview.xml legalnotice.xml
153
	$(DOCBOOKTOHTML)
154
155
mandos-keygen.8: mandos-keygen.xml common.ent overview.xml \
156
		legalnotice.xml
157
	$(DOCBOOKTOMAN)
158
mandos-keygen.8.xhtml: mandos-keygen.xml common.ent overview.xml \
159
		 legalnotice.xml
160
	$(DOCBOOKTOHTML)
161
430 by teddy at bsnet
* mandos-monitor.xml: New.
162
mandos-monitor.8: mandos-monitor.xml common.ent overview.xml \
163
		legalnotice.xml
164
	$(DOCBOOKTOMAN)
165
mandos-monitor.8.xhtml: mandos-monitor.xml common.ent overview.xml \
166
		 legalnotice.xml
167
	$(DOCBOOKTOHTML)
168
434 by teddy at bsnet
* mandos-ctl.xml: New.
169
mandos-ctl.8: mandos-ctl.xml common.ent overview.xml \
170
		legalnotice.xml
171
	$(DOCBOOKTOMAN)
172
mandos-ctl.8.xhtml: mandos-ctl.xml common.ent overview.xml \
173
		 legalnotice.xml
174
	$(DOCBOOKTOHTML)
175
217 by Teddy Hogeborn
* .bzrignore: Added "man" directory (created by "make install-html").
176
mandos.conf.5: mandos.conf.xml common.ent mandos-options.xml \
177
		legalnotice.xml
178
	$(DOCBOOKTOMAN)
179
mandos.conf.5.xhtml: mandos.conf.xml common.ent mandos-options.xml \
180
		legalnotice.xml
181
	$(DOCBOOKTOHTML)
182
183
plugin-runner.8mandos: plugin-runner.xml common.ent overview.xml \
184
		legalnotice.xml
185
	$(DOCBOOKTOMAN)
186
plugin-runner.8mandos.xhtml: plugin-runner.xml common.ent \
187
		overview.xml legalnotice.xml
216 by Teddy Hogeborn
* Makefile: Add HTML rules for manual pages.
188
	$(DOCBOOKTOHTML)
143 by Teddy Hogeborn
* Makefile (mandos.8): Add dependency on "overview.xml" and
189
171 by Teddy Hogeborn
Renamed "password-request" to "mandos-client".
190
plugins.d/mandos-client.8mandos: plugins.d/mandos-client.xml \
217 by Teddy Hogeborn
* .bzrignore: Added "man" directory (created by "make install-html").
191
					common.ent \
143 by Teddy Hogeborn
* Makefile (mandos.8): Add dependency on "overview.xml" and
192
					mandos-options.xml \
193
					overview.xml legalnotice.xml
91 by Teddy Hogeborn
* Makefile (DOCBOOKTOMAN): Include all DocBook-to-manpage-related
194
	$(DOCBOOKTOMAN)
216 by Teddy Hogeborn
* Makefile: Add HTML rules for manual pages.
195
plugins.d/mandos-client.8mandos.xhtml: plugins.d/mandos-client.xml \
217 by Teddy Hogeborn
* .bzrignore: Added "man" directory (created by "make install-html").
196
					common.ent \
216 by Teddy Hogeborn
* Makefile: Add HTML rules for manual pages.
197
					mandos-options.xml \
198
					overview.xml legalnotice.xml
199
	$(DOCBOOKTOHTML)
16 by Teddy Hogeborn
* Makefile: Include targets for all binaries.
200
217 by Teddy Hogeborn
* .bzrignore: Added "man" directory (created by "make install-html").
201
# Update all these files with version number $(version)
202
common.ent: Makefile
398 by Teddy Hogeborn
* Makefile (DOCBOOKTOMAN, DOCBOOKTOHTML, common.ent, mandos,
203
	$(strip $(SED) --in-place \
318 by Teddy Hogeborn
* Makefile (common.ent): Update "version" entity correctly.
204
		--expression='s/^\(<!ENTITY version "\)[^"]*">$$/\1$(version)">/' \
398 by Teddy Hogeborn
* Makefile (DOCBOOKTOMAN, DOCBOOKTOHTML, common.ent, mandos,
205
		$@)
217 by Teddy Hogeborn
* .bzrignore: Added "man" directory (created by "make install-html").
206
207
mandos: Makefile
398 by Teddy Hogeborn
* Makefile (DOCBOOKTOMAN, DOCBOOKTOHTML, common.ent, mandos,
208
	$(strip $(SED) --in-place \
235 by Teddy Hogeborn
* INSTALL: Fixed typo.
209
		--expression='s/^\(version = "\)[^"]*"$$/\1$(version)"/' \
398 by Teddy Hogeborn
* Makefile (DOCBOOKTOMAN, DOCBOOKTOHTML, common.ent, mandos,
210
		$@)
217 by Teddy Hogeborn
* .bzrignore: Added "man" directory (created by "make install-html").
211
212
mandos-keygen: Makefile
398 by Teddy Hogeborn
* Makefile (DOCBOOKTOMAN, DOCBOOKTOHTML, common.ent, mandos,
213
	$(strip $(SED) --in-place \
235 by Teddy Hogeborn
* INSTALL: Fixed typo.
214
		--expression='s/^\(VERSION="\)[^"]*"$$/\1$(version)"/' \
398 by Teddy Hogeborn
* Makefile (DOCBOOKTOMAN, DOCBOOKTOHTML, common.ent, mandos,
215
		$@)
217 by Teddy Hogeborn
* .bzrignore: Added "man" directory (created by "make install-html").
216
24.1.121 by Björn Påhlsson
mandos-ctl: Added support for all client calls
217
mandos-ctl: Makefile
398 by Teddy Hogeborn
* Makefile (DOCBOOKTOMAN, DOCBOOKTOHTML, common.ent, mandos,
218
	$(strip $(SED) --in-place \
240 by Teddy Hogeborn
Merge "mandos-list" from belorn.
219
		--expression='s/^\(version = "\)[^"]*"$$/\1$(version)"/' \
398 by Teddy Hogeborn
* Makefile (DOCBOOKTOMAN, DOCBOOKTOHTML, common.ent, mandos,
220
		$@)
240 by Teddy Hogeborn
Merge "mandos-list" from belorn.
221
430 by teddy at bsnet
* mandos-monitor.xml: New.
222
mandos-monitor: Makefile
223
	$(strip $(SED) --in-place \
224
		--expression='s/^\(version = "\)[^"]*"$$/\1$(version)"/' \
225
		$@)
226
233 by Teddy Hogeborn
* Makefile (all): Also depend on "mandos.lsm".
227
mandos.lsm: Makefile
398 by Teddy Hogeborn
* Makefile (DOCBOOKTOMAN, DOCBOOKTOHTML, common.ent, mandos,
228
	$(strip $(SED) --in-place \
235 by Teddy Hogeborn
* INSTALL: Fixed typo.
229
		--expression='s/^\(Version:\).*/\1\t$(version)/' \
398 by Teddy Hogeborn
* Makefile (DOCBOOKTOMAN, DOCBOOKTOHTML, common.ent, mandos,
230
		$@)
231
	$(strip $(SED) --in-place \
235 by Teddy Hogeborn
* INSTALL: Fixed typo.
232
		--expression='s/^\(Entered-date:\).*/\1\t$(shell date --rfc-3339=date --reference=Makefile)/' \
398 by Teddy Hogeborn
* Makefile (DOCBOOKTOMAN, DOCBOOKTOHTML, common.ent, mandos,
233
		$@)
234
	$(strip $(SED) --in-place \
255 by Teddy Hogeborn
* Makefile (mandos.lsm): Also update file name using version number.
235
		--expression='s/\(mandos_\)[0-9.]\+\(\.orig\.tar\.gz\)/\1$(version)\2/' \
398 by Teddy Hogeborn
* Makefile (DOCBOOKTOMAN, DOCBOOKTOHTML, common.ent, mandos,
236
		$@)
233 by Teddy Hogeborn
* Makefile (all): Also depend on "mandos.lsm".
237
398 by Teddy Hogeborn
* Makefile (DOCBOOKTOMAN, DOCBOOKTOHTML, common.ent, mandos,
238
plugins.d/mandos-client: plugins.d/mandos-client.c
485 by Teddy Hogeborn
Merge from Björn.
239
	$(LINK.c) $^ -lrt $(GNUTLS_LIBS) $(AVAHI_LIBS) $(strip\
484 by Teddy Hogeborn
* Makefile (plugins.d/mandos-client): Bug fix: Put $^ before all
240
		) $(GPGME_LIBS) $(LOADLIBES) $(LDLIBS) -o $@
81 by Teddy Hogeborn
* Makefile (GNUTLS_CFLAGS, GNUTLS_LIBS, AVAHI_CFLAGS, AVAHI_LIBS,
241
216 by Teddy Hogeborn
* Makefile: Add HTML rules for manual pages.
242
.PHONY : all doc html clean distclean run-client run-server install \
67 by Teddy Hogeborn
* mandos-keygen: New program to generate new client keys on
243
	install-server install-client uninstall uninstall-server \
244
	uninstall-client purge purge-server purge-client
47 by Teddy Hogeborn
* plugbasedclient.c: Renamed to "mandos-client.c". All users changed.
245
1 by Björn Påhlsson
First working version with: IPv6, GnuTLS, X.509 certificates, DN
246
clean:
217 by Teddy Hogeborn
* .bzrignore: Added "man" directory (created by "make install-html").
247
	-rm --force $(CPROGS) $(objects) $(htmldocs) $(DOCS) core
47 by Teddy Hogeborn
* plugbasedclient.c: Renamed to "mandos-client.c". All users changed.
248
249
distclean: clean
250
mostlyclean: clean
251
maintainer-clean: clean
518.2.2 by Teddy Hogeborn
Directory with persistent state can now be changed with the "statedir"
252
	-rm --force --recursive keydir confdir statedir
47 by Teddy Hogeborn
* plugbasedclient.c: Renamed to "mandos-client.c". All users changed.
253
217 by Teddy Hogeborn
* .bzrignore: Added "man" directory (created by "make install-html").
254
check:	all
47 by Teddy Hogeborn
* plugbasedclient.c: Renamed to "mandos-client.c". All users changed.
255
	./mandos --check
608 by Teddy Hogeborn
* Makefile (check): Also check mandos-ctl.
256
	./mandos-ctl --check
47 by Teddy Hogeborn
* plugbasedclient.c: Renamed to "mandos-client.c". All users changed.
257
141 by Teddy Hogeborn
* Makefile (run-client): Add "--config-file=plugin-runner.conf".
258
# Run the client with a local config and key
159 by Teddy Hogeborn
* Makefile (run-client): Do not depend on the key ring files.
259
run-client: all keydir/seckey.txt keydir/pubkey.txt
237.3.1 by teddy at bsnet
* Makefile (run-server, run-client): Add notices about harmless error
260
	@echo "###################################################################"
261
	@echo "# The following error messages are harmless and can be safely     #"
262
	@echo "# ignored.  The messages are caused by not running as root, but   #"
263
	@echo "# you should NOT run \"make run-client\" as root unless you also    #"
264
	@echo "# unpacked and compiled Mandos as root, which is NOT recommended. #"
265
	@echo "# From plugin-runner: setuid: Operation not permitted             #"
266
	@echo "# From askpass-fifo:  mkfifo: Permission denied                   #"
267
	@echo "# From mandos-client: setuid: Operation not permitted             #"
268
	@echo "#                     seteuid: Operation not permitted            #"
269
	@echo "#                     klogctl: Operation not permitted            #"
270
	@echo "###################################################################"
74 by Teddy Hogeborn
* Makefile (PREFIX, CONFDIR): New.
271
	./plugin-runner --plugin-dir=plugins.d \
141 by Teddy Hogeborn
* Makefile (run-client): Add "--config-file=plugin-runner.conf".
272
		--config-file=plugin-runner.conf \
505.3.11 by Teddy Hogeborn
* Makefile (run-client): Add "--network-hook-dir" option.
273
		--options-for=mandos-client:--seckey=keydir/seckey.txt,--pubkey=keydir/pubkey.txt,--network-hook-dir=network-hooks.d \
260 by Teddy Hogeborn
* Makefile (run-client): Pass $(CLIENTARGS) to plugin-runner.
274
		$(CLIENTARGS)
47 by Teddy Hogeborn
* plugbasedclient.c: Renamed to "mandos-client.c". All users changed.
275
104 by Teddy Hogeborn
* Makefile (maintainer-clean): Also remove "confdir".
276
# Used by run-client
277
keydir/seckey.txt keydir/pubkey.txt: mandos-keygen
278
	install --directory keydir
279
	./mandos-keygen --dir keydir --force
280
281
# Run the server with a local config
574 by Teddy Hogeborn
* mandos: White space and other misc. format fixes only.
282
run-server: confdir/mandos.conf confdir/clients.conf statedir
518.2.2 by Teddy Hogeborn
Directory with persistent state can now be changed with the "statedir"
283
	./mandos --debug --no-dbus --configdir=confdir \
284
		--statedir=statedir $(SERVERARGS)
104 by Teddy Hogeborn
* Makefile (maintainer-clean): Also remove "confdir".
285
286
# Used by run-server
287
confdir/mandos.conf: mandos.conf
288
	install --directory confdir
160 by Teddy Hogeborn
* Makefile: Changed to use symbolic instead of octal modes throughout.
289
	install --mode=u=rw,go=r $^ $@
104 by Teddy Hogeborn
* Makefile (maintainer-clean): Also remove "confdir".
290
confdir/clients.conf: clients.conf keydir/seckey.txt
291
	install --directory confdir
166 by Teddy Hogeborn
* Makefile (confdir/clients.conf): Tighten permissions to "u=rw".
292
	install --mode=u=rw $< $@
104 by Teddy Hogeborn
* Makefile (maintainer-clean): Also remove "confdir".
293
# Add a client password
294
	./mandos-keygen --dir keydir --password >> $@
518.2.2 by Teddy Hogeborn
Directory with persistent state can now be changed with the "statedir"
295
statedir:
296
	install --directory statedir
67 by Teddy Hogeborn
* mandos-keygen: New program to generate new client keys on
297
182 by Teddy Hogeborn
* Makefile (install): Use "install-client-nokey".
298
install: install-server install-client-nokey
67 by Teddy Hogeborn
* mandos-keygen: New program to generate new client keys on
299
235 by Teddy Hogeborn
* INSTALL: Fixed typo.
300
install-html: html
217 by Teddy Hogeborn
* .bzrignore: Added "man" directory (created by "make install-html").
301
	install --directory $(htmldir)
302
	install --mode=u=rw,go=r --target-directory=$(htmldir) \
303
		$(htmldocs)
216 by Teddy Hogeborn
* Makefile: Add HTML rules for manual pages.
304
67 by Teddy Hogeborn
* mandos-keygen: New program to generate new client keys on
305
install-server: doc
185 by Teddy Hogeborn
* .bzr-builddeb/default.conf: New.
306
	install --directory $(CONFDIR)
643 by Teddy Hogeborn
Don't require /var/lib/mandos to be installed with user & group.
307
	if install --directory --mode=u=rwx --owner=$(USER) \
308
		--group=$(GROUP) $(STATEDIR); then \
309
		:; \
310
	elif install --directory --mode=u=rwx $(STATEDIR); then \
311
		chown -- $(USER):$(GROUP) $(STATEDIR) || :; \
312
	fi
160 by Teddy Hogeborn
* Makefile: Changed to use symbolic instead of octal modes throughout.
313
	install --mode=u=rwx,go=rx mandos $(PREFIX)/sbin/mandos
430 by teddy at bsnet
* mandos-monitor.xml: New.
314
	install --mode=u=rwx,go=rx --target-directory=$(PREFIX)/sbin \
315
		mandos-ctl
316
	install --mode=u=rwx,go=rx --target-directory=$(PREFIX)/sbin \
317
		mandos-monitor
162 by Teddy Hogeborn
* Makefile (PIDDIR, USER, GROUP): New variables.
318
	install --mode=u=rw,go=r --target-directory=$(CONFDIR) \
319
		mandos.conf
166 by Teddy Hogeborn
* Makefile (confdir/clients.conf): Tighten permissions to "u=rw".
320
	install --mode=u=rw --target-directory=$(CONFDIR) \
67 by Teddy Hogeborn
* mandos-keygen: New program to generate new client keys on
321
		clients.conf
420.1.1 by teddy at bsnet
* Makefile (install-server): Install dbus-mandos.conf as
322
	install --mode=u=rw,go=r dbus-mandos.conf \
323
		$(DESTDIR)/etc/dbus-1/system.d/mandos.conf
175 by Teddy Hogeborn
* Makefile: Clearly separate "local" install variable settings from
324
	install --mode=u=rwx,go=rx init.d-mandos \
325
		$(DESTDIR)/etc/init.d/mandos
638 by Teddy Hogeborn
Add systemd service support for Mandos server.
326
	if [ "$(SYSTEMD)" != "$(DESTDIR)" -a -d "$(SYSTEMD)" ]; then \
639 by Teddy Hogeborn
Bug fix: Make sure systemd service file is installed.
327
		install --mode=u=rw,go=r mandos.service $(SYSTEMD); \
638 by Teddy Hogeborn
Add systemd service support for Mandos server.
328
	fi
175 by Teddy Hogeborn
* Makefile: Clearly separate "local" install variable settings from
329
	install --mode=u=rw,go=r default-mandos \
330
		$(DESTDIR)/etc/default/mandos
200 by Teddy Hogeborn
* Makefile: Put the init script before avahi-daemon.
331
	if [ -z $(DESTDIR) ]; then \
332
		update-rc.d mandos defaults 25 15;\
333
	fi
67 by Teddy Hogeborn
* mandos-keygen: New program to generate new client keys on
334
	gzip --best --to-stdout mandos.8 \
74 by Teddy Hogeborn
* Makefile (PREFIX, CONFDIR): New.
335
		> $(MANDIR)/man8/mandos.8.gz
435 by teddy at bsnet
* Makefile (DOCS): Added "plymouth.8mandos".
336
	gzip --best --to-stdout mandos-monitor.8 \
337
		> $(MANDIR)/man8/mandos-monitor.8.gz
338
	gzip --best --to-stdout mandos-ctl.8 \
339
		> $(MANDIR)/man8/mandos-ctl.8.gz
67 by Teddy Hogeborn
* mandos-keygen: New program to generate new client keys on
340
	gzip --best --to-stdout mandos.conf.5 \
74 by Teddy Hogeborn
* Makefile (PREFIX, CONFDIR): New.
341
		> $(MANDIR)/man5/mandos.conf.5.gz
67 by Teddy Hogeborn
* mandos-keygen: New program to generate new client keys on
342
	gzip --best --to-stdout mandos-clients.conf.5 \
74 by Teddy Hogeborn
* Makefile (PREFIX, CONFDIR): New.
343
		> $(MANDIR)/man5/mandos-clients.conf.5.gz
549 by teddy at recompile
* Makefile (install-server): Add intro(8mandos) man page.
344
	gzip --best --to-stdout intro.8mandos \
345
		> $(MANDIR)/man8/intro.8mandos.gz
67 by Teddy Hogeborn
* mandos-keygen: New program to generate new client keys on
346
182 by Teddy Hogeborn
* Makefile (install): Use "install-client-nokey".
347
install-client-nokey: all doc
640 by Teddy Hogeborn
Use architecture libdir.
348
	install --directory $(LIBDIR)/mandos $(CONFDIR)
185 by Teddy Hogeborn
* .bzr-builddeb/default.conf: New.
349
	install --directory --mode=u=rwx $(KEYDIR) \
640 by Teddy Hogeborn
Use architecture libdir.
350
		$(LIBDIR)/mandos/plugins.d
351
	if [ "$(CONFDIR)" != "$(LIBDIR)/mandos" ]; then \
166 by Teddy Hogeborn
* Makefile (confdir/clients.conf): Tighten permissions to "u=rw".
352
		install --mode=u=rwx \
199 by Teddy Hogeborn
* Makefile: Bug fix: fix syntax error.
353
			--directory "$(CONFDIR)/plugins.d"; \
166 by Teddy Hogeborn
* Makefile (confdir/clients.conf): Tighten permissions to "u=rw".
354
	fi
505.3.17 by Teddy Hogeborn
* Makefile (install-client-nokey): Create network hook directory.
355
	install --mode=u=rwx,go=rx --directory \
356
		"$(CONFDIR)/network-hooks.d"
162 by Teddy Hogeborn
* Makefile (PIDDIR, USER, GROUP): New variables.
357
	install --mode=u=rwx,go=rx \
640 by Teddy Hogeborn
Use architecture libdir.
358
		--target-directory=$(LIBDIR)/mandos plugin-runner
160 by Teddy Hogeborn
* Makefile: Changed to use symbolic instead of octal modes throughout.
359
	install --mode=u=rwx,go=rx --target-directory=$(PREFIX)/sbin \
74 by Teddy Hogeborn
* Makefile (PREFIX, CONFDIR): New.
360
		mandos-keygen
160 by Teddy Hogeborn
* Makefile: Changed to use symbolic instead of octal modes throughout.
361
	install --mode=u=rwx,go=rx \
640 by Teddy Hogeborn
Use architecture libdir.
362
		--target-directory=$(LIBDIR)/mandos/plugins.d \
67 by Teddy Hogeborn
* mandos-keygen: New program to generate new client keys on
363
		plugins.d/password-prompt
160 by Teddy Hogeborn
* Makefile: Changed to use symbolic instead of octal modes throughout.
364
	install --mode=u=rwxs,go=rx \
640 by Teddy Hogeborn
Use architecture libdir.
365
		--target-directory=$(LIBDIR)/mandos/plugins.d \
171 by Teddy Hogeborn
Renamed "password-request" to "mandos-client".
366
		plugins.d/mandos-client
208 by Teddy Hogeborn
* Makefile (PLUGINS): Added "plugins.d/usplash".
367
	install --mode=u=rwxs,go=rx \
640 by Teddy Hogeborn
Use architecture libdir.
368
		--target-directory=$(LIBDIR)/mandos/plugins.d \
160 by Teddy Hogeborn
* Makefile: Changed to use symbolic instead of octal modes throughout.
369
		plugins.d/usplash
205 by Teddy Hogeborn
* Makefile (PLUGINS, uninstall-client,
370
	install --mode=u=rwxs,go=rx \
640 by Teddy Hogeborn
Use architecture libdir.
371
		--target-directory=$(LIBDIR)/mandos/plugins.d \
205 by Teddy Hogeborn
* Makefile (PLUGINS, uninstall-client,
372
		plugins.d/splashy
214 by Teddy Hogeborn
* Makefile (PLUGINS): Added "plugins.d/askpass-fifo".
373
	install --mode=u=rwxs,go=rx \
640 by Teddy Hogeborn
Use architecture libdir.
374
		--target-directory=$(LIBDIR)/mandos/plugins.d \
214 by Teddy Hogeborn
* Makefile (PLUGINS): Added "plugins.d/askpass-fifo".
375
		plugins.d/askpass-fifo
425 by Teddy Hogeborn
* Makefile: Compile and install new "plymouth" plugin.
376
	install --mode=u=rwxs,go=rx \
640 by Teddy Hogeborn
Use architecture libdir.
377
		--target-directory=$(LIBDIR)/mandos/plugins.d \
425 by Teddy Hogeborn
* Makefile: Compile and install new "plymouth" plugin.
378
		plugins.d/plymouth
67 by Teddy Hogeborn
* mandos-keygen: New program to generate new client keys on
379
	install initramfs-tools-hook \
175 by Teddy Hogeborn
* Makefile: Clearly separate "local" install variable settings from
380
		$(INITRAMFSTOOLS)/hooks/mandos
185 by Teddy Hogeborn
* .bzr-builddeb/default.conf: New.
381
	install --mode=u=rw,go=r initramfs-tools-hook-conf \
175 by Teddy Hogeborn
* Makefile: Clearly separate "local" install variable settings from
382
		$(INITRAMFSTOOLS)/conf-hooks.d/mandos
74 by Teddy Hogeborn
* Makefile (PREFIX, CONFDIR): New.
383
	install initramfs-tools-script \
302 by Teddy Hogeborn
* Makefile (install-client-nokey): Move "initramfs-tools-script" from
384
		$(INITRAMFSTOOLS)/scripts/init-premount/mandos
160 by Teddy Hogeborn
* Makefile: Changed to use symbolic instead of octal modes throughout.
385
	install --mode=u=rw,go=r plugin-runner.conf $(CONFDIR)
67 by Teddy Hogeborn
* mandos-keygen: New program to generate new client keys on
386
	gzip --best --to-stdout mandos-keygen.8 \
74 by Teddy Hogeborn
* Makefile (PREFIX, CONFDIR): New.
387
		> $(MANDIR)/man8/mandos-keygen.8.gz
388
	gzip --best --to-stdout plugin-runner.8mandos \
389
		> $(MANDIR)/man8/plugin-runner.8mandos.gz
435 by teddy at bsnet
* Makefile (DOCS): Added "plymouth.8mandos".
390
	gzip --best --to-stdout plugins.d/mandos-client.8mandos \
391
		> $(MANDIR)/man8/mandos-client.8mandos.gz
67 by Teddy Hogeborn
* mandos-keygen: New program to generate new client keys on
392
	gzip --best --to-stdout plugins.d/password-prompt.8mandos \
74 by Teddy Hogeborn
* Makefile (PREFIX, CONFDIR): New.
393
		> $(MANDIR)/man8/password-prompt.8mandos.gz
225 by Teddy Hogeborn
* Makefile (DOCS): Added "plugins.d/usplash.8mandos" and
394
	gzip --best --to-stdout plugins.d/usplash.8mandos \
395
		> $(MANDIR)/man8/usplash.8mandos.gz
396
	gzip --best --to-stdout plugins.d/splashy.8mandos \
397
		> $(MANDIR)/man8/splashy.8mandos.gz
226 by Teddy Hogeborn
* Makefile (DOCS): Added "plugins.d/askpass-fifo.8mandos".
398
	gzip --best --to-stdout plugins.d/askpass-fifo.8mandos \
399
		> $(MANDIR)/man8/askpass-fifo.8mandos.gz
435 by teddy at bsnet
* Makefile (DOCS): Added "plymouth.8mandos".
400
	gzip --best --to-stdout plugins.d/plymouth.8mandos \
401
		> $(MANDIR)/man8/plymouth.8mandos.gz
182 by Teddy Hogeborn
* Makefile (install): Use "install-client-nokey".
402
403
install-client: install-client-nokey
166 by Teddy Hogeborn
* Makefile (confdir/clients.conf): Tighten permissions to "u=rw".
404
# Post-installation stuff
160 by Teddy Hogeborn
* Makefile: Changed to use symbolic instead of octal modes throughout.
405
	-$(PREFIX)/sbin/mandos-keygen --dir "$(KEYDIR)"
67 by Teddy Hogeborn
* mandos-keygen: New program to generate new client keys on
406
	update-initramfs -k all -u
160 by Teddy Hogeborn
* Makefile: Changed to use symbolic instead of octal modes throughout.
407
	echo "Now run mandos-keygen --password --dir $(KEYDIR)"
67 by Teddy Hogeborn
* mandos-keygen: New program to generate new client keys on
408
409
uninstall: uninstall-server uninstall-client
410
160 by Teddy Hogeborn
* Makefile: Changed to use symbolic instead of octal modes throughout.
411
uninstall-server:
74 by Teddy Hogeborn
* Makefile (PREFIX, CONFDIR): New.
412
	-rm --force $(PREFIX)/sbin/mandos \
430 by teddy at bsnet
* mandos-monitor.xml: New.
413
		$(PREFIX)/sbin/mandos-ctl \
414
		$(PREFIX)/sbin/mandos-monitor \
74 by Teddy Hogeborn
* Makefile (PREFIX, CONFDIR): New.
415
		$(MANDIR)/man8/mandos.8.gz \
435 by teddy at bsnet
* Makefile (DOCS): Added "plymouth.8mandos".
416
		$(MANDIR)/man8/mandos-monitor.8.gz \
417
		$(MANDIR)/man8/mandos-ctl.8.gz \
74 by Teddy Hogeborn
* Makefile (PREFIX, CONFDIR): New.
418
		$(MANDIR)/man5/mandos.conf.5.gz \
419
		$(MANDIR)/man5/mandos-clients.conf.5.gz
162 by Teddy Hogeborn
* Makefile (PIDDIR, USER, GROUP): New variables.
420
	update-rc.d -f mandos remove
163 by Teddy Hogeborn
* Makefile (PIDDIR, USER, GROUP): Removed.
421
	-rmdir $(CONFDIR)
67 by Teddy Hogeborn
* mandos-keygen: New program to generate new client keys on
422
423
uninstall-client:
74 by Teddy Hogeborn
* Makefile (PREFIX, CONFDIR): New.
424
# Refuse to uninstall client if /etc/crypttab is explicitly configured
425
# to use it.
426
	! grep --regexp='^ *[^ #].*keyscript=[^,=]*/mandos/' \
175 by Teddy Hogeborn
* Makefile: Clearly separate "local" install variable settings from
427
		$(DESTDIR)/etc/crypttab
74 by Teddy Hogeborn
* Makefile (PREFIX, CONFDIR): New.
428
	-rm --force $(PREFIX)/sbin/mandos-keygen \
640 by Teddy Hogeborn
Use architecture libdir.
429
		$(LIBDIR)/mandos/plugin-runner \
430
		$(LIBDIR)/mandos/plugins.d/password-prompt \
431
		$(LIBDIR)/mandos/plugins.d/mandos-client \
432
		$(LIBDIR)/mandos/plugins.d/usplash \
433
		$(LIBDIR)/mandos/plugins.d/splashy \
434
		$(LIBDIR)/mandos/plugins.d/askpass-fifo \
435
		$(LIBDIR)/mandos/plugins.d/plymouth \
175 by Teddy Hogeborn
* Makefile: Clearly separate "local" install variable settings from
436
		$(INITRAMFSTOOLS)/hooks/mandos \
437
		$(INITRAMFSTOOLS)/conf-hooks.d/mandos \
302 by Teddy Hogeborn
* Makefile (install-client-nokey): Move "initramfs-tools-script" from
438
		$(INITRAMFSTOOLS)/scripts/init-premount/mandos \
435 by teddy at bsnet
* Makefile (DOCS): Added "plymouth.8mandos".
439
		$(MANDIR)/man8/mandos-keygen.8.gz \
74 by Teddy Hogeborn
* Makefile (PREFIX, CONFDIR): New.
440
		$(MANDIR)/man8/plugin-runner.8mandos.gz \
435 by teddy at bsnet
* Makefile (DOCS): Added "plymouth.8mandos".
441
		$(MANDIR)/man8/mandos-client.8mandos.gz
74 by Teddy Hogeborn
* Makefile (PREFIX, CONFDIR): New.
442
		$(MANDIR)/man8/password-prompt.8mandos.gz \
225 by Teddy Hogeborn
* Makefile (DOCS): Added "plugins.d/usplash.8mandos" and
443
		$(MANDIR)/man8/usplash.8mandos.gz \
444
		$(MANDIR)/man8/splashy.8mandos.gz \
226 by Teddy Hogeborn
* Makefile (DOCS): Added "plugins.d/askpass-fifo.8mandos".
445
		$(MANDIR)/man8/askpass-fifo.8mandos.gz \
435 by teddy at bsnet
* Makefile (DOCS): Added "plymouth.8mandos".
446
		$(MANDIR)/man8/plymouth.8mandos.gz \
640 by Teddy Hogeborn
Use architecture libdir.
447
	-rmdir $(LIBDIR)/mandos/plugins.d $(CONFDIR)/plugins.d \
448
		 $(LIBDIR)/mandos $(CONFDIR) $(KEYDIR)
74 by Teddy Hogeborn
* Makefile (PREFIX, CONFDIR): New.
449
	update-initramfs -k all -u
67 by Teddy Hogeborn
* mandos-keygen: New program to generate new client keys on
450
451
purge: purge-server purge-client
452
453
purge-server: uninstall-server
162 by Teddy Hogeborn
* Makefile (PIDDIR, USER, GROUP): New variables.
454
	-rm --force $(CONFDIR)/mandos.conf $(CONFDIR)/clients.conf \
420.1.1 by teddy at bsnet
* Makefile (install-server): Install dbus-mandos.conf as
455
		$(DESTDIR)/etc/dbus-1/system.d/mandos.conf
175 by Teddy Hogeborn
* Makefile: Clearly separate "local" install variable settings from
456
		$(DESTDIR)/etc/default/mandos \
457
		$(DESTDIR)/etc/init.d/mandos \
638 by Teddy Hogeborn
Add systemd service support for Mandos server.
458
		$(SYSTEMD)/mandos.service \
637 by Teddy Hogeborn
Fix fallback to /var/run if /run does not exist for Makefile.
459
		$(DESTDIR)/run/mandos.pid \
460
		$(DESTDIR)/var/run/mandos.pid
74 by Teddy Hogeborn
* Makefile (PREFIX, CONFDIR): New.
461
	-rmdir $(CONFDIR)
67 by Teddy Hogeborn
* mandos-keygen: New program to generate new client keys on
462
463
purge-client: uninstall-client
160 by Teddy Hogeborn
* Makefile: Changed to use symbolic instead of octal modes throughout.
464
	-shred --remove $(KEYDIR)/seckey.txt
161 by Teddy Hogeborn
* Makefile (purge-client): Also remove "plugin-runner.conf".
465
	-rm --force $(CONFDIR)/plugin-runner.conf \
466
		$(KEYDIR)/pubkey.txt $(KEYDIR)/seckey.txt
160 by Teddy Hogeborn
* Makefile: Changed to use symbolic instead of octal modes throughout.
467
	-rmdir $(KEYDIR) $(CONFDIR)/plugins.d $(CONFDIR)