pkgsrc/x11/xauth/builtin.mk
wiz da77ef4378 xauth: update to 1.1.1.
This is a minor bugfix release, including fixes for reported crashes.

Alan Coopersmith (5):
      Avoid memory leak when realloc() fails in split_into_words()
      Use reallocarray() when adding members to array in split_into_words()
      Avoid memory leaks in error paths in do_generate
      Fix spelling/wording issues
      xauth 1.1.1

Alex Gendin (1):
      Fix segfault when X starts

Dr. Tilmann Bubeck (1):
      Additionally check socket file with S_ISSOCK

Karol Herbst (1):
      Check malloc calls in process.c

Tobias Stoeckmann (2):
      Fix segmentation fault on invalid add argument.
      Prevent OOB write with long file names.
2021-11-28 23:56:22 +00:00

69 lines
1.8 KiB
Makefile

# $NetBSD: builtin.mk,v 1.4 2021/11/28 23:56:22 wiz Exp $
BUILTIN_PKG:= xauth
BUILTIN_FIND_FILES_VAR:= XAUTH
BUILTIN_FIND_FILES.XAUTH= ${X11BASE}/bin/xauth
.include "../../mk/buildlink3/bsd.builtin.mk"
###
### Determine if there is a built-in implementation of the package and
### set IS_BUILTIN.<pkg> appropriately ("yes" or "no").
###
.if !defined(IS_BUILTIN.xauth)
. if empty(XAUTH:M__nonexistent__)
IS_BUILTIN.xauth= yes
. else
IS_BUILTIN.xauth= no
. endif
.endif
MAKEVARS+= IS_BUILTIN.xauth
###
### If there is a built-in implementation, then set BUILTIN_PKG.<pkg> to
### a package name to represent the built-in package.
###
.if !defined(BUILTIN_PKG.xauth) && \
!empty(IS_BUILTIN.xauth:M[yY][eE][sS]) && \
empty(XAUTH:M__nonexistent__)
# we're more worried about existence, rather than actual version
BUILTIN_VERSION.xauth= 11.7
BUILTIN_PKG.xauth= xauth-${BUILTIN_VERSION.xauth}
.endif
MAKEVARS+= BUILTIN_PKG.xauth
###
### Determine whether we should use the built-in implementation if it
### exists, and set USE_BUILTIN.<pkg> appropriate ("yes" or "no").
###
.if !defined(USE_BUILTIN.xauth)
. if ${PREFER.xauth} == "pkgsrc"
USE_BUILTIN.xauth= no
. else
USE_BUILTIN.xauth= ${IS_BUILTIN.xauth}
. if defined(BUILTIN_PKG.xauth) && \
!empty(IS_BUILTIN.xauth:M[yY][eE][sS])
USE_BUILTIN.xauth= yes
. for _dep_ in ${BUILDLINK_API_DEPENDS.xauth}
. if !empty(USE_BUILTIN.xauth:M[yY][eE][sS])
USE_BUILTIN.xauth!= \
if ${PKG_ADMIN} pmatch ${_dep_:Q} ${BUILTIN_PKG.xauth:Q}; then \
${ECHO} yes; \
else \
${ECHO} no; \
fi
. endif
. endfor
. endif
. endif # PREFER.xauth
.endif
# Now set up the appropriate prefix for xauth
.if !empty(USE_BUILTIN.xauth:M[yY][eE][sS])
XAUTHBASE= ${X11BASE}
.else
XAUTHBASE= ${PREFIX}
.endif