1 # Maintainer: Valere Monseur <valere_monseur@hotmail.com>
2 # Contributor: Alessandro Sagratini <ale_sagra@hotmail.com>
3 # Contributor: Kevin Edmonds <edmondskevin@hotmail.com>
5 pkgname=conntrack-tools
8 pkgdesc="Userspace tools to interact with the Netfilter's Connection Tracking System"
10 url="http://www.netfilter.org/projects/conntrack-tools"
12 depends=(libnetfilter_conntrack)
13 source=(http://www.netfilter.org/projects/${pkgname}/files/${pkgname}-${pkgver}.tar.bz2)
14 md5sums=('5add24d4761baf17af630d5627a71752')
17 cd ${srcdir}/${pkgname}-${pkgver}
18 ./configure --prefix=/usr
23 cd ${srcdir}/${pkgname}-${pkgver}
26 make DESTDIR=${pkgdir} install
29 install -d ${pkgdir}/etc/conntrackd
30 install -d ${pkgdir}/usr/share/doc/${pkgname}
32 # install doc, default config and scripts
33 cp -R ${srcdir}/${pkgname}-${pkgver}/doc/* ${pkgdir}/usr/share/doc/${pkgname}/
35 # remove useless doc files
36 rm ${pkgdir}/usr/share/doc/${pkgname}/manual/config.xsl \
37 ${pkgdir}/usr/share/doc/${pkgname}/manual/conntrack-tools.tmpl \
38 ${pkgdir}/usr/share/doc/${pkgname}/manual/docbook.css \
39 ${pkgdir}/usr/share/doc/${pkgname}/manual/Makefile
41 # set scripts executable
42 chmod a+x ${pkgdir}/usr/share/doc/${pkgname}/debian.conntrackd.init.d \
43 ${pkgdir}/usr/share/doc/${pkgname}/cli/test.sh \
44 ${pkgdir}/usr/share/doc/${pkgname}/sync/primary-backup.sh
47 install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"