From 12af3b51ee11579680794a236d2abaeb7f63e2b0 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Sun, 3 May 2020 18:40:46 +0000 Subject: Add FreeBSD, NetBSD, OpenBSD, Linux, POSIX --- .gitignore | 6 ++++++ Makefile | 32 ++++++++++++++++++++++++++++++++ freebsd.url | 1 + linux.url | 1 + netbsd.url | 1 + openbsd.url | 1 + posix.url | 1 + 7 files changed, 43 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 freebsd.url create mode 100644 linux.url create mode 100644 netbsd.url create mode 100644 openbsd.url create mode 100644 posix.url diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..066e06a --- /dev/null +++ b/.gitignore @@ -0,0 +1,6 @@ +*.tar +freebsd/ +linux/ +netbsd/ +openbsd/ +posix/ diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e52672a --- /dev/null +++ b/Makefile @@ -0,0 +1,32 @@ +CURL ?= curl +TAR ?= tar + +SYSTEMS += freebsd +SYSTEMS += linux +SYSTEMS += netbsd +SYSTEMS += openbsd +SYSTEMS += posix + +all: ${SYSTEMS} + +.SUFFIXES: .tar .url + +.url.tar: + ${CURL} -f -o $@ "$$(cat $<)" + +.tar: + mkdir -p $@ + ${TAR} -x -f $< -C $@ --strip-components ${STRIP.$@} ${FILES.$@} + +FILES.freebsd = ./usr/share/man/ +FILES.netbsd = ./usr/share/man/ +FILES.openbsd = ./usr/share/man/ + +STRIP.freebsd = 4 +STRIP.linux = 1 +STRIP.netbsd = 4 +STRIP.openbsd = 4 +STRIP.posix = 1 + +clean: + rm -fr ${SYSTEMS} ${SYSTEMS:=.tar} diff --git a/freebsd.url b/freebsd.url new file mode 100644 index 0000000..e9f4183 --- /dev/null +++ b/freebsd.url @@ -0,0 +1 @@ +https://download.FreeBSD.org/ftp/releases/amd64/12.1-RELEASE/base.txz diff --git a/linux.url b/linux.url new file mode 100644 index 0000000..ef0aef5 --- /dev/null +++ b/linux.url @@ -0,0 +1 @@ +https://mirrors.edge.kernel.org/pub/linux/docs/man-pages/man-pages-5.06.tar.xz diff --git a/netbsd.url b/netbsd.url new file mode 100644 index 0000000..66cfa3b --- /dev/null +++ b/netbsd.url @@ -0,0 +1 @@ +https://cdn.NetBSD.org/pub/NetBSD/NetBSD-9.0/shared/ALL/man.tgz diff --git a/openbsd.url b/openbsd.url new file mode 100644 index 0000000..0be553e --- /dev/null +++ b/openbsd.url @@ -0,0 +1 @@ +https://cdn.openbsd.org/pub/OpenBSD/6.6/amd64/man66.tgz diff --git a/posix.url b/posix.url new file mode 100644 index 0000000..80c4f8b --- /dev/null +++ b/posix.url @@ -0,0 +1 @@ +https://mirrors.edge.kernel.org/pub/linux/docs/man-pages/man-pages-posix/man-pages-posix-2013-a.tar.xz -- cgit 1.4.1