mirror of
https://github.com/CyberMind-FR/secubox-deb.git
synced 2026-07-29 13:59:40 +00:00
29 lines
1.4 KiB
Makefile
Executable File
29 lines
1.4 KiB
Makefile
Executable File
#!/usr/bin/make -f
|
|
%:
|
|
dh $@
|
|
|
|
override_dh_auto_install:
|
|
install -d debian/secubox-openclaw/usr/lib/secubox/openclaw
|
|
cp -r api debian/secubox-openclaw/usr/lib/secubox/openclaw/
|
|
install -d debian/secubox-openclaw/usr/share/secubox/www/openclaw
|
|
cp -r www/openclaw/. debian/secubox-openclaw/usr/share/secubox/www/openclaw/
|
|
install -d debian/secubox-openclaw/usr/share/secubox/menu.d
|
|
[ -d menu.d ] && cp -r menu.d/. debian/secubox-openclaw/usr/share/secubox/menu.d/ || true
|
|
install -d debian/secubox-openclaw/etc/nginx/secubox.d
|
|
[ -d nginx ] && cp -r nginx/. debian/secubox-openclaw/etc/nginx/secubox.d/ || true
|
|
install -d debian/secubox-openclaw/lib/systemd/system
|
|
[ -d systemd ] && cp systemd/*.service debian/secubox-openclaw/lib/systemd/system/ || true
|
|
|
|
install -d debian/secubox-openclaw/usr/sbin
|
|
install -m 755 sbin/openclawctl debian/secubox-openclaw/usr/sbin/openclawctl
|
|
|
|
# Sudoers drop-in: lets the aggregator (user secubox) drive openclawctl
|
|
# as root without a password — the ONLY privileged surface for the module.
|
|
install -d debian/secubox-openclaw/etc/sudoers.d
|
|
install -m 440 debian/secubox-openclaw.sudoers debian/secubox-openclaw/etc/sudoers.d/secubox-openclaw
|
|
|
|
# Operator config example. Shipped to /etc/secubox/ so operators can
|
|
# `cp openclaw.toml.example openclaw.toml` without hunting for keys.
|
|
install -d debian/secubox-openclaw/etc/secubox
|
|
install -m 644 conf/openclaw.toml.example debian/secubox-openclaw/etc/secubox/openclaw.toml.example
|