pkg-plist problems

Paul Schmehl pauls at utdallas.edu
Mon Jul 18 21:13:57 GMT 2005


I'm working on a new port, and I'm having a strange problem with pkg-plist. 
I created pkg-plist per the instructions in Chapter 19 of the Porters 
Handbook.  When I run make deinstall PREFIX=/var/tmp/port-name, the 
deinstall complains that the files in $DOCSDIR don't exist.  Yet they do.

Here's the error I'm getting (in part):

pkg_delete: file '/var/tmp/sguild/share/doc/sguil-sensor' doesn't really 
exist
pkg_delete: unable to completely remove directory 
'/var/tmp/sguild/share/doc/sguil-sensor'
pkg_delete: couldn't entirely delete package (perhaps the packing list is
incorrectly specified?)

As you can see, the directory is gone:
 ls /var/tmp/sguild/share/doc/
ja

After running make install PREFIX=
 make install PREFIX=/var/tmp/sguild

As you can see, the directory is there:
ls /var/tmp/sguild/share/doc/
ja              sguil-sensor

And so are the docs:
ls /var/tmp/sguild/share/doc/sguil-sensor/
CHANGES         INSTALL.openbsd OPENSSL.README  USAGE
INSTALL         LICENSE.QPL     TODO            sguildb.dia

Here's the pkg-plist:
 less pkg-plist
bin/sguil-sensor/log_packets.sh
bin/sguil-sensor/log_packets.sh-sample
bin/sguil-sensor/sensor_agent.tcl
etc/rc.d/sensoragent.sh
etc/sancp.conf
etc/sancp.conf-sample
etc/sensor_agent.conf
etc/sensor_agent.conf-sample
share/doc/sguil-sensor/CHANGES
share/doc/sguil-sensor/INSTALL
share/doc/sguil-sensor/INSTALL.openbsd
share/doc/sguil-sensor/LICENSE.QPL
share/doc/sguil-sensor/OPENSSL.README
share/doc/sguil-sensor/TODO
share/doc/sguil-sensor/USAGE
share/doc/sguil-sensor/sguildb.dia
share/nls/POSIX
share/nls/en_US.US-ASCII
@dirrm share/doc/sguil-sensor
@dirrm bin/sguil-sensor

Everything is being installed and deleted correctly, but the deinstall 
generates the above errors.

What the heck is going on?

Paul Schmehl (pauls at utdallas.edu)
Adjunct Information Security Officer
University of Texas at Dallas
AVIEN Founding Member
http://www.utdallas.edu/ir/security/


More information about the freebsd-ports mailing list