From owner-freebsd-ports Fri Oct 27 2: 1:10 2000 Delivered-To: freebsd-ports@freebsd.org Received: from leviathan.inethouston.com (216-118-21-146.pdq.net [216.118.21.146]) by hub.freebsd.org (Postfix) with ESMTP id E7FB737B4C5; Fri, 27 Oct 2000 02:01:07 -0700 (PDT) Received: from dwcjr (DWCJR.inethouston.net [216.118.21.147]) by leviathan.inethouston.com (Postfix) with ESMTP id 0AB77177EB3; Fri, 27 Oct 2000 04:05:27 -0500 (CDT) Message-ID: <063801c03ff5$050f4c80$931576d8@inethouston.net> From: "David W. Chapman Jr." To: "Maxim Sobolev" Cc: References: <061201c03ff1$2dac2ae0$931576d8@inethouston.net> <39F94283.2C8FC791@FreeBSD.org> Subject: Re: New Date: Fri, 27 Oct 2000 04:05:14 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I modified the following in the makefile .if defined(USE_FACILITY) _USE_FACILITY:= `${ECHO} ${USE_FACILITY} | ${TR} "[:lower:]" "[:upper:]"` USE_FACILITY= ${_USE_FACILITY} .else @${ECHO_MSG} "you can choose which syslog faciliy by setting LOG_FACILITY to: daemon, local0, etc. daemon is the defau USE_FACILITY= DAEMON .endif and it puts this in the site.h that I am trying to modify #define DHCPD_LOG_FACILITY LOG_`echo something | /usr/bin/tr "[:lower:]" "[:upper:]"` ----- Original Message ----- From: "Maxim Sobolev" To: "David W. Chapman Jr." Cc: Sent: Friday, October 27, 2000 3:53 AM Subject: Re: New > "David W. Chapman Jr." wrote: > > > I'm new to modifying/creating, I've taken a look at the handbook and also > > bsd.port.mk and can't figure out why this doesn't work like it should. > > > > When i do make USE_FACILITY=something I get this error > > > > su-2.04# make USE_FACILITY=something > > ===> Extracting for isc-dhcp3-3.0.b2.9 > > >> Checksum OK for dhcp-3.0b2pl9.tar.gz. > > ===> Patching for isc-dhcp3-3.0.b2.9 > > ===> Applying FreeBSD patches for isc-dhcp3-3.0.b2.9 > > Variable USE_FACILITY is recursive. > > *** Error code 2 > > > > When I just do make it does not echo the message I typed for it to echo > > > > [..] > > USE_FACILITY= `${ECHO} ${USE_FACILITY} | ${TR} "[:lower:]" "[:upper:]"` > > You can't use constructs like this, because of the way make(1) performs variable > expansions (see `man make' for details). If you really need something like that, > then you can use: > _USE_FACILITY:= `${ECHO} ${USE_FACILITY} | ${TR} "[:lower:]" "[:upper:]"` > USE_FACILITY=${_USE_FACILITY} > (note ":=" instead of plain "=" in the first assignment). > > -Maxim > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-ports" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message