diff options
author | David Stark | 2018-10-19 09:49:57 +0100 |
---|---|---|
committer | David Stark | 2018-10-19 09:49:57 +0100 |
commit | 606776bd806c9470f4e4d3dcf51f51d525355e93 (patch) | |
tree | 2f0acff40085a7c05b419299f630d94a753c467d | |
download | aur-606776bd806c9470f4e4d3dcf51f51d525355e93.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 16 | ||||
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | PKGBUILD | 48 | ||||
-rw-r--r-- | snx.install | 10 |
4 files changed, 79 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..8f27606953e7 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,16 @@ +pkgbase = snx-800007075 + pkgdesc = Check Point SSL Network Extender (vpn client) [locked to version: 800007075] + pkgver = 800007075 + pkgrel = 1 + install = snx.install + arch = x86_64 + license = GPL + depends = lib32-pam + depends = lib32-libstdc++5 + depends = lib32-libx11 + noextract = https://starkers.keybase.pub/snx_install_linux30.sh?dl=1 + source = https://starkers.keybase.pub/snx_install_linux30.sh?dl=1 + md5sums = 4372e9936e2dfb1d1ebcef3ed4dd7787 + +pkgname = snx-800007075 + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..07082e5a1967 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +snx_install_linux30.sh?dl=1 +snx.tar.bz2 +pkg/** +src/** +**.pkg.tar diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..bc36f27e6505 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,48 @@ +# Maintainer: David Stark <david@starkers.org> +pkgname=snx-800007075 +pkgver=800007075 +pkgrel=1 +pkgdesc="Check Point SSL Network Extender (vpn client) [locked to version: 800007075]" +arch=('x86_64') +url="" +license=('GPL') +groups=() +depends=('lib32-pam' 'lib32-libstdc++5' 'lib32-libx11') +makedepends=() +optdepends=() +provides=() +conflicts=() +replaces=() +backup=() +options=() +install=snx.install +changelog= +source=("https://starkers.keybase.pub/snx_install_linux30.sh?dl=1") +noextract=("${source[@]%%::*}") +md5sums=('4372e9936e2dfb1d1ebcef3ed4dd7787') + +build() { + cd "$pkgname-$pkgver" +} + +prepare() { + mkdir "$pkgname-$pkgver" + + # ARCHIVE_OFFSET FROM snx_install.sh FILE + ARCHIVE_OFFSET=78 + tail -n +$ARCHIVE_OFFSET "snx_install_linux30.sh?dl=1" >snx.tar.bz2 + + cd "$pkgname-$pkgver" + tar -xvf ../snx.tar.bz2 +} + + +package() { + cd "$pkgname-$pkgver" + install --directory --owner=root --group=root --mode=u=rwx,g=rx,o=rx $pkgdir/usr/bin + install --owner=root --group=root --mode=u=rxs,g=x,o=x snx $pkgdir/usr/bin/snx + install --owner=root --group=root --mode=u=rx,g=rx,o=rx snx_uninstall.sh $pkgdir/usr/bin/snx_uninstall + install --directory --owner=root --group=root --mode=u=rwx $pkgdir/etc/snx + install --directory --owner=root --group=root --mode=u=rwx $pkgdir/etc/snx/tmp +} + diff --git a/snx.install b/snx.install new file mode 100644 index 000000000000..3cb7965e7b4a --- /dev/null +++ b/snx.install @@ -0,0 +1,10 @@ +# This is a default template for a post-install scriptlet. +# Uncomment only required functions and remove any functions +# you don't need (and this header). + +## arg 1: the old package version +pre_remove() { + rm -rf /etc/snx +} + + |