updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / conntrack-tools / PKGBUILD
blob71d0014bf46a3cf3d260ca99645742b7e215e0f4
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
6 pkgver=1.0.0
7 pkgrel=1
8 pkgdesc="Userspace tools to interact with the Netfilter's Connection Tracking System"
9 arch=('i686' 'x86_64')
10 url="http://www.netfilter.org/projects/conntrack-tools"
11 license=('GPL')
12 depends=(libnetfilter_conntrack)
13 source=(http://www.netfilter.org/projects/${pkgname}/files/${pkgname}-${pkgver}.tar.bz2)
14 md5sums=('5add24d4761baf17af630d5627a71752')
16 build() {
17   cd ${srcdir}/${pkgname}-${pkgver}
18   ./configure --prefix=/usr
19   make
22 package() {
23   cd ${srcdir}/${pkgname}-${pkgver}
25   # install binaries
26   make DESTDIR=${pkgdir} install
28   # install directories
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
46   # install license
47   install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"