Submit patch to Daemon::Control to add BSD rc script headers:
# PROVIDE: netdiscoweb
# REQUIRE: DAEMON
# BEFORE: LOGIN
# KEYWORD: shutdown
http://www.freebsd.org/doc/en/books/porters-handbook/rc-scripts.html
p5-DBD-Pg (pulls in postgresl90-client)
postgresl90-server
net-snmp
pw useradd netdisco -N -m -s /bin/sh -w no
/usr/local/etc/rc.d/postgresql initdb
/usr/local/etc/rc.d/postgresql start
then add user
Diff:
Hello,
there is a bug on the rc.d file for FreeBSD.
You missed to add this line in the rc.d/netdisco:
rcvar="netdisco_enable"
Without this netdisco starts everytime whereas it's not necessarily enabled.
I wrote such a script, and a set of ports for use in FreeBSD. Please take a look as I'd like to submit them soon for inclusion in the ports tree
http://dgeo.perso.ec-m.fr/ports/
Features of the port:
I'm not perl expert, and worked around local::lib things to use port's version of libraries (adding them if needed). Is there a simple way to not use it in the code ?
disclaimer: I already maintain netdisco 1 port there since some years and willing to continue if you don't object :)
@all: thank you for this great tool and congratulation for netdisco2 !
Last edit: Geoffroy 2014-11-19
Hi Geoffroy,
The page at http://dgeo.perso.ec-m.fr/ports/ is no longer available :-(
I'll close this ticket as I've included the documentation I can, so far, in Netdisco. If you can dig out your Netdisco 2 port then please let me know.
regards,
oliver.
Oups, it's available again (and up-to-date) !
I still plan to submit all of this…
@olly_g: What do you think of adding an option to skip local::lib for packages use (dependencies are then managed via package system) ? Or do you prefer to limit installs to the documented way (in this case adding a package in freebsd may not make sense…)
Thank you !
Last edit: Geoffroy 2014-12-26
Ticket moved from /p/netdisco/netdisco2/101/
Just to add that netdisco2 is in freebsd's ports since march 2015, this could be closed :)
http://www.freshports.org/net-mgmt/netdisco
Agreed. Now in BSD ports system so closing. Many thanks!