pkgsrc-WIP-review archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: new package: gallery2



> However, there is one irritating thing left, and it's during the  
> deinstallation of gallery2.
> You get a error message:
> 
> pkg_delete: unable to completely remove directory '/usr/pkg/share/ 
> gallery2'
> pkg_delete: couldn't entirely delete package `gallery2-2.2.5'
> (perhaps the packing list is incorrectly specified?)
>...
> ========================================================================
> The following files are no longer being used by gallery2-2.2.5,
> and they can be removed if no other packages are using them:
>
>          /usr/pkg/share/gallery2/config.php
>
> This is because of the configration file is copied to /usr/pkg/share/
> gallery2/config.php, and the PLIST (which has @rmdir /usr/pkg/share/
> gallery2).
> I think that most people want to have the gallery2 folder deleted then 
> they deinstall gallery2.
> But it's also nice to leave the config.php there if it has been
> modified. But as it is now, I don't get either of those...

Example configuration files usually go into share/examples/<pkgname>/,
and should be in PLIST, and you should probably have a CONF_FILES
setting in your Makefile, as per section 15.2.3 in

  http://www.netbsd.org/docs/pkgsrc/pkginstall.html#conf-files

That way, the original example config file is copied into place in
PKG_SYSCONFDIR, and the example file is removed when the package is
removed, but the copy in PKG_SYSCONFDIR is (and should be!) left
alone when the package is deleted.

Regards,

- Håvard

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
pkgsrc-wip-review mailing list
pkgsrc-wip-review%lists.sourceforge.net@localhost
https://lists.sourceforge.net/lists/listinfo/pkgsrc-wip-review


Home | Main Index | Thread Index | Old Index