From: Michael Tremer Date: Sun, 21 Feb 2010 23:41:32 +0000 (+0100) Subject: naoki: Add functionality for init/ directory. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2c5d034e89031c37603ba241d3540e535e27d61;p=ipfire-3.x.git naoki: Add functionality for init/ directory. One can put files to that directory that they will get copied to the packages by the naoki magic. --- diff --git a/pkgs/Constants b/pkgs/Constants index 73c2be8be..c4a6cefde 100644 --- a/pkgs/Constants +++ b/pkgs/Constants @@ -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/*) diff --git a/pkgs/Functions b/pkgs/Functions index 722e92fad..504d101f6 100644 --- a/pkgs/Functions +++ b/pkgs/Functions @@ -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