I'm attempting to create another package (i.e. for utilizing pkgadd/pkgrm/pkgchk/etc.)
But after creating the prototype file, I noticed that some of my files begin with the '=' character. How do I get pkgmk to interpret the "/path/=file" as a single file, rather than interpreting it as "/path/"="file"? I would argue that having an '=' character within the filename is undesireable, but unfortunately I have no control over this.
After commenting out all of the offending lines (i.e. lines with files containint the "=" character), I am then able to run pkgmk successfully.
I then uncommented the following offending line - which caused pkgmk to then fail ...
1 f none '/var/opt/totalnet/tndb/=flock.file' 0664 totalnet totalnet
I tried altering this to the following, but it failed...
1 f none '/var/opt/totalnet/tndb/\=flock.file' 0664 totalnet totalnet
I tried this also, and it failed as well...
1 f none '/var/opt/totalnet/tndb/==flock.file' 0664 totalnet totalnet
P.S. I realize that the "=flock.file" is not an important file, but I do have other files, files containing configuration info, which also have the "=" character in them...
# pkgmk -o -r /
## Building pkgmap from package prototype file.
ERROR in prototype:
no object for <'/var/opt/totalnet/tndb/flock.file'> found in root directory
pkgmk: ERROR: unable to build pkgmap from prototype file
## Packaging was not successful.
Trouble is, the object should be '/var/opt/totalnet/tndb/=flock.file'> since the file is "=flock.file" and not "flock.file".
I may need to tar these to an appropriate filename, and then have the tar file untar'ed through the postinstall. This would be a compromise, but it may get me further than I've gotten so far - unless we have other ideas... <:)
The only thing I can think of is the \ to let the program know not to look at the next character as special. You would have to rename the file unless someone else has an idea on this one.