-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
36 lines (32 loc) · 2.22 KB
/
Makefile
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
32
33
34
35
36
REGGAE_PATH = /usr/local/share/reggae
FQDN ?= example.com
USE = letsencrypt ldap redis mail ejabberd znc webmail nginx
.include <${REGGAE_PATH}/mk/use.mk>
BACKEND != reggae get-config BACKEND
CBSD_WORKDIR != sysrc -s cbsd -n cbsd_workdir 2>/dev/null || true
post_setup:
.for service url in ${ALL_SERVICES}
@echo "FQDN = ${FQDN}" >>services/${service}/project.mk
@echo "DHCP ?= ${DHCP}" >>services/${service}/project.mk
.if defined(VERSION)
@echo "VERSION = ${FQDN}" >>services/${service}/project.mk
.endif
.endfor
.if ${BACKEND} == base
@echo "\$${base}/letsencrypt/usr/local/etc/dehydrated/certs \$${path}/etc/certs nullfs rw 0 0" >services/ldap/templates/fstab
@echo "\$${base}/letsencrypt/usr/local/etc/dehydrated/certs \$${path}/etc/certs nullfs rw 0 0" >services/nginx/templates/fstab
@echo "\$${base}/mail/usr/home/mlmmj/webarchive \$${path}/usr/local/www/webarchive nullfs rw 0 0" >>services/nginx/templates/fstab
@echo "\$${base}/webmail/usr/local/www/rainloop \$${path}/usr/local/www/rainloop nullfs rw 0 0" >>services/nginx/templates/fstab
@echo "\$${base}/letsencrypt/usr/local/etc/dehydrated/certs \$${path}/etc/certs nullfs rw 0 0" >services/mail/templates/fstab
@echo "\$${base}/letsencrypt/usr/local/etc/dehydrated/certs \$${path}/etc/certs nullfs rw 0 0" >services/ejabberd/templates/fstab
.elif ${BACKEND} == cbsd
@echo "${CBSD_WORKDIR}/jails-data/letsencrypt-data/usr/local/etc/dehydrated/certs /etc/certs nullfs rw 0 0" >services/ldap/templates/fstab
@echo "${CBSD_WORKDIR}/jails-data/letsencrypt-data/usr/local/etc/dehydrated/certs /etc/certs nullfs rw 0 0" >services/nginx/templates/fstab
@echo "${CBSD_WORKDIR}/jails-data/mail-data/usr/home/mlmmj/webarchive /usr/local/www/webarchive nullfs rw 0 0" >>services/nginx/templates/fstab
@echo "${CBSD_WORKDIR}/jails-data/webmail-data/usr/local/www/rainloop /usr/local/www/rainloop nullfs rw 0 0" >>services/nginx/templates/fstab
@echo "${CBSD_WORKDIR}/jails-data/letsencrypt-data/usr/local/etc/dehydrated/certs /etc/certs nullfs rw 0 0" >services/mail/templates/fstab
@echo "${CBSD_WORKDIR}/jails-data/letsencrypt-data/usr/local/etc/dehydrated/certs /etc/certs nullfs rw 0 0" >services/ejabberd/templates/fstab
.endif
cron:
@sudo bin/cron.sh
.include <${REGGAE_PATH}/mk/project.mk>