blob: cfc1e65c4d23608f21d865fe74c987fe950d74c5 (
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
|
# Maintainer: Joseph R. Quinn <quinn period josephr at protonmail dot com>
# Contributor: Ewout van Mansom <ewout at vanmansom dot name>
pkgname=nginx-h5bp-server-configs
_pkgname=server-configs-nginx
pkgver=5.0.1
pkgrel=1
pkgdesc="Nginx HTTP server boilerplate configs"
arch=('any')
url="https://github.com/h5bp/server-configs-nginx"
license=('MIT')
depends=('nginx')
provides=("$pkgname")
install='.install'
source=("https://github.com/h5bp/$_pkgname/archive/$pkgver.tar.gz")
b2sums=('883c5c6d7a40a57f6c0bb8a630157bbd6fee4e79962eaee2d45a4e83ab13947e3aa9d577d6d31661011b835e2bd9580f54b75e34466d2eb0be6fdbc3b0464810')
prepare() {
cd "$_pkgname-$pkgver"
sed -i -e 's|^pid|#&|g' 'nginx.conf'
sed -i -e 's|www-data|http|g' 'nginx.conf'
sed -i -e 's|mime.types|h5bp/mime.types|g' 'h5bp/media_types/media_types.conf'
}
package() {
cd "$_pkgname-$pkgver"
install -d "$pkgdir/etc/nginx/"
install -d "$pkgdir/etc/nginx/conf.d"
install -Dm644 conf.d/.default.conf "$pkgdir/etc/nginx/conf.d/default.conf"
install -Dm644 conf.d/no-ssl.default.conf "$pkgdir/etc/nginx/conf.d/no-ssl.default.conf"
install -d "$pkgdir/etc/nginx/conf.d/templates"
install -Dm644 conf.d/templates/example.com.conf "$pkgdir/etc/nginx/conf.d/templates/example.com.conf"
install -Dm644 conf.d/templates/no-ssl.example.com.conf "$pkgdir/etc/nginx/conf.d/templates/no-ssl.example.com.conf"
mv h5bp "$pkgdir/etc/nginx/"
install -Dm644 mime.types "$pkgdir/etc/nginx/h5bp/mime.types"
install -Dm644 nginx.conf "$pkgdir/etc/nginx/nginx.conf.example"
install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$_pkgname/LICENSE"
}
|