Subject: Re: New package question
To: None <firstname.lastname@example.org>
From: Joerg Sonnenberger <email@example.com>
Date: 11/15/2007 18:59:41
On Thu, Nov 15, 2007 at 10:02:41AM -0800, Phil Nelson wrote:
> What I'm considering doing is adding a makefile for pkgsrc that installs
> the needed files into /usr/pkg/share/koha and that directory becomes the
> "binary package". To make use of koha, the user would then have to
> run the perl install script from /usr/pkg/share/koha after they have prepared
> the web server and mysql so that it is ready for Koha.
Just use do-install (if that is all that is needed) or post-install for
this. Otherwise this is fine. Maybe annotate that in MESSAGE.
> The other possibility is that the pkgsrc makefile just sets
> and then it can't be built as a binary package.
Very bad as it means that the bulk builds will not cover this.
> The other point for using the first method is for upgrades. Koha has an
> upgrade script that allows one to upgrade Koha without starting over
> with the database. This sounds important for someone actually using
> Koha to keep track of their library.
Similiar to the install question.
> The final issue is that all the perl scripts use #!/usr/bin/perl in their
> perl scripts. It appears that pkgsrc wants to install its own version
> of perl, so should I use the build stage to change all scripts to use
Use REPLACE_PERL and USE_TOOLS+= perl:run.