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

Miroslav Lachman 000.fbsd at quip.cz
Thu Nov 16 19:18:04 UTC 2017


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

There is example of port having just one file in files directory, but 
installing it as periodic script

https://svnweb.freebsd.org/ports/head/mail/sa-utils/Makefile?view=markup

You can omit all options related lines and "do-install" target.

Miroslav Lachman


More information about the freebsd-ports mailing list