The official Debian repositories already contain a package named "skyview" which is associated with NASA's SkyView Virtual Observatory (https://skyview.gsfc.nasa.gov/), a tool for astronomical data visualization. To avoid package naming conflicts and potential confusion for users, this commit renames our ADS-B aircraft tracking application package to "skyview-adsb". This clearly indicates the package's purpose (ADS-B tracking) while maintaining the SkyView brand identity. Changes: - Package name: skyview → skyview-adsb - System user/group: skyview → skyview-adsb - Config directory: /etc/skyview → /etc/skyview-adsb - Data directory: /var/lib/skyview → /var/lib/skyview-adsb - Log directory: /var/log/skyview → /var/log/skyview-adsb - Systemd service: skyview.service → skyview-adsb.service - Documentation path: /usr/share/doc/skyview → /usr/share/doc/skyview-adsb The binaries (/usr/bin/skyview and /usr/bin/beast-dump) remain unchanged as they don't conflict at the filesystem level. This ensures clean installation alongside any existing skyview packages and prevents apt/dpkg conflicts during installation. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
31 lines
No EOL
782 B
Bash
Executable file
31 lines
No EOL
782 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
|
|
case "$1" in
|
|
purge)
|
|
# Remove user and group
|
|
if getent passwd skyview-adsb >/dev/null 2>&1; then
|
|
deluser --system skyview-adsb >/dev/null 2>&1 || true
|
|
fi
|
|
|
|
if getent group skyview-adsb >/dev/null 2>&1; then
|
|
delgroup --system skyview-adsb >/dev/null 2>&1 || true
|
|
fi
|
|
|
|
# Remove data directories
|
|
rm -rf /var/lib/skyview-adsb
|
|
rm -rf /var/log/skyview-adsb
|
|
|
|
# Remove config directory if empty
|
|
rmdir /etc/skyview-adsb 2>/dev/null || true
|
|
|
|
echo "SkyView ADS-B has been completely removed."
|
|
;;
|
|
|
|
remove)
|
|
# Reload systemd after service file removal
|
|
systemctl daemon-reload
|
|
;;
|
|
esac
|
|
|
|
exit 0 |