From owner-freebsd-emulation@FreeBSD.ORG Wed Apr 16 21:47:56 2008 Return-Path: Delivered-To: emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 94E44106564A for ; Wed, 16 Apr 2008 21:47:56 +0000 (UTC) (envelope-from chagin.dmitry@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.155]) by mx1.freebsd.org (Postfix) with ESMTP id D026C8FC17 for ; Wed, 16 Apr 2008 21:47:37 +0000 (UTC) (envelope-from chagin.dmitry@gmail.com) Received: by fg-out-1718.google.com with SMTP id 16so2840164fgg.35 for ; Wed, 16 Apr 2008 14:47:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:to:cc:subject:in-reply-to:message-id:references:mime-version:content-type:from; bh=2SaVaNK79o/doxBzuDHg7eyMSlmC9aVwApB2sld8Yws=; b=KxSgASoookrruraBIfiO5fR3ZSABqUbG+jBD01Hdzq6uOMu3BmvUYb6oo6yFdd0DNQq7b4OFpREBTtFEE/0LTE4rVMSbrClG1laF5pgOEqr+nnGgSMfC4629WXLiWu62gJOQt8Ac5Pbd6haO+DjPLqyFDG6gTqbIV4ol297dkO8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:to:cc:subject:in-reply-to:message-id:references:mime-version:content-type:from; b=BNkjLHwH0KzSzZZV56L43MQniItLKdGc9ZTjLNf6DVVGPbuL9w0suTOlFMJ9axBBkZKHtNg2TdqkV6UFJPS8UdfS92A3ZebAu+yIP2vm52iEIOZmxUuBi/koNGbz0236HC7lIqFcsPcGnSN0R5Qr72S7L88l8LD3CUbninHJWJM= Received: by 10.86.79.19 with SMTP id c19mr973833fgb.31.1208380927351; Wed, 16 Apr 2008 14:22:07 -0700 (PDT) Received: from ora.chd.net ( [81.200.6.196]) by mx.google.com with ESMTPS id 3sm8245775fge.7.2008.04.16.14.22.05 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 16 Apr 2008 14:22:06 -0700 (PDT) Date: Thu, 17 Apr 2008 01:21:56 +0400 (MSD) To: Boris Samorodov In-Reply-To: <72854627@bb.ipt.ru> Message-ID: <20080417010342.E57375@ora.chd.net> References: <72854627@bb.ipt.ru> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed From: Chagin Dmitry Cc: emulation@freebsd.org Subject: Re: CALL FOR TESTERS: linux-f8 infrastructure ports X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Apr 2008 21:47:56 -0000 On Tue, 8 Apr 2008, Boris Samorodov wrote: > Hello List, Is it possible to add in pkg-install scripts creation of links on often used utilities? Like sed, awk and others. It is necessary, if shell scripts in which ways to these utilities are specified full are used. For an example look a patch bellow. --- emulators/linux_base-f8/pkg-deinstall.orig 2008-03-26 01:19:33.000000000 +0300 +++ emulators/linux_base-f8/pkg-deinstall 2008-04-17 00:40:34.000000000 +0400 @@ -3,6 +3,15 @@ case "$2" in DEINSTALL) +# +# Remove symlinks +# + if [ -L ${PKG_PREFIX}/bin/awk ]; then + rm ${PKG_PREFIX}/bin/awk + fi + if [ -L ${PKG_PREFIX}/bin/sed ]; then + rm ${PKG_PREFIX}/bin/sed + fi if [ -n "`mount | grep ^linproc`" ] || \ [ -d /compat/linux/proc ]; then echo "" --- emulators/linux_base-f8/pkg-install.orig 2008-03-26 01:19:33.000000000 +0300 +++ emulators/linux_base-f8/pkg-install 2008-04-17 00:31:35.000000000 +0400 @@ -49,6 +49,15 @@ cp ${PKG_PREFIX}/etc/yp.conf.sample ${PKG_PREFIX}/etc/yp.conf fi # +# Add symlinks for usual utilities +# + if [ ! -e ${PKG_PREFIX}/bin/awk ]; then + ln -s $(which awk) ${PKG_PREFIX}/bin/awk + fi + if [ ! -e ${PKG_PREFIX}/bin/sed ]; then + ln -s $(which sed) ${PKG_PREFIX}/bin/sed + fi +# # This is needed when updating to ensure that already installed libraries # are recorded in ${PKG_PREFIX}/etc/ld.so.cache # -- Have fun! chd