SecBSD's official ports repository

This commit is contained in:
purplerain 2023-08-16 22:26:55 +00:00
commit 2c0afcbbf3
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
64331 changed files with 5339189 additions and 0 deletions

View file

@ -0,0 +1,35 @@
Don't install into ${HOME}, but rather where many projects assume
sharness to be. Using INSTALL_DIR confuses the build infrastructure.
Index: Makefile
--- Makefile.orig
+++ Makefile
@@ -1,6 +1,6 @@
-prefix = $(HOME)
+prefix = $(PREFIX)
-INSTALL_DIR = $(prefix)/share/sharness
+SHARNESS_DIR = $(prefix)/share/sharness
DOC_DIR = $(prefix)/share/doc/sharness
EXAMPLE_DIR = $(DOC_DIR)/examples
@@ -16,14 +16,14 @@ TOMDOCSH = tomdoc.sh
all:
install: all
- $(INSTALL) -d -m 755 $(INSTALL_DIR) $(DOC_DIR) $(EXAMPLE_DIR)
- $(INSTALL) -m 644 $(INSTALL_FILES) $(INSTALL_DIR)
+ $(INSTALL) -d -m 755 $(SHARNESS_DIR) $(DOC_DIR) $(EXAMPLE_DIR)
+ $(INSTALL) -m 644 $(INSTALL_FILES) $(SHARNESS_DIR)
$(INSTALL) -m 644 $(DOC_FILES) $(DOC_DIR)
- $(SED) -e "s!aggregate-results.sh!$(INSTALL_DIR)/aggregate-results.sh!" test/Makefile > $(EXAMPLE_DIR)/Makefile
- $(SED) -e "s!. ./sharness.sh!. $(INSTALL_DIR)/sharness.sh!" test/simple.t > $(EXAMPLE_DIR)/simple.t
+ $(SED) -e "s!aggregate-results.sh!$(SHARNESS_DIR)/aggregate-results.sh!" test/Makefile > $(EXAMPLE_DIR)/Makefile
+ $(SED) -e "s!. ./sharness.sh!. $(SHARNESS_DIR)/sharness.sh!" test/simple.t > $(EXAMPLE_DIR)/simple.t
uninstall:
- $(RM) -r $(INSTALL_DIR) $(DOC_DIR) $(EXAMPLE_DIR)
+ $(RM) -r $(SHARNESS_DIR) $(DOC_DIR) $(EXAMPLE_DIR)
doc: all
{ printf "# Sharness API\n\n"; \

View file

@ -0,0 +1,14 @@
Force use of bash for tests - 15 fail without it.
Index: test/Makefile
--- test/Makefile.orig
+++ test/Makefile
@@ -17,7 +17,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see http://www.gnu.org/licenses/ .
-SHELL_PATH ?= $(SHELL)
+SHELL_PATH ?= ${LOCALBASE}/bin/bash
SHELL_PATH_SQ = $(subst ','\'',$(SHELL_PATH))
RM ?= rm -f
PROVE ?= prove