aboutsummaryrefslogtreecommitdiffstats
path: root/package/targets.mak
blob: 2f572dc8d2a443dd106ff7fdd6ef336149d93d83 (plain)
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
BIN_TARGETS := \
smtpd-starttls-proxy-io \
qmail-remote \
qmail-remote-io

LIBEXEC_TARGETS :=

ifdef INSTALL_QMAIL

install: install-qmailr

QMAILR_UID := $(firstword $(subst :, ,$(QMAILR_IDS)))
QMAILR_GID := $(lastword $(subst :, ,$(QMAILR_IDS)))

install-qmailr:
	mkdir -p -- $(DESTDIR)$(QMAIL_HOME)/run/qmail-remote
	chgrp -- $(QMAILR_GID) $(DESTDIR)$(QMAIL_HOME)/run
	chmod 02750 $(DESTDIR)$(QMAIL_HOME)/run
	chown -- $(QMAILR_IDS) $(DESTDIR)$(QMAIL_HOME)/run/qmail-remote
	chmod 02700 $(DESTDIR)$(QMAIL_HOME)/run/qmail-remote
	chown -- $(QMAILR_IDS) $(DESTDIR)$(QMAIL_HOME)/run/qmail-remote
	chmod 02750 $(DESTDIR)$(QMAIL_HOME)/run/qmail-remote
	touch -- $(DESTDIR)$(QMAIL_HOME)/run/qmail-remote/tcpto6
	chown -- $(QMAILR_IDS) $(DESTDIR)$(QMAIL_HOME)/run/qmail-remote/tcpto6
	chmod 0640 $(DESTDIR)$(QMAIL_HOME)/run/qmail-remote/tcpto6

endif