Re: How to best run a script post installation _and_ deinstallation?
On 13 Sep 2011 01:36, "Gerald Pfeifer" wrote: > > On Sun, 22 May 2011, Doug Barton wrote: > > Will @unexec in pkg-plist do the job? > > On Mon, 23 May 2011, Wesley Shields wrote: > > Are these what you are looking for: > > > > http://www.freebsd.org/doc/en/books/porters-handbook/pkg-install.html > > http://www.freebsd.org/doc/en/books/porters-handbook/pkg-deinstall.html > > Yes and no (to both questions). > > I have been looking for a silver bullet that avoids having > (a) something in the post-install target plus an @exec and an @unexec > and thus redundancy, or > (b) two extra scripts and thus two extra files in the port. > > Alas, I failed at that, and Emanuel convinced me that apparently there > is no way to avoid one of these two deaths. > > That looks like a nice project for someone to improve our general > infrastructure along these lines. > Most people faced with this problem redefine PKGDEINSTALL to the location of the pkg-install script. Chris ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: How to best run a script post installation _and_ deinstallation?
On Sun, 22 May 2011, Doug Barton wrote: > Will @unexec in pkg-plist do the job? On Mon, 23 May 2011, Wesley Shields wrote: > Are these what you are looking for: > > http://www.freebsd.org/doc/en/books/porters-handbook/pkg-install.html > http://www.freebsd.org/doc/en/books/porters-handbook/pkg-deinstall.html Yes and no (to both questions). I have been looking for a silver bullet that avoids having (a) something in the post-install target plus an @exec and an @unexec and thus redundancy, or (b) two extra scripts and thus two extra files in the port. Alas, I failed at that, and Emanuel convinced me that apparently there is no way to avoid one of these two deaths. That looks like a nice project for someone to improve our general infrastructure along these lines. Gerald ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: How to best run a script post installation _and_ deinstallation?
On Sun, May 22, 2011 at 11:01:50PM +0200, Gerald Pfeifer wrote: > Trying to implement the final steps in addressing PR 155568: "bsd.gcc.mk: > Fixing dependency not to pick ccache stubs" which I have been working on > with Emanuel, I'd like to invoke a script after a port/package has been > installed and again after it has been deinstalled. > > The naive approach below works for installation: > > Index: Makefile > === > < post-install: > --- > > post-install: ccache-update > 181a182,186 > > post-deinstall ccache-update: > > @if [ -x ${PREFIX}/bin/ccache-update-links ]; then \ > > ${PREFIX}/bin/ccache-update-links -v; \ > > fi > > > > It does not cover de-installation which raises two questions: > > 1. Why don't we have a post-deinstall target? > > 2. How is the task best accomplished? Are these what you are looking for: http://www.freebsd.org/doc/en/books/porters-handbook/pkg-install.html http://www.freebsd.org/doc/en/books/porters-handbook/pkg-deinstall.html -- WXS ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
Re: How to best run a script post installation _and_ deinstallation?
On 05/22/2011 14:01, Gerald Pfeifer wrote: 2. How is the task best accomplished? Will @unexec in pkg-plist do the job? -- Nothin' ever doesn't change, but nothin' changes much. -- OK Go Breadth of IT experience, and depth of knowledge in the DNS. Yours for the right price. :) http://SupersetSolutions.com/ ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"
How to best run a script post installation _and_ deinstallation?
Trying to implement the final steps in addressing PR 155568: "bsd.gcc.mk: Fixing dependency not to pick ccache stubs" which I have been working on with Emanuel, I'd like to invoke a script after a port/package has been installed and again after it has been deinstalled. The naive approach below works for installation: Index: Makefile === < post-install: --- > post-install: ccache-update 181a182,186 > post-deinstall ccache-update: > @if [ -x ${PREFIX}/bin/ccache-update-links ]; then \ > ${PREFIX}/bin/ccache-update-links -v; \ > fi > It does not cover de-installation which raises two questions: 1. Why don't we have a post-deinstall target? 2. How is the task best accomplished? Gerald ___ freebsd-ports@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ports To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"