I'm trying to update a port with no maintainer, games/pcgen. To run properly as a normal user, the install directory needs to be writable. The app writes a config file, a lock file, a number of log files, and possibly other files to its install directory. The port does not have a separate pkg-plist file. If it did, I think I would have already succeeded at this since there are innumerable examples of changing the mode in the pkg-plist file in other ports. There are only a few examples of changing the mode when a
Here is the original code from the Makefile.
I have tried
and
If I do succeed at getting the mode set in
PLIST_FILES
variable is used, and I have not been able to get this to work following those examples. I've tried a few different approaches to this.Here is the original code from the Makefile.
Code:
PLIST_FILES= bin/pcgen
PORTDATA= *
PORTDOCS= *
PLIST_DIRS= %%DATADIR%%/characters
I have tried
Code:
PLIST_FILES= bin/pcgen "@dir(,,0777) ${DATADIR}"
Code:
PLIST_DIRS= %%DATADIR%%/characters @dir(,,0777) %%DATADIR%%
Code:
post-install:
## Make installation directory writable
#${CHMOD} 0777 ${DATADIR}
${CHMOD} 0777 ${PREFIX}${DATADIR}
portlint
issues a warning for that last one. In addition to what's listed above, I've tried using single, double, and no quotes around some of these without any apparent effect. In any case, with each of these attempts, the install directory, /usr/local/share/java/pcgen, is never made writable when pcgen is installed.If I do succeed at getting the mode set in
PLIST_FILES
, will make deinstall
remove the directory even if config files, etc. are left behind? That would be an unwelcome change.