network/windscribe: Updated for version 2.3.15.
Signed-off-by: Reza Talebi <reza.talebi.73@outlook.com> Signed-off-by: Pouria Rezaei <Pouria.rz@outlook.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
32a0716680
commit
5c8b312d41
File diff suppressed because it is too large
Load Diff
|
@ -2,9 +2,9 @@
|
|||
|
||||
|
||||
|
||||
PRGNAM=windscribe
|
||||
PRGNAM=helper
|
||||
PID=/var/run/$PRGNAM.pid
|
||||
DAEMON=/usr/bin/windscribe
|
||||
DAEMON=/usr/local/windscribe/helper
|
||||
|
||||
|
||||
#
|
||||
|
@ -13,12 +13,12 @@ DAEMON=/usr/bin/windscribe
|
|||
windscribe_start()
|
||||
{
|
||||
if [ -s $PID ]; then
|
||||
echo "$PRGNAM is already running: $(cat $PID)"
|
||||
echo "Windscribe is already running: $(cat $PID)"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -x $DAEMON ]; then
|
||||
$DAEMON start
|
||||
$DAEMON &
|
||||
pidof $DAEMON > $PID
|
||||
fi
|
||||
}
|
||||
|
@ -29,10 +29,10 @@ windscribe_start()
|
|||
windscribe_stop()
|
||||
{
|
||||
if [ -s $PID ]; then
|
||||
$DAEMON stop
|
||||
kill $(cat $PID)
|
||||
rm -rf $PID
|
||||
else
|
||||
echo "$PRGNAM is not running."
|
||||
echo "Windscribe is not running."
|
||||
fi
|
||||
}
|
||||
|
||||
|
@ -52,9 +52,9 @@ windscribe_restart()
|
|||
windscribe_status()
|
||||
{
|
||||
if [ -s $PID ]; then
|
||||
echo "$PRGNAM is running: $(cat $PID)"
|
||||
echo "Windscribe is running: $(cat $PID)"
|
||||
else
|
||||
echo "$PRGNAM is not running."
|
||||
echo "Windscribe is not running."
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
|
@ -22,11 +22,13 @@
|
|||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
# Modified by Pouria Rezaei <Pouria.rz@outlook.com>
|
||||
|
||||
cd $(dirname $0) ; CWD=$(pwd)
|
||||
|
||||
PRGNAM=windscribe
|
||||
VERSION=${VERSION:-1.4}
|
||||
BUILD=${BUILD:-52}
|
||||
VERSION=${VERSION:-2.3.15}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
PKGTYPE=${PKGTYPE:-tgz}
|
||||
|
||||
|
@ -64,13 +66,14 @@ fi
|
|||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-${VERSION}
|
||||
mkdir -p $PRGNAM-${VERSION}
|
||||
cd $PKG
|
||||
rpm2cpio $CWD/$PRGNAM-cli-${VERSION}-${BUILD}.${ARCH}.rpm | cpio -idmv
|
||||
rm -rf usr/lib
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
mkdir -p $PRGNAM-$VERSION
|
||||
cd $PRGNAM-$VERSION
|
||||
rpm2cpio $CWD/${PRGNAM}_${VERSION}_beta_${ARCH}.rpm | cpio -idmv
|
||||
rm -fR etc/{systemd,windscribe/update-systemd-resolved}
|
||||
mv * $PKG/
|
||||
|
||||
mkdir -p usr/doc/$PRGNAM-$VERSION
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
mkdir -p $PKG/install
|
||||
|
@ -78,7 +81,7 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
|
|||
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
|
||||
mkdir -p $PKG/etc/rc.d/
|
||||
cp $CWD/rc.$PRGNAM $PKG/etc/rc.d/rc.$PRGNAM
|
||||
install -m 0755 $CWD/rc.$PRGNAM $PKG/etc/rc.d/rc.$PRGNAM
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
PRGNAM="windscribe"
|
||||
VERSION="1.4"
|
||||
VERSION="2.3.15"
|
||||
HOMEPAGE="https://www.windscribe.com/"
|
||||
DOWNLOAD="UNSUPPORTED"
|
||||
MD5SUM=""
|
||||
DOWNLOAD_x86_64="https://assets.staticnetcontent.com/desktop/linux/windscribe-cli-1.4-52.x86_64.rpm"
|
||||
MD5SUM_x86_64="8b04995a4030d4f1c14550dcfe630a34"
|
||||
DOWNLOAD_x86_64="https://deploy-do.windscribe.com/apps/windscribe_2.3.15_beta_x86_64.rpm"
|
||||
MD5SUM_x86_64="86ef82a58d003d2feb3865b9cd6e46ae"
|
||||
REQUIRES=""
|
||||
MAINTAINER="Reza Talebi"
|
||||
EMAIL="reza.talebi.73@outlook.com"
|
||||
|
|
Loading…
Reference in New Issue