Rename Debian package from skyview to skyview-adsb
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>
This commit is contained in:
parent
61b735b226
commit
be5369c195
9 changed files with 162 additions and 37 deletions
2
debian/DEBIAN/conffiles
vendored
2
debian/DEBIAN/conffiles
vendored
|
|
@ -1 +1 @@
|
||||||
/etc/skyview/config.json
|
/etc/skyview-adsb/config.json
|
||||||
|
|
|
||||||
2
debian/DEBIAN/control
vendored
2
debian/DEBIAN/control
vendored
|
|
@ -1,4 +1,4 @@
|
||||||
Package: skyview
|
Package: skyview-adsb
|
||||||
Version: 0.0.4
|
Version: 0.0.4
|
||||||
Section: net
|
Section: net
|
||||||
Priority: optional
|
Priority: optional
|
||||||
|
|
|
||||||
28
debian/DEBIAN/postinst
vendored
28
debian/DEBIAN/postinst
vendored
|
|
@ -3,25 +3,25 @@ set -e
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
configure)
|
configure)
|
||||||
# Create skyview user and group if they don't exist
|
# Create skyview-adsb user and group if they don't exist
|
||||||
if ! getent group skyview >/dev/null 2>&1; then
|
if ! getent group skyview-adsb >/dev/null 2>&1; then
|
||||||
addgroup --system --quiet skyview
|
addgroup --system --quiet skyview-adsb
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! getent passwd skyview >/dev/null 2>&1; then
|
if ! getent passwd skyview-adsb >/dev/null 2>&1; then
|
||||||
adduser --system --ingroup skyview --home /var/lib/skyview \
|
adduser --system --ingroup skyview-adsb --home /var/lib/skyview-adsb \
|
||||||
--no-create-home --disabled-password --quiet skyview
|
--no-create-home --disabled-password --quiet skyview-adsb
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create directories with proper permissions
|
# Create directories with proper permissions
|
||||||
mkdir -p /var/lib/skyview /var/log/skyview >/dev/null 2>&1 || true
|
mkdir -p /var/lib/skyview-adsb /var/log/skyview-adsb >/dev/null 2>&1 || true
|
||||||
chown skyview:skyview /var/lib/skyview /var/log/skyview >/dev/null 2>&1 || true
|
chown skyview-adsb:skyview-adsb /var/lib/skyview-adsb /var/log/skyview-adsb >/dev/null 2>&1 || true
|
||||||
chmod 755 /var/lib/skyview /var/log/skyview >/dev/null 2>&1 || true
|
chmod 755 /var/lib/skyview-adsb /var/log/skyview-adsb >/dev/null 2>&1 || true
|
||||||
|
|
||||||
# Set permissions on config files
|
# Set permissions on config files
|
||||||
if [ -f /etc/skyview/config.json ]; then
|
if [ -f /etc/skyview-adsb/config.json ]; then
|
||||||
chown root:skyview /etc/skyview/config.json >/dev/null 2>&1 || true
|
chown root:skyview-adsb /etc/skyview-adsb/config.json >/dev/null 2>&1 || true
|
||||||
chmod 640 /etc/skyview/config.json >/dev/null 2>&1 || true
|
chmod 640 /etc/skyview-adsb/config.json >/dev/null 2>&1 || true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -29,9 +29,9 @@ case "$1" in
|
||||||
systemctl daemon-reload >/dev/null 2>&1 || true
|
systemctl daemon-reload >/dev/null 2>&1 || true
|
||||||
|
|
||||||
# Check if service was previously enabled
|
# Check if service was previously enabled
|
||||||
if systemctl is-enabled skyview >/dev/null 2>&1; then
|
if systemctl is-enabled skyview-adsb >/dev/null 2>&1; then
|
||||||
# Service was enabled, restart it
|
# Service was enabled, restart it
|
||||||
systemctl restart skyview >/dev/null 2>&1 || true
|
systemctl restart skyview-adsb >/dev/null 2>&1 || true
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
||||||
16
debian/DEBIAN/postrm
vendored
16
debian/DEBIAN/postrm
vendored
|
|
@ -4,22 +4,22 @@ set -e
|
||||||
case "$1" in
|
case "$1" in
|
||||||
purge)
|
purge)
|
||||||
# Remove user and group
|
# Remove user and group
|
||||||
if getent passwd skyview >/dev/null 2>&1; then
|
if getent passwd skyview-adsb >/dev/null 2>&1; then
|
||||||
deluser --system skyview >/dev/null 2>&1 || true
|
deluser --system skyview-adsb >/dev/null 2>&1 || true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if getent group skyview >/dev/null 2>&1; then
|
if getent group skyview-adsb >/dev/null 2>&1; then
|
||||||
delgroup --system skyview >/dev/null 2>&1 || true
|
delgroup --system skyview-adsb >/dev/null 2>&1 || true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Remove data directories
|
# Remove data directories
|
||||||
rm -rf /var/lib/skyview
|
rm -rf /var/lib/skyview-adsb
|
||||||
rm -rf /var/log/skyview
|
rm -rf /var/log/skyview-adsb
|
||||||
|
|
||||||
# Remove config directory if empty
|
# Remove config directory if empty
|
||||||
rmdir /etc/skyview 2>/dev/null || true
|
rmdir /etc/skyview-adsb 2>/dev/null || true
|
||||||
|
|
||||||
echo "SkyView has been completely removed."
|
echo "SkyView ADS-B has been completely removed."
|
||||||
;;
|
;;
|
||||||
|
|
||||||
remove)
|
remove)
|
||||||
|
|
|
||||||
8
debian/DEBIAN/prerm
vendored
8
debian/DEBIAN/prerm
vendored
|
|
@ -4,12 +4,12 @@ set -e
|
||||||
case "$1" in
|
case "$1" in
|
||||||
remove|upgrade|deconfigure)
|
remove|upgrade|deconfigure)
|
||||||
# Stop and disable the service
|
# Stop and disable the service
|
||||||
if systemctl is-active --quiet skyview.service; then
|
if systemctl is-active --quiet skyview-adsb.service; then
|
||||||
systemctl stop skyview.service
|
systemctl stop skyview-adsb.service
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if systemctl is-enabled --quiet skyview.service; then
|
if systemctl is-enabled --quiet skyview-adsb.service; then
|
||||||
systemctl disable skyview.service
|
systemctl disable skyview-adsb.service
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
||||||
|
|
@ -6,13 +6,13 @@ Wants=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
User=skyview
|
User=skyview-adsb
|
||||||
Group=skyview
|
Group=skyview-adsb
|
||||||
ExecStart=/usr/bin/skyview -config /etc/skyview/config.json
|
ExecStart=/usr/bin/skyview -config /etc/skyview-adsb/config.json
|
||||||
WorkingDirectory=/var/lib/skyview
|
WorkingDirectory=/var/lib/skyview-adsb
|
||||||
StandardOutput=journal
|
StandardOutput=journal
|
||||||
StandardError=journal
|
StandardError=journal
|
||||||
SyslogIdentifier=skyview
|
SyslogIdentifier=skyview-adsb
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=5
|
RestartSec=5
|
||||||
|
|
||||||
|
|
@ -37,7 +37,7 @@ RestrictNamespaces=true
|
||||||
PrivateNetwork=false
|
PrivateNetwork=false
|
||||||
|
|
||||||
# Allow writing to log directory
|
# Allow writing to log directory
|
||||||
ReadWritePaths=/var/log/skyview
|
ReadWritePaths=/var/log/skyview-adsb
|
||||||
|
|
||||||
# Capabilities
|
# Capabilities
|
||||||
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
|
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
|
||||||
125
debian/usr/share/doc/skyview-adsb/README.Debian
vendored
Normal file
125
debian/usr/share/doc/skyview-adsb/README.Debian
vendored
Normal file
|
|
@ -0,0 +1,125 @@
|
||||||
|
SkyView for Debian
|
||||||
|
==================
|
||||||
|
|
||||||
|
SkyView is a multi-source ADS-B aircraft tracker that connects to dump1090 Beast
|
||||||
|
format TCP streams and provides a web-based interface for aircraft tracking.
|
||||||
|
|
||||||
|
Configuration
|
||||||
|
------------
|
||||||
|
|
||||||
|
The main configuration file is located at:
|
||||||
|
/etc/skyview/config.json
|
||||||
|
|
||||||
|
This file contains:
|
||||||
|
- Server configuration (port, host)
|
||||||
|
- List of dump1090 sources to connect to
|
||||||
|
- Application settings
|
||||||
|
|
||||||
|
Example configuration for multiple receivers:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"server": {
|
||||||
|
"host": "",
|
||||||
|
"port": 8080
|
||||||
|
},
|
||||||
|
"sources": [
|
||||||
|
{
|
||||||
|
"id": "site1",
|
||||||
|
"name": "Site 1 Receiver",
|
||||||
|
"host": "192.168.1.100",
|
||||||
|
"port": 30005,
|
||||||
|
"latitude": 51.4700,
|
||||||
|
"longitude": -0.4600,
|
||||||
|
"altitude": 50.0,
|
||||||
|
"enabled": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "site2",
|
||||||
|
"name": "Site 2 Receiver",
|
||||||
|
"host": "192.168.1.101",
|
||||||
|
"port": 30005,
|
||||||
|
"latitude": 51.4800,
|
||||||
|
"longitude": -0.4500,
|
||||||
|
"altitude": 45.0,
|
||||||
|
"enabled": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"settings": {
|
||||||
|
"history_limit": 1000,
|
||||||
|
"stale_timeout": 60,
|
||||||
|
"update_rate": 1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
Service Management
|
||||||
|
-----------------
|
||||||
|
|
||||||
|
SkyView runs as a systemd service. Use these commands to manage it:
|
||||||
|
|
||||||
|
# Start the service
|
||||||
|
sudo systemctl start skyview
|
||||||
|
|
||||||
|
# Stop the service
|
||||||
|
sudo systemctl stop skyview
|
||||||
|
|
||||||
|
# Restart the service
|
||||||
|
sudo systemctl restart skyview
|
||||||
|
|
||||||
|
# Enable auto-start on boot
|
||||||
|
sudo systemctl enable skyview
|
||||||
|
|
||||||
|
# Disable auto-start on boot
|
||||||
|
sudo systemctl disable skyview
|
||||||
|
|
||||||
|
# Check service status
|
||||||
|
sudo systemctl status skyview
|
||||||
|
|
||||||
|
# View logs
|
||||||
|
sudo journalctl -u skyview -f
|
||||||
|
|
||||||
|
Web Interface
|
||||||
|
------------
|
||||||
|
|
||||||
|
Once started, the web interface is available at:
|
||||||
|
http://localhost:8080
|
||||||
|
|
||||||
|
The interface provides:
|
||||||
|
- Real-time aircraft tracking map
|
||||||
|
- Aircraft table with filtering and sorting
|
||||||
|
- Statistics dashboard
|
||||||
|
- Coverage and signal strength visualization
|
||||||
|
- 3D radar view (optional)
|
||||||
|
|
||||||
|
Files and Directories
|
||||||
|
--------------------
|
||||||
|
|
||||||
|
/usr/bin/skyview - Main executable
|
||||||
|
/etc/skyview/config.json - Configuration file
|
||||||
|
/var/lib/skyview/ - Application data directory
|
||||||
|
/var/log/skyview/ - Log files
|
||||||
|
/lib/systemd/system/skyview.service - Systemd service file
|
||||||
|
|
||||||
|
Security
|
||||||
|
--------
|
||||||
|
|
||||||
|
SkyView runs as the unprivileged 'skyview' user for security. The service has
|
||||||
|
restricted capabilities and filesystem access.
|
||||||
|
|
||||||
|
Troubleshooting
|
||||||
|
--------------
|
||||||
|
|
||||||
|
1. Check service status:
|
||||||
|
sudo systemctl status skyview
|
||||||
|
|
||||||
|
2. View recent logs:
|
||||||
|
sudo journalctl -u skyview --no-pager -l
|
||||||
|
|
||||||
|
3. Test configuration:
|
||||||
|
sudo -u skyview /usr/bin/skyview -config /etc/skyview/config.json
|
||||||
|
|
||||||
|
4. Check network connectivity to dump1090 sources:
|
||||||
|
telnet <host> <port>
|
||||||
|
|
||||||
|
For more information, visit: https://github.com/skyview/skyview
|
||||||
BIN
debian/usr/share/doc/skyview-adsb/changelog.gz
vendored
Normal file
BIN
debian/usr/share/doc/skyview-adsb/changelog.gz
vendored
Normal file
Binary file not shown.
|
|
@ -71,7 +71,7 @@ chmod +x "$DEB_DIR/usr/bin/beast-dump"
|
||||||
|
|
||||||
# Generate changelog from git history
|
# Generate changelog from git history
|
||||||
echo_info "Generating changelog from git history..."
|
echo_info "Generating changelog from git history..."
|
||||||
CHANGELOG_DIR="$DEB_DIR/usr/share/doc/skyview"
|
CHANGELOG_DIR="$DEB_DIR/usr/share/doc/skyview-adsb"
|
||||||
mkdir -p "$CHANGELOG_DIR"
|
mkdir -p "$CHANGELOG_DIR"
|
||||||
|
|
||||||
# Get the current version and previous version
|
# Get the current version and previous version
|
||||||
|
|
@ -82,7 +82,7 @@ if [ -n "$PREV_VERSION" ]; then
|
||||||
echo_info "Generating changelog from $PREV_VERSION to $CURRENT_VERSION"
|
echo_info "Generating changelog from $PREV_VERSION to $CURRENT_VERSION"
|
||||||
# Create changelog with proper Debian format
|
# Create changelog with proper Debian format
|
||||||
{
|
{
|
||||||
echo "skyview ($CURRENT_VERSION) unstable; urgency=medium"
|
echo "skyview-adsb ($CURRENT_VERSION) unstable; urgency=medium"
|
||||||
echo ""
|
echo ""
|
||||||
echo " Changes since $PREV_VERSION:"
|
echo " Changes since $PREV_VERSION:"
|
||||||
git log --pretty=format:" * %s" "$PREV_VERSION..HEAD" | head -20
|
git log --pretty=format:" * %s" "$PREV_VERSION..HEAD" | head -20
|
||||||
|
|
@ -94,7 +94,7 @@ else
|
||||||
echo_info "No previous version found, generating initial changelog"
|
echo_info "No previous version found, generating initial changelog"
|
||||||
# Create initial changelog
|
# Create initial changelog
|
||||||
{
|
{
|
||||||
echo "skyview ($CURRENT_VERSION) unstable; urgency=medium"
|
echo "skyview-adsb ($CURRENT_VERSION) unstable; urgency=medium"
|
||||||
echo ""
|
echo ""
|
||||||
echo " * Initial release"
|
echo " * Initial release"
|
||||||
echo " * Multi-source ADS-B aircraft tracker with Beast format support"
|
echo " * Multi-source ADS-B aircraft tracker with Beast format support"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue