On 23 Dec 2011 20:14, "Christer Edwards" <[email protected]> wrote:
>
> On Fri, Dec 23, 2011 at 8:09 AM, Greg Larkin <[email protected]> wrote:
> > You get the award for persistence, so pat yourself on the back!
>
> That's one way to look at it :)
>
> So, I've been double-validating every aspect of this port as I want to
> make sure it's 100% before I submit it, and I ran into one more issue.
>
> I'm using a files/patch-setup.py to tweak the upstream setup.py to
> match port standards. The one thing it is not doing is installing the
> configuration (data_files) as ".sample". I did some digging and the
> Python documentation says that the setup.py can not rename data_files
> when it installs them[1]. Did I screw up the patch, or is there a
> different way it should be done?
>
> I get this error when building the port:
> running install_data
> error: can't copy 'conf/master.sample': doesn't exist or not a regular
file
> *** Error code 1
>
> This is a pastebin of my patch-setup.py: http://pastebin.com/3ezTBdy9
>
Easy fix:
In Makefile,
post-patch:
.for file in # config filenames here
${MV} ${WRKSRC}/${file} ${WRKSRC}/${file}.sample
.endfor
Chris
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[email protected]"