1 # Contributor: Konstantin Sharlaimov <konstantin.sharlaimov@gmail.com>
5 pkgdesc="IP Cisco Accounting Daemon"
7 url="http://lionet.info/ipcad/"
9 source=('http://lionet.info/soft/ipcad-3.7.3.tar.gz' 'ipcad' 'ipcad.dump')
10 md5sums=('125605249958894148ec26d3c88189f5' 'b61b0ffa3ace50342b0b5ffff2256e60'\
11 'd41d8cd98f00b204e9800998ecf8427e')
12 depends=('netkit-rsh' 'libpcap')
13 backup=(etc/ipcad/ipcad.conf)
16 cd ${startdir}/src/${pkgname}-${pkgver}/
18 mkdir -p ${startdir}/pkg
19 mkdir -p ${startdir}/pkg/usr
20 mkdir -p ${startdir}/pkg/etc/
21 mkdir -p ${startdir}/pkg/etc/rc.d
22 mkdir -p ${startdir}/pkg/usr/man/man8/
23 mkdir -p ${startdir}/pkg/usr/man/man5/
24 mkdir -p ${startdir}/pkg/adm/tmp
26 ./configure --prefix=/usr --sysconfdir=/etc/ipcad --mandir=/usr/man --enable-static --disable-shared
28 make DESTDIR=${startdir}/pkg install
29 make DESTDIR=${startdir}/pkg install-man
31 install -m 755 ${startdir}/src/ipcad ${startdir}/pkg/etc/rc.d
32 install -m 600 ${startdir}/src/ipcad.dump ${startdir}/pkg/adm/tmp