[arch-commits] Commit in sstp-client/repos (5 files)
Evangelos Foutras
foutrelis at archlinux.org
Tue Aug 6 03:46:16 UTC 2019
Date: Tuesday, August 6, 2019 @ 03:46:16
Author: foutrelis
Revision: 497557
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 497556, sstp-client/trunk/50-sstp.PROFILE.sh.sample)
sstp-client/repos/community-staging-x86_64/PKGBUILD
(from rev 497556, sstp-client/trunk/PKGBUILD)
sstp-client/repos/community-staging-x86_64/sstp-client.install
(from rev 497556, sstp-client/trunk/sstp-client.install)
sstp-client/repos/community-staging-x86_64/sstp.options.sample
(from rev 497556, 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-staging-x86_64/50-sstp.PROFILE.sh.sample (from rev 497556, 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 2019-08-06 03:46:16 UTC (rev 497557)
@@ -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 497556, sstp-client/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2019-08-06 03:46:16 UTC (rev 497557)
@@ -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.12
+pkgrel=4
+pkgdesc="SSTP client stable revision"
+arch=("i686" "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")
+sha1sums=('65ad1d0700e8f52ed1e1b21433a99b5962a5a320'
+ 'c3a81ad7ce4c8cdbfb53a780110e92cf64412c68'
+ 'afe80911a5ec033eac583242c642cc5ad00e6ac4')
+
+build() {
+ pppd_version="$(pppd --version 2>&1 | awk '{print $3}')"
+ cd "$srcdir"/$pkgname-$pkgver
+
+ ./configure \
+ --prefix=/usr \
+ --localstatedir=/ \
+ --with-pppd-plugin-dir=/usr/lib/pppd/$pppd_version
+ make
+}
+
+package() {
+ cd "$srcdir"/$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 497556, sstp-client/trunk/sstp-client.install)
===================================================================
--- community-staging-x86_64/sstp-client.install (rev 0)
+++ community-staging-x86_64/sstp-client.install 2019-08-06 03:46:16 UTC (rev 497557)
@@ -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 497556, sstp-client/trunk/sstp.options.sample)
===================================================================
--- community-staging-x86_64/sstp.options.sample (rev 0)
+++ community-staging-x86_64/sstp.options.sample 2019-08-06 03:46:16 UTC (rev 497557)
@@ -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