From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26703 invoked from network); 22 Sep 2004 11:02:10 +0000 Received: from smtp.gentoo.org (156.56.111.197) by lists.gentoo.org with AES256-SHA encrypted SMTP; 22 Sep 2004 11:02:10 +0000 Received: from lists.gentoo.org ([156.56.111.196] helo=parrot.gentoo.org) by smtp.gentoo.org with esmtp (Exim 4.41) id 1CA4sy-0000LJ-0j for arch-gentoo-portage-dev@lists.gentoo.org; Wed, 22 Sep 2004 11:02:08 +0000 Received: (qmail 10186 invoked by uid 89); 22 Sep 2004 11:02:06 +0000 Mailing-List: contact gentoo-portage-dev-help@gentoo.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail Reply-To: gentoo-portage-dev@lists.gentoo.org X-BeenThere: gentoo-portage-dev@gentoo.org Received: (qmail 22876 invoked from network); 22 Sep 2004 11:02:06 +0000 From: Elfyn McBratney To: gentoo-portage-dev@lists.gentoo.org Date: Wed, 22 Sep 2004 12:02:12 +0100 User-Agent: KMail/1.6.2 MIME-Version: 1.0 Content-Disposition: inline Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <200409221202.15336.beu@gnu.org> Sender: "Elfyn McBratney " Subject: [gentoo-portage-dev] Running commands after a merge (via /etc/portage/package.hooks) X-Archives-Salt: 7fd9c077-e5a4-4c76-965b-25118722db63 X-Archives-Hash: 766f5f459f405af22c18d0afa582f2ea -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, I'm about to start working on a new portage feature that allows you to run commands (basically, bash syntax) before a merge and after a successful merge. (At work, we have a lot of virtual hosts with auto-generated vhosts.conf files for apache, with configuration data stored in XML files and/or databases, and having them updated automatically on apache upgrades would ease maintenance burdens. :) What I would like to do is add a new file to /etc/portage - package.hooks (open to suggestions on better names ;), which would contain category/package atoms and shell commands, ala: [atom] 'before' '(' shell code ')' or [atom] 'after' '(' shell code ')' or e.g. net-www/apache after apache-update-vhosts net-www/apache after (foo && do-bar || die "do-bar failed") Where atom's marked with before would run before the merge, and packages with after (or none specified) would be run after the merge. Before I start, does this feature sound useful for other gentoo'ers? :) If I've also left out something really important (happens ;), please ask. =) Comments, flames, etc, welcome. :) Elfyn - -- Elfyn McBratney beu on irc.freenode.net/savannah.[non]gnu.org PGP Key ID: 0x456548B4 PGP Key Fingerprint: 29D5 91BB 8748 7CC9 650F 31FE 6888 0C2A 4565 48B4 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFBUVu0aIgMKkVlSLQRAu0hAJ4rS+5Idji4eFbjHdpllYoNYWOkAwCeKLuk nCWDE+e8kjGXTjLPYQWBxRo= =5Se/ -----END PGP SIGNATURE----- -- gentoo-portage-dev@gentoo.org mailing list