/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:
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
113
113
                /usr/share/initramfs-tools/hooks/mandos
114
114
        install initramfs-tools-hook-conf \
115
115
                /usr/share/initramfs-tools/conf-hooks.d/mandos
116
 
        install initramfs-tools-hook-conf \
117
 
                /usr/share/initramfs-tools/conf-hooks.d/mandos
118
116
        gzip --best --to-stdout mandos-keygen.8 \
119
117
                > /usr/share/man/man8/mandos-keygen.8.gz
120
118
        gzip --best --to-stdout mandos-client.8mandos \
123
121
                > /usr/share/man/man8/password-prompt.8mandos.gz
124
122
        gzip --best --to-stdout plugins.d/password-request.8mandos \
125
123
                > /usr/share/man/man8/password-request.8mandos.gz
126
 
        /usr/sbin/mandos-keygen
 
124
        -/usr/sbin/mandos-keygen
127
125
        update-initramfs -k all -u
128
126
 
129
127
uninstall: uninstall-server uninstall-client
132
130
        -rm --force /usr/sbin/mandos /usr/share/man/man8/mandos.8.gz \
133
131
                /usr/share/man/man5/mandos.conf.5.gz \
134
132
                /usr/share/man/man5/mandos-clients.conf.5.gz
135
 
        -rmdir --force /etc/mandos
 
133
        -rmdir /etc/mandos
136
134
 
137
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
138
139
        -rm --force /usr/sbin/mandos-keygen \
139
140
                /usr/lib/mandos/mandos-client \
140
141
                /usr/lib/mandos/plugins.d/password-prompt \
145
146
                /usr/share/man/man8/mandos-keygen.8.gz \
146
147
                /usr/share/man/man8/password-prompt.8mandos.gz \
147
148
                /usr/share/man/man8/password-request.8mandos.gz
148
 
        -rmdir --force /usr/lib/mandos/plugins.d /usr/lib/mandos \
 
149
        -rmdir /usr/lib/mandos/plugins.d /usr/lib/mandos \
149
150
                /etc/mandos/plugins.d /etc/mandos
150
151
 
151
152
purge: purge-server purge-client
152
153
 
153
154
purge-server: uninstall-server
154
 
        -rm --force /etc/mandos/server.conf /etc/mandos/clients.conf
155
 
        -rmdir --force /etc/mandos
 
155
        -rm --force /etc/mandos/mandos.conf /etc/mandos/clients.conf
 
156
        -rmdir /etc/mandos
156
157
 
157
158
purge-client: uninstall-client
158
159
        -rm --force /etc/mandos/seckey.txt /etc/mandos/pubkey.txt
159
 
        -rmdir --force /etc/mandos
 
160
        -rmdir /etc/mandos /etc/mandos/plugins.d