From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id E5DFF138252 for ; Tue, 10 May 2016 09:01:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2431121C075; Tue, 10 May 2016 09:01:16 +0000 (UTC) Received: from smarthost03b.mail.zen.net.uk (smarthost03b.mail.zen.net.uk [212.23.1.21]) by pigeon.gentoo.org (Postfix) with ESMTP id D59F521C012 for ; Tue, 10 May 2016 09:01:13 +0000 (UTC) Received: from [82.69.83.178] (helo=mail.digimed.co.uk) by smarthost03b.mail.zen.net.uk with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1b03XU-0004XJ-El for gentoo-user@lists.gentoo.org; Tue, 10 May 2016 09:01:12 +0000 Received: from hactar.digimed.co.uk (hactar.digimed.co.uk [192.168.1.3]) by mail.digimed.co.uk (Postfix) with ESMTPSA id AE1C14308B1 for ; Tue, 10 May 2016 10:01:10 +0100 (BST) Date: Tue, 10 May 2016 10:01:10 +0100 From: Neil Bothwick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Automatically copy a file to a different location after package install/update Message-ID: <20160510100110.0aecd501@hactar.digimed.co.uk> In-Reply-To: <6307920.vm2KqvTLcz@andromeda> References: <6307920.vm2KqvTLcz@andromeda> Organization: Digital Media Production X-Mailer: Claws Mail 3.13.2-137-gc4ebc9 (GTK+ 2.24.30; x86_64-pc-linux-gnu) X-GPG-Fingerprint: 7260 0F33 97EC 2F1E 7667 FE37 BA6E 1A97 4375 1903 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/tx+mQT+ETTM_YmUP_EEZIzP"; protocol="application/pgp-signature" X-Originating-smarthost03b-IP: [82.69.83.178] X-Archives-Salt: a5cd2fe0-7098-4b0a-8337-e49132634a39 X-Archives-Hash: 8a365eceb11567affa3dbca7bbc8c7ae --Sig_/tx+mQT+ETTM_YmUP_EEZIzP Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Tue, 10 May 2016 10:53:03 +0200, J. Roeleveld wrote: > Currently, I have to manually remember to copy the schema across when I > update the ftp-server. Is there a way to set up a little script that > will automatically copy the schema file to a different location after a > successful install/update without having to patch the ebuild-files. > (manually copying is less error-prone) You can define hooks in /etc/portage/bashrc and /etc/portage/env that are run at various stages of the ebuild. A post_install hook in /etc/portage/env/cat/ftp-server should do what you want. https://dev.gentoo.org/~zmedico/portage/doc/portage.html#config-bashrc-ebui= ld-phase-hooks --=20 Neil Bothwick A great many people mistake opinions for thoughts. -- Herbert V. Prochnow --Sig_/tx+mQT+ETTM_YmUP_EEZIzP Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEARECAAYFAlcxo1YACgkQum4al0N1GQPLCwCfRZFajaHn2wbVXfQFvgOqHsY4 xiEAnixFLHF/cDzGftD772+jTmdhRgW3 =Yr0x -----END PGP SIGNATURE----- --Sig_/tx+mQT+ETTM_YmUP_EEZIzP--