Date: Tuesday, November 1, 2022 @ 22:42:58
Author: felixonmars
Revision: 1340492
archrelease: copy trunk to community-staging-x86_64
Added:
sstp-client/repos/community-staging-x86_64/
sstp-client/repos/community-staging-x86_64/50-sstp.PROFILE.sh.sample
(from rev 1340491, sstp-client/trunk/50-sstp.PROFILE.sh.sample)
sstp-client/repos/community-staging-x86_64/PKGBUILD
(from rev 1340491, sstp-client/trunk/PKGBUILD)
sstp-client/repos/community-staging-x86_64/sstp-client.install
(from rev 1340491, sstp-client/trunk/sstp-client.install)
sstp-client/repos/community-staging-x86_64/sstp.options.sample
(from rev 1340491, sstp-client/trunk/sstp.options.sample)
---------------------------+
50-sstp.PROFILE.sh.sample | 7 +++++
PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++
sstp-client.install | 21 +++++++++++++++++
sstp.options.sample | 9 +++++++
4 files changed, 89 insertions(+)
Copied: sstp-client/repos/community-staging-x86_64/50-sstp.PROFILE.sh.sample
(from rev 1340491, sstp-client/trunk/50-sstp.PROFILE.sh.sample)
===================================================================
--- community-staging-x86_64/50-sstp.PROFILE.sh.sample
(rev 0)
+++ community-staging-x86_64/50-sstp.PROFILE.sh.sample 2022-11-01 22:42:58 UTC
(rev 1340492)
@@ -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-staging-x86_64/PKGBUILD (from rev 1340491,
sstp-client/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2022-11-01 22:42:58 UTC (rev 1340492)
@@ -0,0 +1,52 @@
+# Maintainer: Felix Yan <[email protected]>
+# Contributor: Echizen Ryoma <[email protected]>
+# Contributor: Dmitry V. Luciv <[email protected]>
+# Contributor: Martchus <[email protected]>
+
+pkgname=sstp-client
+pkgver=1.0.17
+pkgrel=2
+epoch=1
+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'
+
'eff18eb894b2c96d46315b5ac7530fe50e8dd6e6c29ea946cd0e7c05c56416e85088fc65650fb77c05e3a747cb0b4e3575af5457515d240161027910abae9775')
+
+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-staging-x86_64/sstp-client.install (from
rev 1340491, sstp-client/trunk/sstp-client.install)
===================================================================
--- community-staging-x86_64/sstp-client.install
(rev 0)
+++ community-staging-x86_64/sstp-client.install 2022-11-01 22:42:58 UTC
(rev 1340492)
@@ -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-staging-x86_64/sstp.options.sample (from
rev 1340491, sstp-client/trunk/sstp.options.sample)
===================================================================
--- community-staging-x86_64/sstp.options.sample
(rev 0)
+++ community-staging-x86_64/sstp.options.sample 2022-11-01 22:42:58 UTC
(rev 1340492)
@@ -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