Skip to content

Instantly share code, notes, and snippets.

@agrajag9
Created May 17, 2025 07:01
Show Gist options
  • Select an option

  • Save agrajag9/1392b35f70c8f14b54634be3a85a9ef2 to your computer and use it in GitHub Desktop.

Select an option

Save agrajag9/1392b35f70c8f14b54634be3a85a9ef2 to your computer and use it in GitHub Desktop.

Revisions

  1. agrajag9 created this gist May 17, 2025.
    52 changes: 52 additions & 0 deletions misc_hworld-kmod.diff
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,52 @@
    commit 9c496d7af149cd9db9cc99d1d65841c3b1a0d552
    Author: agrajag9 <agrajag9@a9development.com>
    Date: Sat May 17 06:57:19 2025 +0000

    misc/hworld-kmod

    diff --git a/misc/hworld-kmod/Makefile b/misc/hworld-kmod/Makefile
    new file mode 100644
    index 0000000000..b21d06e344
    --- /dev/null
    +++ b/misc/hworld-kmod/Makefile
    @@ -0,0 +1,21 @@
    +PORTNAME= hworld-kmod
    +DISTVERSIONPREFIX= v
    +DISTVERSION= 0.0.1
    +CATEGORIES= misc
    +
    +MAINTAINER= agrajag9@a9development.com
    +COMMENT= FreeBSD hello world kmod
    +WWW= https://github.com/agrajag9/hworld-kmod/
    +
    +LICENSE= BSD2CLAUSE
    +
    +USES= kmod
    +USE_GITHUB= yes
    +GH_ACCOUNT= agrajag9
    +
    +PLIST_FILES= ${KMODDIR}/hworld_kmod.ko
    +
    +do-install:
    + ${INSTALL_KLD} ${WRKSRC}/hworld_kmod.ko ${STAGEDIR}${KMODDIR}
    +
    +.include <bsd.port.mk>
    diff --git a/misc/hworld-kmod/distinfo b/misc/hworld-kmod/distinfo
    new file mode 100644
    index 0000000000..d772cc6111
    --- /dev/null
    +++ b/misc/hworld-kmod/distinfo
    @@ -0,0 +1,3 @@
    +TIMESTAMP = 1746878865
    +SHA256 (agrajag9-hworld-kmod-v0.0.1_GH0.tar.gz) = ca0da18e67fbc7c2c05a7ee5ac89db2ac9881c4723c9d0f2c02733b39d08fa16
    +SIZE (agrajag9-hworld-kmod-v0.0.1_GH0.tar.gz) = 1464
    diff --git a/misc/hworld-kmod/pkg-descr b/misc/hworld-kmod/pkg-descr
    new file mode 100644
    index 0000000000..7e2508c36a
    --- /dev/null
    +++ b/misc/hworld-kmod/pkg-descr
    @@ -0,0 +1,4 @@
    +A FreeBSD hello world kmod
    +
    +It doesn't actually do anything useful -- it prints on load and unload, but
    +otherwise has no useful functions. It's utility is as an example only.