summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO41
-rw-r--r--PKGBUILD91
-rw-r--r--ibm52503
-rw-r--r--ibm5250.desktop11
-rw-r--r--ibm5250.pngbin0 -> 414 bytes
-rw-r--r--iseriesaccess.conf8
-rw-r--r--iseriesaccess_i686.conf1
-rw-r--r--iseriesaccess_x86_64.conf2
-rw-r--r--package.install74
-rw-r--r--setup52503
-rw-r--r--setup5250.desktop11
-rw-r--r--setup5250.pngbin0 -> 347 bytes
12 files changed, 245 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..3e44eafab7a
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,41 @@
+pkgbase = iseriesaccess
+ pkgdesc = IBM iSeries Access provides a 5250 emulator and others tools for IBM iSeries (formerly known as AS400). This package provides always the latest version.
+ pkgver = 7.1.0.1.0
+ pkgrel = 1
+ url = http://www-03.ibm.com/systems/power/software/i/access/linux.html
+ install = package.install
+ arch = i686
+ arch = x86_64
+ license = custom
+ makedepends = zenity
+ depends = unixodbc
+ depends = xorg-fonts-75dpi
+ depends = xorg-fonts-100dpi
+ depends = desktop-file-utils
+ depends = libstdc++5
+ depends = openmotif
+ optdepends = rpm: diagnostic package information for cwbmedic
+ provides = iseriesaccess
+ source = file://iSeriesAccess-7.1.0-1.0.i386.rpm
+ source = iseriesaccess_i686.conf
+ source = iseriesaccess_x86_64.conf
+ source = iseriesaccess.conf
+ source = ibm5250
+ source = ibm5250.png
+ source = ibm5250.desktop
+ source = setup5250
+ source = setup5250.png
+ source = setup5250.desktop
+ md5sums = ec70565b14223bad99f9255e8d4318b4
+ md5sums = 346745e55dca69c03bda3a5e9a6931e1
+ md5sums = e5bddef5fef091cc01c222cfafa49a8b
+ md5sums = 588ba7d61aa2eedeb7c88641b87760f8
+ md5sums = a749197995b5e9ad488567dbea826be2
+ md5sums = 58703c74e4908fbc4df41bc32e35ab51
+ md5sums = 85bf8a1c091f59ef5357429161db1514
+ md5sums = 06861ad18da3fefc73097a59054cf80a
+ md5sums = 8b9a1d6ab9513699a95ababab85ba3c2
+ md5sums = f14cbb1cd9d72a29808978a64e1852e0
+
+pkgname = iseriesaccess
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f4f7e182487
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,91 @@
+# Maintainer: Muflone <muflone@vbsimple.net>
+
+pkgname=iseriesaccess
+pkgver=7.1.0.1.0
+pkgrel=1
+_filever='7.1.0-1.0'
+pkgdesc="IBM iSeries Access provides a 5250 emulator and others tools for IBM iSeries (formerly known as AS400). This package provides always the latest version."
+arch=(i686 x86_64)
+url="http://www-03.ibm.com/systems/power/software/i/access/linux.html"
+license=('custom')
+makedepends=(zenity)
+depends=(unixodbc xorg-fonts-75dpi xorg-fonts-100dpi desktop-file-utils libstdc++5)
+optdepends=('rpm: diagnostic package information for cwbmedic')
+provides=(iseriesaccess)
+conflicts=()
+install=package.install
+source=(
+ "file://iSeriesAccess-${_filever}.i386.rpm"
+ "iseriesaccess_i686.conf"
+ "iseriesaccess_x86_64.conf"
+ "iseriesaccess.conf"
+ "ibm5250"
+ "ibm5250.png"
+ "ibm5250.desktop"
+ "setup5250"
+ "setup5250.png"
+ "setup5250.desktop"
+ )
+md5sums=(
+ 'ec70565b14223bad99f9255e8d4318b4'
+ '346745e55dca69c03bda3a5e9a6931e1'
+ 'e5bddef5fef091cc01c222cfafa49a8b'
+ '588ba7d61aa2eedeb7c88641b87760f8'
+ 'a749197995b5e9ad488567dbea826be2'
+ '58703c74e4908fbc4df41bc32e35ab51'
+ '85bf8a1c091f59ef5357429161db1514'
+ '06861ad18da3fefc73097a59054cf80a'
+ '8b9a1d6ab9513699a95ababab85ba3c2'
+ 'f14cbb1cd9d72a29808978a64e1852e0'
+ )
+DLAGENTS=(
+ "${DLAGENTS[@]}"
+ 'local::/bin/true'
+ 'file::/bin/ln -s "$(zenity --file-selection --title="Select resource for %u" --file-filter $(basename %u))" %o'
+ )
+_bindir='bin'
+
+if [ "${CARCH}" = 'x86_64' ]
+then
+ source+=("file://iSeriesAccess-${_filever}.x86_64.rpm")
+ md5sums+=('952a80bd835c8efb187695083adf2e2a')
+ depends+=(lib32-libstdc++5 lib32-libxpm lib32-libxmu lib32-libxp lib32-openmotif lib32-unixodbc)
+ _bindir='bin64'
+else
+ depends+=(openmotif)
+fi
+
+package() {
+ msg2 "Installing files for the package..."
+ cp -r opt "${pkgdir}"
+ install -d "${pkgdir}/etc/ld.so.conf.d"
+ install -m 644 -t "${pkgdir}/etc/ld.so.conf.d/" iseriesaccess_${CARCH}.conf
+
+ msg2 "Creating configuration files..."
+ install -d "${pkgdir}/etc/conf.d"
+ install -m 644 -t "${pkgdir}/etc/conf.d" iseriesaccess.conf
+
+ msg2 "Creating symlinks for executable..."
+ install -d "${pkgdir}/usr/bin"
+ for file in cwbcopwr cwbping cwbrunsql cwbtrc rmtcmd rmtodbc
+ do
+ ln -s /opt/ibm/iSeriesAccess/${_bindir}/${file} "${pkgdir}/usr/bin/"
+ done
+ install -m 755 -t "${pkgdir}/usr/bin" setup5250
+ install -m 755 -t "${pkgdir}/usr/bin" ibm5250
+
+ msg2 "Installing license file..."
+ install -d "${pkgdir}/usr/share/licenses/${pkgname}"
+ ln -s /opt/ibm/iSeriesAccess/doc/license.txt "${pkgdir}/usr/share/licenses/${pkgname}/"
+
+ msg2 "Installing icons..."
+ install -d "$pkgdir/usr/share/pixmaps"
+ install -m 644 -t "$pkgdir/usr/share/pixmaps" ibm5250.png
+ install -m 644 -t "$pkgdir/usr/share/pixmaps" setup5250.png
+
+ msg2 "Installing desktop files..."
+ install -d "$pkgdir/usr/share/applications"
+ install -m 644 -t "$pkgdir/usr/share/applications" ibm5250.desktop
+ install -m 644 -t "$pkgdir/usr/share/applications" setup5250.desktop
+}
+
diff --git a/ibm5250 b/ibm5250
new file mode 100644
index 00000000000..d1c2e3bb618
--- /dev/null
+++ b/ibm5250
@@ -0,0 +1,3 @@
+#!/bin/sh
+source /etc/conf.d/iseriesaccess.conf
+"${IACCESS_HOME}/bin/ibm5250" "$@"
diff --git a/ibm5250.desktop b/ibm5250.desktop
new file mode 100644
index 00000000000..772cea4f88e
--- /dev/null
+++ b/ibm5250.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Name=IBM iSeries Access Emulator
+Type=Application
+Exec=ibm5250
+Icon=ibm5250.png
+Hidden=false
+Categories=Network;
+Comment=IBM iSeries Access Emulator for 5250 and AS400
+Keywords=IBM;iseries;as400;emulator;5250;telnet
diff --git a/ibm5250.png b/ibm5250.png
new file mode 100644
index 00000000000..ac769fea19a
--- /dev/null
+++ b/ibm5250.png
Binary files differ
diff --git a/iseriesaccess.conf b/iseriesaccess.conf
new file mode 100644
index 00000000000..5b3eb70b9dc
--- /dev/null
+++ b/iseriesaccess.conf
@@ -0,0 +1,8 @@
+# Replacing the utf8 LANG will prevent segmentation faults for unavailable locales
+# thus replacing en_US.utf8 will be replaced with en_US
+# If the new locale is not available then the C locale will be used
+IACCESS_HOME=/opt/ibm/iSeriesAccess
+LANG=${LANG/.utf8/}
+LANG=${LANG/.utf-8/}
+LANG=${LANG/.UTF8/}
+LANG=${LANG/.UTF-8/}
diff --git a/iseriesaccess_i686.conf b/iseriesaccess_i686.conf
new file mode 100644
index 00000000000..207751f3420
--- /dev/null
+++ b/iseriesaccess_i686.conf
@@ -0,0 +1 @@
+/opt/ibm/iSeriesAccess/lib
diff --git a/iseriesaccess_x86_64.conf b/iseriesaccess_x86_64.conf
new file mode 100644
index 00000000000..2a30cd4edfd
--- /dev/null
+++ b/iseriesaccess_x86_64.conf
@@ -0,0 +1,2 @@
+/opt/ibm/iSeriesAccess/lib
+/opt/ibm/iSeriesAccess/lib64
diff --git a/package.install b/package.install
new file mode 100644
index 00000000000..b8a33cc11a8
--- /dev/null
+++ b/package.install
@@ -0,0 +1,74 @@
+do_install() {
+ update-desktop-database -q
+ # Add libodbc.so.1 symlink
+ if [ ! -e /usr/lib/libodbc.so.1 ]
+ then
+ ln -s libodbc.so /usr/lib/libodbc.so.1
+ echo 'Missing /usr/lib/libodbc.so.1, symlinked libodbc.so.1 => libodbc.so'
+ fi
+ if [ $(uname -m) = 'x86_64' -a ! -e /usr/lib32/libodbc.so.1 ]
+ then
+ ln -s libodbc.so /usr/lib32/libodbc.so.1
+ echo 'Missing /usr/lib32/libodbc.so.1, symlinked libodbc.so.1 => libodbc.so'
+ fi
+
+ # Add libodbcinst.so.1 symlink
+ if [ ! -e /usr/lib/libodbcinst.so.1 ]
+ then
+ ln -s libodbcinst.so /usr/lib/libodbcinst.so.1
+ echo 'Missing /usr/lib/libodbcinst.so.1, symlinked libodbcinst.so.1 => libodbcinst.so'
+ fi
+ if [ $(uname -m) = 'x86_64' -a ! -e /usr/lib32/libodbcinst.so.1 ]
+ then
+ ln -s libodbcinst.so /usr/lib32/libodbcinst.so.1
+ echo 'Missing /usr/lib32/libodbcinst.so.1, symlinked libodbcinst.so.1 => libodbcinst.so'
+ fi
+
+ # Add libXm.so.3 symlink
+ if [ $(uname -m) = 'x86_64' ]
+ then
+ if [ ! -e /usr/lib32/libXm.so.3 ]
+ then
+ ln -s libXm.so /usr/lib32/libXm.so.3
+ echo 'Missing /usr/lib32/libXm.so.3, symlinked libXm.so.3 => libXm.so'
+ fi
+ else
+ if [ ! -e /usr/lib/libXm.so.3 ]
+ then
+ ln -s libXm.so /usr/lib/libXm.so.3
+ echo 'Missing /usr/lib/libXm.so.3, symlinked libXm.so.3 => libXm.so'
+ fi
+ fi
+}
+
+post_install() {
+ echo 'If have just installed the xorg-fonts-75dpi and xorg-fonts-100dpi packages as'
+ echo 'dependencies then you have to restart your X session to use the new fonts.'
+ echo
+ echo 'The localized version of setup5250 and ibm5250 requires the use of a not UTF-8'
+ echo 'locale, like en_US ISO-8859-1 so you need to enable such locale in '
+ echo '/etc/locale.gen and then launch locale-gen (as root).'
+ echo
+ # Register ODBC driver
+ if [ $(uname -m) = 'x86_64' ]
+ then
+ odbcinst -i -d -f /opt/ibm/iSeriesAccess/unixodbcregistration64 > /dev/null
+ else
+ odbcinst -i -d -f /opt/ibm/iSeriesAccess/unixodbcregistration > /dev/null
+ fi
+ do_install
+}
+
+post_upgrade() {
+ do_install
+}
+
+post_remove() {
+ update-desktop-database -q
+
+ odbcinst -u -d -n 'iSeries Access ODBC Driver' > /dev/null
+ if [ $(uname -m) = 'x86_64' ]
+ then
+ odbcinst -u -d -n 'iSeries Access ODBC Driver 64-bit' > /dev/null
+ fi
+}
diff --git a/setup5250 b/setup5250
new file mode 100644
index 00000000000..6ae2fb23f3f
--- /dev/null
+++ b/setup5250
@@ -0,0 +1,3 @@
+#!/bin/sh
+source /etc/conf.d/iseriesaccess.conf
+"${IACCESS_HOME}/bin/setup5250" "$@"
diff --git a/setup5250.desktop b/setup5250.desktop
new file mode 100644
index 00000000000..569295f4f73
--- /dev/null
+++ b/setup5250.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Version=1.0
+Encoding=UTF-8
+Name=IBM iSeries Access Configuration
+Type=Application
+Exec=setup5250
+Icon=setup5250.png
+Hidden=false
+Categories=Network;
+Comment=Configure 5250 terminal sessions for IBM iSeries and AS400
+Keywords=IBM;iseries;as400;emulator;5250;telnet
diff --git a/setup5250.png b/setup5250.png
new file mode 100644
index 00000000000..8daaf61e62f
--- /dev/null
+++ b/setup5250.png
Binary files differ