From owner-freebsd-questions Wed May 1 6:39:19 2002 Delivered-To: freebsd-questions@freebsd.org Received: from spin.web.net (spin.web.net [192.139.37.16]) by hub.freebsd.org (Postfix) with ESMTP id CECE437B400 for ; Wed, 1 May 2002 06:39:15 -0700 (PDT) Received: by spin.web.net (Postfix, from userid 1000) id 3E43312E547; Wed, 1 May 2002 09:39:15 -0400 (EDT) Date: Wed, 1 May 2002 09:39:15 -0400 From: Rob Ellis To: Darren Pilgrim Cc: freebsd-questions@freebsd.org Subject: Re: make install wrapper? Message-ID: <20020501133915.GB20305@web.ca> References: <3CCF2E1F.EEF74273@pantherdragon.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3CCF2E1F.EEF74273@pantherdragon.org> User-Agent: Mutt/1.3.28i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG depending on the package you're installing, you could use gnu's "stow": http://www.gnu.ai.mit.edu/software/stow/stow.html basically, you install your package to something like /usr/local/stow/something-1.0 and then use stow to create symlinks to the right places. you can later install something-1.1 to /usr/local/stow/something-1.1, unstow the first version, stow the second version, and if there's any problem it's easy to back out. also easy to completely get rid of 1.0... - rob On Tue, Apr 30, 2002 at 04:51:59PM -0700, Darren Pilgrim wrote: > Is there a way to, or does anyone know of a (collection of) script(s) > that can take the makefile for a source package and build a second > script around it that backs up any files that will be overwritten before > installing the compiled package, create an uninstall script if one isn't > present, and handles restoration of the old files after an uninstall? > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- Rob Ellis System Administrator, Web Networks To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message