# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=openvas-manager _pkgname=openvasmd pkgver=6.0.7 _pkgid=2270 pkgrel=0 pkgdesc="A layer between the OpenVAS Scanner and various client applications" url="http://www.openvas.org/" arch="all" license="GPL" depends="rsync sqlite libxslt sed" depends_dev="" makedepends="$depends_dev cmake openvas-libraries-dev sqlite-dev libxslt-dev doxygen xmltoman perl-sql-translator" install="" subpackages="$pkgname-doc" source="http://wald.intevation.org/frs/download.php/$_pkgid/$pkgname-${pkgver}.tar.gz $_pkgname.initd $_pkgname.confd $_pkgname.logrotate 001-sys-siglist.patch 002-fortify-source.patch" _builddir="$srcdir"/$pkgname-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" cmake -DCMAKE_BUILD_TYPE=Release \ -DSBINDIR=/usr/bin \ -DCMAKE_INSTALL_PREFIX=/usr \ -DSYSCONFDIR=/etc \ -DLOCALSTATEDIR=/var . make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install install -Dm644 "$srcdir/$_pkgname.logrotate" "$pkgdir/etc/logrotate.d/$_pkgname" install -Dm755 "$srcdir/$_pkgname.initd" "$pkgdir/etc/init.d/$_pkgname" install -Dm755 "$srcdir/$_pkgname.confd" "$pkgdir/etc/conf.d/$_pkgname" } md5sums="a4c9e84a80d56e4be0d7c4f9578de39d openvas-manager-6.0.7.tar.gz c137408f85fc64e2219e977d4559d4cb openvasmd.initd 478e770caa091fd4a6d67a99aeadb26e openvasmd.confd f57ae79654fb9a6249ce883ebb393d3d openvasmd.logrotate 0113d65199172756cb797b4bb30d4007 001-sys-siglist.patch bec2936ebf70209835b963ddbebf3b31 002-fortify-source.patch" sha256sums="ed3071eb7ce2cba6eb4c328f1c00a9559f9e388e10b45df64b31dc1f80474104 openvas-manager-6.0.7.tar.gz 5ab1f41c2cc9788aa81df744f14fe0b29a1c60f79bb6c5055cfb33d9bda4a7f7 openvasmd.initd 72707a3a889ac85eca7336b67aa686d69da963adc8c361828fb050126b5d13cf openvasmd.confd 8dce4905097d7e622a87d661903193480806968c55f085bd4ad167ea3864f84d openvasmd.logrotate 8c13641fc26660fe2f600fc9a4e7d5901e0892b6195ad401c92edec75e9f402d 001-sys-siglist.patch 78919051580bb1077f6061d9285f9343d155ee3c955e2a440ef067f58efe1a4b 002-fortify-source.patch" sha512sums="81954e05111c00c564ca4646161767aa8fd8ffd614679f8e75ea8c247087eb56fb00b0fbd1110475f747abfc73e7433ab76604647d40261fef7b9e10fb8b56b7 openvas-manager-6.0.7.tar.gz 6779dea37dd64f69970ca595dfc7c084efa6764a9b521e303b164b57489a14219ade5b85e32b8641a317407ea56932597e2bfcf87c8568c3772ae393d5ea310b openvasmd.initd cc873be14e1d3469f0954b20667842eb6e9386735d9423f9c824e11261281d9f5255730310bde40d9542772a4bc79a33bc5ef71396bee53aa250a54239130ff8 openvasmd.confd a86f156ca822b7b9844dc1cb1cb65c0d2bc146fa4dde64fec851b13b3eaa54fd984946b9336a2ffd0efbaf1c2053ab417067519fb18b807c5c1ce66cf1ee4a9b openvasmd.logrotate bb68fb95e48cf6b0602023d566b05fb675b55a703b0ecf616d0ff42fd7fc023396d2ef8ea089e074739e980a086d9911894050c23c03c842e5c7393be6d85639 001-sys-siglist.patch a3ab3773f339efa98abdba77aaf383f6c1d76c7f15557ac6f8bc80199158066d6ac3a7981e1af4ac4e397b66acb48c1cba125848b30e935829a75a5a7e8322dc 002-fortify-source.patch"