smbtad-1.2.6.ebuild 761 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. inherit cmake-utils
  5. DESCRIPTION="Data receiver of the SMB Traffic Analyzer project"
  6. HOMEPAGE="https://github.com/hhetter/smbtad"
  7. SRC_URI="http://morelias.org/smbta/${P}.tar.bz2"
  8. LICENSE="GPL-3"
  9. SLOT="0"
  10. KEYWORDS="~amd64 ~x86"
  11. IUSE=""
  12. DEPEND="
  13. dev-db/libdbi
  14. dev-libs/iniparser:0
  15. sys-libs/talloc
  16. "
  17. RDEPEND="${DEPEND}
  18. || (
  19. <net-fs/samba-3.6[smbtav2]
  20. >=net-fs/samba-3.6
  21. )
  22. "
  23. DOCS=( README AUTHORS )
  24. src_prepare() {
  25. cmake-utils_src_prepare
  26. sed -i \
  27. -e '/CMAKE_C_FLAGS/d' \
  28. CMakeLists.txt || die
  29. }
  30. src_install() {
  31. cmake-utils_src_install
  32. newinitd "${FILESDIR}"/smbtad.rc smbtad
  33. newconfd dist/smbtad.conf_example smbtad.conf
  34. }