forked from bruceg/nullmailer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
31 lines (27 loc) · 1.07 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
localstatedir = @localstatedir@/spool/nullmailer
sysconfdir = @sysconfdir@/nullmailer
EXTRA_DIST = BUGS HOWTO INSTALL TODO spec \
scripts/nullmailer.run scripts/nullmailer-log.run \
scripts/nullmailer.service
SUBDIRS = doc lib protocols src test
install-data-local:
@$(NORMAL_INSTALL)
$(mkinstalldirs) $(DESTDIR)$(localstatedir)/failed
chmod 700 $(DESTDIR)$(localstatedir)/failed
$(mkinstalldirs) $(DESTDIR)$(localstatedir)/queue
chmod 700 $(DESTDIR)$(localstatedir)/queue
$(mkinstalldirs) $(DESTDIR)$(localstatedir)/tmp
chmod 700 $(DESTDIR)$(localstatedir)/tmp
$(mkinstalldirs) $(DESTDIR)$(sysconfdir)
$(RM) -f $(DESTDIR)$(localstatedir)/trigger
mkfifo $(DESTDIR)$(localstatedir)/trigger
chmod 600 $(DESTDIR)$(localstatedir)/trigger
install-root:
chown nullmail $(DESTDIR)$(localstatedir)/*
chown nullmail $(DESTDIR)$(sbindir)/nullmailer-queue
chmod u+s $(DESTDIR)$(sbindir)/nullmailer-queue
chown nullmail $(DESTDIR)$(bindir)/mailq
chmod u+s $(DESTDIR)$(bindir)/mailq
dist-hook:
sed -e s/@VERSION\@/@VERSION@/ \
<$(srcdir)/spec >$(distdir)/nullmailer-@VERSION@.spec