diff --git a/sysutils/pam_xdg/Makefile b/sysutils/pam_xdg/Makefile index bad901d1b4a3..7a663e6c97ee 100644 --- a/sysutils/pam_xdg/Makefile +++ b/sysutils/pam_xdg/Makefile @@ -1,30 +1,28 @@ PORTNAME= pam_xdg DISTVERSION= 0.8.2 +PORTREVISION= 1 CATEGORIES= sysutils wayland MASTER_SITES= https://ftp.sdaoden.eu/ MAINTAINER= jbeich@FreeBSD.org COMMENT= PAM module to manage XDG Base Directories WWW= https://www.sdaoden.eu/code.html#s-toolbox LICENSE= ISCL USES= uidfix +SUB_FILES= pkg-message PLIST_FILES= lib/${PORTNAME}.so \ share/man/man8/${PORTNAME}.8.gz -.if exists(/usr/lib/pam_xdg.so) -IGNORE= module name conflict with a different implementation in base system -.endif - # makefile is too crufty, so roll our own MAKEFILE= bsd.lib.mk MAKE_ARGS+= SHLIB_NAME="${PORTNAME}.so" MAN="${PORTNAME}.8" \ SRCS="${PORTNAME}.c" LDADD="-lpam" \ LIBDIR="${PREFIX}/lib" SHAREDIR="${PREFIX}/share" CFLAGS+= -DXDG_CONFIG_DIR="${PREFIX}/etc" \ -DXDG_DATA_DIR_LOCAL="${PREFIX}" \ -DXDG_RUNTIME_DIR_OUTER="/var/run" LDFLAGS+= -Wl,-z,defs .include diff --git a/sysutils/pam_xdg/pkg-message b/sysutils/pam_xdg/files/pkg-message.in similarity index 80% rename from sysutils/pam_xdg/pkg-message rename to sysutils/pam_xdg/files/pkg-message.in index d45ab26f46b5..3340bc4b6e78 100644 --- a/sysutils/pam_xdg/pkg-message +++ b/sysutils/pam_xdg/files/pkg-message.in @@ -1,15 +1,17 @@ [ { type: install message: <= 14.1 replace pam_xdg.so in /etc/pam/* with +%%PREFIX%%/lib/pam_xdg.so (absolute path). XDG_RUNTIME_DIR on Wayland maybe used as a fallback for anonymous shared memory. For better performance and to avoid posix_fallocate(2) issues on ZFS moving the directory under tmpfs(5) is recommended: # echo "none /var/run/user tmpfs rw" >>/etc/fstab # mkdir -p /var/run/user # mount -a EOM } ]