Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Jul 2017 18:58:22 +0900
From:      Tomoaki AOKI <junchoon@dec.sakura.ne.jp>
To:        freebsd-current@freebsd.org
Cc:        sepherosa@gmail.com
Subject:   Re: Where should I put devd related scripts?
Message-ID:  <20170717185822.615c909c43fa33d293a5ac0a@dec.sakura.ne.jp>
In-Reply-To: <CAMOc5cxVn4RJ1Bq_xdpoBOkewrGbsRGR4mXSWrYcGyNVdH%2BEdw@mail.gmail.com>
References:  <CAMOc5cxVn4RJ1Bq_xdpoBOkewrGbsRGR4mXSWrYcGyNVdH%2BEdw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi.

Usually, you should put configuration files (looked in by devd)
on /usr/local/etc/devd, and actual executables (specified by the
configuration files) on /usr/local/sbin/.

sysutils/automount would be a good example.
See its port Makefile. Don't forget that actual installation directory
is under LOCALBASE, usually /usr/local.
If you want to know further, fetch its distfile and see its contents.
Essentially, no need to install it, as it's NO_BUILD.

If you describe configuration file with full path, the actual binary
itself can be put anywhere you want (except noexec directory).
For example, /compat/linux/usr/sbin.

If you need to replace system-default behaviour, you would need to edit
system-wide configuration file on /etc/devd to point actual binary you
need for the very entry.
This case, usually the binary itself should better been installed
on /usr/local/sbin.


On Mon, 17 Jul 2017 17:20:15 +0800
Sepherosa Ziehau <sepherosa@gmail.com> wrote:

> Hi all,
> 
> Where should I put devd related scripts?
> 
> Thanks,
> sephe
> 
> -- 
> Tomorrow Will Never Die
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
> 


-- 
Tomoaki AOKI    <junchoon@dec.sakura.ne.jp>



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