From owner-freebsd-ports Mon May 28 2:11:34 2001 Delivered-To: freebsd-ports@freebsd.org Received: from heinz.jollem.com (c104187.upc-c.chello.nl [212.187.104.187]) by hub.freebsd.org (Postfix) with ESMTP id 4441337B422; Mon, 28 May 2001 02:11:26 -0700 (PDT) (envelope-from ernst@heinz.jollem.com) Received: (from ernst@localhost) by heinz.jollem.com (8.11.3/8.11.3) id f4S99ak09417; Mon, 28 May 2001 11:09:36 +0200 (CEST) (envelope-from ernst) Date: Mon, 28 May 2001 11:09:32 +0200 From: Ernst de Haan To: OKAZAKI Tetsurou Cc: Peter Pentchev , ports@FreeBSD.ORG Subject: Re: No pre- or post-deinstall target? Message-ID: <20010528110932.A9375@c187104187.telekabel.chello.nl> References: <20010528101937.A9039@c187104187.telekabel.chello.nl> <20010528113238.E8450@ringworld.oblivion.bg> <867kz1c1ln.wl@dolphin.be.to> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <867kz1c1ln.wl@dolphin.be.to>; from okazaki@FreeBSD.ORG on Mon, May 28, 2001 at 05:35:48PM +0900 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi, > > Use @unexec in pkg-plist. > > If you want to call a complex script at deinstall-time, you can > also do it by setting PKGDEINSTALL to the script. Default value > of PKGDEINSTALL is ${PKGDIR}/pkg-install. I assume you mean pkg-deinstall :) PKGDEINSTALL?= ${PKGDIR}/pkg-deinstall (from /usr/ports/Mk/bsd.port.mk) Anyway, this is kewl. I will need this to make sure that Orion application server (java/orion) is stopped when the port is deinstalled. Hmm, I will need to stop the Orion server *before* all files in pkg-plist are deleted, cause I will use the installed 'orionctl' script to stop the server. This will also delete the PID file (/var/run/orion.pid)... Anyway, I will think this over a bit more, reread the Porters Handbook and check out the makefiles a bit more :) Thanks for the hints! Ernst -- Ernst de Haan Java Architect Jollem Information Technology "Come to me all who are weary and burdened and I will give you rest" -- Jesus Christ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message