From rocky@herveybayaustralia.com.au  Sat Jan 14 04:52:15 2012
Return-Path: <rocky@herveybayaustralia.com.au>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 68A891065670
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 14 Jan 2012 04:52:15 +0000 (UTC)
	(envelope-from rocky@herveybayaustralia.com.au)
Received: from mail.unitedinsong.com.au (mail.unitedinsong.com.au [150.101.178.33])
	by mx1.freebsd.org (Postfix) with ESMTP id EDD5A8FC13
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 14 Jan 2012 04:52:14 +0000 (UTC)
Received: from laptop1.herveybayaustralia.com.au (laptop1.herveybayaustralia.com.au [192.168.0.179])
	(using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits))
	(No client certificate requested)
	by mail.unitedinsong.com.au (Postfix) with ESMTPSA id 5611A5C26
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 14 Jan 2012 14:49:06 +1000 (EST)
Message-Id: <4F110575.20203@herveybayaustralia.com.au>
Date: Sat, 14 Jan 2012 14:32:53 +1000
From: R Skinner <rocky@herveybayaustralia.com.au>
To: FreeBSD-gnats-submit@freebsd.org
Subject: [NEW PORT] new port to fix ldap nss lookup in linuxulator

>Number:         164113
>Category:       ports
>Synopsis:       [NEW PORT] net/linux-f10-nss_ldap: fix ldap nss lookup in linuxulator
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    netchild
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 14 05:00:23 UTC 2012
>Closed-Date:    Fri Jan 20 21:32:25 UTC 2012
>Last-Modified:  Fri Jan 20 21:32:25 UTC 2012
>Originator:     R Skinner
>Release:        FreeBSD 8.2-RELEASE-p3 amd64
>Organization:
United In Song
>Environment:
 System: FreeBSD fbsd-test-server.herveybayaustralia.com.au 
 8.2-RELEASE-p3 FreeBSD 8.2-RELEASE-p3 #0: Tue Sep 27 18:45:57 UTC 2011 
 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
>Description:
      [NEW PORT] Many BSD users complain that acroread (at least) won't 
 work for users auth by ldap, and resort to a hack that updates passwd 
 files to resolve the issue. This installs the libraries required to 
 provide this function natively in the linuxulator.
>How-To-Repeat:
>Fix:
 
 
 --- linux-f10-nss_ldap.shar begins here ---
 # This is a shell archive.  Save it in a file, remove anything before
 # this line, and then unpack it by entering "sh file".  Note, it may
 # create directories; files and directories will be owned by you and
 # have default permissions.
 #
 # This archive contains:
 #
 #    linux-f10-nss_ldap
 #    linux-f10-nss_ldap/Makefile
 #    linux-f10-nss_ldap/pkg-descr
 #    linux-f10-nss_ldap/distinfo.i386
 #    linux-f10-nss_ldap/pkg-message
 #    linux-f10-nss_ldap/pkg-plist
 #
 echo c - linux-f10-nss_ldap
 mkdir -p linux-f10-nss_ldap > /dev/null 2>&1
 echo x - linux-f10-nss_ldap/Makefile
 sed 's/^X//' >linux-f10-nss_ldap/Makefile << 
 '81c4fadbbf682125545fb1e3189a8f0b'
 X# New ports collection makefile for:    linux-f10-nss_ldap
 X# Date created:                2012-01-04
 X# Whom:                    rskinner 
 port_maintainer@herveybayaustralia.com.au
 X#
 X# $FreeBSD$
 X#
 X
 XPORTNAME=    nss_ldap
 XPORTVERSION=    ${NSS_LDAP_VERSION}
 XCATEGORIES=    net linux
 XMASTER_SITES=   
   ftp://ftp.pbone.net/mirror/archive.fedoraproject.org/fedora/linux/updates/testing/10/i386/ \
 X       
   http://archives.fedoraproject.org/pub/archive/fedora/linux/updates/testing/10/i386/ \
 X        http://herveybayaustralia.com.au/ports/distfiles/
 XPKGNAMEPREFIX=    linux-f10-
 XDISTNAME=    ${PORTNAME}-${NSS_LDAP_VERSION}-${RPMVERSION}
 X
 XMAINTAINER=    port_maintainer@herveybayaustralia.com.au
 XCOMMENT=    RFC 2307 NSS Module (Linux Fedora 10)
 X
 XLICENSE=    GPLv2
 X
 XNSS_LDAP_VERSION=264
 X
 XUSE_LINUX_RPM=    yes
 XUSE_LINUX_PREFIX=yes
 XLINUX_DIST_VER=    10
 XRPMVERSION=    6.fc10
 XUSE_LDCONFIG=    yes
 X
 XDOCSDIR=    ${PREFIX}/usr/share/doc/${PORTNAME}-${NSS_LDAP_VERSION}
 XDESCR=        ${.CURDIR}/../${PORTNAME}/pkg-descr
 X
 XMANPREFIX=    ${PREFIX}/usr/share
 XMANCOMPRESSED=    no
 XMAN5=        nss_ldap.5.gz
 X
 X.if defined(WITH_PAM)
 XPLIST_SUB+=    PAM=""
 XMAN5+=        pam_ldap.5.gz
 X.else
 XPLIST_SUB+=    PAM="@comment "
 X.endif
 X
 XPORTDOCS=    *
 X
 Xpre-fetch:
 X.if !defined(WITH_PAM)
 X    @${ECHO_MSG} "Use WITH_PAM if you require more advanced ldap 
 support in the linuxulator"
 X.endif
 X
 Xpost-extract:
 X    @if [ -f ${WRKDIR}/etc/ldap.conf ]; then \
 X        ${MV} ${WRKDIR}/etc/ldap.conf ${WRKDIR}/etc/ldap.conf.dist; \
 X    fi
 X.if !defined(WITH_PAM)
 X    @if [ -f ${WRKDIR}/lib/security/pam_ldap.so ]; then \
 X        ${RM} -rf ${WRKDIR}/lib/; \
 X    fi
 X    @if [ -f ${WRKDIR}/usr/share/doc/nss_ldap-264/COPYING.pam_ldap ]; 
 then \
 X        ${RM} ${WRKDIR}/usr/share/doc/nss_ldap-264/*.pam*; \
 X        ${RM} -rf ${WRKDIR}/usr/share/doc/nss_ldap-264/pam.d; \
 X    fi
 X    @if [ -f ${WRKDIR}/usr/share/man/man5/pam_ldap.5.gz ]; then \
 X        ${RM} ${WRKDIR}/usr/share/man/man5/pam_ldap.5.gz; \
 X    fi
 X.else
 X.if defined(NOPORTDOCS)
 X    @if [ -d ${WRKDIR}/usr/share/doc/nss_ldap-264/pam.d ]; then \
 X        ${RM} -rf ${WRKDIR}/usr/share/doc/nss_ldap-264/pam.d/; \
 X    fi
 X.endif
 X.endif
 X
 Xpost-install:
 X    @${CAT} ${PKGMESSAGE};
 X
 X.include <bsd.port.mk>
 81c4fadbbf682125545fb1e3189a8f0b
 echo x - linux-f10-nss_ldap/pkg-descr
 sed 's/^X//' >linux-f10-nss_ldap/pkg-descr << 
 '6d9053ce095e87046069fa409335934c'
 XThis a port of the nss_ldap libraries for linux.
 X
 XYou'll probably need this if your system users in a LDAP
 Xdirectory are complaining their linux programs won't run,
 Xand errors on the console say "getpwuid_r(): failed due
 Xto unknown user id".
 6d9053ce095e87046069fa409335934c
 echo x - linux-f10-nss_ldap/distinfo.i386
 sed 's/^X//' >linux-f10-nss_ldap/distinfo.i386 << 
 '4be875930d36d5dc2043c8039fbd5439'
 XSHA256 (rpm/i386/fedora/10/nss_ldap-264-6.fc10.i386.rpm) = 
 38fa8ac3fd79e15b0dde58f6a105e115ab5ba1166109b60ecd6b7905effaad3b
 XSIZE (rpm/i386/fedora/10/nss_ldap-264-6.fc10.i386.rpm) = 721887
 4be875930d36d5dc2043c8039fbd5439
 echo x - linux-f10-nss_ldap/pkg-message
 sed 's/^X//' >linux-f10-nss_ldap/pkg-message << 
 '9c3f99a0daaf217ffa7fc72fe2742af4'
 X###########################################################################
 X
 XAt a minimum you need to link your ldap.conf to /compat/linux/etc/ or set
 X/compat/linux/etc/ldap.conf to suit your network environment.
 X
 X###########################################################################
 9c3f99a0daaf217ffa7fc72fe2742af4
 echo x - linux-f10-nss_ldap/pkg-plist
 sed 's/^X//' >linux-f10-nss_ldap/pkg-plist << 
 '39594edba0c5857e542f9dafb1563993'
 Xusr/lib/libnss_ldap.so.2
 Xusr/lib/libnss_ldap.so
 Xusr/lib/libnss_ldap-264.so
 Xetc/ldap.conf.dist
 X%%PAM%%lib/security/pam_ldap.so
 39594edba0c5857e542f9dafb1563993
 exit
 --- linux-f10-nss_ldap.shar ends here ---
 
 
>Release-Note:
>Audit-Trail:
Class-Changed-From-To: sw-bug->change-request 
Class-Changed-By: linimon 
Class-Changed-When: Sun Jan 15 00:28:17 UTC 2012 
Class-Changed-Why:  
recover from bad formatting. 


Responsible-Changed-From-To: gnats-admin->freebsd-ports-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sun Jan 15 00:28:17 UTC 2012 
Responsible-Changed-Why:  

http://www.freebsd.org/cgi/query-pr.cgi?pr=164113 
Responsible-Changed-From-To: freebsd-ports-bugs->netchild 
Responsible-Changed-By: netchild 
Responsible-Changed-When: Fri Jan 20 20:14:24 UTC 2012 
Responsible-Changed-Why:  
take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=164113 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/164113: commit references a PR
Date: Fri, 20 Jan 2012 21:26:08 +0000 (UTC)

 netchild    2012-01-20 21:25:59 UTC
 
   FreeBSD ports repository
 
   Modified files:
     net                  Makefile 
   Added files:
     net/linux-f10-nss_ldap Makefile distinfo.i386 pkg-descr 
                            pkg-message pkg-plist 
   Log:
   This a port of the nss_ldap libraries for linux.
   
   You'll probably need this if your system users in a LDAP
   directory are complaining their linux programs won't run,
   and errors on the console say "getpwuid_r(): failed due
   to unknown user id".
   
   PR:             ports/164113
   Submitted by:   rskinner port_maintainer@herveybayaustralia.com.au
   Minor modifications (no license install, srpm checksum) by:     netchild
   Note:           the license framework does not seem to DTRT with linux ports
   
   Revision  Changes    Path
   1.2423    +1 -0      ports/net/Makefile
   1.1       +78 -0     ports/net/linux-f10-nss_ldap/Makefile (new)
   1.1       +4 -0      ports/net/linux-f10-nss_ldap/distinfo.i386 (new)
   1.1       +6 -0      ports/net/linux-f10-nss_ldap/pkg-descr (new)
   1.1       +6 -0      ports/net/linux-f10-nss_ldap/pkg-message (new)
   1.1       +5 -0      ports/net/linux-f10-nss_ldap/pkg-plist (new)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->closed 
State-Changed-By: netchild 
State-Changed-When: Fri Jan 20 21:32:18 UTC 2012 
State-Changed-Why:  
Committed, thanks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=164113 
>Unformatted:
