1
0
Fork 0
forked from murx/murx

Move OS packaging directories under os

This commit is contained in:
Johannes Findeisen 2026-11-23 13:06:31 +01:00
commit 79e4bcdd68
26 changed files with 51 additions and 41 deletions

29
.gitignore vendored
View file

@ -4,12 +4,12 @@
src/
# Packages
/alpine/*
!/alpine/APKBUILD
!/alpine/README.md
/arch/*
!/arch/PKGBUILD
!/arch/README.md
/os/alpine/*
!/os/alpine/APKBUILD
!/os/alpine/README.md
/os/arch/*
!/os/arch/PKGBUILD
!/os/arch/README.md
*.apk
*.xz
@ -29,15 +29,16 @@ compile_commands.json
.cache/
# Debian build outputs
/debian/.debhelper/
/debian/debhelper-build-stamp
/debian/files
/debian/murx/
/debian/*.debhelper.log
/debian/*.substvars
/debian
/os/debian/.debhelper/
/os/debian/debhelper-build-stamp
/os/debian/files
/os/debian/murx/
/os/debian/*.debhelper.log
/os/debian/*.substvars
# FreeBSD port build outputs
/freebsd/sysutils/murx/work/
/os/freebsd/sysutils/murx/work/
# OpenBSD port build outputs
/openbsd/sysutils/murx/w-*/
/os/openbsd/sysutils/murx/w-*/

View file

@ -28,28 +28,36 @@ clean:
rm -f murx
pkgclean:
rm -f *.apk alpine/*.apk
rm -f *.xz arch/*.pkg.tar.*
rm -f *.apk os/alpine/*.apk
rm -f *.xz os/arch/*.pkg.tar.*
pkgsources:
@for dir in alpine arch; do \
@for dir in os/alpine os/arch; do \
for source in murx.c Makefile murx.1 LICENSE AUTHORS; do \
if [ ! -e "$$dir/$$source" ] && [ ! -L "$$dir/$$source" ]; then \
ln -s "../$$source" "$$dir/$$source" || exit 1; \
ln -s "../../$$source" "$$dir/$$source" || exit 1; \
fi; \
done; \
if [ ! -e "$$dir/MURX-README.md" ] && [ ! -L "$$dir/MURX-README.md" ]; then \
ln -s ../README.md "$$dir/MURX-README.md" || exit 1; \
ln -s ../../README.md "$$dir/MURX-README.md" || exit 1; \
fi; \
done
pkgalpine: pkgclean pkgsources
cd alpine && abuild checksum
cd alpine && abuild -r
cd os/alpine && abuild checksum
cd os/alpine && abuild -r
pkgarch: pkgclean pkgsources
cd arch && updpkgsums
cd arch && makepkg
cd os/arch && updpkgsums
cd os/arch && makepkg
pkgdebian:
@if [ -e debian ] || [ -L debian ]; then \
echo "debian already exists at the repository root" >&2; exit 1; \
fi; \
ln -s os/debian debian || exit 1; \
trap 'unlink debian' 0; \
dpkg-buildpackage -b -us -uc
pkgsums: pkgsources
@version=$$(sed -n 's/^#define MURX_VERSION "\([^"]*\)"$$/\1/p' murx.c); \
@ -58,11 +66,11 @@ pkgsums: pkgsources
fi; \
tmp=$$(mktemp .pkgsums.XXXXXX) || exit 1; \
trap 'rm -f "$$tmp"' 0; \
for recipe in alpine/APKBUILD arch/PKGBUILD; do \
for recipe in os/alpine/APKBUILD os/arch/PKGBUILD; do \
sed "s/^pkgver=.*/pkgver=$$version/" "$$recipe" > "$$tmp" && \
cat "$$tmp" > "$$recipe" || exit 1; \
done
cd alpine && abuild checksum
cd arch && updpkgsums
cd os/alpine && abuild checksum
cd os/arch && updpkgsums
.PHONY: all install uninstall clean pkgclean pkgsources pkgalpine pkgarch pkgsums
.PHONY: all install uninstall clean pkgclean pkgsources pkgalpine pkgarch pkgdebian pkgsums

View file

@ -445,12 +445,12 @@ that otherwise collapses pane grids to 1x1.
## Packages
- [Alpine Linux](alpine/README.md)
- [Arch Linux](arch/README.md)
- [Debian](debian/README.md)
- [Gentoo](gentoo/README.md)
- [FreeBSD](freebsd/README.md)
- [OpenBSD](openbsd/README.md)
- [Alpine Linux](os/alpine/README.md)
- [Arch Linux](os/arch/README.md)
- [Debian](os/debian/README.md)
- [Gentoo](os/gentoo/README.md)
- [FreeBSD](os/freebsd/README.md)
- [OpenBSD](os/openbsd/README.md)
The Alpine and Arch recipes build from the local checkout. After changing
packaged source files, run `make pkgsums` to sync their versions with

View file

@ -27,9 +27,9 @@ package() {
sha512sums="
68c0e952a57d03e5c2cc6a7451cca1687341c20620634617529b6dc84f0fcdc7cb49cbc662bfad5b1fe3229c082a61480813ed5c01a1994c1b2a8e34bd421e29 murx.c
090b3755edac7de08fe7951f05808cb3f86f845a0a968b382c01f5c634a3ba82dbb8cd0a78d68409a2d3062608a668d40287fa7dd37953319abb31c6fdb812e1 Makefile
ac75bfe596fae665ba882a10f5d16551bdd02cd601b786364763ac74dbc651c386d3a464eb63e0344354b953611629135190633e3b8ff3a8ef0f0849d60a3f7b Makefile
219082e6277ee8c226cdd61a5b17d4e3c6893adf04b2f59ea84a6b6421dbd5a6d0ff38b93d8dd8ae41ed037e77252058dacadd5ff1f0c36c7c1ff95503e1e7a8 murx.1
ae46b4ffcca738c9692746c678cd969b4de709e5a5a5306214242eb17c15e04b827fcb692d099387a27cbdffb71b9d2853d4ddffeb01257c22a445140dde610a MURX-README.md
1b98d82dc3c41c376827cfd3883ee8918f24e82eab138fbb0e62bc5c2b0ba9498eb3abe59dc96b3f3d67a20fbdb331ed113d1898297c4f3c904e6341364cfdc9 MURX-README.md
2fe33ba22c5f68e124904be594208f050be20f33d115f9a56f60cac93304102da32e6a7e78154e831d3704da7ca8bfefd7025e7b8901e65babcd83e7342f6382 LICENSE
4d32dba475e5f9818fcd008068b011cbae9fc4b8e29897c933775d6660f44a7992d08a1550320d83233af729a42b241ef1d182bf5983ef2f64deab76cab2260d AUTHORS
"

View file

@ -9,9 +9,9 @@ license=('Apache-2.0')
depends=('glibc')
source=('murx.c' 'Makefile' 'murx.1' 'MURX-README.md' 'LICENSE' 'AUTHORS')
sha256sums=('358d39eed410a9657ef811892288ef407fe8f17709cb1b4b5e0405635594b70d'
'7fee28fdd2016230d02cc7fee8a4cc759083d8dbe3d82b42a7353f883dd1774c'
'78a9c19c212e8038422e1bb4bb96d9b25eb19ad1359489cd32edf9e1a76638b2'
'953966bfdd0b49cb26c11220e1e2bf6b5862aaa1b2d0bf002cde9d276f0ae96b'
'e2056cacb32df2fd2e49990d0db5900e777128792a55f382565b5b50da160b94'
'1a9c479723f74cdc3a2af6cf7a4ad52388681b11a5ba3f4cfb73d28af631e036'
'31c5556be4cdd9bf52bb55f18ead0c68a4f0e793c2c2dab0a2a2c6d92407d0d4'
'dbc8a4fc569d4cd7bcd45516ccc98c1396fce0682c262103069c8f5150538cdb')

View file

@ -8,7 +8,7 @@ make pkgarch
```
The target prepares local sources for [PKGBUILD](PKGBUILD), updates their
checksums, and runs `makepkg`. The package is written to `arch/` unless you
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.
@ -16,7 +16,7 @@ To build and install in one step, run these commands from the checkout root:
```sh
make pkgsources
cd arch
cd os/arch
updpkgsums
makepkg -si
```

View file

@ -4,10 +4,11 @@ Install `build-essential`, `dpkg-dev`, and `debhelper` with compatibility
level 13 available. From the murx checkout root, run:
```sh
dpkg-buildpackage -b -us -uc
make pkgdebian
```
This builds an unsigned binary package from the checkout. Find its version
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`.