aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.am
blob: a0de6e8a8b5b208ae2573cf805130c0c5d787056 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Copyright (C) 2023 Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
#
# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or (at
# your option) any later version.
#
# You should have received a copy of the GNU General Public License
# along with this file.  If not, see <http://www.gnu.org/licenses/>.
SENTINEL =

htmldir = $(localstatedir)/www/mumble.replicant.us
html_DATA = \
	var/www/mumble.replicant.us/index.html \
	var/www/mumble.replicant.us/mumble.replicant.us.tar.xz \
	$(SENTINEL)

mumbleconfigdir = $(sysconfdir)
mumbleconfig_DATA = etc/mumble-server.ini

letsencryptrenewaldir = $(sysconfdir)/letsencrypt/renewal
letsencryptrenewal_DATA = etc/letsencrypt/renewal/mumble.replicant.conf

sitesavailabledir = $(sysconfdir)/apache2/sites-available
sitesavailable_DATA = \
	etc/apache2/sites-available/mumble.replicant.us.conf \
	etc/apache2/sites-available/mumble.replicant.us-init.conf \
	$(SENTINEL)

.PHONY: mumble.replicant.us.tar
var/www/mumble.replicant.us/mumble.replicant.us.tar:
	rm -f $@
	git archive HEAD \
		--format tar \
		--prefix=mumble.replicant.us/ \
		-o $@

var/www/mumble.replicant.us/mumble.replicant.us.tar.xz: var/www/mumble.replicant.us/mumble.replicant.us.tar
	rm -f $@
	xz -9e --verbose $<

EXTRA_DIST = \
	$(letsencryptrenewal_DATA) \
	$(mumbleconfig_DATA) \
	$(sitesavailable_DATA) \
	$(SENTINEL)

dist_pkgdata_DATA = $(HTML_DATA)