Re: [HEADSUP] Deprecation of the ftp support in pkg
- In reply to: Stefan Esser : "Re: [HEADSUP] Deprecation of the ftp support in pkg"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 24 Jan 2022 08:23:54 UTC
On 2022-01-23 12:08, Stefan Esser wrote: > Am 23.01.22 um 18:12 schrieb Jose Quinteiro: >> On 1/23/22 09:06, tech-lists wrote: >>> On Sun, Jan 23, 2022 at 08:55:09AM -0800, Jose Quinteiro wrote: >>> >>>> You can run HTTP on a non-standard port. For example, 8080 is commonly >>>> used. As an added bonus, this means that the HTTP server need not run as >>>> root. >>> >>> Unless I'm mistaken, there is no web server in base. There is though, an >>> ftp server. >> >> Touche. I wouldn't mind having Thttpd in base. >> https://www.acme.com/software/thttpd/ > > An interesting idea, we have it as a port in www/thttpd. > > While we generally rather move base components that are not > generally required to ports, this might be a case where it > makes sense to replace one base system component by another > one currently only available as a port ... > > The thttpd binary is smaller than the ftpd currently in base, The binaries may be smaller. But I would argue that the "holes" potentially created are *larger*. :-) An otherwise interesting proposition. > and it might make sense to replace ftpd by this simple httpd: > > $ size /usr/libexec/ftpd > text data bss dec hex filename > 105901 4276 5984 116161 1c5c1 /usr/libexec/ftpd > > $ size work/stage/usr/local/sbin/* > text data bss dec hex filename > 5469 656 112 6237 185d work/stage/usr/local/sbin/makeweb > 7453 760 120 8333 208d work/stage/usr/local/sbin/thtpasswd > 81184 8336 2280 91800 16698 work/stage/usr/local/sbin/thttpd > > The sources are distributed under a 2 clause BSD copyright. > > Maybe having a HTTP server in base is more useful than a FTP > server, today ... > > Regards, STefan -- Chris