Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Dec 2011 13:29:37 +0000
From:      Chris Rees <utisoft@gmail.com>
To:        Christer Edwards <christer.edwards@gmail.com>
Cc:        "freebsd-ports@FreeBSD.org" <freebsd-ports@freebsd.org>
Subject:   Re: salt rc.d scripts (Was: RUN_DEPENDS for python based port)
Message-ID:  <CADLo83_G7XsV1ZgcAZOZk7knZHNi5rTcGrOTf2Tfeh96OSDo5g@mail.gmail.com>
In-Reply-To: <CAH2d3%2BucS9aRuykL7d_eVEVpVv2-o2HPrh=L5cjfusZFbRYU_A@mail.gmail.com>
References:  <CAH2d3%2BvMF8jM6GHJQ6DR7EywmnY%2Bj=0tSHFEf_5oW1C6QhYD8A@mail.gmail.com> <4EF393BC.2020003@yandex.ru> <CAH2d3%2Bs1Tkizqoa5-spY92A82fgXxJ1m53Or4Fb5SPGhZKG4iw@mail.gmail.com> <CAH2d3%2Btd83z%2Bb0UG%2BH8%2BFmCe-A=dk1FAYd6k=1J43GrybyHsng@mail.gmail.com> <4EF3CF11.6070104@FreeBSD.org> <CAH2d3%2BtJT==ZbJxopTJiPewvS%2B6JOeAf_RSVdzD9fBBeDkEpYg@mail.gmail.com> <4EF3E10C.4070209@FreeBSD.org> <CAH2d3%2BvU4914NWZw=zpEOGB-dPrz4_mSmOwMTyGVQOZDn2G6Ug@mail.gmail.com> <4EF3F19D.6090905@FreeBSD.org> <CAH2d3%2BvDBtBSSv8y7keL7ogbzP0Kzy4esK9h0c79KQY9o%2BLiRw@mail.gmail.com> <4EF429BB.2040906@FreeBSD.org> <CAH2d3%2BubMdVMNncu_NNpXk1oCH8TM17pbaRLjkk09nrqHBwTqQ@mail.gmail.com> <4EF42E7A.2040807@FreeBSD.org> <CAH2d3%2BvgEpieGZLKsGtYzETywKX__nH1Y9GuwQOfLyJGc6_AaA@mail.gmail.com> <4EF43110.9090905@FreeBSD.org> <CAH2d3%2Bv=VS3Miv7%2B4xRpEU3crMcPdpuTxEQy%2B22AtoKQP6pYRw@mail.gmail.com> <4EF4331F.6060208@FreeBSD.org> <CAH2d3%2BtN7qBQZCQxGQcTj23cbuF51mb7ZAz8bfvzhXKBkwWBcA@mail.gmail.com> <4EF499BB.20908@FreeBSD.org> <CAH2d3%2BucS9aRuykL7d_eVEVpVv2-o2HPrh=L5cjfusZFbRYU_A@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 23 Dec 2011 20:14, "Christer Edwards" <christer.edwards@gmail.com> wrote:
>
> On Fri, Dec 23, 2011 at 8:09 AM, Greg Larkin <glarkin@freebsd.org> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADLo83_G7XsV1ZgcAZOZk7knZHNi5rTcGrOTf2Tfeh96OSDo5g>