diff --git a/security/ncrypt/Makefile b/security/ncrypt/Makefile index b9a6f57238f20..8c9a222d0021e 100644 --- a/security/ncrypt/Makefile +++ b/security/ncrypt/Makefile @@ -1,5 +1,6 @@ PORTNAME= ncrypt PORTVERSION= 0.8.1 +PORTREVISION= 1 CATEGORIES= security MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-${PORTVERSION:R}/${PORTNAME}-${PORTVERSION:R}.0 @@ -10,9 +11,6 @@ WWW= http://ncrypt.sourceforge.net/ LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING -BROKEN_FreeBSD_13= ld: error: duplicate symbol: ROUNDS -BROKEN_FreeBSD_14= ld: error: duplicate symbol: ROUNDS - USES= tar:tgz GNU_CONFIGURE= yes diff --git a/security/ncrypt/files/patch-rijndael-alg-fst.c b/security/ncrypt/files/patch-rijndael-alg-fst.c new file mode 100644 index 0000000000000..f4aaec08628a7 --- /dev/null +++ b/security/ncrypt/files/patch-rijndael-alg-fst.c @@ -0,0 +1,11 @@ +--- rijndael-alg-fst.c.orig 2023-04-11 00:20:28 UTC ++++ rijndael-alg-fst.c +@@ -9,6 +9,8 @@ + + #include "rijndael-alg-fst.h" + ++int ROUNDS; ++ + #define SC ((BC - 4) >> 1) + + #include "boxes-fst.dat" diff --git a/security/ncrypt/files/patch-rijndael-alg-fst.h b/security/ncrypt/files/patch-rijndael-alg-fst.h new file mode 100644 index 0000000000000..7d46cb2c97283 --- /dev/null +++ b/security/ncrypt/files/patch-rijndael-alg-fst.h @@ -0,0 +1,11 @@ +--- rijndael-alg-fst.h.orig 2023-04-11 00:20:14 UTC ++++ rijndael-alg-fst.h +@@ -11,7 +11,7 @@ typedef unsigned char word8; + typedef unsigned short word16; + typedef unsigned int word32; + +-int ROUNDS; ++extern int ROUNDS; + + int rijndaelKeySched (word8 k[MAXKC][4], int keyBits, + word8 rk[MAXROUNDS+1][4][4]);