derivelinux/ports
5
13
Fork
You've already forked ports
16
  • Shell 87.8%
  • C 10.3%
  • Makefile 1.7%
  • SystemVerilog 0.2%
2026年07月13日 22:57:16 +00:00
bundles /usr -> 2026年06月29日 14:49:49 +00:00
core /usr -> 2026年06月29日 14:49:49 +00:00
daemon nitro 2026年06月09日 10:03:37 +00:00
devel cleanup 2026年06月12日 20:47:44 +00:00
doc /usr -> 2026年06月29日 14:49:49 +00:00
editors vis needs lua 2026年04月28日 08:31:02 +00:00
fonts fix: dejavu port and go post_install and wl-clipboard and xkbcommon meson fix 2026年04月08日 15:19:58 +00:00
lang deps fix 2026年07月06日 14:48:10 +00:00
lib netbsd-curses using shin 2026年07月03日 14:32:43 +00:00
libsh handle pigz or busybox gzip (temp) 2026年06月29日 14:53:54 +00:00
net /usr -> 2026年06月29日 14:49:49 +00:00
old clean 2026年06月12日 22:52:25 +00:00
shells remove 2026年06月05日 12:25:18 +00:00
userspace Update userspace/netmisc/ndmake.sh 2026年06月23日 23:50:51 +02:00
utils revert mpv to no mesa ver 2026年07月13日 22:57:16 +00:00
wl /usr -> 2026年06月29日 14:49:49 +00:00
.gitignore Update .gitignore 2026年02月26日 21:37:00 +01:00
dtr handle rebuilding deps better 2026年03月28日 12:46:42 +00:00
filegen.sh info 2026年01月01日 12:36:53 -06:00
gitfinder.sh fix broken ports 2025年12月31日 18:08:09 +00:00
info.example filegen 2026年01月01日 10:50:15 -06:00
README.md Update README.md 2026年04月13日 19:37:30 +02:00
spc be portable 2026年06月17日 20:25:43 +00:00

This is the dérive ports tree.

  1. overview

    • this repo contains a number of build recipes and a build recipe system, leveraging pure posix sh. it is used with the 'dtr' and 'spc' helpers, which install these ports. everything is built using static linking. we try and pick out only actually decent software to be in this repo, with some exceptions.
  2. scripts
    derive "port scripts" (ndmake.sh) are (kinda) simple. you need to define some metadata at the top;

    • name - package name
    • version - package version
    • release - package release
    • sources - upstream git/tarball link and any patches/other files

the port must also have a deps file, which lists dependnecies and what type of dependency they are:, - . - build time deps - / - link time deps - > - runtime deps

as well as an info file, listing the name, version, description, license, and upstream link

  1. running scripts
    there are two ways to run a dmake.sh

    1. doing it with dtr [reccomended] this is the most simplest way, (the latter is too) you just run dtr mi <package>
      such script [m]akes and [i]nstalls a port. this also tracks the package's installed files, automatically resolves dependencies, and allows for easy package removal later.
    2. doing it the hard way
      you navigate to your package, like cd /ports/core/curl and run
      sh ndmake.sh fetch
      sh ndmake.sh make
      spc create /var/tmp/dtr/pkg-$pkgname-git pkgname.spc.zstd
      spc install pkgname.spc.zstd
      

    note that this does not resolve dependencies: youll have to do it yourself.

  2. understanding ports

    • the tree is sorted into categories which describe their function and purpose. this does not effect installation of ports in any way. each port has an info file with some basic information about it
  3. contributing

    • creating a port is pretty easy, depending on the complexity of the target software. i usually just copy a template from another port, and tweak as needed. the libdmake.sh build system should handle all building of packages for you. if you need to do it yourself, you can define a build() function. if you plan to contribute ports, it is highly reccomeneded to read libsh/libdmake.sh. software that depends on easily avoidable poor quality software, such as bison, must be patched to support a better alternative, like byacc.
  4. other

    • this project was originally created and designed for dérive linux. however, both the ports and the ports helper dtr can be used on most if not all linux distributions, as a secondary package manager. this is useful if you need a static binary or archive for something. if you are creating a new distro, you are also welcome to use this project as part of that in any way you see fit.