You are not logged in.

#1 2005-03-22 20:35:33

rokclimb15
Member
From: Athens, GA
Registered: 2004-04-02
Posts: 10
Website

[req] aimsniff

I tried building this one my self, but just getting it installed from source is a terrible terrible rats nest of dependencies and being no expert on perl modules, I just gave up.  I'm hoping someone else would have an interest and the experience necessary to build this package.  It is for capturing and organizing oscar protocol packet data.  Hopefully this will be expanded in the future to include yahoo and msn.  Very helpful to network administrators needing to keep records of these things.

http://www.aimsniff.com/

Offline

#2 2005-03-23 08:15:29

STiAT
Member
From: Vienna, Austria
Registered: 2004-12-23
Posts: 606

Re: [req] aimsniff

It's quite good documented which perl modules it needs.

You could just take a look at the installation procedure / pkgbuild of other perl modules, and you'll quickly know what to do to build perl modules which are missing in ARCH.

// STi


Ability is nothing without opportunity.

Offline

#3 2005-09-27 20:04:50

josephmc
Member
From: Texas,USA
Registered: 2005-03-16
Posts: 51
Website

Re: [req] aimsniff

Ok I got all those stupid perl modules built. I'm not going to go straight to AUR because I didn't spend a whole lot of time on them.

perl-net-pcap

pkgname=perl-net-pcap
pkgver=0.07
pkgrel=1
pkgdesc="Perl Module: a Perl binding to the LBL pcap library."
url="http://search.cpan.org/~saper/Net-Pcap-$pkgver"
depends=('perl')
source=(http://search.cpan.org/CPAN/authors/id/S/SA/SAPER/Net-Pcap-$pkgver.tar.gz)
md5sums=('0111161fbb6399f3a4ed260930c3fb24')

build() {
  cd $startdir/src/Net-Pcap-$pkgver
  /usr/bin/perl Makefile.PL
  # ugly hack to make install location
  # compatible with newer versions of perl.
  # NOTE: if perl version changes from 5.8.7, change sed line too
  /bin/sed -i "s:5.8.7:current:g" Makefile
  /usr/bin/make || return 1
  /usr/bin/make install  DESTDIR=$startdir/pkg

  # remove perllocal.pod
  /bin/rm $startdir/pkg/usr/lib/perl5/current/${CARCH}-linux-thread-multi/perllocal.pod
  # remove .packlist
  #/bin/rm -rf $startdir/pkg/usr/lib/perl5/site_perl/current/${CARCH}-linux-thread-multi
  # remove empty dir
  #/bin/rm -rf $startdir/pkg/usr/lib/perl5/current
}

perl-proc-daemon

pkgname=perl-proc-daemon
pkgver=0.03
pkgrel=1
pkgdesc="Perl Module: Run Perl program as a daemon process"
url="http://search.cpan.org/~ehood/Proc-Daemon-$pkgver"
depends=('perl')
source=(http://search.cpan.org/CPAN/authors/id/E/EH/EHOOD/Proc-Daemon-$pkgver.tar.gz)
md5sums=('6e1b83ac0f0add22f63597733f38c973')

build() {
  cd $startdir/src/Proc-Daemon-$pkgver
  /usr/bin/perl Makefile.PL
  # ugly hack to make install location
  # compatible with newer versions of perl.
  # NOTE: if perl version changes from 5.8.7, change sed line too
  /bin/sed -i "s:5.8.7:current:g" Makefile
  /usr/bin/make || return 1
  /usr/bin/make install  DESTDIR=$startdir/pkg

  # remove perllocal.pod
  /bin/rm $startdir/pkg/usr/lib/perl5/current/${CARCH}-linux-thread-multi/perllocal.pod
  # remove .packlist
  /bin/rm -rf $startdir/pkg/usr/lib/perl5/site_perl/current/${CARCH}-linux-thread-multi
  # remove empty dir
  #/bin/rm -rf $startdir/pkg/usr/lib/perl5/current
}

perl-proc-simple

pkgname=perl-proc-simple
pkgver=1.21
pkgrel=1
pkgdesc="Perl Module: Run Perl program as a daemon process"
url="http://search.cpan.org/~mschilli/Proc-Simple-$pkgver"
depends=('perl')
source=(http://search.cpan.org/CPAN/authors/id/M/MS/MSCHILLI/Proc-Simple-$pkgver.tar.gz)
md5sums=('79e1dfbd0facf75b32d06c52caf2faeb')

build() {
  cd $startdir/src/Proc-Simple-$pkgver
  /usr/bin/perl Makefile.PL
  # ugly hack to make install location
  # compatible with newer versions of perl.
  # NOTE: if perl version changes from 5.8.7, change sed line too
  /bin/sed -i "s:5.8.7:current:g" Makefile
  /usr/bin/make || return 1
  /usr/bin/make install  DESTDIR=$startdir/pkg

  # remove perllocal.pod
  /bin/rm $startdir/pkg/usr/lib/perl5/current/${CARCH}-linux-thread-multi/perllocal.pod
  # remove .packlist
  /bin/rm -rf $startdir/pkg/usr/lib/perl5/site_perl/current/${CARCH}-linux-thread-multi
  # remove empty dir
  #/bin/rm -rf $startdir/pkg/usr/lib/perl5/current
}

perl-netpacket

pkgname=perl-netpacket
pkgver=0.04
pkgrel=1
pkgdesc="Perl Module: modules to assemble/disassemble network packets at the protocol level."
url="http://search.cpan.org/~atrak/NetPacket-$pkgver"
depends=('perl')
source=(http://search.cpan.org/CPAN/authors/id/A/AT/ATRAK/NetPacket-$pkgver.tar.gz)
md5sums=('a8f00839c29724fd34e81bea534a50b0')

build() {
  cd $startdir/src/NetPacket-$pkgver
  /usr/bin/perl Makefile.PL
  # ugly hack to make install location
  # compatible with newer versions of perl.
  # NOTE: if perl version changes from 5.8.7, change sed line too
  /bin/sed -i "s:5.8.7:current:g" Makefile
  /usr/bin/make || return 1
  /usr/bin/make install DESTDIR=$startdir/pkg

  # remove perllocal.pod
  /bin/rm $startdir/pkg/usr/lib/perl5/current/${CARCH}-linux-thread-multi
  # remove .packlist
  /bin/rm -rf $startdir/pkg/usr/lib/perl5/site_perl/current/${CARCH}-linux-thread-multi
  # remove empty dir
  /bin/rm -rf $startdir/pkg/usr/lib/perl5/current
}

perl-unicode-string

pkgname=perl-unicode-string
pkgver=2.07
pkgrel=1
pkgdesc="Perl Module: String of Unicode characters "
url="http://search.cpan.org/~gaas/Unicode-String-2.07/"
depends=('perl')
source=(http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/Unicode-String-$pkgver.tar.gz)
md5sums=('d3658d0d1adbf69361771244ac88b237')

build() {
  cd $startdir/src/Unicode-String-$pkgver
  /usr/bin/perl Makefile.PL
  # ugly hack to make install location
  # compatible with newer versions of perl.
  # NOTE: if perl version changes from 5.8.7, change sed line too
  /bin/sed -i "s:5.8.7:current:g" Makefile
  /usr/bin/make || return 1
  /usr/bin/make install  DESTDIR=$startdir/pkg

  # remove perllocal.pod
  /bin/rm $startdir/pkg/usr/lib/perl5/current/${CARCH}-linux-thread-multi/perllocal.pod
  # remove .packlist
  #/bin/rm -rf $startdir/pkg/usr/lib/perl5/site_perl/current/${CARCH}-linux-thread-multi
  # remove empty dir
  /bin/rm -rf $startdir/pkg/usr/lib/perl5/current
}

perl-syslog

pkgname=perl-syslog
pkgver=0.97
pkgrel=1
pkgdesc="Perl Module: String of Unicode characters "
url="http://search.cpan.org/~mharnisch/Syslog-$pkgver"
depends=('perl')
source=(http://search.cpan.org/CPAN/authors/id/M/MH/MHARNISCH/Syslog-$pkgver.tar.gz)
md5sums=('52e5872aba9fbdb2163c2e4f9760fe5b')

build() {
  cd $startdir/src/Syslog-$pkgver
  /usr/bin/perl Makefile.PL
  # ugly hack to make install location
  # compatible with newer versions of perl.
  # NOTE: if perl version changes from 5.8.7, change sed line too
  /bin/sed -i "s:5.8.7:current:g" Makefile
  /usr/bin/make || return 1
  /usr/bin/make install  DESTDIR=$startdir/pkg

  # remove perllocal.pod
  /bin/rm $startdir/pkg/usr/lib/perl5/current/${CARCH}-linux-thread-multi/perllocal.pod
  # remove .packlist
  #/bin/rm -rf $startdir/pkg/usr/lib/perl5/site_perl/current/${CARCH}-linux-thread-multi
  # remove empty dir
  #/bin/rm -rf $startdir/pkg/usr/lib/perl5/current
}

and finally...
aimsniff

pkgname=aimsniff
pkgver=0.9d
pkgrel=1
pkgdesc="AIM Sniff is a utility for monitoring and archiving AOL Instant Messenger messages across a network."
url="http://www.aimsniff.com"
depends=('perl' 'perl-net-pcap' 'perl-proc-daemon' 'perl-proc-simple' 
'perl-dbi' 'perl-netpacket' 'perl-unicode-string' 'perl-dbd-mysql')
source=(http://download.sourceforge.net/sourceforge/aimsniff/$pkgname-$pkgver.tar.gz)
md5sums=('14030a37fb4a522c1dd5c51665ba2b21')


build() {
  cd $startdir/src/$pkgname-$pkgver
   sed -i "s@/usr/local/bin/aimSniff.pl -C=/usr/local/etc/aimSniff.cfg@
    /usr/bin/aimSniff.pl -C=/etc/aimsniff.conf@" rc.aimsniff
   install -Dm 755 aimSniff.pl $startdir/pkg/usr/bin/aimSniff.pl
   install -Dm 644 aimsniff.config $startdir/pkg/etc/aimsniff.conf
   install -Dm 755 rc.aimsniff $startdir/pkg/etc/rc.d/aimsniff
}

any suggestions are sure welcome

"If you plan to use the database dump feature, you'll have to load the table.struct
file into mysql.  To do this run the following commands:
mysqladmin create aimsniff
mysql aimsniff < table.struct"

Offline

#4 2006-04-14 17:22:19

josephmc
Member
From: Texas,USA
Registered: 2005-03-16
Posts: 51
Website

Re: [req] aimsniff

1.0beta is out. there is also a nightly build. anybody want to take a stab at it? i've tried a bit. the only new dep is Proc::PID::File.

Offline

Board footer

Powered by FluxBB