mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-18 23:12:59 +02:00
Add new make macro for installing initscripts
We also move the initscript for also to src/initscripts/packages and use this new macro to install the initscript Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
This commit is contained in:
@@ -206,3 +206,10 @@ define PAK
|
||||
-e s/SIZE/`ls -l \/install\/packages\/$(PROG)-$(VER)-$(PAK_VER).ipfire | awk '{ print $$5 }'`/g \
|
||||
< /usr/src/src/pakfire/meta > /install/packages/meta-$(PROG)
|
||||
endef
|
||||
|
||||
define INSTALL_INITSCRIPT
|
||||
install -m 754 -v $(DIR_SRC)/src/initscripts/packages/$(1) /etc/rc.d/init.d/$(1)
|
||||
endef
|
||||
|
||||
test:
|
||||
$(call INSTALL_INITSCRIPT,hostapd)
|
||||
|
||||
2
lfs/alsa
2
lfs/alsa
@@ -99,5 +99,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
|
||||
cd $(DIR_SRC)/alsa-firmware-$(FVER) && ./configure
|
||||
cd $(DIR_SRC)/alsa-firmware-$(FVER) && make $(MAKETUNING) $(EXTRA_MAKE)
|
||||
cd $(DIR_SRC)/alsa-firmware-$(FVER) && make install
|
||||
# install initscript
|
||||
$(call INSTALL_INITSCRIPT,alsa)
|
||||
@rm -rf $(DIR_SRC)/alsa*
|
||||
@$(POSTBUILD)
|
||||
|
||||
Reference in New Issue
Block a user