From owner-freebsd-questions Thu Jan 23 2:30:39 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4F4F637B401 for ; Thu, 23 Jan 2003 02:30:38 -0800 (PST) Received: from grillolja.cs.umu.se (grillolja.cs.umu.se [130.239.40.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id 539BA43ED8 for ; Thu, 23 Jan 2003 02:30:37 -0800 (PST) (envelope-from tdv94ped@cs.umu.se) Received: from localhost (localhost [127.0.0.1]) by amavisd-new (Postfix) with ESMTP id AA2779FA2; Thu, 23 Jan 2003 11:30:35 +0100 (MET) Received: from kvist.cs.umu.se (kvist.cs.umu.se [130.239.40.192]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by grillolja.cs.umu.se (Postfix) with ESMTP id 4A1069FD0; Thu, 23 Jan 2003 11:30:29 +0100 (MET) Date: Thu, 23 Jan 2003 11:30:06 +0100 (MET) From: Paul Everlund To: Jens Haeusser Cc: freebsd-questions@freebsd.org Subject: Re: Installing Stripped System In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new amavisd-new-20020630 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 On Thu, 23 Jan 2003, Jens Haeusser wrote: > I'd like to install a system lacking some of the binaries you can > specify as make.conf knobs, such as > > NO_I4B= true > NO_IPFILTER= true > NOGAMES= true > NOUUCP= true > NO_SENDMAIL= true > > Even when I install a minimal system from an install CD (just bin), > and then cvsup and make world with the above in /etc/make.conf , the > original binary files are still around. I can remove them manually > by going into the various directories (/bin, /sbin, /usr/bin, > /usr/sbin, /usr/libexec) and removing any files older than my > installworld date, but that still leaves crud in /usr/share, etc. > > Is there a better way to either do a stripped install, or to remove > the files programmatically? Using a simple command like "find / \! > -mtime 1 -print" also finds files in /usr/include, /usr/share/man, > etc. that I don't want to remove. > > Jens Haeusser > Network Manager > Zoology, UBC I have been thinking that those "knobs" should have their own pkg-plist which one could use for deleting the binaries. Also one must take in concern dependencies of those "knobs"... Maybe by looking at the various Makefiles to see what gets installed one could create this pkg-plist which could be used to remove those "knobs" not wanted? But I still think sendmail and so on should be installed by default as it is needed by the system. Just a thought... How it should be done I'm too tired of thinking about right now. :-) Best regards, Paul To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message