Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 459310 - net-misc/samplicator - Send copies of (UDP) datagrams to multiple receivers
Summary: net-misc/samplicator - Send copies of (UDP) datagrams to multiple receivers
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Vladimir Pavljuchenkov (SpiderX)
URL: http://samplicator.googlecode.com/
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2013-02-26 14:22 UTC by Vladimir Pavljuchenkov (SpiderX)
Modified: 2013-03-04 16:29 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ebuild for samplicator 1.3.6 (samplicator-1.3.6.ebuild,1.60 KB, text/plain)
2013-02-26 14:23 UTC, Vladimir Pavljuchenkov (SpiderX)
Details
ebuild for samplicator 1.3.7 beta (samplicator-1.3.7_beta6.ebuild,1.65 KB, text/plain)
2013-02-26 14:24 UTC, Vladimir Pavljuchenkov (SpiderX)
Details
man, init-script for ebuild (files.tar.gz,1.77 KB, application/x-gzip)
2013-02-26 14:24 UTC, Vladimir Pavljuchenkov (SpiderX)
Details
metadata for ebuild (metadata.xml,804 bytes, text/xml)
2013-02-26 14:24 UTC, Vladimir Pavljuchenkov (SpiderX)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Pavljuchenkov (SpiderX) 2013-02-26 14:22:43 UTC
This small program receives UDP datagrams on a given port, and resends                 those datagrams to a specified set of receivers. In addition, a sampling divisor N may be specified individually for each receiver, which will then only receive one in N of the received packets.

Samplicator Homepage: https://code.google.com/p/samplicator/
Ebuild repo on bitbucket: https://bitbucket.org/SpiderX/ebuilds

Reproducible: Always
Comment 1 Vladimir Pavljuchenkov (SpiderX) 2013-02-26 14:23:39 UTC
Created attachment 340174 [details]
ebuild for samplicator 1.3.6
Comment 2 Vladimir Pavljuchenkov (SpiderX) 2013-02-26 14:24:03 UTC
Created attachment 340176 [details]
ebuild for samplicator 1.3.7 beta
Comment 3 Vladimir Pavljuchenkov (SpiderX) 2013-02-26 14:24:38 UTC
Created attachment 340178 [details]
man, init-script for ebuild
Comment 4 Vladimir Pavljuchenkov (SpiderX) 2013-02-26 14:24:53 UTC
Created attachment 340180 [details]
metadata for ebuild
Comment 5 Vladimir Pavljuchenkov (SpiderX) 2013-02-26 19:17:31 UTC
If no one is going to maintain this package, I agree to be a proxy-maintainer for this ebuild.
Comment 6 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-03-02 15:10:01 UTC
Yes, we can add this; but I wonder about three things:

1) Dependencies seem to be missing, or are they provided by the system set? I see two libraries in configure.in.

2) Do we need to configure anything? I see two defines in their configure.in.

> 	ewarn " Don't specify receiver on the command line, because it will get all packets."
>	ewarn " Instead this, specify it in config file. Receiver defined is such way will get only packets with a matching source."

3) Has this been reported upstream? Or is it a bug with the init script you made?

>src_compile() {
>	default
>}

Just a note: If you don't specify the phase function, it will run the default.
Comment 7 Vladimir Pavljuchenkov (SpiderX) 2013-03-02 20:23:12 UTC
1) There is no need in dependencies mentioned in configure.in.
I think they are obsolete or needed for compatibility with some OSes.
Everything compiling and working fine without libnsl.
As for libsocket, I doubt that it exists at all for GNU/Linux.

2) No. We don't need to configure anything. These defines do not affect program code or program runtime.

3) It isn't a init script bug, and isn't a program bug. It is a known behavior (sometime is useful, sometime - not).
I just suggested a workaround with my init script.

> Just a note: If you don't specify the phase function, it will run the default.

Indeed. Thank you. Then this section may be removed.
Comment 8 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-03-03 17:02:40 UTC
In the future please append the name and version in front of files in the file directory, alternatively you can place them in a sub directory with the version as its name; that way we allow different versions of the init script and such to co-exist, thank you in advance.

Did some small changes.

> * QA Notice: shell script appears to use non-POSIX feature(s):
> *    possible bashism in /etc/init.d/samplicator line 9 (${parm/?/pat[/str]}):
> *        PNAME=${RC_SVCNAME//.*/}
> *    possible bashism in /etc/init.d/samplicator line 31 (${parm/?/pat[/str]}):
> *            pgrep -n ${PNAME/or/e} > ${PID}

Also fixed above QA issue.

+*samplicator-1.3.7_beta6 (03 Mar 2013)
+*samplicator-1.3.6 (03 Mar 2013)
+
+  03 Mar 2013; Tom Wijsman <TomWij@gentoo.org> +files/samplicator.8,
+  +files/samplicator.conf, +files/samplicator.initd, +metadata.xml,
+  +samplicator-1.3.6.ebuild, +samplicator-1.3.7_beta6.ebuild:
+  New ebuilds for samplicator, contributed by Vladimir Pavljuchenkov who will
+  proxy maintain this. Fixes bug #459310.

Done, will be on the rsync mirrors in a few hours.
Comment 9 Vladimir Pavljuchenkov (SpiderX) 2013-03-04 16:18:36 UTC
> Also fixed above QA issue.

How did you get this QA issue?
Repoman doesn't show any QA issue to me.
Comment 10 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-03-04 16:29:24 UTC
You need `emerge dev-util/checkbashisms` for that, I think.