Move OS packaging directories under os
This commit is contained in:
parent
2da5312982
commit
79e4bcdd68
26 changed files with 51 additions and 41 deletions
35
os/alpine/APKBUILD
Normal file
35
os/alpine/APKBUILD
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
# Local source snapshot; refresh version and checksums with `make pkgsums`.
|
||||
pkgname=murx
|
||||
pkgver=1.0.3
|
||||
pkgrel=0
|
||||
pkgdesc="Small persistent terminal multiplexer"
|
||||
url="https://codeberg.org/armin/murx"
|
||||
arch="all"
|
||||
license="Apache-2.0"
|
||||
subpackages="$pkgname-doc"
|
||||
source="murx.c Makefile murx.1 MURX-README.md LICENSE AUTHORS"
|
||||
builddir="$srcdir"
|
||||
|
||||
build() {
|
||||
make CFLAGS="$CFLAGS -std=c99 -Wall -Wextra"
|
||||
}
|
||||
|
||||
check() {
|
||||
./murx --help >/dev/null
|
||||
}
|
||||
|
||||
package() {
|
||||
make DESTDIR="$pkgdir" PREFIX=/usr install
|
||||
install -Dm644 MURX-README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
|
||||
install -Dm644 AUTHORS "$pkgdir/usr/share/doc/$pkgname/AUTHORS"
|
||||
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
68c0e952a57d03e5c2cc6a7451cca1687341c20620634617529b6dc84f0fcdc7cb49cbc662bfad5b1fe3229c082a61480813ed5c01a1994c1b2a8e34bd421e29 murx.c
|
||||
ac75bfe596fae665ba882a10f5d16551bdd02cd601b786364763ac74dbc651c386d3a464eb63e0344354b953611629135190633e3b8ff3a8ef0f0849d60a3f7b Makefile
|
||||
219082e6277ee8c226cdd61a5b17d4e3c6893adf04b2f59ea84a6b6421dbd5a6d0ff38b93d8dd8ae41ed037e77252058dacadd5ff1f0c36c7c1ff95503e1e7a8 murx.1
|
||||
1b98d82dc3c41c376827cfd3883ee8918f24e82eab138fbb0e62bc5c2b0ba9498eb3abe59dc96b3f3d67a20fbdb331ed113d1898297c4f3c904e6341364cfdc9 MURX-README.md
|
||||
2fe33ba22c5f68e124904be594208f050be20f33d115f9a56f60cac93304102da32e6a7e78154e831d3704da7ca8bfefd7025e7b8901e65babcd83e7342f6382 LICENSE
|
||||
4d32dba475e5f9818fcd008068b011cbae9fc4b8e29897c933775d6660f44a7992d08a1550320d83233af729a42b241ef1d182bf5983ef2f64deab76cab2260d AUTHORS
|
||||
"
|
||||
18
os/alpine/README.md
Normal file
18
os/alpine/README.md
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
# Build the Alpine packages
|
||||
|
||||
Install `alpine-sdk` and configure abuild for your regular user. Generate and
|
||||
install a signing key with `abuild-keygen -a -i` if you need one.
|
||||
|
||||
From the murx checkout root, run:
|
||||
|
||||
```sh
|
||||
make pkgalpine
|
||||
```
|
||||
|
||||
The target prepares local sources for [APKBUILD](APKBUILD), refreshes their
|
||||
checksums, and invokes `abuild -r`. The packages are written to abuild's
|
||||
configured repository destination, typically `~/packages`.
|
||||
|
||||
Install the resulting `murx` and `murx-doc` APKs with `apk add` and their
|
||||
respective file paths. Trust your local signing key first. The `murx-doc`
|
||||
subpackage contains the manual.
|
||||
34
os/arch/PKGBUILD
Normal file
34
os/arch/PKGBUILD
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
# Local source snapshot; refresh version and checksums with `make pkgsums`.
|
||||
pkgname=murx
|
||||
pkgver=1.0.3
|
||||
pkgrel=1
|
||||
pkgdesc='Small persistent terminal multiplexer'
|
||||
arch=('x86_64' 'aarch64')
|
||||
url='https://codeberg.org/armin/murx'
|
||||
license=('Apache-2.0')
|
||||
depends=('glibc')
|
||||
source=('murx.c' 'Makefile' 'murx.1' 'MURX-README.md' 'LICENSE' 'AUTHORS')
|
||||
sha256sums=('358d39eed410a9657ef811892288ef407fe8f17709cb1b4b5e0405635594b70d'
|
||||
'78a9c19c212e8038422e1bb4bb96d9b25eb19ad1359489cd32edf9e1a76638b2'
|
||||
'953966bfdd0b49cb26c11220e1e2bf6b5862aaa1b2d0bf002cde9d276f0ae96b'
|
||||
'1a9c479723f74cdc3a2af6cf7a4ad52388681b11a5ba3f4cfb73d28af631e036'
|
||||
'31c5556be4cdd9bf52bb55f18ead0c68a4f0e793c2c2dab0a2a2c6d92407d0d4'
|
||||
'dbc8a4fc569d4cd7bcd45516ccc98c1396fce0682c262103069c8f5150538cdb')
|
||||
|
||||
build() {
|
||||
cd "$srcdir"
|
||||
make CFLAGS="$CFLAGS -std=c99 -Wall -Wextra"
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$srcdir"
|
||||
./murx --help >/dev/null
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$srcdir"
|
||||
make DESTDIR="$pkgdir" PREFIX=/usr install
|
||||
install -Dm644 MURX-README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
|
||||
install -Dm644 AUTHORS "$pkgdir/usr/share/doc/$pkgname/AUTHORS"
|
||||
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
}
|
||||
24
os/arch/README.md
Normal file
24
os/arch/README.md
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
# Build the Arch Linux package
|
||||
|
||||
Install `base-devel` and `pacman-contrib`. As a regular user, run this from
|
||||
the murx checkout root:
|
||||
|
||||
```sh
|
||||
make pkgarch
|
||||
```
|
||||
|
||||
The target prepares local sources for [PKGBUILD](PKGBUILD), updates their
|
||||
checksums, and runs `makepkg`. The package is written to `os/arch/` unless you
|
||||
configured a different `PKGDEST`. Install it with `pacman -U` and the package
|
||||
path.
|
||||
|
||||
To build and install in one step, run these commands from the checkout root:
|
||||
|
||||
```sh
|
||||
make pkgsources
|
||||
cd os/arch
|
||||
updpkgsums
|
||||
makepkg -si
|
||||
```
|
||||
|
||||
The recipe supports x86_64 and aarch64.
|
||||
14
os/debian/README.md
Normal file
14
os/debian/README.md
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# Build the Debian package
|
||||
|
||||
Install `build-essential`, `dpkg-dev`, and `debhelper` with compatibility
|
||||
level 13 available. From the murx checkout root, run:
|
||||
|
||||
```sh
|
||||
make pkgdebian
|
||||
```
|
||||
|
||||
The target temporarily links `os/debian` at the checkout root for
|
||||
`dpkg-buildpackage` and builds an unsigned binary package. Find its version
|
||||
in the [Debian changelog](changelog). The `.deb` is written to the checkout's
|
||||
parent directory. Install the package with `apt install` and the path to the
|
||||
`.deb`.
|
||||
5
os/debian/changelog
Normal file
5
os/debian/changelog
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
murx (1.0.3-1) unstable; urgency=medium
|
||||
|
||||
* Add Debian packaging for murx 1.0.3.
|
||||
|
||||
-- Johannes Findeisen <you@hanez.org> Mon, 23 Nov 2026 12:00:00 +0100
|
||||
16
os/debian/control
Normal file
16
os/debian/control
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
Source: murx
|
||||
Section: utils
|
||||
Priority: optional
|
||||
Maintainer: Johannes Findeisen <you@hanez.org>
|
||||
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.
|
||||
15
os/debian/copyright
Normal file
15
os/debian/copyright
Normal file
|
|
@ -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.
|
||||
3
os/debian/docs
Normal file
3
os/debian/docs
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
README.md
|
||||
AUTHORS
|
||||
RELEASES.md
|
||||
10
os/debian/rules
Executable file
10
os/debian/rules
Executable file
|
|
@ -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
|
||||
1
os/debian/source/format
Normal file
1
os/debian/source/format
Normal file
|
|
@ -0,0 +1 @@
|
|||
3.0 (quilt)
|
||||
14
os/freebsd/README.md
Normal file
14
os/freebsd/README.md
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# Build the FreeBSD package
|
||||
|
||||
Copy the [`sysutils/murx` port](sysutils/murx/) into the `sysutils` category
|
||||
of a FreeBSD ports tree. From the copied port directory, run:
|
||||
|
||||
```sh
|
||||
make package
|
||||
```
|
||||
|
||||
The ports framework fetches the tagged source archive, verifies its checksum,
|
||||
and builds the package. Install the resulting package with `pkg add` and the package path.
|
||||
|
||||
To package a new release, update `DISTVERSION` in the port Makefile and run
|
||||
`make makesum` after publishing the matching tag.
|
||||
28
os/freebsd/sysutils/murx/Makefile
Normal file
28
os/freebsd/sysutils/murx/Makefile
Normal file
|
|
@ -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 <bsd.port.mk>
|
||||
3
os/freebsd/sysutils/murx/distinfo
Normal file
3
os/freebsd/sysutils/murx/distinfo
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
TIMESTAMP = 1795431600
|
||||
SHA256 (murx-1.0.3.tar.gz) = b1b291e715fe02e3a95047d9ef16f35a00f8d92127d20b87e5690eac4ec910c3
|
||||
SIZE (murx-1.0.3.tar.gz) = 564342
|
||||
3
os/freebsd/sysutils/murx/pkg-descr
Normal file
3
os/freebsd/sysutils/murx/pkg-descr
Normal file
|
|
@ -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.
|
||||
16
os/gentoo/README.md
Normal file
16
os/gentoo/README.md
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
# Build the Gentoo package
|
||||
|
||||
Copy the [`app-misc/murx` directory](app-misc/murx/) into a configured local
|
||||
Portage overlay. Keep the ebuild and Manifest together. The ebuild fetches and
|
||||
verifies the tagged release archive and builds it from source.
|
||||
|
||||
On an amd64 system using stable keywords, add `app-misc/murx ~amd64` to
|
||||
`/etc/portage/package.accept_keywords` or a file in that directory. Then run:
|
||||
|
||||
```sh
|
||||
emerge --ask app-misc/murx
|
||||
```
|
||||
|
||||
To prepare a new package version, copy the ebuild to a filename with the new
|
||||
version and run `ebuild murx-VERSION.ebuild manifest` from the package
|
||||
directory after publishing the matching tag.
|
||||
1
os/gentoo/app-misc/murx/Manifest
Normal file
1
os/gentoo/app-misc/murx/Manifest
Normal file
|
|
@ -0,0 +1 @@
|
|||
DIST murx-1.0.3.tar.gz 564342 BLAKE2B 7132cff9c517537fd1bd2b0aeedb0c90a274810d31515b941f5a63288790b299aa24744134afd1c2b4c9f0439077fb1262626115535338fcfc5182f65a8308af SHA512 658dadaafac4561a87dc7be1a6c094cc06eca9ea44f8c756ac7e913841c4ebe13d00da5f4ff415fa96b4b91f171e567b2c18d8ad2f735746644fd9c344643b28
|
||||
29
os/gentoo/app-misc/murx/murx-1.0.3.ebuild
Normal file
29
os/gentoo/app-misc/murx/murx-1.0.3.ebuild
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
EAPI=8
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
DESCRIPTION="Small persistent terminal multiplexer"
|
||||
HOMEPAGE="https://xw3.org/murx/murx"
|
||||
SRC_URI="https://xw3.org/murx/murx/archive/${P}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${PN}"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
DOCS=( README.md AUTHORS RELEASES.md )
|
||||
|
||||
src_compile() {
|
||||
tc-export CC
|
||||
emake
|
||||
}
|
||||
|
||||
src_test() {
|
||||
./murx --help >/dev/null || die "murx --help failed"
|
||||
[[ $(./murx --version) == "${PN} ${PV}" ]] || die "Unexpected murx version"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake DESTDIR="${D}" PREFIX=/usr install
|
||||
einstalldocs
|
||||
}
|
||||
14
os/openbsd/README.md
Normal file
14
os/openbsd/README.md
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# Build the OpenBSD package
|
||||
|
||||
Copy the [`sysutils/murx` port](sysutils/murx/) into the `sysutils` category
|
||||
of a OpenBSD ports tree. From the copied port directory, run:
|
||||
|
||||
```sh
|
||||
make package
|
||||
```
|
||||
|
||||
The ports framework fetches the tagged source archive, verifies its checksum,
|
||||
and builds the package. Run `make install` from the port directory to install it through the ports tree.
|
||||
|
||||
To package a new release, update `DISTNAME` in the port Makefile and run
|
||||
`make makesum` after publishing the matching tag.
|
||||
31
os/openbsd/sysutils/murx/Makefile
Normal file
31
os/openbsd/sysutils/murx/Makefile
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
COMMENT = small persistent terminal multiplexer
|
||||
|
||||
DISTNAME = murx-1.0.3
|
||||
CATEGORIES = sysutils
|
||||
HOMEPAGE = https://codeberg.org/armin/murx
|
||||
MAINTAINER = Johannes Findeisen <you@hanez.org>
|
||||
|
||||
# Apache-2.0
|
||||
PERMIT_PACKAGE = Yes
|
||||
|
||||
WANTLIB += c util
|
||||
|
||||
SITES = https://xw3.org/murx/murx/archive/
|
||||
WRKDIST = ${WRKDIR}/murx
|
||||
|
||||
MAKE_FLAGS = CC="${CC}" CFLAGS="${CFLAGS} -std=c99 -Wall -Wextra" \
|
||||
LDFLAGS="${LDFLAGS}"
|
||||
|
||||
do-test:
|
||||
${WRKSRC}/murx --help >/dev/null
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM_DIR} ${PREFIX}/bin
|
||||
${INSTALL_MAN_DIR} ${PREFIX}/man/man1
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/murx ${PREFIX}/bin/
|
||||
${INSTALL_MAN} ${WRKSRC}/murx.1 ${PREFIX}/man/man1/
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/murx
|
||||
${INSTALL_DATA} ${WRKSRC}/AUTHORS ${WRKSRC}/README.md \
|
||||
${WRKSRC}/RELEASES.md ${PREFIX}/share/doc/murx/
|
||||
|
||||
.include <bsd.port.mk>
|
||||
2
os/openbsd/sysutils/murx/distinfo
Normal file
2
os/openbsd/sysutils/murx/distinfo
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
SHA256 (murx-1.0.3.tar.gz) = sbKR5xX+AuOpUEfZ7xbzWgD42SEn0guH5WkOrE7JEMM=
|
||||
SIZE (murx-1.0.3.tar.gz) = 564342
|
||||
3
os/openbsd/sysutils/murx/pkg/DESCR
Normal file
3
os/openbsd/sysutils/murx/pkg/DESCR
Normal file
|
|
@ -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.
|
||||
6
os/openbsd/sysutils/murx/pkg/PLIST
Normal file
6
os/openbsd/sysutils/murx/pkg/PLIST
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
@bin bin/murx
|
||||
@man man/man1/murx.1
|
||||
share/doc/murx/
|
||||
share/doc/murx/AUTHORS
|
||||
share/doc/murx/README.md
|
||||
share/doc/murx/RELEASES.md
|
||||
Loading…
Add table
Add a link
Reference in a new issue