Date: Thursday, May 6, 2021 @ 14:09:04 Author: arojas Revision: 928461
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 928460, sstp-client/trunk/50-sstp.PROFILE.sh.sample) sstp-client/repos/community-testing-x86_64/PKGBUILD (from rev 928460, sstp-client/trunk/PKGBUILD) sstp-client/repos/community-testing-x86_64/sstp-client.install (from rev 928460, sstp-client/trunk/sstp-client.install) sstp-client/repos/community-testing-x86_64/sstp.options.sample (from rev 928460, 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-testing-x86_64/50-sstp.PROFILE.sh.sample (from rev 928460, 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-05-06 14:09:04 UTC (rev 928461) @@ -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 928460, sstp-client/trunk/PKGBUILD) =================================================================== --- community-testing-x86_64/PKGBUILD (rev 0) +++ community-testing-x86_64/PKGBUILD 2021-05-06 14:09:04 UTC (rev 928461) @@ -0,0 +1,52 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Echizen Ryoma <echizenryoma.zh...@gmail.com> +# Contributor: Dmitry V. Luciv <dlu...@dluciv.name> +# Contributor: Martchus <martc...@gmx.net> + +pkgname=sstp-client +pkgver=1.0.13 +pkgrel=1 +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' + '862426d539ec95da5d6929eac529d0a85a0ea490e21165173b19e06df9cf6608ab441ef9a0232fa5256e48d377cfde0aef0a9b394b6f263ce2186dc3de9c5a8b') + +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 928460, sstp-client/trunk/sstp-client.install) =================================================================== --- community-testing-x86_64/sstp-client.install (rev 0) +++ community-testing-x86_64/sstp-client.install 2021-05-06 14:09:04 UTC (rev 928461) @@ -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 928460, sstp-client/trunk/sstp.options.sample) =================================================================== --- community-testing-x86_64/sstp.options.sample (rev 0) +++ community-testing-x86_64/sstp.options.sample 2021-05-06 14:09:04 UTC (rev 928461) @@ -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