Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Nov 2017 20:17:53 +0100
From:      Miroslav Lachman <000.fbsd@quip.cz>
To:        Mel Pilgrim <list_freebsd@bluerosetech.com>, Freebsd Ports <freebsd-ports@freebsd.org>
Subject:   Re: Making a port that installs only an RC script provided in FILESDIR
Message-ID:  <5A0DE461.6020301@quip.cz>
In-Reply-To: <56dd26c5-1daf-be8c-f499-0375f7fb3524@bluerosetech.com>
References:  <56dd26c5-1daf-be8c-f499-0375f7fb3524@bluerosetech.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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