Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Sep 2018 16:30:50 +0000 (UTC)
From:      Ryan Steinmetz <zi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r479439 - in head/net/nss-pam-ldapd: . files
Message-ID:  <201809101630.w8AGUoNF075325@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: zi
Date: Mon Sep 10 16:30:50 2018
New Revision: 479439
URL: https://svnweb.freebsd.org/changeset/ports/479439

Log:
  - Resolve socket permission issues
  - Bump PORTREVISION
  
  PR:		231278 [1]
  Reported by:	Matthias Pfaller <matthias.pfaller@familie-pfaller.de> [1], Johan Hendriks <joh.hendriks@gmail.com>

Modified:
  head/net/nss-pam-ldapd/Makefile
  head/net/nss-pam-ldapd/files/nslcd.in

Modified: head/net/nss-pam-ldapd/Makefile
==============================================================================
--- head/net/nss-pam-ldapd/Makefile	Mon Sep 10 16:07:16 2018	(r479438)
+++ head/net/nss-pam-ldapd/Makefile	Mon Sep 10 16:30:50 2018	(r479439)
@@ -3,6 +3,7 @@
 
 PORTNAME=		nss-pam-ldapd
 PORTVERSION=		0.9.10
+PORTREVISION=		1
 CATEGORIES=		net
 MASTER_SITES=		http://arthurdejong.org/nss-pam-ldapd/ \
 			ZI
@@ -23,7 +24,8 @@ NSS_LDAP_SHMAJOR=	1
 SUB_FILES+=		pkg-message
 
 NSLCD_PIDFILE?=		/var/run/nslcd.pid
-NSLCD_SOCKET?=		/var/run/nslcd.ctl
+NSLCD_VARDIR?=		/var/run/nslcd
+NSLCD_SOCKET?=		${NSLCD_VARDIR}/nslcd.ctl
 
 OPTIONS_DEFINE=		KERBEROS
 OPTIONS_DEFAULT=	KERBEROS
@@ -65,7 +67,9 @@ PLIST_SUB+=		CONFIG="${CONFIG_FILE}" \
 			PAM_LDAP_SHMAJOR="${PAM_LDAP_SHMAJOR}" \
 			NSS_LDAP_SHMAJOR="${NSS_LDAP_SHMAJOR}"
 SUB_LIST+=		CONFIG_FILE="${PREFIX}/etc/${CONFIG_FILE}" \
-			NSLCD_PIDFILE="${NSLCD_PIDFILE}"
+			NSLCD_PIDFILE="${NSLCD_PIDFILE}" \
+			NSLCD_VARDIR="${NSLCD_VARDIR}" \
+			USERS="${USERS}" GROUPS="${GROUPS}"
 
 .if empty(PORT_OPTIONS:MKERBEROS)
 CONFIGURE_ARGS+=	--disable-kerberos

Modified: head/net/nss-pam-ldapd/files/nslcd.in
==============================================================================
--- head/net/nss-pam-ldapd/files/nslcd.in	Mon Sep 10 16:07:16 2018	(r479438)
+++ head/net/nss-pam-ldapd/files/nslcd.in	Mon Sep 10 16:30:50 2018	(r479439)
@@ -43,6 +43,7 @@ nslcd_prestart()
 	else
 		command_args="-f %%PREFIX%%/sbin/nslcd"
 	fi
+	install -d -o %%USERS%% -g %%GROUPS%% %%NSLCD_VARDIR%%
 }
 
 nslcd_start()



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201809101630.w8AGUoNF075325>