blob: 3b5769a6c3103af59558bfb11f20be3b0bea2fe7 (
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
|
APACHE_DIR = /etc/apache2/sites-available
### The rules apache-(un|)install are intended to be run on the
### www.cefala.org server. The rule cgit-install is intended to be run
### on the git.cefala.org server.
.PHONY: apache-install
apache-install: HTTP HTTPS
install --mode=644 HTTP $(APACHE_DIR)/cgit.conf
install --mode=644 HTTPS $(APACHE_DIR)/cgit-le-ssl.conf
/usr/sbin/a2ensite cgit
/usr/sbin/a2ensite cgit-le-ssl
/usr/sbin/a2enmod proxy
/usr/sbin/a2enmod proxy_http
/bin/systemctl restart apache2.service
HTTP HTTPS: apache
slice -o$@uUNDEF":"$@ apache
.PHONY: apache-uninstall
apache-uninstall:
/usr/sbin/a2ensite cgit
/usr/sbin/a2ensite cgit-le-ssl
rm $(APACHE_DIR)/cgit.conf
rm $(APACHE_DIR)/cgit-le-ssl.conf
/bin/systemctl restart apache2.service
.PHONY: cgit-install
cgit-install:
cp cgitrc cgitrepos /etc
.PHONY: clean
clean:
rm -f HTTP HTTPS
|