--- audio-selector-1.0.orig/debian/changelog
+++ audio-selector-1.0/debian/changelog
@@ -0,0 +1,18 @@
+audio-selector (1.0-0.1+47.1) unstable; urgency=low
+
+  * version number update by debtransform
+
+ -- debtransform <build@opensuse.org>  Sun, 26 Jul 2026 15:04:04 +0000
+
+audio-selector (1.0-0.1) unstable; urgency=low
+
+  * Initial Release
+  * added --allow-downgrades for debian upgrades
+  * Sort down services in decreasing order of downtime and sort up services in increasing order of uptime
+  * install librespot, squeezlite, shairport-sync if missing
+  * create_service: restart audio-selector if norestart flag is not present
+  * server.js: remove updation of log file status
+  * initialize: removed deletion of update_progress.log
+  * update: update success/failure status in update_progress.log
+
+ -- Package Builder <audio-selector@indimail.org>  Sun, 26 Jul 2026 15:00:04 +0000
--- audio-selector-1.0.orig/debian/control
+++ audio-selector-1.0/debian/control
@@ -0,0 +1,12 @@
+Source: audio-selector
+Section: utils
+Priority: optional
+Maintainer: Package Builder <audio-selector@indimail.org>
+Build-Depends: debhelper-compat (= 13), nodejs
+Standards-Version: 4.6.2
+
+Package: audio-selector
+Architecture: all
+Depends: ${misc:Depends}, nodejs, daemontools, alsa-utils
+Description: ALSA Audio Selector and Tool Box Management Dashboard
+ A Node.js web application dashboard running on port 9095 to select ALSA audio cards, toggle Native DSD support, manage daemontools/systemd services, and handle platform reboots.
--- audio-selector-1.0.orig/debian/postinst
+++ audio-selector-1.0/debian/postinst
@@ -0,0 +1,26 @@
+#!/bin/sh
+set -e
+upgrade=0
+if [ "$1" = "configure" ]; then
+    if [ ! " $2" = " " ] ; then
+        upgrade=1
+        if [ -x /usr/lib/audio_selector/create_service ]; then
+            /usr/lib/audio_selector/create_service
+        fi
+        exit 0
+    fi
+    TARGET_USER=$(id -nu 1000 2>/dev/null || echo "pi")
+    TARGET_HOME=$(eval echo "~${TARGET_USER}")
+    if [ -d "${TARGET_HOME}" ]; then
+        CONFIG_DIR="${TARGET_HOME}/.audio_selector"
+        mkdir -p "${CONFIG_DIR}"
+        chown -R 1000:1000 "${CONFIG_DIR}"
+        chmod 755 "${CONFIG_DIR}"
+    fi
+    if [ -x /usr/lib/audio_selector/create_service ]; then
+        /usr/lib/audio_selector/create_service 8080
+    fi
+fi
+
+#DEBHELPER#
+exit 0
--- audio-selector-1.0.orig/debian/prerm
+++ audio-selector-1.0/debian/prerm
@@ -0,0 +1,18 @@
+#!/bin/sh
+set -e
+
+# we are doing upgrade
+if [ " $1" = " upgrade" -o " $1" = " deconfigure" ] ; then
+    exit 0
+fi
+
+if [ "$1" = "remove" ] || [ "$1" = "deconfigure" ]; then
+    if [ -d /service/audio-selector ]; then
+        mv /service/audio-selector /service/.audio-selector
+        svc -dx /service/.audio-selector /service/.audio-selector/log || true
+        rm -rf /service/.audio-selector
+    fi
+fi
+
+#DEBHELPER#
+exit 0
--- audio-selector-1.0.orig/debian/rules
+++ audio-selector-1.0/debian/rules
@@ -0,0 +1,14 @@
+#!/usr/bin/make -f
+%:
+	dh $@
+
+override_dh_auto_install:
+	mkdir -p debian/audio-selector/usr/lib/audio_selector
+	cp -r server.js index.html styles.css create_service restart \
+		update initialize install node_modules \
+		debian/audio-selector/usr/lib/audio_selector/
+	chmod 755 debian/audio-selector/usr/lib/audio_selector/create_service
+	chmod 755 debian/audio-selector/usr/lib/audio_selector/restart
+	chmod 755 debian/audio-selector/usr/lib/audio_selector/update
+	chmod 755 debian/audio-selector/usr/lib/audio_selector/initialize
+	chmod 755 debian/audio-selector/usr/lib/audio_selector/install
