From owner-freebsd-ports@FreeBSD.ORG Sun Nov 10 19:40:38 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 15462DDF for ; Sun, 10 Nov 2013 19:40:38 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mail-pb0-x22b.google.com (mail-pb0-x22b.google.com [IPv6:2607:f8b0:400e:c01::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E64CD2D1D for ; Sun, 10 Nov 2013 19:40:37 +0000 (UTC) Received: by mail-pb0-f43.google.com with SMTP id md4so4271024pbc.30 for ; Sun, 10 Nov 2013 11:40:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=1jTWO+Jg5fBqL7uBx0qinmzRjtASjUo7vXmzFMHbQys=; b=D4eXgXR8/jm933Lntff2Nn3LPwg3L4ij+tf8DF8Z1nrX+EBAOdYr32IG3QsUp7tmFd QxVrIGa6qrayavlWPfWnSWsOI10FqwLNX6TTeNGplUiHa1196arZ7psrRokaE5WWK1A2 xbN+sgKvEGItc9uv8HdoPrhIuZHTFRAwB6i7aOl/H4ubn+uL/GMD7ReH9WiZhpRmabtS I55xfv8C3YwJDlEUciYMwgp6LSxcYrYZjBhJ00JoE7cx5do/X2V+QnM9tT4F//Y2sXNI l7CnAcsi7PW27cB3E8tmTLsc4QOis1wIEeeTrzFVcAxDdazDY5xPL7pSUtrhdodlC0lV WV8g== MIME-Version: 1.0 X-Received: by 10.66.149.165 with SMTP id ub5mr26874302pab.81.1384112437563; Sun, 10 Nov 2013 11:40:37 -0800 (PST) Received: by 10.68.185.130 with HTTP; Sun, 10 Nov 2013 11:40:37 -0800 (PST) Date: Sun, 10 Nov 2013 14:40:37 -0500 Message-ID: Subject: Staging break user account modification in post-install From: Aryeh Friedman To: FreeBSD Ports ML Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Nov 2013 19:40:38 -0000 post-install is now called *BEFORE* users are created (before staging was added it was after)... looking at bsd.port.mk there seems no reasonable target that replaces post-install for this purpose. Namely I need to lock the user account that was created and assign a default password to it. This is what I had that used to work: post-install: echo password|pw usermod user -h 0 2>/dev/null pw lock user