diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-12-13 05:01:49 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-12-13 05:01:49 +0000 |
commit | 9c5bb0ec4ac84d552fb83c868ae90ccd9d26ecdd (patch) | |
tree | 51b2b26f47e599b29ad28db36cb3738ad167eabf /package/sysvinit/sysvinit.mk | |
parent | 8596756f160df4e4f2807385966c1d6d5be2b79b (diff) |
import sysvinit package
Diffstat (limited to 'package/sysvinit/sysvinit.mk')
-rw-r--r-- | package/sysvinit/sysvinit.mk | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/package/sysvinit/sysvinit.mk b/package/sysvinit/sysvinit.mk new file mode 100644 index 000000000..3a94a0de4 --- /dev/null +++ b/package/sysvinit/sysvinit.mk @@ -0,0 +1,48 @@ +############################################################# +# +# sysvinit +# +############################################################# +SYSVINIT_VER:=2.86 +SYSVINIT_SOURCE:=sysvinit-$(SYSVINIT_VER).tar.gz +SYSVINIT_SITE:=ftp://ftp.cistron.nl/pub/people/miquels/software +SYSVINIT_DIR:=$(BUILD_DIR)/sysvinit-$(SYSVINIT_VER) +SYSVINIT_CAT:=zcat +SYSVINIT_BINARY:=src/init +SYSVINIT_TARGET_BINARY:=bin/init + +$(DL_DIR)/$(SYSVINIT_SOURCE): + $(WGET) -P $(DL_DIR) $(SYSVINIT_SITE)/$(SYSVINIT_SOURCE) + +sysvinit-unpacked: $(SYSVINIT_DIR)/.unpacked +$(SYSVINIT_DIR)/.unpacked: $(DL_DIR)/$(SYSVINIT_SOURCE) + $(SYSVINIT_CAT) $(DL_DIR)/$(SYSVINIT_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - + toolchain/patch-kernel.sh $(SYSVINIT_DIR) package/sysvinit/ sysvinit-*.patch + touch $(SYSVINIT_DIR)/.unpacked + +$(SYSVINIT_DIR)/$(SYSVINIT_BINARY): $(SYSVINIT_DIR)/.unpacked + CFLAGS="$(TARGET_CFLAGS)" $(MAKE) CC=$(TARGET_CC) -C $(SYSVINIT_DIR)/src + +$(TARGET_DIR)/$(SYSVINIT_TARGET_BINARY): $(SYSVINIT_DIR)/$(SYSVINIT_BINARY) + for x in halt init shutdown ; do \ + install -D $(SYSVINIT_DIR)/src/$$x $(TARGET_DIR)/sbin/$$x || exit 1 ; \ + done + +sysvinit: uclibc ncurses $(TARGET_DIR)/$(SYSVINIT_TARGET_BINARY) + +sysvinit-clean: + for x in halt init shutdown ; do \ + rm -f $(TARGET_DIR)/sbin/$$x || exit 1 ; \ + done + -$(MAKE) -C $(SYSVINIT_DIR) clean + +sysvinit-dirclean: + rm -rf $(SYSVINIT_DIR) +############################################################# +# +# Toplevel Makefile options +# +############################################################# +ifeq ($(strip $(BR2_PACKAGE_SYSVINIT)),y) +TARGETS+=sysvinit +endif |