summaryrefslogtreecommitdiff
path: root/net-fs/smbtad
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-fs/smbtad
reinit the tree, so we can have metadata
Diffstat (limited to 'net-fs/smbtad')
-rw-r--r--net-fs/smbtad/Manifest6
-rw-r--r--net-fs/smbtad/files/smbtad.rc25
-rw-r--r--net-fs/smbtad/metadata.xml11
-rw-r--r--net-fs/smbtad/smbtad-1.2.6.ebuild44
4 files changed, 86 insertions, 0 deletions
diff --git a/net-fs/smbtad/Manifest b/net-fs/smbtad/Manifest
new file mode 100644
index 000000000000..4ea0ba4f0a75
--- /dev/null
+++ b/net-fs/smbtad/Manifest
@@ -0,0 +1,6 @@
+AUX smbtad.rc 493 SHA256 83e8b9b3a8286615bdff4dfade849fbbb8bf77934308959d81464c761ad93ec7 SHA512 8b5d8d717740692baf7f713b2e1d71d87bd0ef906269daf9c9ae78b010470b56495d8b3e756b95ad00055ef9cd6747fe9439750658de13e12e0c344038caf35f WHIRLPOOL f9e9d31c337f19c320c709e5643ad00db7e80a853a5d914b7afea51985bd693989db56fe48ac39a27bfe607f331e1c9e001da8ff70a2fda092165ec1cbf65be4
+DIST smbtad-1.2.6.tar.bz2 82062 SHA256 0f641a7cb9f98d6ea28f52bca5055eebec74fa6d3e5fe32236afa3770ea26d48 SHA512 fd3b370d973a42fb2dee48d2fec08e20af32386893ee67bc407decd001a76c944f3a17b3251e9d8d746feb1e87c69776986d600fd108450113835823f6313e2c WHIRLPOOL 697199a30217e5f1c4dd0ce1754b4542725d9e8aa96c8fd78f354a50324518a8bcb6e03bbfe8a789531b5ef02846cb553527d08a25f8297937a2fa511d80376b
+EBUILD smbtad-1.2.6.ebuild 761 SHA256 d1e79cf21c7e5f0e1883257737237ff7b8e93083cc9ac006567805e28a5cc242 SHA512 c5c13920c69ae52afe4ba27f1488fbb0f45bf69206b7b80a5e045ae15c45811cfe000ca4a930a7abeccc35da05c80b01bcf130eda44c8575935df7306ecca97b WHIRLPOOL ecde06517e7c3001aeb37b49c25eab5a4913568bb43c488552e14561d8a6e135bf08c794c710ace9b6417922e7cca3a10dce6e7a0dfcc282934a51378eecf2a7
+MISC ChangeLog 3024 SHA256 0a5a6c9e2734e009b19c50b9447f483acdae091f19823a8f84bd7a9610d5a5b0 SHA512 e05e7ecb1b1339fda81f040e152699f35e34db761a3ea1188eac74ed6c3a7bbc0b3d7c46d62ca3a10258506e5923b8374a346ed8c155ef506d69a979360b13bc WHIRLPOOL 54ba7b35e4af79ca6cc8d72ad9c3cddca0e8b6419c59a8d20d1772dd45d057db278592e1b46528f0c1679613104861a46595191899f68c08f50b04ded01af1be
+MISC ChangeLog-2015 897 SHA256 578bae63da8325ce5a2648bc65c4037e42ef165da5d8334c518e8f40fc08bc84 SHA512 0043588ad71479116f4911d75e2d54d8e0c435ee7dc49c14a9416b379219e02e660c768eeb54e0bf9e92b46f7d591980ea83fc4cc20571d72cd67f0fc62b9fb0 WHIRLPOOL 8cf983079a992730f1b4a3b002fcf2b51e2ad6fadd786a3ecd19960bdb47de0c333b7a71064de723ec31eecfd43b249a129f5d753e2900bd16d1ad65b95e5687
+MISC metadata.xml 332 SHA256 9564acc9494f6a6a4fe4731e5ba96f9b8565a784f7783e745caff58d7ca787f1 SHA512 14edfec96bfbb5118d3b7b8e6ec58c7015bcd26f7c2f19b603557bc1849511f73e84cdd0b200bd782279aff282dcd01896abfda253ce71744cc9f859e6e0198e WHIRLPOOL 88db9632c201e534d829cc6bb2c816b0877da59477199916f042247a8db2c6f0b9e1a8eb6f6185d1fda28ffcba5a96267371493e42b32426e432e798a616c905
diff --git a/net-fs/smbtad/files/smbtad.rc b/net-fs/smbtad/files/smbtad.rc
new file mode 100644
index 000000000000..afc3e3c13617
--- /dev/null
+++ b/net-fs/smbtad/files/smbtad.rc
@@ -0,0 +1,25 @@
+#!/sbin/openrc-run
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+CONFFILE=/etc/conf.d/${SVCNAME}.conf
+PIDFILE=/var/run/${SVCNAME}.pid
+
+depend() {
+ before samba
+ use dns logger
+}
+
+start() {
+ ebegin "Starting ${SVCNAME}"
+ start-stop-daemon --start --quiet \
+ --exec /usr/bin/"${SVCNAME}" \
+ -- -c "${CONFFILE}"
+ eend ${?}
+}
+
+stop() {
+ ebegin "Stopping ${SVCNAME}"
+ start-stop-daemon --stop --quiet --name "${SVCNAME}"
+ eend ${?}
+}
diff --git a/net-fs/smbtad/metadata.xml b/net-fs/smbtad/metadata.xml
new file mode 100644
index 000000000000..2ada94ef8a16
--- /dev/null
+++ b/net-fs/smbtad/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>samba@gentoo.org</email>
+ <name>Samba Team</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">hhetter/smbtad</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/net-fs/smbtad/smbtad-1.2.6.ebuild b/net-fs/smbtad/smbtad-1.2.6.ebuild
new file mode 100644
index 000000000000..75980db51f3a
--- /dev/null
+++ b/net-fs/smbtad/smbtad-1.2.6.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+DESCRIPTION="Data receiver of the SMB Traffic Analyzer project"
+HOMEPAGE="https://github.com/hhetter/smbtad"
+SRC_URI="http://morelias.org/smbta/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+ dev-db/libdbi
+ dev-libs/iniparser:0
+ sys-libs/talloc
+"
+RDEPEND="${DEPEND}
+ || (
+ <net-fs/samba-3.6[smbtav2]
+ >=net-fs/samba-3.6
+ )
+"
+
+DOCS=( README AUTHORS )
+
+src_prepare() {
+ cmake-utils_src_prepare
+
+ sed -i \
+ -e '/CMAKE_C_FLAGS/d' \
+ CMakeLists.txt || die
+}
+
+src_install() {
+ cmake-utils_src_install
+
+ newinitd "${FILESDIR}"/smbtad.rc smbtad
+ newconfd dist/smbtad.conf_example smbtad.conf
+}