head 1.1; access; symbols; locks; strict; comment @# @; 1.1 date 2026.09.25.14.20.40; author wiz; state Exp; branches; next ; commitid TmvT2kz6VnKzH0XG; desc @@ 1.1 log @thttpd: fix a couple CVEs Rename patches, add some patches from Debian/FreeBSD, move MESSAGE to README.pkgsrc. Bump PKGREVISION. From Showta Ishizaki in PR 60761. @ text @$NetBSD$ The same two things as patch-aa, for the helper programs: honour DESTDIR, install with the BSD_INSTALL_* tools instead of cp, and append to CFLAGS rather than overwrite it. syslogtocern is a shell script, so it goes in with BSD_INSTALL_SCRIPT. The upstream rule also made makeweb set-group-id here; that is left to the administrator instead, which is what README.pkgsrc explains. --- extras/Makefile.in.orig 2005-05-20 19:10:25.000000000 +0000 +++ extras/Makefile.in @@@@ -35,7 +35,7 @@@@ CCOPT = @@V_CCOPT@@ DEFS = @@DEFS@@ INCLS = -I.. -CFLAGS = $(CCOPT) $(DEFS) $(INCLS) +CFLAGS += $(CCOPT) $(DEFS) $(INCLS) STATICFLAG = @@V_STATICFLAG@@ LDFLAGS = @@LDFLAGS@@ LIBS = @@LIBS@@ @@@@ -66,18 +66,16 @@@@ install: all - rm -f $(BINDIR)/makeweb $(BINDIR)/htpasswd $(BINDIR)/syslogtocern - cp makeweb $(BINDIR)/makeweb - chgrp $(WEBGROUP) $(BINDIR)/makeweb - chmod 2755 $(BINDIR)/makeweb - cp htpasswd $(BINDIR)/htpasswd - cp syslogtocern $(BINDIR)/syslogtocern - rm -f $(MANDIR)/man1/makeweb.1 - cp makeweb.1 $(MANDIR)/man1/makeweb.1 - rm -f $(MANDIR)/man1/htpasswd.1 - cp htpasswd.1 $(MANDIR)/man1/htpasswd.1 - rm -f $(MANDIR)/man8/syslogtocern.8 - cp syslogtocern.8 $(MANDIR)/man8/syslogtocern.8 + rm -f $(DESTDIR)$(BINDIR)/makeweb $(DESTDIR)$(BINDIR)/htpasswd $(DESTDIR)$(BINDIR)/syslogtocern + $(BSD_INSTALL_PROGRAM) makeweb $(DESTDIR)$(BINDIR)/makeweb + $(BSD_INSTALL_PROGRAM) htpasswd $(DESTDIR)$(BINDIR)/htpasswd + $(BSD_INSTALL_SCRIPT) syslogtocern $(DESTDIR)$(BINDIR)/syslogtocern + rm -f $(DESTDIR)$(MANDIR)/man1/makeweb.1 + $(BSD_INSTALL_MAN) makeweb.1 $(DESTDIR)$(MANDIR)/man1/makeweb.1 + rm -f $(DESTDIR)$(MANDIR)/man1/htpasswd.1 + $(BSD_INSTALL_MAN) htpasswd.1 $(DESTDIR)$(MANDIR)/man1/htpasswd.1 + rm -f $(DESTDIR)$(MANDIR)/man8/syslogtocern.8 + $(BSD_INSTALL_MAN) syslogtocern.8 $(DESTDIR)$(MANDIR)/man8/syslogtocern.8 clean: rm -f $(CLEANFILES) @