summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaxime Poulin2016-02-12 17:29:10 -0500
committerMaxime Poulin2016-02-12 17:29:10 -0500
commitbe92c9b5c82b4bcf16c5e6709b3b10b64dfbc368 (patch)
treee4d818ad3cfe0f7c5caba928cc246e0f4722bcd0
parent7feea122c649953f42100817843fe72efcbbf5e6 (diff)
downloadaur-shout-irc.tar.gz
Add systemd security options and remove references to build dir
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD7
-rw-r--r--system.service4
3 files changed, 11 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 5f313e78bf3..f17f5d4e909 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,9 @@
# Generated by mksrcinfo v8
-# mar jan 12 23:25:03 UTC 2016
+# ven fév 12 22:29:00 UTC 2016
pkgbase = shout-irc
pkgdesc = Web-based IRC client
pkgver = 0.53.0
- pkgrel = 1
+ pkgrel = 2
url = http://shout-irc.com/
install = install
arch = any
diff --git a/PKGBUILD b/PKGBUILD
index 1806fcd9e55..e83f5b0068d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,8 @@
-# Maintainer: Maxime Poulin <maxpoulin64@gmail.com>
+# Contributor: Maxime Poulin <maxpoulin64@gmail.com>
# Contributor: Duncan K. <duncank@fastmail.fm>
pkgname=shout-irc
pkgver=0.53.0
-pkgrel=1
+pkgrel=2
pkgdesc="Web-based IRC client"
url='http://shout-irc.com/'
arch=('any')
@@ -42,4 +42,7 @@ package() {
install -Dm644 $srcdir/system.service $pkgdir/usr/lib/systemd/system/${pkgname}.service
install -Dm644 $srcdir/user.service $pkgdir/usr/lib/systemd/user/${pkgname}.service
+
+ grep -FRlZ "$startdir" "$pkgdir" | \
+ xargs -0 -- sed -i "s|$startdir|/tmp/build|g"
}
diff --git a/system.service b/system.service
index ead49578b54..e251a4121c2 100644
--- a/system.service
+++ b/system.service
@@ -7,6 +7,10 @@ User=shout-irc
Group=shout-irc
Type=simple
ExecStart=/usr/bin/shout-irc --home /etc/shout-irc
+ProtectSystem=yes
+ProtectHome=yes
+NoNewPrivileges=yes
+PrivateTmp=yes
[Install]
WantedBy=multi-user.target