1 # Contributor: fnord0 < fnord0 AT riseup DOT net >
6 pkgdesc="pcap-based instant messaging sniffer. It captures the IM traffic in the network and is able to log conversations, contact lists, profile information, incoming email notifications, other MSN events, etc."
8 url="http://sourceforge.net/projects/im-snif/"
11 source=("http://downloads.sourceforge.net/sourceforge/im-snif/${pkgname}_${pkgver}.tgz")
12 md5sums=('689c456f8edb77b9b4199a25514ac683')
13 sha1sums=('c7b20fdf9c79869e222d4ee6771f1f9b72525f83')
17 install -d ${pkgdir}/usr/share/${pkgname} || return 1
18 install -d ${pkgdir}/usr/share/licenses/${pkgname} || return 1
19 install -d ${pkgdir}/usr/bin || return 1
20 install -Dm644 ${srcdir}/docs/README ${pkgdir}/usr/share/${pkgname}/README || return 1
21 install -Dm644 ${srcdir}/docs/TODO ${pkgdir}/usr/share/${pkgname}/TODO || return 1
22 install -Dm644 ${srcdir}/docs/ChangeLog ${pkgdir}/usr/share/${pkgname}/ChangeLog || return 1
23 install -Dm644 ${srcdir}/docs/imsniff.conf.sample ${pkgdir}/usr/share/${pkgname}/imsniff.conf.sample || return 1
24 install -Dm644 ${srcdir}/docs/AUTHORS ${pkgdir}/usr/share/licenses/${pkgname}/AUTHORS || return 1
25 install -Dm644 ${srcdir}/docs/LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE || return 1
28 install -Dm750 ${srcdir}/linux/imsniff ${pkgdir}/usr/share/${pkgname}/imsniff || return 1
31 echo "#!/bin/sh" > ${pkgdir}/usr/bin/imsniff
32 echo "cd /usr/share/imsniff" >> ${pkgdir}/usr/bin/imsniff
33 echo "./imsniff \"\$@\"" >> ${pkgdir}/usr/bin/imsniff
34 echo "cd -" >> ${pkgdir}/usr/bin/imsniff
35 chmod +x ${pkgdir}/usr/bin/imsniff
39 echo -e "\e[1;34m>>>\e[0m \e[1;31mrun imsniff from '\e[1;34m/usr/bin/imsniff\e[0m\e[1;31m'\e[0m"
40 echo -e "\e[1;34m>>>\e[0m \e[1;31mYou can configure imsniff via command line parameters, or via a file called '\e[1;34mimsniff.conf\e[0m\e[1;31m' that should be placed in the '\e[0m\e[1;34m/usr/share/imsniff\e[0m\e[1;31m' directory. '\e[1;34m/usr/share/imsniff/imsniff.conf.sample\e[0m\e[1;31m' is available as an example\e[0m"