/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-09-05 08:38:30 UTC
  • Revision ID: teddy@fukt.bsnet.se-20080905083830-6y9v2rb2us0m45kn
* Makefile (PIDDIR, USER, GROUP): New variables.
  (install-server): Create $(PIDDIR).  Copy "init.d-mandos" and
                    "default-mandos" into place.  Install init script
                    using "update-rc.d".
  (uninstall-server): Remove links to init script using "update-rc.d".
  (purge-server): Remove /etc/init.d/mandos and /etc/default/mandos.

* default-mandos: New file.  Will install as "/etc/default/mandos".
* init.d-mandos:            - '' -           "/etc/init.d/mandos".

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
KEYDIR=$(DESTDIR)/etc/keys/mandos
22
22
# MANDIR=/usr/local/man
23
23
MANDIR=$(DESTDIR)/usr/share/man
 
24
PIDDIR=/var/run/mandos
 
25
USER=nobody
 
26
GROUP=nogroup
24
27
 
25
28
GNUTLS_CFLAGS=$(shell libgnutls-config --cflags)
26
29
GNUTLS_LIBS=$(shell libgnutls-config --libs)
135
138
install-server: doc
136
139
        install --directory $(CONFDIR) $(MANDIR)/man5 \
137
140
                $(MANDIR)/man8
 
141
        install --mode=u=rwx,go=rx --owner=$(USER) --group=$(GROUP) \
 
142
                --directory $(PIDDIR)
138
143
        install --mode=u=rwx,go=rx mandos $(PREFIX)/sbin/mandos
139
144
        install --mode=u=rw,go=r --target-directory=$(CONFDIR) \
140
145
                mandos.conf
200
205
                $(MANDIR)/man5/mandos.conf.5.gz \
201
206
                $(MANDIR)/man5/mandos-clients.conf.5.gz
202
207
        update-rc.d -f mandos remove
203
 
        -rmdir $(CONFDIR)
 
208
        -rmdir $(CONFDIR) $(PIDDIR)
204
209
 
205
210
uninstall-client:
206
211
# Refuse to uninstall client if /etc/crypttab is explicitly configured