1
0
Fork
You've already forked ports
0
forked from derivelinux/ports
the ports tree
  • Shell 98.6%
  • C 1.1%
  • SystemVerilog 0.3%
lace 902c3127a3 Update wl/hevel/files/config.h
update config.h for the refactor of hevel
2026年03月19日 01:07:14 +01:00
bundles remove legacy ndmake.sh scripts 2026年03月09日 16:22:14 +00:00
core remove redundant ports and reorganize some others 2026年03月17日 14:01:09 +00:00
daemon sndiod: update hooks 2026年03月17日 11:39:59 +00:00
devel fix deps that are wrong 2026年03月17日 19:39:46 +00:00
doc remove legacy ndmake.sh scripts 2026年03月09日 16:22:14 +00:00
editors remove legacy ndmake.sh scripts 2026年03月09日 16:22:14 +00:00
fonts remove legacy ndmake.sh scripts 2026年03月09日 16:22:14 +00:00
lang fix: zig-bin info 2026年03月17日 11:39:59 +00:00
lib fix deps that are wrong 2026年03月17日 19:39:46 +00:00
libsh muon fix 2026年03月12日 16:58:17 +00:00
net remove x11 and also broken dillo+ port 2026年03月17日 20:43:24 +00:00
old remove truly redundant old ports 2026年03月10日 15:46:22 +00:00
shells remove legacy ndmake.sh scripts 2026年03月09日 16:22:14 +00:00
userspace remove legacy ndmake.sh scripts 2026年03月09日 16:22:14 +00:00
utils remove redundant ports and reorganize some others 2026年03月17日 14:01:09 +00:00
wl Update wl/hevel/files/config.h 2026年03月19日 01:07:14 +01:00
.gitignore Update .gitignore 2026年02月26日 21:37:00 +01:00
dtr dtr overlays 2026年03月17日 11:39:59 +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 test commit 2026年03月17日 17:23:25 +00:00
spc gmake with hell 2026年03月11日 08:52:02 +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
      

    this does not resolve dependencies or track packages, you will 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.

https://ports.derivelinux.org