updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / mibbrowser / PKGBUILD
blob49e052009e9ccb8ccb1a22fba4b876ae1f45824b
1 # Maintainer: Phillip Smith <fukawi2@NO-SPAM.gmail.com>
2 # http://github.com/fukawi2/aur-packages
4 ### I AM ONLY THE PACKAGER, NOT THE DEVELOPER
5 ### Please ask support questions about this software in one of:
6 ###   1) The AUR comments; OR
7 ###   2) Upstream forums/maillist etc; OR
8 ###   3) The ArchLinux forums
9 ### I do not always know enough about the software itself, or don't have the
10 ### time to promptly respond to direct emails.
11 ### If you have found a problem with the package/PKGBUILD (as opposed to
12 ### the software) then please do email me or post an AUR comment.
14 pkgname=mibbrowser
15 pkgver=7.5.2722
16 pkgrel=1
17 pkgdesc="A powerful and easy-to-use MIB browser. Supports standard & proprietary MIBs. Also issue SNMP requests to retrieve agent data. Built-in trap receiver can receive SNMP traps and handle trap storm."
18 arch=('any')
19 license=('custom')
20 depends=('java-runtime')
21 url="http://ireasoning.com/mibbrowser.shtml"
22 source=("$pkgname-$pkgver::http://www.ireasoning.com/download/mibfree/$pkgname.zip")
23 md5sums=('77b9789f03eb480c9bda92e680c787de')
25 package() {
26   _dest="opt/${pkgname}"
28   # Licenses first, before we move the whole directory to opt
29   cd "$srcdir/ireasoning/${pkgname}"
30   for F in license.txt THIRDPARTYLICENSEREADME.txt ; do
31     # Install to /usr and remove from distribution dir
32     install -D -m644 $F "${pkgdir}/usr/share/licenses/${pkgname}/$F"
33     rm -f $F
34     # Symlink the original file from /opt to /usr
35     ln -sf /usr/share/licenses/${pkgname}/$F $F
36   done
38   # Install the compiled app to /opt
39   cd "$srcdir/ireasoning"
40   mkdir -p "$pkgdir/opt/"
41   cp -r ${pkgname} $pkgdir/opt/
43   # Create a symlink to /usr/bin
44   mkdir -p "$pkgdir/usr/bin/"
45   ln -sf /${_dest}/browser.sh "$pkgdir/usr/bin/$pkgname"
46   chmod 755 "${pkgdir}/${_dest}/browser.sh"
48   # Log file needs to be writeable by all users
49   touch "$pkgdir/${_dest}/log/log.txt"
50   chmod 666 "$pkgdir/${_dest}/log/log.txt"
52   # Fix the run script
53   sed -e "s|^DIRNAME=.*\$|DIRNAME='/${_dest}';|g" \
54     -i "${pkgdir}/${_dest}/browser.sh"
57 # vim:set ts=2 sw=2 et: