Subject: [alpine-aports] [PATCH] Fix missing log dir in Tor

From: Yui Hirasawa <[email-masked]>
Date: Wed, 11 May 2016 12:00:29 +0300

The pacakge now creates /var/log/tor automatically. Without this Tor
failed to start and didn't give any error message.
---
 testing/tor/APKBUILD | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/testing/tor/APKBUILD b/testing/tor/APKBUILD
index 5cd5e68..591e192 100644
--- a/testing/tor/APKBUILD
+++ b/testing/tor/APKBUILD
@@ -2,7 +2,7 @@
 # Maintainer: Sam Dodrill <[email-masked]>
 pkgname=tor
 pkgver=0.2.7.6
-pkgrel=1
+pkgrel=2
 pkgdesc="Anonymous network connectivity"
 url="https://www.torproject.org"
 arch="all"
@@ -47,6 +47,7 @@ package() {
 	cd "$_builddir"
 	make DESTDIR="$pkgdir" install || return 1
 	mkdir -p "$pkgdir"/var/lib/$pkgname
+	mkdir -p "$pkgdir"/var/log/$pkgname
 	chown $pkgusers "$pkgdir"/var/lib/$pkgname
 	install -m755 -D "$srcdir"/$pkgname.initd \
 		"$pkgdir"/etc/init.d/$pkgname || return 1
-- 
2.6.4

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---