summaryrefslogtreecommitdiff
path: root/config-service-projects.PKGBUILD
blob: 71cd152f466392da45e913277244e71ee4bb5d13 (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
. ${BUILDFILE%/*}/common.sh
pkgver=20160713.1

depends=(git cgit uwsgi-plugin-cgi config-uwsgi)

package() {
cd "$pkgdir"

add-file -m755 etc/ssl/misc/certbot-get.d/10-projects <<EOF
#!/bin/bash
echo projects.{parabola.nu,parabolagnulinux.org}
EOF

add-file etc/nginx/sites/server-projects.parabola.nu.conf <<EOF
# -*- Mode: nginx; nginx-indent-level: 8; indent-tabs-mode: t -*-

server {
	server_name projects.parabola.nu;
	listen 443 ssl http2;
	listen [::]:443 ssl http2;

	location / { return 301 https://git.parabola.nu\$request_uri; }
}
EOF

backup=($(find "$pkgdir" -type f -printf '%P\n'))
}