[arch-commits] Commit in sstp-client/repos (5 files)

Felix Yan felixonmars at archlinux.org
Wed Jan 27 09:34:53 UTC 2021


    Date: Wednesday, January 27, 2021 @ 09:34:52
  Author: felixonmars
Revision: 831864

archrelease: copy trunk to community-testing-x86_64

Added:
  sstp-client/repos/community-testing-x86_64/
  sstp-client/repos/community-testing-x86_64/50-sstp.PROFILE.sh.sample
    (from rev 831863, sstp-client/trunk/50-sstp.PROFILE.sh.sample)
  sstp-client/repos/community-testing-x86_64/PKGBUILD
    (from rev 831863, sstp-client/trunk/PKGBUILD)
  sstp-client/repos/community-testing-x86_64/sstp-client.install
    (from rev 831863, sstp-client/trunk/sstp-client.install)
  sstp-client/repos/community-testing-x86_64/sstp.options.sample
    (from rev 831863, sstp-client/trunk/sstp.options.sample)

---------------------------+
 50-sstp.PROFILE.sh.sample |    7 ++++++
 PKGBUILD                  |   51 ++++++++++++++++++++++++++++++++++++++++++++
 sstp-client.install       |   21 ++++++++++++++++++
 sstp.options.sample       |    9 +++++++
 4 files changed, 88 insertions(+)

Copied: sstp-client/repos/community-testing-x86_64/50-sstp.PROFILE.sh.sample (from rev 831863, sstp-client/trunk/50-sstp.PROFILE.sh.sample)
===================================================================
--- community-testing-x86_64/50-sstp.PROFILE.sh.sample	                        (rev 0)
+++ community-testing-x86_64/50-sstp.PROFILE.sh.sample	2021-01-27 09:34:52 UTC (rev 831864)
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+echo "please replace this sample with normal script and rename to .sh (will not run otherwise)"
+#
+# if [ "$6" == "<profile name from sstp.options>" ]; then
+#   ip route add 10.0.0.0/16 dev ppp0 # or whatever needed for routing
+# fi

Copied: sstp-client/repos/community-testing-x86_64/PKGBUILD (from rev 831863, sstp-client/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2021-01-27 09:34:52 UTC (rev 831864)
@@ -0,0 +1,51 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Echizen Ryoma <echizenryoma.zhang at gmail.com>
+# Contributor: Dmitry V. Luciv <dluciv at dluciv.name>
+# Contributor: Martchus <martchus at gmx.net>
+
+pkgname=sstp-client
+pkgver=1.0.14
+pkgrel=2
+pkgdesc="SSTP client stable revision"
+arch=("x86_64")
+url="http://sstp-client.sourceforge.net/"
+license=('GPL2')
+depends=('libevent' 'openssl')
+makedepends=('ppp')
+optdepends=('ppp')
+install=$pkgname.install
+source=('50-sstp.PROFILE.sh.sample'
+        'sstp.options.sample'
+        "https://sourceforge.net/projects/sstp-client/files/sstp-client/$pkgname-$pkgver.tar.gz")
+sha512sums=('56859f24a3599d3f68f432e36661f43e08aeb8cb3bf959ddede6028a426117c06f0221ffd91c852bf9f4f34069d8adc7a199db6679f75daf508713e12735484d'
+            'a817dbfc9038f240bf0cbed295b654587070226c71fbf89fee4cd6a6d7912629cb2e15e7ae2b74c9a5e42e756bc6819c95bbb493503ac6921b4b01a571bf5430'
+            '2233b9028bf5478e753a30de5534ad8a9bea40cc81adfb73e239dd2b945fea5c929cccd6d709807247c91589a4bc1299716a616ff4d88f75fdcc36bee98c4c3b')
+
+build() {
+  pppd_version="$(pppd --version 2>&1 | awk '{print $3}')"
+  cd $pkgname-$pkgver
+
+  ./configure \
+    --prefix=/usr \
+    --localstatedir=/ \
+    --with-pppd-plugin-dir=/usr/lib/pppd/$pppd_version
+  make
+}
+
+package() {
+  cd $pkgname-$pkgver
+
+  make DESTDIR="$pkgdir" install
+
+  install -d "$pkgdir"/run/sstpc
+  install -d "$pkgdir"/etc/sstpc
+  install -d "$pkgdir"/etc/ppp/ip-up.d
+
+  install -Dm644 "$srcdir"/sstp.options.sample "$pkgdir"/etc/sstpc/sstp.options.sample
+  install -Dm744 "$srcdir"/50-sstp.PROFILE.sh.sample "$pkgdir"/etc/ppp/ip-up.d/50-sstp.PROFILE.sh.sample
+
+  rm -rf "$pkgdir"/var
+  rm -rf "$pkgdir"/run
+
+  mv "$pkgdir"/usr/sbin "$pkgdir"/usr/bin
+}

Copied: sstp-client/repos/community-testing-x86_64/sstp-client.install (from rev 831863, sstp-client/trunk/sstp-client.install)
===================================================================
--- community-testing-x86_64/sstp-client.install	                        (rev 0)
+++ community-testing-x86_64/sstp-client.install	2021-01-27 09:34:52 UTC (rev 831864)
@@ -0,0 +1,21 @@
+rmstate() {
+  /bin/true
+}
+
+post_install() {
+  /bin/true
+}
+
+post_upgrade() {
+  rm -f /run/sstpc/*
+}
+
+pre_remove() {
+  rm -f /run/sstpc/*
+}
+
+op=$1
+shift
+
+$op "$@"
+

Copied: sstp-client/repos/community-testing-x86_64/sstp.options.sample (from rev 831863, sstp-client/trunk/sstp.options.sample)
===================================================================
--- community-testing-x86_64/sstp.options.sample	                        (rev 0)
+++ community-testing-x86_64/sstp.options.sample	2021-01-27 09:34:52 UTC (rev 831864)
@@ -0,0 +1,9 @@
+remotename      <NAME>
+linkname        <NAME>
+ipparam         <NAME>
+name            <DOMAIN>\\<USER>
+password        <PASSWORD>
+plugin          sstp-pppd-plugin.so
+sstp-sock       /run/sstpc/sstpc-uds-sock
+noauth
+usepeerdns



More information about the arch-commits mailing list