From 4854ebea27c77a050713c8798e3478a59b28d78c Mon Sep 17 00:00:00 2001 From: hanez Date: Mon, 23 Nov 2026 12:43:41 +0100 Subject: [PATCH] Add Debian packaging and FreeBSD port --- .gitignore | 11 +++++++++++ README.md | 22 +++++++++++++++++++++- alpine/APKBUILD | 2 +- arch/PKGBUILD | 2 +- debian/changelog | 5 +++++ debian/control | 16 ++++++++++++++++ debian/copyright | 15 +++++++++++++++ debian/docs | 3 +++ debian/rules | 10 ++++++++++ debian/source/format | 1 + freebsd/sysutils/murx/Makefile | 28 ++++++++++++++++++++++++++++ freebsd/sysutils/murx/distinfo | 3 +++ freebsd/sysutils/murx/pkg-descr | 3 +++ 13 files changed, 118 insertions(+), 3 deletions(-) create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/docs create mode 100755 debian/rules create mode 100644 debian/source/format create mode 100644 freebsd/sysutils/murx/Makefile create mode 100644 freebsd/sysutils/murx/distinfo create mode 100644 freebsd/sysutils/murx/pkg-descr diff --git a/.gitignore b/.gitignore index 7757a94..8094679 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,14 @@ src/ # Tooling compile_commands.json .cache/ + +# Debian build outputs +/debian/.debhelper/ +/debian/debhelper-build-stamp +/debian/files +/debian/murx/ +/debian/*.debhelper.log +/debian/*.substvars + +# FreeBSD port build outputs +/freebsd/sysutils/murx/work/ diff --git a/README.md b/README.md index 7131ff1..0742fc0 100644 --- a/README.md +++ b/README.md @@ -443,7 +443,7 @@ automatically on the BSDs where it is needed). Tested with Clang and GCC 16; `grid_resize()` carries a guarded workaround for a GCC 16 optimizer bug that otherwise collapses pane grids to 1x1. -## Linux packages +## Packages The [Alpine recipe](alpine/APKBUILD) and [Arch recipe](arch/PKGBUILD) build from the local checkout using symlinks to the source files. The package @@ -495,6 +495,26 @@ versions and refresh both sets of checksums. This target requires `abuild` and `updpkgsums` (from `pacman-contrib`). Neither recipe requires a test suite; its check step runs `murx --help` as a smoke check. +### Debian + +The [Debian packaging](debian/) builds from the local checkout. Install +`build-essential` and `debhelper`, then run: + +```sh +dpkg-buildpackage -b -us -uc +``` + +The resulting `murx_*.deb` is written to the parent directory. Install it +with `apt install ../murx_1.0.3-1_$(dpkg --print-architecture).deb`. + +### FreeBSD + +Copy the [`sysutils/murx` port](freebsd/sysutils/murx/) into a FreeBSD Ports +tree. From the port directory, run `make package` to fetch the tagged source, +verify its checksum, and build a package. Install the resulting package with +`pkg add`. To update the port for a new release, change `DISTVERSION` and run +`make makesum` after publishing the matching tag. + ## Authors See [AUTHORS](AUTHORS) for project credits. diff --git a/alpine/APKBUILD b/alpine/APKBUILD index ffdc049..eb014ed 100644 --- a/alpine/APKBUILD +++ b/alpine/APKBUILD @@ -29,7 +29,7 @@ sha512sums=" 68c0e952a57d03e5c2cc6a7451cca1687341c20620634617529b6dc84f0fcdc7cb49cbc662bfad5b1fe3229c082a61480813ed5c01a1994c1b2a8e34bd421e29 murx.c 10a353b8447ff969fa55c5445b61604471c5e7ca1e8e632e05c0f77cb01d876b9c0a260ddb1e5a9a6d880a47f725c22a1279ea8a8e38d3b08c384ded592dc837 Makefile 219082e6277ee8c226cdd61a5b17d4e3c6893adf04b2f59ea84a6b6421dbd5a6d0ff38b93d8dd8ae41ed037e77252058dacadd5ff1f0c36c7c1ff95503e1e7a8 murx.1 -7284e0a57c11cd7b6cbc1569b95974bc87a81018d6184b6decc2b9c2b6d005cca1a407a48141687d2f2bba83c72f57e159ccd9d0c8be00e2846437c1b49a0d39 README.md +2aab5c7ea1160bde6b7963709ed7d34d983ed57be681167fddc2e08532066145021f170774d665524a989a2433d5373d3d257bd61deacfeaae71a74047a72424 README.md 2fe33ba22c5f68e124904be594208f050be20f33d115f9a56f60cac93304102da32e6a7e78154e831d3704da7ca8bfefd7025e7b8901e65babcd83e7342f6382 LICENSE 4d32dba475e5f9818fcd008068b011cbae9fc4b8e29897c933775d6660f44a7992d08a1550320d83233af729a42b241ef1d182bf5983ef2f64deab76cab2260d AUTHORS " diff --git a/arch/PKGBUILD b/arch/PKGBUILD index 8b49400..151a2f4 100644 --- a/arch/PKGBUILD +++ b/arch/PKGBUILD @@ -11,7 +11,7 @@ source=('murx.c' 'Makefile' 'murx.1' 'README.md' 'LICENSE' 'AUTHORS') sha256sums=('358d39eed410a9657ef811892288ef407fe8f17709cb1b4b5e0405635594b70d' 'ee889dd531e7a3632032815a21ab26012a6ea882b50b56f86230bb3b9d9e5cad' '953966bfdd0b49cb26c11220e1e2bf6b5862aaa1b2d0bf002cde9d276f0ae96b' - '0f28defaaa7b03fd24dc87aa53a1f3c1a9ea86ec27c7e3c688248220285879b1' + '5aff6a9acb8b73d0d014d6ac31a9130d348e3107ea8ae2272611f2956eef8190' '31c5556be4cdd9bf52bb55f18ead0c68a4f0e793c2c2dab0a2a2c6d92407d0d4' 'dbc8a4fc569d4cd7bcd45516ccc98c1396fce0682c262103069c8f5150538cdb') diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..4ee4e82 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +murx (1.0.3-1) unstable; urgency=medium + + * Add Debian packaging for murx 1.0.3. + + -- Johannes Findeisen Mon, 23 Nov 2026 12:00:00 +0100 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..3b10df3 --- /dev/null +++ b/debian/control @@ -0,0 +1,16 @@ +Source: murx +Section: utils +Priority: optional +Maintainer: Johannes Findeisen +Build-Depends: debhelper-compat (= 13) +Standards-Version: 4.7.0 +Rules-Requires-Root: no +Homepage: https://codeberg.org/armin/murx + +Package: murx +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: small persistent terminal multiplexer + murx runs shells and terminal applications in named sessions with windows + and split panes. Sessions keep running when clients detach, and several + clients can attach to the same session. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..f3f9fa7 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,15 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: murx +Source: https://codeberg.org/armin/murx + +Files: * +Copyright: 2026 Armin Jenewein +License: Apache-2.0 + +Files: debian/* +Copyright: 2026 Johannes Findeisen +License: Apache-2.0 + +License: Apache-2.0 + On Debian systems, the full text of the Apache License, Version 2.0 + is available at /usr/share/common-licenses/Apache-2.0. diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..dc9a571 --- /dev/null +++ b/debian/docs @@ -0,0 +1,3 @@ +README.md +AUTHORS +RELEASES.md diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..1d3cb05 --- /dev/null +++ b/debian/rules @@ -0,0 +1,10 @@ +#!/usr/bin/make -f + +%: + dh $@ + +override_dh_auto_test: + ./murx --help >/dev/null + +override_dh_auto_install: + $(MAKE) DESTDIR="$(CURDIR)/debian/murx" PREFIX=/usr install diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/freebsd/sysutils/murx/Makefile b/freebsd/sysutils/murx/Makefile new file mode 100644 index 0000000..9c56547 --- /dev/null +++ b/freebsd/sysutils/murx/Makefile @@ -0,0 +1,28 @@ +PORTNAME= murx +DISTVERSION= 1.0.3 +CATEGORIES= sysutils +MASTER_SITES= https://xw3.org/murx/murx/archive/ + +MAINTAINER= you@hanez.org +COMMENT= Small persistent terminal multiplexer +WWW= https://codeberg.org/armin/murx + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +WRKSRC= ${WRKDIR}/murx +MAKE_ARGS= PREFIX="${PREFIX}" MANDIR="${PREFIX}/share/man" + +PLIST_FILES= bin/murx share/man/man1/murx.1.gz +PORTDOCS= AUTHORS README.md RELEASES.md + +OPTIONS_DEFINE= DOCS + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/murx + +post-install-DOCS-on: + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} + +.include diff --git a/freebsd/sysutils/murx/distinfo b/freebsd/sysutils/murx/distinfo new file mode 100644 index 0000000..da157cf --- /dev/null +++ b/freebsd/sysutils/murx/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1795431600 +SHA256 (murx-1.0.3.tar.gz) = b1b291e715fe02e3a95047d9ef16f35a00f8d92127d20b87e5690eac4ec910c3 +SIZE (murx-1.0.3.tar.gz) = 564342 diff --git a/freebsd/sysutils/murx/pkg-descr b/freebsd/sysutils/murx/pkg-descr new file mode 100644 index 0000000..0906991 --- /dev/null +++ b/freebsd/sysutils/murx/pkg-descr @@ -0,0 +1,3 @@ +murx is a small terminal multiplexer with persistent named sessions, +windows, split panes, scrollback, and support for multiple clients +attached to a session. It has built-in defaults and no configuration file.