diff --git a/net-mgmt/braa/Makefile b/net-mgmt/braa/Makefile index 28dcba21d810..6ee2d57e7b41 100644 --- a/net-mgmt/braa/Makefile +++ b/net-mgmt/braa/Makefile @@ -1,37 +1,28 @@ PORTNAME= braa -PORTVERSION= 0.82 +DISTVERSIONPREFIX= v +DISTVERSION= 0.9.1 CATEGORIES= net-mgmt -MASTER_SITES= http://s-tech.elsat.net.pl/braa/ -MAINTAINER= ports@FreeBSD.org +MAINTAINER= bram@cbbg.nl COMMENT= Tool for making SNMP queries -WWW= http://s-tech.elsat.net.pl/braa/ +WWW= https://github.com/mteg/braa LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING -LIB_DEPENDS= libnetsnmp.so:net-mgmt/net-snmp - -USES= gmake - -LDFLAGS+= -lcompat +USE_GITHUB= yes +GH_ACCOUNT= mteg PORTDOCS= README PLIST_FILES= bin/braa OPTIONS_DEFINE= DOCS -post-patch: - @${REINPLACE_CMD} -e \ - 's|CFLAGS =|CFLAGS+=${CFLAGS}|g ; \ - s|LDFLAGS =|LDFLAGS?=${LDFLAGS}|g ; \ - s|strip $$(OUT)||g' ${WRKSRC}/Makefile - do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin do-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} .include diff --git a/net-mgmt/braa/distinfo b/net-mgmt/braa/distinfo index a15c9c987c83..b03bed87a38f 100644 --- a/net-mgmt/braa/distinfo +++ b/net-mgmt/braa/distinfo @@ -1,2 +1,3 @@ -SHA256 (braa-0.82.tar.gz) = d650d34cdf30fcbbbbf4e4f11c8f5d51fd5caa3cca58d620fa1d978b8c18919c -SIZE (braa-0.82.tar.gz) = 39927 +TIMESTAMP = 1725804046 +SHA256 (mteg-braa-v0.9.1_GH0.tar.gz) = e47dfa2c39177f3f5eab9578ac56084b057eeffa36bc621c57df7cad4aac1d6b +SIZE (mteg-braa-v0.9.1_GH0.tar.gz) = 24469 diff --git a/net-mgmt/braa/files/patch-Makefile b/net-mgmt/braa/files/patch-Makefile new file mode 100644 index 000000000000..8d187e1822e2 --- /dev/null +++ b/net-mgmt/braa/files/patch-Makefile @@ -0,0 +1,33 @@ +--- Makefile.orig 2024-09-08 14:03:35 UTC ++++ Makefile +@@ -4,8 +4,8 @@ + ################################################################### + + # Linux, FreeBSD, OpenBSD +-CFLAGS = +-LDFLAGS = ++#CFLAGS = ++#LDFLAGS = + + # Solaris / SPARC + # CFLAGS = -DSOLARIS_SPARC +@@ -18,15 +18,14 @@ OBJECTS = ${SOURCES:.c=.o} + SOURCES= braaasn.c braaoids.c braaprotocol.c queries.c braa.c + OBJECTS = ${SOURCES:.c=.o} + +- + OUT= braa + + LIBS = + + all: ${OBJECTS} +- cc $(OBJECTS) -o $(OUT) $(LDFLAGS) $(LIBS) +- strip $(OUT) ++ $(CC) $(OBJECTS) -o $(OUT) $(LDFLAGS) $(LIBS) ++# strip $(OUT) + + clean: + rm -rf $(OBJECTS) $(OUT) +- +\ No newline at end of file ++