copy file phase
dam at opencsw.org
Wed Jul 2 18:33:52 CEST 2014
Am 02.07.2014 um 18:29 schrieb Riccardo Mottola <rmottola at opencsw.org>:
> Dagobert Michelsen wrote:
>>>> With the current setup, that would be:
>>>> How can I accomplish that? how can that be packaged/done?
>> This can be done in post-install: by copying stuff to $(PKGROOT).
>> Then you define it as PRESERVECONF as documented here:
> perfect. I thus defined:
> PRESERVECONF = /etc/opt/csw/GNUstep/installation-domains.conf
I would suggest
PRESERVECONF += $(sysconfdir)/GNUstep/installation-domains.conf
>>> Second, I suppose, that it would be more appropriate to put configure GNUstep.conf to be in /opt/csw/etc ?
>> Even better would be /etc/opt/csw, please see for details
> Yes, sounds better indeed. I thus added:
> ( cp $(WORKSRC)/installation-domains.conf /etc/opt/csw/GNUstep/ )
> But I get this error:
> [test-modulated] complete for gnustep-make.
> ( cp
> /etc/opt/csw/GNUstep/ )
> cp: cannot create /etc/opt/csw/GNUstep/: Not a directory
> Makefile:36: recipe for target 'post-install' failed
> gmake: *** [post-install] Error 2
> gmake: Leaving directory
> because the directory does not exist yet, if everything works as
> expected it will be created by the actual installation scripts. I looked
> in other Makefiles for examples, but they usually use DESTDIR, which is
> not correct in my case.
ginstall -D -m 0644 $(WORKSRC)/installation-domains.conf $(DESTDIR)$(sysconfdir)/GNUstep/installation-domains.conf
Why shouldn’t DESTDIR be correct?
"You don't become great by trying to be great, you become great by wanting to do something,
and then doing it so hard that you become great in the process." - xkcd #896
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2418 bytes
Desc: not available
More information about the maintainers