Subject: Re: modifying executable after install, send-pr SUBMITTER
To: grant beattie <grant@NetBSD.org>
From: None <jmmv@menta.net>
List: tech-pkg
Date: 10/14/2003 16:35:52
On Tue, Oct 14, 2003 at 08:35:03AM +1000, grant beattie wrote:
> On Mon, Oct 13, 2003 at 03:25:04PM -0700, Jeremy C. Reed wrote:
>
> > The send-pr script can be customized after installing. For example,
> > install-sid can modify the script.
> >
> > So when I deinstall I get:
> >
> > original MD5 checksum failed, not deleting: /usr/pkg/bin/send-pr
> >
> > And then another install says it overwrote/conflicted.
> >
> > Any examples in pkgsrc of scripts that may be modified later?
>
> maybe you could use CONF_FILES to install it?
It seems ugly to install binary programs using CONF_FILES, furthermore if
they go under PREFIX/bin, but this is IMHO.
What kind of stuff can be configured in send-pr? Variables? If so, it
could be good to simply add a check for a PKG_SYSCONFDIR/send-pr.conf file
and source it where needed inside the script... thought this could be
completely non-standard (well, there is a chance that if you suggest this
to authors they will implement it ;-).
Cheers
--
Julio M. Merino Vidal <jmmv@menta.net>
The NetBSD Project - http://www.NetBSD.org/