Integrate 0.9.3 SLP/IP, SQLite identities and complete token fix; build release 0.9.3-1
This commit is contained in:
@@ -34,7 +34,7 @@ with tempfile.TemporaryDirectory(prefix='mars-deb-') as tmp:
|
||||
control=pathlib.Path(tmp)/'debian';control.mkdir();(control/'control').write_text('Source: mars-vme\nMaintainer: MARS VME <root@localhost>\n\nPackage: mars-vme\nArchitecture: any\nDescription: MARS VME\n')
|
||||
elfs=[p for p in stage.rglob('*') if p.is_file() and p.read_bytes()[:4]==b'\x7fELF']
|
||||
deps=run('dpkg-shlibdeps','-O',*[str(p) for p in elfs],cwd=tmp).strip().split('shlibs:Depends=',1)[1]
|
||||
(deb/'control').write_text(f'Package: mars-vme\nVersion: 0.9.1-3\nArchitecture: {arch}\nMaintainer: MARS VME <root@localhost>\nDepends: {deps}, python3, jq, iproute2, nftables, libpcap0.8t64, nodejs (>= 20), ffmpeg, pulseaudio, pulseaudio-utils, util-linux, zip, passwd\nRecommends: chromium | google-chrome-stable\nSection: net\nPriority: optional\nDescription: MARS VME server with web administration and Windows driver packages\n Host-native Ubuntu 26.04 build. Windows drivers are experimental.\n')
|
||||
(deb/'control').write_text(f'Package: mars-vme\nVersion: 0.9.3-1\nArchitecture: {arch}\nMaintainer: MARS VME <root@localhost>\nDepends: {deps}, python3, jq, iproute2, nftables, libpcap0.8t64, nodejs (>= 20), ffmpeg, pulseaudio, pulseaudio-utils, util-linux, zip, passwd\nRecommends: chromium | google-chrome-stable\nSection: net\nPriority: optional\nDescription: MARS VME server with web administration and Windows driver packages\n Host-native Ubuntu 26.04 build. Windows drivers are experimental.\n')
|
||||
(deb/'preinst').write_text('#!/bin/sh\nset -e\nbase=/var/lib/mars_nwe/bindery\nif [ -s "$base/nwobj.pag" ] && [ ! -f "$base/.mars-fixed-width-v1" ]; then\n echo \'Upgrade blocked: existing Bindery may use the incompatible old LP64 layout.\' >&2\n echo \'Back up configuration, Bindery and trustees; migrate/recreate and verify it before this upgrade.\' >&2\n echo \'Do not simply create the marker on an old database. See SERVER-64BIT-REPAIR.md.\' >&2\n exit 1\nfi\n')
|
||||
(deb/'postinst').write_text('''#!/bin/sh
|
||||
set -e
|
||||
@@ -42,6 +42,7 @@ if [ "$1" = configure ]; then
|
||||
getent passwd mars-browser >/dev/null || useradd --system --home-dir /var/lib/mars-browser --shell /usr/sbin/nologin mars-browser
|
||||
install -d -o mars-browser -g mars-browser -m 0700 /var/lib/mars-browser
|
||||
install -d -m 0755 /usr/local/etc/mars_nwe /var/mars_nwe/SYS/public
|
||||
install -d -o root -g root -m 0755 /var/lib/mars-identities
|
||||
install -d -m 0700 /var/lib/mars-vme
|
||||
if [ ! -f /usr/local/etc/mars_nwe/nwserv.conf ]; then
|
||||
umask 077
|
||||
@@ -70,7 +71,7 @@ fi
|
||||
''')
|
||||
(deb/'conffiles').write_text(''.join('/'+str(f.relative_to(stage))+'\n' for f in (stage/'usr/local/etc').rglob('*') if f.is_file()))
|
||||
for name in ('preinst','postinst','prerm'):(deb/name).chmod(0o755)
|
||||
for name in ('COPYING','LEGACY-BUILD.md','WINDOWS.md','DRIVER-RELEASE.md','LONG-NAMES.md','BROWSER.md','BUILD-RETROBROWSER.md','MARS-BROWSER-LIFECYCLE.md','SERVER-64BIT-REPAIR.md'):copy(name,'usr/share/doc/mars-vme/'+name)
|
||||
package=out/f'mars-vme_0.9.1-3_{arch}.deb';run('dpkg-deb','--root-owner-group','--build',str(stage),str(package))
|
||||
for name in ('COPYING','LEGACY-BUILD.md','WINDOWS.md','DRIVER-RELEASE.md','LONG-NAMES.md','BROWSER.md','BUILD-RETROBROWSER.md','MARS-BROWSER-LIFECYCLE.md','SERVER-64BIT-REPAIR.md','RELEASE-0.9.3-SLP-DE.md','SQLITE-IDENTITIES.md','DIRECTORY-WIZARD.md','TOKENFIX.md'):copy(name,'usr/share/doc/mars-vme/'+name)
|
||||
package=out/f'mars-vme_0.9.3-1_{arch}.deb';run('dpkg-deb','--root-owner-group','--build',str(stage),str(package))
|
||||
(out/'SHA256SUMS').write_text(''.join(hashlib.sha256(f.read_bytes()).hexdigest()+' '+f.name+'\n' for f in sorted(out.glob('*.deb'))))
|
||||
print(package)
|
||||
|
||||
Reference in New Issue
Block a user