freebsd-digitalocean icon indicating copy to clipboard operation
freebsd-digitalocean copied to clipboard

FreeBSD Port

Open 2bithacker opened this issue 8 years ago • 12 comments

Hi, was poking around with these scripts today and decided to write up a FreeBSD Port for them. Wanted to run it by you before submitting it.

It does avoid using update.sh, doing basically the same things in a do-install target and making use of the @sample macro in the plist for handling the conf file.

freebsd-digitalocean.zip

2bithacker avatar Oct 09 '16 01:10 2bithacker

Cool! And I see you work at DigitalOcean. :)

Before taking on the next step of making a package out of this, I was waiting on two things: the FreeBSD 11 release image to become available on DO so I can test/revise these scripts if needed, and I also needed to get some feedback on the IPv6 support. Even though I coded it in, I'm not using IPv6 anywhere (yet) so I'm not even sure if it works.

I've never officially made or submitted a package for the FreeBSD pkg repos, so I'd follow your lead on that. I looked over the zip file and it seems fine. As for the project itself, I would recommend that someone "in the know" take a good look over all of this and sanitize it before committing to an official package. You've got my support and blessing on whatever makes this better. Big thanks!

morganwdavis avatar Oct 09 '16 02:10 morganwdavis

Hi there! Any news on this issue? Freebsd 11 was released on DO, I'd like to use your scripts :P

From a quick check, it should not break the installation, but I might have missed some detail.

Thanks in advance, very useful project! :-)

andreapavoni avatar Oct 23 '16 09:10 andreapavoni

Andrea, the scripts work fine with FreeBSD 11.0-RELEASE. I cannot vouch for IPv6 support yet.

morganwdavis avatar Oct 25 '16 19:10 morganwdavis

Just did some quick testing on an 11.0 droplet w/ IPv6, and it all looks good to me.

2bithacker avatar Oct 25 '16 19:10 2bithacker

Wow! That never happens! Thanks for checking that. What do we need to do now to this project to make it FreeBSD pkg capable? Or is that a completely separate project? Perhaps I should read up on pkg creation/submission.

morganwdavis avatar Oct 26 '16 00:10 morganwdavis

Chip, one more question you might have the resources to check for us. Would there be any legal issues with DO by using their name in the package? Lukas Schauer (@lukas2511) who did the Let's Encrypt shell script project (https://github.com/lukas2511/dehydrated) ended up having to rename it from "letsencrypt.sh" to "dehydrated" due to trademark issues. Before we make an official pkg, we probably should get clearance on the names "freebsd" and "digitalocean" to avoid a forced renaming later.

morganwdavis avatar Oct 26 '16 00:10 morganwdavis

@icosahedral do you have any insight regarding the last comment?

wezm avatar Oct 26 '16 00:10 wezm

I asked around a bit internally, and it doesn't look like we have an official policy, but I was pointed at koalalorenzo/python-digitalocean as an example of another 3rd party project that we don't mind. If you'd like an official reply, may need to hit up [email protected].

2bithacker avatar Oct 27 '16 00:10 2bithacker

This whole issue has me wondering about the project name.

Other than FreeBSD-specific startup support and filesystem paths, which could be abstracted via the config file or OS hints, would there be interest in this plain Bourne shell script on any other OS? If so, having "freebsd" in the name is unnecessarily limiting. I imagine any Linux or other BSDs could adapt this for similar purposes.

Plus, how many FreeBSD packages and services have "freebsd" in the name aside from the 30+ "FreeBSD Project" doc packages? Virtually none that I could see. So if anything I'd drop the "freebsd-" prefix. That leaves "digitalocean" which is not descriptive enough. Getting rid of both eliminates trademark concerns.

So maybe renaming this project to something else makes better sense? Ideas...

  • do-init
  • do-startup
  • do-config

Maybe "droplet-" instead of "do-" as a prefix? I think the only requirement is it should be an acceptable basename for the command line executable, config file, etc.

Comments/suggestions?

morganwdavis avatar Oct 27 '16 06:10 morganwdavis

Hi guys, thank you for the replies ;-)

About the project name, I'd suggest to not rename the github project, at least to make ti simpler to find it on google :-P

Thank you again for the replies, good work!

andreapavoni avatar Oct 27 '16 08:10 andreapavoni

Chip (@2bithacker), are you still interested in making a pkg for this? There's been some renewed interest in updating this for current DO FreeBSD images as well as adding some additional features. Having someone who works at DO to be the gatekeeper on the pkg seems like a really great idea.

morganwdavis avatar Apr 24 '19 19:04 morganwdavis

Yeah, this is still relevant to my interests. I should have some time later this week to look at writing up a port Makefile.

2bithacker avatar May 07 '19 16:05 2bithacker