--- /dev/null
+# /etc/conf.d/rtl_tcp - configuration file for /etc/init.d/rtl_tcp
+
+# Options to pass to rtl_tcp, see `rtl_tcp -h`
+#RTL_TCP_OPTIONS="-d0"
--- /dev/null
+#!/sbin/openrc-run
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+start() {
+ ebegin "Starting rtl_tcp"
+ start-stop-daemon --start --quiet --pidfile /run/rtl_tcp.pid \
+ --background --make-pidfile --exec /usr/bin/rtl_tcp \
+ -1 /var/log/rtl_tcp.log -2 /var/log/rtl_tcp.log \
+ -- ${RTL_TCP_OPTIONS}
+ eend ${?}
+}
+
+stop() {
+ ebegin "Stopping rtl_tcp"
+ start-stop-daemon --stop --quiet --pidfile /run/rtl_tcp.pid
+ eend ${?}
+}
cmake-utils_src_configure
}
+src_install() {
+ cmake-utils_src_install
+ newinitd "${FILESDIR}"/rtl_tcp.initd rtl_tcp
+ newconfd "${FILESDIR}"/rtl_tcp.confd rtl_tcp
+}
+
pkg_postinst() {
elog "Only users in the usb group can capture."
elog "Just run 'gpasswd -a <USER> usb', then have <USER> re-login."
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
mycmakeargs=(
-DINSTALL_UDEV_RULES=OFF
-DDETACH_KERNEL_DRIVER=ON
- -DLIB_INSTALL_DIR=/usr/$(get_libdir)
+ -DLIB_INSTALL_DIR=$(get_libdir)
)
cmake-utils_src_configure
}
+src_install() {
+ cmake-utils_src_install
+ newinitd "${FILESDIR}"/rtl_tcp.initd rtl_tcp
+ newconfd "${FILESDIR}"/rtl_tcp.confd rtl_tcp
+}
+
pkg_postinst() {
elog "Only users in the usb group can capture."
elog "Just run 'gpasswd -a <USER> usb', then have <USER> re-login."