Index: Makefile
===================================================================
RCS file: /cvs/ports/sysutils/polkit/Makefile,v
retrieving revision 1.88
diff -u -p -u -r1.88 Makefile
--- Makefile	30 Oct 2021 14:26:23 -0000	1.88
+++ Makefile	12 Nov 2021 17:56:16 -0000
@@ -3,6 +3,7 @@
 COMMENT=		framework for granting privileged operations to users
 
 DISTNAME=		polkit-0.120
+REVISION=		0
 
 SHARED_LIBS += polkit-gobject-1          2.0 # 0.0.0
 SHARED_LIBS += polkit-agent-1            2.0 # 0.0.0
Index: patches/patch-meson_build
===================================================================
RCS file: patches/patch-meson_build
diff -N patches/patch-meson_build
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ patches/patch-meson_build	12 Nov 2021 17:56:16 -0000
@@ -0,0 +1,21 @@
+$OpenBSD$
+
+Fix check for whether setnetgrent has a return value
+
+Index: meson.build
+--- meson.build.orig
++++ meson.build
+@@ -163,8 +163,11 @@ setnetgrent_return_src = '''
+   };
+ '''
+ 
+-config_h.set('HAVE_SETNETGRENT_RETURN', cc.compiles(setnetgrent_return_src, name: 'setnetgrent return support'))
+-
++if config_h.get('HAVE_NETGROUP_H')
++  config_h.set('HAVE_SETNETGRENT_RETURN', cc.compiles(setnetgrent_return_src, name: 'setnetgrent return support', args: '-DHAVE_NETGROUP_H'))
++else
++  config_h.set('HAVE_SETNETGRENT_RETURN', cc.compiles(setnetgrent_return_src, name: 'setnetgrent return support'))
++endif
+ # Select wether to use libsystemd-login, libelogind or ConsoleKit for session tracking
+ session_tracking = get_option('session_tracking')
+ enable_logind = (session_tracking != 'ConsoleKit')
