aboutsummaryrefslogtreecommitdiffstats
path: root/package/targets.mak
blob: 98d5ff0c850c73f5bde72c959ba163346af8b98a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
BIN_TARGETS := \
smtpd-starttls-proxy-io \
qmail-remote \
qmail-remote-io

LIBEXEC_TARGETS :=

EXTRA_INSTALL += install-qmailr

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

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