Download raw body.
[update] net/libbgpdump 1.6.2
- upstream moved to github, so update HOMEPAGE
- add a patch to pledge the bgpdump tool
diff /usr/ports
commit - 3dc374ed609f6e20415237a3a8941a0f33d03779
path + /usr/ports
blob - 586e6ed7da977759ba67c0cd143140e00fa188b2
file + net/libbgpdump/Makefile
--- net/libbgpdump/Makefile
+++ net/libbgpdump/Makefile
@@ -1,18 +1,19 @@
COMMENT= library to analyze MRT-format BGP dump files
-DISTNAME= libbgpdump-1.6.0
+V= 1.6.2
+DISTNAME= libbgpdump-${V}
EXTRACT_SUFX= .tgz
SHARED_LIBS= bgpdump 1.0
CATEGORIES= net
-HOMEPAGE= https://bitbucket.org/ripencc/bgpdump/wiki/Home
+HOMEPAGE= https://github.com/RIPE-NCC/bgpdump/wiki
# License_NCC: "for any purpose and without fee".
PERMIT_PACKAGE= Yes
-SITES= http://ris.ripe.net/source/bgpdump/
+SITES= https://github.com/RIPE-NCC/bgpdump/releases/download/v${V}/
WANTLIB= bz2 c z
LIB_DEPENDS= archivers/bzip2
blob - a78ab58725c3397f6430b2cbf3e10f8c0dd2cef7
file + net/libbgpdump/distinfo
--- net/libbgpdump/distinfo
+++ net/libbgpdump/distinfo
@@ -1,2 +1,2 @@
-SHA256 (libbgpdump-1.6.0.tgz) = E6uRJboyV+8PmHOiurw7PEf9tua4RfLtMK6WIV8yg5A=
-SIZE (libbgpdump-1.6.0.tgz) = 130947
+SHA256 (libbgpdump-1.6.2.tgz) = fG3DLDZ1kKUndSyoTHJ6tMvtwWpavlOE3FI+VjkHq+A=
+SIZE (libbgpdump-1.6.2.tgz) = 91548
blob - /dev/null
file + net/libbgpdump/patches/patch-bgpdump_c (mode 644)
--- /dev/null
+++ net/libbgpdump/patches/patch-bgpdump_c
@@ -0,0 +1,43 @@
+use pledge in the bgpdump command
+
+Index: bgpdump.c
+--- bgpdump.c.orig
++++ bgpdump.c
+@@ -205,7 +205,12 @@ int main(int argc, char *argv[]) {
+ bool quiet = false;
+
+ log_to_stderr();
+-
++
++ if (pledge("stdio rpath wpath cpath", NULL) != 0) {
++ perror("pledge");
++ exit(1);
++ }
++
+ while ((c=getopt(argc,argv,"if:o:t:mMHO:svTplqu"))!=-1)
+ switch(c)
+ {
+@@ -270,6 +275,11 @@ int main(int argc, char *argv[]) {
+ }
+ argc -= optind;
+ argv += optind;
++
++ if (pledge("stdio rpath", NULL) != 0) {
++ perror("pledge");
++ exit(1);
++ }
+
+ if(use_syslog) {
+ if(!quiet)
+@@ -291,6 +301,11 @@ int main(int argc, char *argv[]) {
+ BGPDUMP *my_dump = bgpdump_open_dump(argv[0]);
+ if(! my_dump)
+ return 1;
++
++ if (pledge("stdio", NULL) != 0) {
++ perror("pledge");
++ exit(1);
++ }
+
+ do {
+ BGPDUMP_ENTRY *my_entry = bgpdump_read_next(my_dump);
blob - aafd21532a808cb08fede9e5a4ca7238257ffa69
file + net/libbgpdump/pkg/PLIST
--- net/libbgpdump/pkg/PLIST
+++ net/libbgpdump/pkg/PLIST
@@ -4,5 +4,5 @@ include/bgpdump_attr.h
include/bgpdump_formats.h
include/bgpdump_lib.h
include/bgpdump_mstream.h
-lib/libbgpdump.a
+@static-lib lib/libbgpdump.a
@lib lib/libbgpdump.so.${LIBbgpdump_VERSION}
[update] net/libbgpdump 1.6.2