alsa: Fix bug#13087 remove services entry

- alsa has an initscript but it is not starting and stopping a traditional daemon service.
   The initscript loads some alsa modules and then restores the asound.state file
- This patch updates the PAK_VER number and removes the services entry and explicitly
   adds alsa in for the initscript installation.
- Additionally this patch also adds the installation of a backup include file for alsa
   which savces the soundcards status file asound.state

Fixes: Bug#13087
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
This commit is contained in:
Adolf Belka
2023-05-08 19:07:20 +02:00
committed by Peter Müller
parent 9a671e7ae4
commit d83b6fc6df

View File

@@ -37,11 +37,11 @@ DL_FILE = $(THISAPP).tar.bz2
DL_FROM = $(URL_IPFIRE)
DIR_APP = $(DIR_SRC)/$(THISAPP)
PROG = alsa
PAK_VER = 15
PAK_VER = 16
DEPS =
SERVICES = alsa
SERVICES =
TARGET = $(DIR_INFO)/$(THISAPP)
@@ -104,6 +104,9 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
cd $(DIR_APP)/alsa-firmware-$(FVER) && make $(MAKETUNING) $(EXTRA_MAKE)
cd $(DIR_APP)/alsa-firmware-$(FVER) && make install
# install initscript
$(call INSTALL_INITSCRIPTS,$(SERVICES))
$(call INSTALL_INITSCRIPTS,alsa)
# install backup include file
install -v -m 644 ${DIR_SRC}/config/backup/includes/alsa \
/var/ipfire/backup/addons/includes/alsa
@rm -rf $(DIR_SRC)/alsa*
@$(POSTBUILD)