From owner-freebsd-questions@FreeBSD.ORG Wed Jun 11 13:13:47 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BEA53EBD for ; Wed, 11 Jun 2014 13:13:47 +0000 (UTC) Received: from mail.simplerezo.com (smtp.simplerezo.com [213.152.6.129]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 382BA2623 for ; Wed, 11 Jun 2014 13:13:46 +0000 (UTC) Received: (qmail 71748 invoked by uid 89); 11 Jun 2014 15:13:43 +0200 Received: by simscan 1.4.0 ppid: 71744, pid: 71745, t: 0.0080s scanners: clamav: 0.95.2/m:55/d:18858 Received: from unknown (HELO www.simplerezo.com) (192.168.42.160) by 192.168.42.129 (envelope-from mais@ouestil.com) with SMTP; 11 Jun 2014 15:13:43 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Wed, 11 Jun 2014 15:13:43 +0200 From: mais@ouestil.com To: freebsd-questions@freebsd.org Subject: Re: rc.d are not installed by ports! In-Reply-To: <44k38oqu6h.fsf@lowell-desk.lan> References: <5e744da3ee7bb10e5a4ac30dd14b895c@ouestil.com> <44k38oqu6h.fsf@lowell-desk.lan> Message-ID: <972aedf436c206695cb9674ab3d80537@ouestil.com> X-Sender: mais@ouestil.com User-Agent: SR-Webmail/RoundCube-1.0.1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jun 2014 13:13:47 -0000 Le 11/06/2014 00:24, Lowell Gilbert a écrit : > mais@ouestil.com writes: > >> It's not the first time it happens to me, but on two FreeBSD 9.2 host >> (recently updated from 9.0 because of EOL portstree support on it), >> using pkng, after upgrade of openssh, mysql, nginx ... ports does not >> install their rc.d ! ~$ pkg info -l openssh-portable >> openssh-portable-6.6.p1_1,1: /etc/rc.d/openssh > > This indicates that the package system thinks it installed the startup > script. By default, this would be /usr/local/etc/rc.d/openssh (I just > tested the port and did, indeed, get the file installed). > > What makes you think it isn't there? > Sorry, wrong output... On the server considered, the file is missing in the list. > Okay, in the nginx port I don't see a startup script listed, and I > don't > see anything that jumps out at me as creating one. But when I build the > port, I do get a startup script, so there's some kind of trickery > taking > care of it. > >> I didn't make a PR because it's looks like more a global problem than >> a openssh or mysql port specific. > > That does seem reasonable, but it also seems particular to your system, > so that's where we'll really need to debug it. I finally almost found where something is wrong! We are using a homemade script for some helping ports install. Basically, our script do this: make clean all make generate-plist make check-already-installed [and more...] The problem is on "generate-plist". This step was required when we made the script in order to be able to do check-already-installed. Now, it looks like this is not necessary anymore (the plist is already built by "all" target). BUT, if you try this : $ make clean all $ cp /usr/obj/usr/ports/security/openssh-portable/work/.PLIST.mktmp /usr/obj/usr/ports/security/openssh-portable/work/.PLIST.mktmp.bak $ make generate-plist $ diff -u /usr/obj/usr/ports/security/openssh-portable/work/.PLIST.mktmp* --- /usr/obj/usr/ports/security/openssh-portable/work/.PLIST.mktmp 2014-06-11 15:01:15.000000000 +0200 +++ /usr/obj/usr/ports/security/openssh-portable/work/.PLIST.mktmp.bak 2014-06-11 15:00:04.000000000 +0200 @@ -40,3 +40,6 @@ man/man8/sshd.8.gz man/man8/ssh-keysign.8.gz man/man8/ssh-pkcs11-helper.8.gz +@cwd / +etc/rc.d/openssh +@cwd /usr And I think it's a bug, for 2 reasons: first, if the PLIST is already here, I don't see any reason to "rebuilt" it, and second, if it does, it should be the same :) I made a PR for this: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=190930 Regards Envoyé par SR-Webmail