summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO13
-rwxr-xr-xPKGBUILD17
-rw-r--r--stuntman.service1
3 files changed, 21 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index a9f4da8e36c..22e59c6fafb 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,15 +1,20 @@
+# Generated by mksrcinfo v8
+# Sat Feb 3 04:43:03 UTC 2018
pkgbase = stuntman
pkgdesc = STUN server and client
- pkgver = 1.2.1
- pkgrel = 2
+ pkgver = 1.2.13
+ pkgrel = 1
url = http://www.stunprotocol.org/
arch = i686
arch = x86_64
license = Apache
makedepends = boost
+ depends = openssl-1.0
conflicts = stuntman-git
- source = https://github.com/jselbie/stunserver/archive/version1.2.1.zip
- sha256sums = 59c35de587699f4e8959b19d5d26173d27a9f4affe2b07b793dd95ac52508c53
+ source = https://github.com/jselbie/stunserver/archive/version1.2.13.zip
+ source = stuntman.service
+ sha256sums = bb7cd1f3a70344907dae1e945e0fd02801d259d51494ba14de2506641d69f55f
+ sha256sums = 941a3c547e907c4bb07628f343c34477ce61ae5bfe3fce44345b0a5343872b15
pkgname = stuntman
diff --git a/PKGBUILD b/PKGBUILD
index 9320c95bf57..a78e8d312ad 100755
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,20 +1,26 @@
# maintainer: so wieso <sowieso@dukun.de>
pkgname=stuntman
-pkgver=1.2.1
-pkgrel=2
+pkgver=1.2.13
+pkgrel=1
pkgdesc="STUN server and client"
url="http://www.stunprotocol.org/"
license=("Apache")
arch=("i686" "x86_64")
-depends=()
+depends=("openssl-1.0")
optdepends=()
makedepends=("boost")
conflicts=("stuntman-git")
-source=("https://github.com/jselbie/stunserver/archive/version1.2.1.zip")
-sha256sums=("59c35de587699f4e8959b19d5d26173d27a9f4affe2b07b793dd95ac52508c53")
+source=("https://github.com/jselbie/stunserver/archive/version1.2.13.zip"
+ "stuntman.service"
+ )
+sha256sums=("bb7cd1f3a70344907dae1e945e0fd02801d259d51494ba14de2506641d69f55f"
+ "941a3c547e907c4bb07628f343c34477ce61ae5bfe3fce44345b0a5343872b15"
+ )
build() {
cd "${srcdir}/stunserver-version${pkgver}"
+ sed -i 's|^#OPENSSL_INC.*|OPENSSL_INCLUDE := -I/usr/include/openssl-1.0|' common.inc
+ sed -i -E 's|^CRYPTO_LIBS(.*)|CRYPTO_LIBS\1 -L/usr/lib/openssl-1.0|' common.inc
make
}
@@ -24,4 +30,5 @@ package() {
install -D -m0644 -t "$pkgdir/usr/share/doc/${pkgname}" HISTORY README
install -D -m0644 <(./stunclient --help | gzip) "$pkgdir/usr/share/man/man1/stunclient.1.gz"
install -D -m0644 <(./stunserver --help | gzip) "$pkgdir/usr/share/man/man1/stunserver.1.gz"
+ install -D -m0644 ../stuntman.service "$pkgdir/usr/lib/systemd/system/stuntman.service"
}
diff --git a/stuntman.service b/stuntman.service
index 55fb22432e5..0439f78c791 100644
--- a/stuntman.service
+++ b/stuntman.service
@@ -7,7 +7,6 @@ Type=simple
User=nobody
Group=nobody
ExecStart=/usr/bin/stunserver
-ExecStop=/usr/bin/killall --user nobody stunserver
[Install]
WantedBy=multi-user.target