Re: [SOLVED] [gentoo-user] Automatically copy a file to a different location after package install/update

2016-05-10 Thread Neil Bothwick
On Tue, 10 May 2016 16:30:49 +0200, J. Roeleveld wrote: > > pkg_postinst() { > > cp /etc/openldap/schema/pureftpd.schema > > /opt/packages/SHARED/etc/openldap/schema/pureftpd.schema > > einfo "NOTE: LDAP Schema File copied." > > } > > > > in /etc/portage/env/net-ftp/pure-ftpd > > When I

Re: [SOLVED] [gentoo-user] Automatically copy a file to a different location after package install/update

2016-05-10 Thread J. Roeleveld
On Tuesday, May 10, 2016 03:13:08 PM Neil Bothwick wrote: > On Tue, 10 May 2016 14:44:58 +0200, J. Roeleveld wrote: > > > 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

Re: [SOLVED] [gentoo-user] Automatically copy a file to a different location after package install/update

2016-05-10 Thread Neil Bothwick
On Tue, 10 May 2016 14:44:58 +0200, J. Roeleveld wrote: > > 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/~zmedic

Re: [SOLVED] [gentoo-user] Automatically copy a file to a different location after package install/update

2016-05-10 Thread J. Roeleveld
On Tuesday, May 10, 2016 10:01:10 AM Neil Bothwick wrote: > 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 sc

Re: [gentoo-user] Automatically copy a file to a different location after package install/update

2016-05-10 Thread Neil Bothwick
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/up

[gentoo-user] Automatically copy a file to a different location after package install/update

2016-05-10 Thread J. Roeleveld
Hi all, I have accounts configured in LDAP (OpenLDAP) And a FTP-server on a different host. The FTP server succesfully authenticates against OpenLDAP, using a schema provided by the FTP server ebuild. Currently, I have to manually remember to copy the schema across when I update the ftp-server