Created attachment 232144 [details] www/darkhttpd Let me know if this needs any adjustment or if you have any questions. Thank you!
Thanks for the patch, if possible, please set your name at https://bugs.freebsd.org/bugzilla/userprefs.cgi?tab=account so we can use that in `git commit --author`
(In reply to Li-Wen Hsu from comment #1) Done. Thank you!
LGTM. Build tests fine in 12.3{amd64,i386}, 13.0amd64 and -current amd64. Also, it seems to run just fine.
PORTVERSION --> DISTVERSION (https://docs.freebsd.org/en/books/porters-handbook/book/#porting-makefile and "Table 2. Package Naming Examples") post-stage should be do-install Best regards, Daniel
..also, "Example 17. Use of USE_GITHUB with DISTVERSIONPREFIX" in Porters Handbook doesn't work ? Best regards, Daniel
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=76aee1b05b961872993f4a1967e3fbc748ff9a63 commit 76aee1b05b961872993f4a1967e3fbc748ff9a63 Author: Henrich Hartzer <henrichhartzer@tuta.io> AuthorDate: 2022-03-01 13:15:29 +0000 Commit: Fernando Apesteguía <fernape@FreeBSD.org> CommitDate: 2022-03-02 09:20:31 +0000 www/darkhttpd: Add new port Simple static http web server. When you need a web server in a hurry. PR: 262234 Reported by: henrichhartzer@tuta.io Reviewed by: diizzy@ www/Makefile | 1 + www/darkhttpd/Makefile (new) | 21 +++++++++++++++++++++ www/darkhttpd/distinfo (new) | 3 +++ www/darkhttpd/pkg-descr (new) | 3 +++ 4 files changed, 28 insertions(+)
Committed with the suggested changes. Thanks!
Thank you so much for merging! I just saw this commit: https://cgit.freebsd.org/ports/commit/?id=088f0b29ee71a22a73d378a96f44d52f99befb28 I thought that NO_INSTALL was to be used when there was no `make install` target, and didn't signal that the port didn't install anything? darkhttpd's makefile has no install target, so I did it manually in do-stage. Please let me know if I'm mistaken here, or if I should make any follow up patches for this port.
(In reply to Henrich Hartzer from comment #8) NO_INSTALL made sense in the first version of the patch that did not have a do-install target (it used post-patch). However when Daniel rightly pointed out that post-patch should be in fact do-install, the NO_INSTALL variable should have been removed (my bad). NO_INSTALL literally says that this port does not have a install target. By default all ports have a install target, either by defining do-install or by using a default do-install target provided by the framework. Cheers.