Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Oct 2004 16:30:15 +0300
From:      Ion-Mihai Tetcu <itetcu@people.tecnik93.com>
To:        ports@FreeBSD.ORG
Subject:   PLIST_SUB= ..  problem
Message-ID:  <20041021163015.32ab7132@it.buh.cameradicommercio.ro>

next in thread | raw e-mail | index | archive | help
Hi, 


Here is a snip from my Makefile:

DSPAM_HOME?=    /var/dspam
DSPAM_HOME_MODE?=       0660

.include <bsd.port.pre.mk>

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 <bsd.port.pre.mk>

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"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041021163015.32ab7132>