summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulian Brost2018-04-14 17:55:53 +0200
committerJulian Brost2018-04-14 20:18:28 +0200
commitb1b05d8f481ba6c691baad92d5a9561517dde7d3 (patch)
treef800061fc6a48b5375f2582bd4605e1540b97fb5
parent06d9b1c988f2a68da56a21606a9ebd7e82ac1997 (diff)
downloadaur-b1b05d8f481ba6c691baad92d5a9561517dde7d3.tar.gz
Install to proper paths
-rw-r--r--PKGBUILD10
-rw-r--r--unit.service4
2 files changed, 10 insertions, 4 deletions
diff --git a/PKGBUILD b/PKGBUILD
index aefbe80a5f9..d8b76dc1c35 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -17,10 +17,16 @@ makedepends=('php-embed' 'python' 'go')
build() {
cd "$srcdir"/$_shortname-$pkgver
- ./configure --prefix=/usr --sbindir=/usr/bin
+ ./configure --prefix=/usr \
+ --sbindir=/usr/bin \
+ --modules="/usr/lib/$pkgbase" \
+ --state="/var/lib/$pkgbase" \
+ --pid="/run/$pkgbase.pid" \
+ --log="/var/log/$pkgbase.log" \
+ --control="/run/$pkgbase.control.sock"
./configure python
./configure php
- ./configure go
+ ./configure go --go-path=/usr/lib/go
make all
}
diff --git a/unit.service b/unit.service
index e7f1e1c5a3a..57c2e872d67 100644
--- a/unit.service
+++ b/unit.service
@@ -5,8 +5,8 @@ After=network-online.target
[Service]
Type=forking
-PIDFile=/run/unit.pid
-ExecStart=/usr/sbin/unitd --control unix:/run/control.unit.sock --log /var/log/unit.log --pid /run/unit.pid
+PIDFile=/run/nginx-unit.pid
+ExecStart=/usr/sbin/unitd --control unix:/run/nginx-unit.control.sock --pid /run/nginx-unit.pid
ExecReload=
[Install]