From 1b729c6349fab55bc6541c0e909a4b5e0aeb8f76 Mon Sep 17 00:00:00 2001 From: Tilman Kranz Date: Sun, 30 Mar 2025 15:31:48 +0200 Subject: [PATCH] add debian packaging --- .gitignore | 5 +++++ Makefile | 6 +++++- debian/changelog | 5 +++++ debian/control | 11 +++++++++++ debian/rules | 4 ++++ 5 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 .gitignore create mode 100644 debian/changelog create mode 100644 debian/control create mode 100755 debian/rules diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d57cb1d --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +debian/.debhelper +debian/debhelper-build-stamp +debian/files +debian/pulseaudio-tcp.substvars +debian/pulseaudio-tcp diff --git a/Makefile b/Makefile index 0f415f3..7f5dce4 100644 --- a/Makefile +++ b/Makefile @@ -4,20 +4,24 @@ BINDIR=$(PREFIX)/bin APPDIR=$(PREFIX)/share/applications DESTDIR= +.PHONY: all install-bin install-desktop install + all: install-bin: $(NAME) + @install -d -m 755 "$(DESTDIR)$(BINDIR)" @install -m 755 "$(NAME)" "$(DESTDIR)$(BINDIR)"/"$(NAME)" @echo "INFO: $(NAME) was installed to $(BINDIR)" install-desktop: $(NAME).desktop.in + @install -d -m 755 "$(DESTDIR)$(APPDIR)" @cat "$(NAME)".desktop.in | \ sed -e "\ s|@BINDIR@|$(BINDIR)|; \ s|@NAME@|$(NAME)| \ " \ < $(NAME).desktop.in \ - > "$(APPDIR)"/"$(NAME)".desktop + > "$(DESTDIR)$(APPDIR)"/"$(NAME)".desktop @echo "INFO: $(NAME).desktop was installed to $(APPDIR)" install: install-bin install-desktop diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..121181e --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +pulseaudio-tcp (0.1) UNRELEASED; urgency=medium + + * Initial release + + -- Tilman Kranz Sun, 30 Mar 2025 15:24:10 +0200 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..a0c4072 --- /dev/null +++ b/debian/control @@ -0,0 +1,11 @@ +Source: pulseaudio-tcp +Section: misc +Priority: extra +Maintainer: Tilman Kranz +Build-Depends: debhelper-compat (= 13), make +Standards-Version: 3.9.4 + +Package: pulseaudio-tcp +Architecture: all +Depends: openssh-client, pulseaudio-utils, zenity, ${misc:Depends} +Description: Setup encrypted redirection of Pulseaudio to remote host diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..6ad65cc --- /dev/null +++ b/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + PREFIX=/usr dh $@