From owner-freebsd-questions@FreeBSD.ORG Fri Aug 7 20:54:46 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9F28E1065732 for ; Fri, 7 Aug 2009 20:54:46 +0000 (UTC) (envelope-from mel.flynn+fbsd.questions@mailing.thruhere.net) Received: from mailhub.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 629878FC1E for ; Fri, 7 Aug 2009 20:54:46 +0000 (UTC) Received: from smoochies.rachie.is-a-geek.net (mailhub.lan.rachie.is-a-geek.net [192.168.2.11]) by mailhub.rachie.is-a-geek.net (Postfix) with ESMTP id 6FB3E7E818; Fri, 7 Aug 2009 12:54:45 -0800 (AKDT) From: Mel Flynn To: freebsd-questions@freebsd.org Date: Fri, 7 Aug 2009 12:54:44 -0800 User-Agent: KMail/1.11.4 (FreeBSD/8.0-BETA2; KDE/4.2.4; i386; ; ) References: <8250ac3f0908051135g282fabb1m4009077010a6fd72@mail.gmail.com> <200908051048.03079.mel.flynn+fbsd.questions@mailing.thruhere.net> <8250ac3f0908060754u714379dw51948c0ac858a8da@mail.gmail.com> In-Reply-To: <8250ac3f0908060754u714379dw51948c0ac858a8da@mail.gmail.com> MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_USJfKal++N1uTlV" Message-Id: <200908071254.44524.mel.flynn+fbsd.questions@mailing.thruhere.net> Cc: Kalle =?iso-8859-1?q?M=F8ller?= , janos.mohacsi@bsd.hu Subject: Re: net-mgmt/flowd - broken ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Aug 2009 20:54:46 -0000 --Boundary-00=_USJfKal++N1uTlV Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Thursday 06 August 2009 06:54:52 Kalle M=F8ller wrote: > Damn have no clue how to build fix or anything with plist ... Except it > seemd to be a list of the files used ?? Try attached patch. Checking WITH_PYTHON now. Also fixed pkg-install while = I=20 was in there to respect a FLOWD_UID variable, so that one can assign a uid= =20 rather then using the next available. =2D-=20 Mel --Boundary-00=_USJfKal++N1uTlV Content-Type: text/plain; charset="ISO-8859-1"; name="flowd-fix.patch.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="flowd-fix.patch.txt" Index: net-mgmt/flowd/Makefile =================================================================== RCS file: /home/ncvs/ports/net-mgmt/flowd/Makefile,v retrieving revision 1.14 diff -u -r1.14 Makefile --- net-mgmt/flowd/Makefile 13 Jul 2009 16:22:56 -0000 1.14 +++ net-mgmt/flowd/Makefile 7 Aug 2009 20:44:36 -0000 @@ -22,13 +22,14 @@ MAN5= flowd.conf.5 PORTDOCS= README INSTALL FLOWD_USER?= _flowd +.if defined(FLOWD_UID) +SCRIPTS_ENV+= FLOWD_UID="${FLOWD_UID}" +.endif .if defined(WITH_PERL) USE_PERL5= yes PLIST_SUB+= WITH_PERL="" -#MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} -#MAN3= Flowd.3 -BROKEN= Incomplete pkg-plist +MAN3= Flowd.3 .else PLIST_SUB+= WITH_PERL="@comment " .endif @@ -67,9 +68,10 @@ .if defined(WITH_PERL) cd ${WRKSRC}/Flowd-perl && \ - ${PERL} Makefile.PL && \ + ${PERL} Makefile.PL INSTALLSITEMAN3DIR=${MAN3PREFIX}/man/man3 && \ ${GMAKE} && \ - ${GMAKE} install + ${GMAKE} install; + -${RM} -f ${SITE_PERL}/${PERL_ARCH}/perllocal.pod .endif .if defined(WITH_PYTHON) Index: net-mgmt/flowd/pkg-install =================================================================== RCS file: /home/ncvs/ports/net-mgmt/flowd/pkg-install,v retrieving revision 1.2 diff -u -r1.2 pkg-install --- net-mgmt/flowd/pkg-install 4 Jun 2005 00:43:20 -0000 1.2 +++ net-mgmt/flowd/pkg-install 7 Aug 2009 20:16:59 -0000 @@ -20,9 +20,15 @@ shell=/nonexistent fi uhome="/var/empty" + if [ -z "${FLOWD_UID}" ]; then + uid=`${PW} usernext`; + uid=${uid%%:*} + else + uid=${FLOWD_UID} + fi if ! ${PW} show user ${USER} -q >/dev/null; then - if ! ${PW} add user ${USER} -g ${GROUP} -d "${uhome}" \ + if ! ${PW} add user ${USER} -u ${uid} -g ${GROUP} -d "${uhome}" \ -c "flowd privilege separation user" -s "${shell}" -p "*" \ ; then e=$? --Boundary-00=_USJfKal++N1uTlV--