From owner-freebsd-ports@FreeBSD.ORG Thu Oct 21 13:30:36 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1E05A16A4D2 for ; Thu, 21 Oct 2004 13:30:36 +0000 (GMT) Received: from smtp.rdsnet.ro (smtp.rdsnet.ro [62.231.74.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 84CED43D49 for ; Thu, 21 Oct 2004 13:30:12 +0000 (GMT) (envelope-from itetcu@people.tecnik93.com) Received: (qmail 2373 invoked by uid 89); 21 Oct 2004 13:30:11 -0000 Received: from unknown (HELO rdsnet.ro) (62.231.74.131) by 0 with SMTP; 21 Oct 2004 13:30:11 -0000 Received: (qmail 6686 invoked from network); 21 Oct 2004 13:30:11 -0000 Received: from unknown (HELO buh.cameradicommercio.ro) (82.76.1.117) by mail.rdsnet.ro with SMTP; 21 Oct 2004 13:30:11 -0000 Received: from it.buh.cameradicommercio.ro (it.buh.cameradicommercio.ro [192.168.0.10]) by buh.cameradicommercio.ro (Postfix) with ESMTP id 4FD1C60B9 for ; Thu, 21 Oct 2004 16:30:10 +0300 (EEST) Received: from it.buh.cameradicommercio.ro (localhost.buh.tecnik93.com [127.0.0.1]) by it.buh.cameradicommercio.ro (Postfix) with SMTP id 99B2A208 for ; Thu, 21 Oct 2004 16:30:16 +0300 (EEST) Date: Thu, 21 Oct 2004 16:30:15 +0300 From: Ion-Mihai Tetcu To: ports@FreeBSD.ORG Message-ID: <20041021163015.32ab7132@it.buh.cameradicommercio.ro> X-Mailer: Sylpheed-Claws 0.9.12a (GTK+ 1.2.10; i386-portbld-freebsd5.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: PLIST_SUB= .. problem X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Oct 2004 13:30:36 -0000 Hi, Here is a snip from my Makefile: DSPAM_HOME?= /var/dspam DSPAM_HOME_MODE?= 0660 .include CONFIGURE_ARGS+= --with-logdir=${LOG_DIR} CONFIGURE_ARGS+= --with-dspam-home=${DSPAM_HOME} PLIST_SUB+= DSPAM_HOME=$|DSPAM_HOME| and here is what I get; # make PREFIX=/var/ports/dspam-devel deinstall !g: not found sed: 1: "s!%%DSPAM_HOME%%!DSPAM_ ...": unescaped newline inside substitute pattern "/usr/ports/Mk/bsd.port.mk", line 2557: warning: "echo %%PREFIX%%/lib | /usr/bin/sed -e s!%%DSPAM_HOME%%!DSPAM_HOME|!g -e s!%%DB4%%!"@comment "!g -e s!%%MYSQL%%!""!g -e s!%%PGSQL%%!"@comment "!g -es!%%SQLITE%%!"@comment "!g -e s!%%CGI%%!""!g -e s!%%OSREL%%!5.3!g -e s!%%PREFIX%%!%D!g -e s!%%LOCALBASE%%!/usr/local!g -e s!%%X11BASE%%!/usr/X11R6!g -e s!%%PORTDOCS%%!""!g -e s!%%PORTOBJFORMAT%%!elf!g -e s!%%XAWVER%%!7!g -e s!%%PERL_VERSION%%!5.8.5!g -e s!%%PERL_VER%%!5.8.5!g -e s!%%PERL_ARCH%%!mach!g -e s!%%SITE_PERL%%!lib/perl5/site_perl/5.8.5!g -e s!%%DOCSDIR%%!"share/doc/dspam-devel"!g -es!%%EXAMPLESDIR%%!"share/examples/dspam-devel"!g -e s!%%DATADIR%%!"share/dspam-devel"!g" returned non-zero status Trying to use PLIST_FILES, after deleting the corresponding lines from pkg-plist: DSPAM_HOME?= /var/db/dspam DSPAM_HOME_MODE?= 0660 .include CONFIGURE_ARGS+= --with-logdir=${LOG_DIR} CONFIGURE_ARGS+= --with-dspam-home=${DSPAM_HOME} #PLIST_SUB+= DSPAM_HOME=$|DSPAM_HOME| .for file in firstrun.txt firstspam.txt quarantinefull.txt PLIST_FILES+= ${DSPAM_HOME}/${file}.sample .endfor PLIST_DIRS+= ${DSPAM_HOME} I get ${PREFIX} added: # make PREFIX=/var/ports/dspam-devel deinstall ===> Deinstalling for mail/dspam-devel.my ===> Deinstalling dspam-devel-mysql40-3.2.0 pkg_delete: file '/var/ports/dspam-devel//var/db/dspam/firstrun.txt.sample' doesn't really exist pkg_delete: file '/var/ports/dspam-devel//var/db/dspam/firstspam.txt.sample' doesn't really exist pkg_delete: file '/var/ports/dspam-devel//var/db/dspam/quarantinefull.txt.sample' doesn't really exist pkg_delete: file '/var/ports/dspam-devel//var/db/dspam' doesn't really exist pkg_delete: unable to completely remove directory '/var/ports/dspam-devel//var/db/dspam' pkg_delete: couldn't entirely delete package (perhaps the packing list is incorrectly specified?) What would be the solution ? Thanks, -- IOnut Unregistered ;) FreeBSD "user"