On Sun, Dec 30, 2018 at 10:41:22PM +0000, Stuart Henderson wrote:
> On 2018/12/22 14:49, Denis Fondras wrote:
> > The CAIDA Spoofer project measures the Internet's susceptibility to spoofed
> > source address IP packets. The Spoofer client attempts to send a series of
> > spoofed UDP packets that test the ability to send different classes of 
> > spoofed
> > traffic
> > 
> > http://spoofer.caida.org/
> 
> Initial tweaks. It's protobuf not protobuf-c, c++ ports need to set
> COMPILER except in special cases, and don't hardcode /usr/local.
> 
> Additionally either the Qt bits need adding properly or disabling
> (build fails if qt3-mt is installed. it builds extra things if qt5
> is installed. haven't looked at qt4).
> 

Thank you Stuart & Klemens
I haven't tried the GUI nor the scheduler. The prober was enough for me and my
test machine had no graphical interface.

> 
> diff --git Makefile Makefile
> index 3f06033..1395bc6 100644
> --- Makefile
> +++ Makefile
> @@ -7,18 +7,20 @@ CATEGORIES= net
>  
>  HOMEPAGE=    https://www.caida.org/projects/spoofer/
>  
> -MASTER_SITES=        ${HOMEPAGE}downloads/
> +MASTER_SITES=        https://www.caida.org/projects/spoofer/downloads/
>  
>  MAINTAINER=     Denis Fondras <de...@openbsd.org>
>  
>  # GPLv3
>  PERMIT_PACKAGE_CDROM=        Yes
>  
> -WANTLIB+=    protobuf-c
> +WANTLIB += ${COMPILER_LIBCXX} c crypto m pcap protobuf-lite ssl
>  
> -LIB_DEPENDS= devel/protobuf-c
> +COMPILER=    base-clang ports-gcc
> +
> +LIB_DEPENDS= devel/protobuf
>  
>  CONFIGURE_STYLE=     gnu
> -CONFIGURE_ARGS=         --with-protobuf=/usr/local
> +CONFIGURE_ARGS=         --with-protobuf=${LOCALBASE}
>  
>  .include <bsd.port.mk>
> 
> 
On Tue, Jan 01, 2019 at 02:37:54AM +0100, Klemens Nanni wrote:
> * portcheck(1) reveals hardcoded paths
> * please do not use HOMEPAGE in MASTER_SITES
> * you can use SEPARATE_BUILD=yes
> * COMPILER is required due to -std=gnu++11
> * wrong/incomplete WANTLIB, see port-lib-depends-check target
> * at least Qt5 missing as dependency
> * update-plist picks up spoofer-{cli,gui,scheduler}
> 
> Did you miss this or do you want to package the prober only?
> 
> When running spoofer-cli or spoofer-gui, I get
> 
>       Config: Missing "dataDir" in "/etc/xdg/CAIDA/Spoofer.conf"
>       (No such file or directory). Make sure the scheduler is running
>       and using the same configuration.
> 
> More information is required.  At the very least you should improve both
> COMMENT and DESCR, but maybe a short README or some docs installed
> along the binaries is even better.
> 
> Personal preference: space before "=" makes the Makefile easier to read.

Reply via email to