]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
naoki: Add functionality for init/ directory.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 21 Feb 2010 23:41:32 +0000 (00:41 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 21 Feb 2010 23:41:32 +0000 (00:41 +0100)
One can put files to that directory that they will get
copied to the packages by the naoki magic.

pkgs/Constants
pkgs/Functions

index 73c2be8be85445f2b3abe2725a1d075625026296..c4a6cefde6276c2cb9c98a55c7dbe3230f96f2d6 100644 (file)
@@ -65,6 +65,7 @@ else
 endif
 
 PKG_INIT_FILES = $(wildcard *.init)
+PKG_INIT_FILES += $(wildcard init/*.conf)
 PKG_PAM_FILES = $(wildcard *.pam)
 PKG_PAM_FILES += $(wildcard pam.d/*)
 
index 722e92fad65e06f96fcd658c1b19456d98acc6cd..504d101f6da02bc80132aa12f88ddb4a4c91afa5 100644 (file)
@@ -14,7 +14,7 @@ endef
 
 define __INSTALL_INIT
        -mkdir -pv $(BUILDROOT)/etc/init
-       cd $(DIR_APP) && cp -vf $(DIR_SOURCE)/$(1) $(BUILDROOT)/etc/init/$(subst .init,.conf,$(1))
+       cd $(DIR_APP) && cp -vf $(DIR_SOURCE)/$(1) $(BUILDROOT)/etc/init/$(subst .init,.conf,$(notdir $(1)))
 
 endef