View previous topic :: View next topic |
Author |
Message |
soltoo n00b
Joined: 02 Jul 2011 Posts: 15
|
Posted: Mon Sep 19, 2011 5:43 pm Post subject: How do I modify non-auto config.h to use EPREFIX? |
|
|
Hi,
I have a working app-admin/logrotate ebuild in a private overlay for x86-solaris (Solaris 10)
The version of logrotate is 3.8.1 which has improved Solaris 10 compatibility over the previous 3.8.0 upstream release.
The config.h is not generated by GNU auto configuration tools in the original source code has hard-coded path names like
Code: | #ifdef SunOS
#define COMPRESS_COMMAND "/usr/local/bin/gzip"
#define UNCOMPRESS_COMMAND "/usr/local/bin/gunzip"
#define STATEFILE "/var/log/logrotate.status"
#endif |
Naturally these should use EPREFIX.
Is there an existing mechanism to do the conversion or do I write a "sed -i" hack?
Thanks |
|
Back to top |
|
|
grobian Developer
Joined: 31 May 2006 Posts: 67
|
Posted: Sun Dec 04, 2011 7:37 pm Post subject: |
|
|
you should write a sed hack
There is nothing unfortunately that can reliably recognise and fix these kinds of paths. _________________ Gentoo on a different level |
|
Back to top |
|
|
|