From owner-freebsd-questions@FreeBSD.ORG Thu Feb 7 22:12:28 2008 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 9A1EA16A418 for ; Thu, 7 Feb 2008 22:12:28 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from snoogles.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 68FB413C4E3 for ; Thu, 7 Feb 2008 22:12:28 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (localhost [127.0.0.1]) by snoogles.rachie.is-a-geek.net (Postfix) with ESMTP id 081951CC8B; Thu, 7 Feb 2008 13:12:17 -0900 (AKST) From: Mel To: freebsd-questions@freebsd.org Date: Thu, 7 Feb 2008 23:01:28 +0100 User-Agent: KMail/1.9.7 References: <86sl07y5fr.fsf@Llea.celt.neu> In-Reply-To: <86sl07y5fr.fsf@Llea.celt.neu> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200802072301.29261.fbsd.questions@rachie.is-a-geek.net> Cc: =?iso-8859-15?q?Micha=EBl_Gr=FCnewald?= Subject: Re: Best practices for managing tweaked ports 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: Thu, 07 Feb 2008 22:12:28 -0000 Hi, On Tuesday 05 February 2008 13:05:12 Micha=EBl Gr=FCnewald wrote: > I am seeking for a word in advice in how to automatically tweak some > applications, possibly making packages for them. > > > The current solution is: I have a post install shell script that plugs > my files into appropriate location. This works but there is two > drawbacks: You're almost there: =2D Create a file Makefile.local in the port you need a post-install shell= =20 script executed with contents: PKGINSTALL=3D/path/to/mycustomizations.sh This will then be packaged in packages as well. See pkg_create(1) and in particular -i option, as well as grep=20 _LATE_PKG_ARGS /usr/ports/Mk/bsd.port.mk If you wanna do it cleaner, may want to wrap that in: =2Eif !defined(PKGINSTALL) && !exists(${PKGDIR}/pkg-install) =2E.. =2Eelse error: echo "Omg they killed kenny" /usr/bin/false =2Eendif So that it errors out, if the port starts providing a post-install script. =2D-=20 Mel