summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorsorz2017-01-11 23:01:15 +0800
committersorz2017-01-11 23:01:15 +0800
commit07ef37b06769f603268ef427f5a04a3562ceca3c (patch)
treec3230a6a7a7831899781ee9afd8c402bb5bd4de1
downloadaur-07ef37b06769f603268ef427f5a04a3562ceca3c.tar.gz
Initial upload: sstp-server 0.3.8-1
-rw-r--r--.SRCINFO23
-rw-r--r--PKGBUILD28
-rw-r--r--sstp-server@.service16
3 files changed, 67 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..87f2a9ac5b7
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,23 @@
+pkgbase = sstp-server
+ pkgdesc = A Secure Socket Tunneling Protocol (SSTP) server.
+ pkgver = 0.3.8
+ pkgrel = 1
+ url = https://github.com/sorz/sstp-server
+ arch = x86_64
+ arch = i686
+ license = MIT
+ makedepends = python2-setuptools
+ depends = python2>=2.7
+ depends = python2-twisted
+ depends = python2-service-identity
+ depends = python2-argparse
+ depends = python2-ipaddress
+ depends = ppp
+ backup = etc/sstp-server.ini
+ source = https://github.com/sorz/sstp-server/archive/v0.3.8.tar.gz
+ source = sstp-server@.service
+ sha256sums = 0ec2243c5c2b743fe481c021d0618974cf1170e30dc9916a834605b958857977
+ sha256sums = c282f4450eb00adf5d306a5cbe316441c6866d2f0f6a558dbc1f5f79819e1e87
+
+pkgname = sstp-server
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8b398cb7ce9
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,28 @@
+# Maintainer: Shell Chen <aur@sorz.org>
+pkgname=sstp-server
+pkgver=0.3.8
+pkgrel=1
+pkgdesc="A Secure Socket Tunneling Protocol (SSTP) server."
+url="https://github.com/sorz/sstp-server"
+license=('MIT')
+arch=('x86_64' 'i686')
+backup=('etc/sstp-server.ini')
+depends=('python2>=2.7' 'python2-twisted' 'python2-service-identity' 'python2-argparse'
+ 'python2-ipaddress' 'ppp')
+makedepends=('python2-setuptools')
+source=("https://github.com/sorz/sstp-server/archive/v$pkgver.tar.gz"
+ "sstp-server@.service")
+sha256sums=('0ec2243c5c2b743fe481c021d0618974cf1170e30dc9916a834605b958857977'
+ 'c282f4450eb00adf5d306a5cbe316441c6866d2f0f6a558dbc1f5f79819e1e87')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ ./setup.py build
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ ./setup.py install --root "$pkgdir" -O2
+ install -Dm644 "$srcdir/sstp-server@.service" "$pkgdir/usr/lib/systemd/system/sstp-server@.service"
+ install -Dm644 "$srcdir/$pkgname-$pkgver/sstp-server.ini" "$pkgdir/etc/sstp-server.ini"
+}
diff --git a/sstp-server@.service b/sstp-server@.service
new file mode 100644
index 00000000000..32310914e85
--- /dev/null
+++ b/sstp-server@.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=A Secure Socket Tunneling Protocol (SSTP) server.
+After=network.target
+
+[Service]
+Restart=on-failure
+
+ExecStart=/usr/bin/sstpd -f /etc/sstp-server.ini -s %i
+
+PrivateTmp=true
+PrivateDevices=true
+ProtectHome=true
+ProtectSystem=full
+
+[Install]
+WantedBy=network.target