/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

  • Committer: Teddy Hogeborn
  • Date: 2008-08-12 19:22:34 UTC
  • Revision ID: teddy@fukt.bsnet.se-20080812192234-8bm17713ltih9ud1
* initramfs-tools-hook: New.
* initramfs-tools-hook-conf: New.

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