/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to Makefile

Added configuration files support for mandos-client
Removed plus argument support for mandos-client

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
# For info about _FORTIFY_SOURCE, see
11
11
# <http://gcc.gnu.org/ml/gcc-patches/2004-09/msg02055.html>
12
12
FORTIFY=-D_FORTIFY_SOURCE=2 # -fstack-protector-all
13
 
#COVERAGE=-fprofile-arcs -ftest-coverage
 
13
#COVERAGE=--coverage
14
14
OPTIMIZE=-Os
15
15
LANGUAGE=-std=gnu99
16
16
 
98
98
 
99
99
install-client: all doc /usr/share/initramfs-tools/hooks/.
100
100
        mkdir --mode=0755 --parents /usr/lib/mandos /etc/mandos
101
 
        mkdir --mode=0700 /usr/lib/mandos/plugins.d
 
101
        -mkdir --mode=0700 /usr/lib/mandos/plugins.d
102
102
        chmod u=rwx,g=,o= /usr/lib/mandos/plugins.d
103
103
        install --mode=0755 --target-directory=/usr/lib/mandos \
104
104
                mandos-client
121
121
                > /usr/share/man/man8/password-prompt.8mandos.gz
122
122
        gzip --best --to-stdout plugins.d/password-request.8mandos \
123
123
                > /usr/share/man/man8/password-request.8mandos.gz
124
 
        /usr/sbin/mandos-keygen
 
124
        -/usr/sbin/mandos-keygen
125
125
        update-initramfs -k all -u
126
126
 
127
127
uninstall: uninstall-server uninstall-client
130
130
        -rm --force /usr/sbin/mandos /usr/share/man/man8/mandos.8.gz \
131
131
                /usr/share/man/man5/mandos.conf.5.gz \
132
132
                /usr/share/man/man5/mandos-clients.conf.5.gz
133
 
        -rmdir --force /etc/mandos
 
133
        -rmdir /etc/mandos
134
134
 
135
135
uninstall-client:
 
136
# Refuse to uninstall client if /etc/crypttab is configured to use it
 
137
        ! grep --regexp='^ *[^ #].*keyscript=/usr/lib/mandos/mandos-client' \
 
138
                /etc/crypttab
136
139
        -rm --force /usr/sbin/mandos-keygen \
137
140
                /usr/lib/mandos/mandos-client \
138
141
                /usr/lib/mandos/plugins.d/password-prompt \
143
146
                /usr/share/man/man8/mandos-keygen.8.gz \
144
147
                /usr/share/man/man8/password-prompt.8mandos.gz \
145
148
                /usr/share/man/man8/password-request.8mandos.gz
146
 
        -rmdir --force /usr/lib/mandos/plugins.d /usr/lib/mandos \
 
149
        -rmdir /usr/lib/mandos/plugins.d /usr/lib/mandos \
147
150
                /etc/mandos/plugins.d /etc/mandos
148
151
 
149
152
purge: purge-server purge-client
150
153
 
151
154
purge-server: uninstall-server
152
 
        -rm --force /etc/mandos/server.conf /etc/mandos/clients.conf
153
 
        -rmdir --force /etc/mandos
 
155
        -rm --force /etc/mandos/mandos.conf /etc/mandos/clients.conf
 
156
        -rmdir /etc/mandos
154
157
 
155
158
purge-client: uninstall-client
156
159
        -rm --force /etc/mandos/seckey.txt /etc/mandos/pubkey.txt
157
 
        -rmdir --force /etc/mandos
 
160
        -rmdir /etc/mandos /etc/mandos/plugins.d