Making a port that installs only an RC script provided in FILESDIR

Mel Pilgrim list_freebsd at bluerosetech.com
Thu Nov 16 20:06:54 UTC 2017



On 11/16/2017 11:17, Miroslav Lachman wrote:
> Mel Pilgrim wrote on 2017/11/16 19:30:
>> I have a port that has exactly one file: an RC script provided in the
>> FILESDIR of the skeleton itself.  I can't use metaport because I do have
>> to install a file.
>>
>> I've had no luck finding anything that explains how to do this, and am
>> meeting no end of errors when I test the port.
> 
> If you have files/my_port.in
> 
> then you need this in your Makefile
> 
> USE_RC_SUBR= my_port

Already had that.  The port needed extra settings so that make didn't 
try to fetch anything and stage didn't try to look for WRKSRC.  The part 
I was missing was (quite unintuitively) setting NO_INSTALL=yes on a port 
that will install files.


More information about the freebsd-ports mailing list