copy file phase

Dagobert Michelsen dam at
Wed Jul 2 18:33:52 CEST 2014

Hi Riccardo,

Am 02.07.2014 um 18:29 schrieb Riccardo Mottola <rmottola at>:
> Dagobert Michelsen wrote:
>>>> With the current setup, that would be:
>>>> /opt/csw/GNUstep/etc/GNUstep
>>>> 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:
> post-install:
>    ( cp $(WORKSRC)/installation-domains.conf /etc/opt/csw/GNUstep/ )
> But I get this error:
>        [test-modulated] complete for gnustep-make.
> ( cp
> work/build-isa-sparcv8plus/gnustep-make-2.6.6/installation-domains.conf
> /etc/opt/csw/GNUstep/ )
> cp: cannot create /etc/opt/csw/GNUstep/: Not a directory
> Makefile:36: recipe for target 'post-install' failed
> gmake[1]: *** [post-install] Error 2
> gmake[1]: Leaving directory
> '/home/multix/code/opencsw/gnustep-make/trunk'
> 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?

Best regards

  — Dago

"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...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2418 bytes
Desc: not available
URL: <>

More information about the maintainers mailing list