From bf13320c2f03cf1020cd503188b42a35642c2bac Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Tue, 20 Dec 2022 11:12:30 +0400 Subject: [PATCH] FreeBSD port (#155) --- .cirrus.yml | 16 ++++++++++++++ pkgs/freebsd/.gitignore | 1 + pkgs/freebsd/devel/libkernaux/Makefile | 18 ++++++++++++++++ pkgs/freebsd/devel/libkernaux/distinfo | 3 +++ pkgs/freebsd/devel/libkernaux/pkg-descr | 3 +++ pkgs/freebsd/devel/libkernaux/pkg-plist | 28 +++++++++++++++++++++++++ 6 files changed, 69 insertions(+) create mode 100644 pkgs/freebsd/.gitignore create mode 100644 pkgs/freebsd/devel/libkernaux/Makefile create mode 100644 pkgs/freebsd/devel/libkernaux/distinfo create mode 100644 pkgs/freebsd/devel/libkernaux/pkg-descr create mode 100644 pkgs/freebsd/devel/libkernaux/pkg-plist diff --git a/.cirrus.yml b/.cirrus.yml index ba5f266..62fd648 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -86,3 +86,19 @@ rust_freebsd_task: - ~/.cargo/bin/cargo test - ~/.cargo/bin/cargo clippy - ~/.cargo/bin/cargo fmt --check + +main_freebsd_port_task: + name: Main (FreeBSD port) + only_if: "changesInclude('.cirrus.yml', 'pkgs/freebsd/**')" + dependencies_script: + - pkg install --yes portfmt portlint porttools + port_prepare_script: + - echo 'DEVELOPER=yes' >> /etc/make.conf + - rm -rf /usr/ports/devel/libkernaux/ + - cp -r $CIRRUS_WORKING_DIR/pkgs/freebsd/devel/libkernaux /usr/ports/devel/ + port_test_script: + - cd /usr/ports/devel/libkernaux/ + - portfmt -D Makefile + - portclippy --strict Makefile + - portlint -A + - port test . diff --git a/pkgs/freebsd/.gitignore b/pkgs/freebsd/.gitignore new file mode 100644 index 0000000..caefc69 --- /dev/null +++ b/pkgs/freebsd/.gitignore @@ -0,0 +1 @@ +/devel/libkernaux/work/ diff --git a/pkgs/freebsd/devel/libkernaux/Makefile b/pkgs/freebsd/devel/libkernaux/Makefile new file mode 100644 index 0000000..b3c122a --- /dev/null +++ b/pkgs/freebsd/devel/libkernaux/Makefile @@ -0,0 +1,18 @@ +PORTNAME= libkernaux +DISTVERSION= 0.6.1 +CATEGORIES= devel +MASTER_SITES= https://github.com/tailix/libkernaux/releases/download/v${DISTVERSION}/ + +MAINTAINER= kotovalexarian@gmail.com +COMMENT= Auxiliary library for kernel development +WWW= https://github.com/tailix/libkernaux + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/COPYING + +USES= libtool +USE_LDCONFIG= yes +GNU_CONFIGURE= yes +CONFIGURE_ARGS+= --enable-shared + +.include diff --git a/pkgs/freebsd/devel/libkernaux/distinfo b/pkgs/freebsd/devel/libkernaux/distinfo new file mode 100644 index 0000000..9afb268 --- /dev/null +++ b/pkgs/freebsd/devel/libkernaux/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1671469243 +SHA256 (libkernaux-0.6.1.tar.gz) = 16fc83a36826cad527ec0a232032b7b131b5be0468ccff9163df12e3e3986b9f +SIZE (libkernaux-0.6.1.tar.gz) = 486595 diff --git a/pkgs/freebsd/devel/libkernaux/pkg-descr b/pkgs/freebsd/devel/libkernaux/pkg-descr new file mode 100644 index 0000000..01173d6 --- /dev/null +++ b/pkgs/freebsd/devel/libkernaux/pkg-descr @@ -0,0 +1,3 @@ +Auxiliary library for kernel development. + +It's in the early stage of the development so there is no detailed description. diff --git a/pkgs/freebsd/devel/libkernaux/pkg-plist b/pkgs/freebsd/devel/libkernaux/pkg-plist new file mode 100644 index 0000000..9be2c85 --- /dev/null +++ b/pkgs/freebsd/devel/libkernaux/pkg-plist @@ -0,0 +1,28 @@ +include/kernaux.h +include/kernaux/arch/i386.h +include/kernaux/arch/riscv64.h +include/kernaux/arch/x86.h +include/kernaux/arch/x86_64.h +include/kernaux/assert.h +include/kernaux/cmdline.h +include/kernaux/elf.h +include/kernaux/free_list.h +include/kernaux/generic/malloc.h +include/kernaux/generic/mutex.h +include/kernaux/macro.h +include/kernaux/macro/packing_end.run +include/kernaux/macro/packing_start.run +include/kernaux/mbr.h +include/kernaux/memmap.h +include/kernaux/multiboot2.h +include/kernaux/multiboot2/header_macro.h +include/kernaux/ntoa.h +include/kernaux/pfa.h +include/kernaux/printf.h +include/kernaux/printf_fmt.h +include/kernaux/units.h +include/kernaux/version.h +lib/libkernaux.a +lib/libkernaux.so +lib/libkernaux.so.0 +lib/libkernaux.so.0.0.0