/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

merge

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=--coverage
 
13
#COVERAGE=-fprofile-arcs -ftest-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 /etc/mandos
 
133
        -rmdir --force /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
139
136
        -rm --force /usr/sbin/mandos-keygen \
140
137
                /usr/lib/mandos/mandos-client \
141
138
                /usr/lib/mandos/plugins.d/password-prompt \
146
143
                /usr/share/man/man8/mandos-keygen.8.gz \
147
144
                /usr/share/man/man8/password-prompt.8mandos.gz \
148
145
                /usr/share/man/man8/password-request.8mandos.gz
149
 
        -rmdir /usr/lib/mandos/plugins.d /usr/lib/mandos \
 
146
        -rmdir --force /usr/lib/mandos/plugins.d /usr/lib/mandos \
150
147
                /etc/mandos/plugins.d /etc/mandos
151
148
 
152
149
purge: purge-server purge-client
153
150
 
154
151
purge-server: uninstall-server
155
 
        -rm --force /etc/mandos/mandos.conf /etc/mandos/clients.conf
156
 
        -rmdir /etc/mandos
 
152
        -rm --force /etc/mandos/server.conf /etc/mandos/clients.conf
 
153
        -rmdir --force /etc/mandos
157
154
 
158
155
purge-client: uninstall-client
159
156
        -rm --force /etc/mandos/seckey.txt /etc/mandos/pubkey.txt
160
 
        -rmdir /etc/mandos /etc/mandos/plugins.d
 
157
        -rmdir --force /etc/mandos