summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorfelmur2015-11-02 11:50:07 +0100
committerfelmur2015-11-02 11:50:07 +0100
commitfdbf03bed05148a836fd622ccc31de9b2cd12cb6 (patch)
treebc65f8e283820f75da7aefa8e556b531e53b4538
downloadaur-fdbf03bed05148a836fd622ccc31de9b2cd12cb6.tar.gz
Initial import
-rw-r--r--.SRCINFO14
-rw-r--r--PKGBUILD49
-rw-r--r--snx.install10
3 files changed, 73 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..32ed19fea3e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,14 @@
+pkgbase = snx
+ pkgdesc = Check Point SSL Network Extender (vpn client)
+ pkgver = 800007097
+ pkgrel = 1
+ install = snx.install
+ arch = x86_64
+ license = GPL
+ depends = lib32-pam>=1.2.1
+ noextract = https://vpnportal.aktifbank.com.tr/SNX/INSTALL/snx_install.sh
+ source = https://vpnportal.aktifbank.com.tr/SNX/INSTALL/snx_install.sh
+ md5sums = 82b517242eab2788dceaedb6b8f952cc
+
+pkgname = snx
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..0720c06e4c7
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,49 @@
+# Maintainer: Your Name <youremail@domain.com>
+pkgname=snx
+pkgver=800007097
+pkgrel=1
+pkgdesc="Check Point SSL Network Extender (vpn client)"
+arch=('x86_64')
+url=""
+license=('GPL')
+groups=()
+depends=('lib32-pam>=1.2.1')
+makedepends=()
+optdepends=()
+provides=()
+conflicts=()
+replaces=()
+backup=()
+options=()
+install=snx.install
+changelog=
+source=("https://vpnportal.aktifbank.com.tr/SNX/INSTALL/snx_install.sh")
+noextract=("${source[@]%%::*}")
+md5sums=('82b517242eab2788dceaedb6b8f952cc')
+
+build() {
+ cd "$pkgname-$pkgver"
+}
+
+prepare() {
+ mkdir "$pkgname-$pkgver"
+
+ # ARCHIVE_OFFSET FROM snx_install.sh FILE
+ ARCHIVE_OFFSET=78
+ tail -n +$ARCHIVE_OFFSET snx_install.sh >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 00000000000..3cb7965e7b4
--- /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
+}
+
+