1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00

www/mohawk: Update to 2.0.21

PR:		258713
Reported by:	Freddy Dissaux <dsx@bsdsx.fr> (maintainer)
This commit is contained in:
Olivier Cochard 2021-09-26 11:57:30 +02:00
parent 611dc06831
commit edecfedd29
4 changed files with 4 additions and 49 deletions

View File

@ -1,5 +1,5 @@
PORTNAME= mohawk
PORTVERSION= 2.0.20
PORTVERSION= 2.0.21
CATEGORIES= www
MASTER_SITES= http://fossil.bsdsx.fr/mohawk/tarball/
DISTFILES= ${DISTNAME}.tar.gz?uuid=${PORTVERSION}

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1577524764
SHA256 (mohawk-2.0.20.tar.gz?uuid=2.0.20) = 01a49ffcfc5fb2f6535e097cf806ce3c2dcbacbe8b6cad7bf1d6f3e697aa18df
SIZE (mohawk-2.0.20.tar.gz?uuid=2.0.20) = 41978
TIMESTAMP = 1632555938
SHA256 (mohawk-2.0.21.tar.gz?uuid=2.0.21) = 28270f604ca707d7084e37eb77c1cd07fd3a0846fe5c7f1fb28869cf13b25825
SIZE (mohawk-2.0.21.tar.gz?uuid=2.0.21) = 44319

View File

@ -1,16 +0,0 @@
--- Makefile.inc.orig 2014-09-15 17:40:01 UTC
+++ Makefile.inc
@@ -16,13 +16,8 @@ OSVERSION!= sysctl -n kern.osreldate
YFLAGS+= -i
CLEANFILES+= parse.i
.endif
-.if ${OPSYS} == "DragonFly"
-LDFLAGS+= -L${PREFIX}/lib/event2
-LDADD+= -levent-2.0
-.else
LDFLAGS+= -L${PREFIX}/lib
LDADD+= -levent
-.endif
.elif ${OPSYS} == "NetBSD"
PREFIX?= /usr/pkg

View File

@ -1,29 +0,0 @@
main.c:387:2: error: misleading indentation; statement is not part of the previous 'if' [-Werror,-Wmisleading-indentation]
if (network->not)
^
--- main.c.orig 2020-03-22 05:37:24 UTC
+++ main.c
@@ -384,9 +384,7 @@ access_granted_inet(struct addrinfo *ai, struct mohawk
if ((sa->sin_addr.s_addr & network->mask) != network->prefix)
return -1;
- if (network->not)
- return 0;
- return 1;
+ return !network->not;
}
static inline int
@@ -400,9 +398,8 @@ access_granted_inet6(struct addrinfo *ai, struct mohaw
if ((sa6->sin6_addr.s6_addr[i] & network->mask[i]) != network->prefix[i])
return -1;
}
- if (network->not)
- return 0;
- return 1;
+
+ return !network->not;
}