diff options
author | Eric Andersen <andersen@codepoet.org> | 2005-09-13 20:58:37 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2005-09-13 20:58:37 +0000 |
commit | 0eb90feffd96f77dd0bc46e53947fda33d1c02fe (patch) | |
tree | e7ab3344395b74b778ccb1f791791a2825e7fd25 /package/sysklogd/sysklogd.mk | |
parent | 23791fa0e6af2523afb67c3f1f4e6960bb9e13a9 (diff) |
Add support for the full blown versions of sysklogd and klogd
Diffstat (limited to 'package/sysklogd/sysklogd.mk')
-rw-r--r-- | package/sysklogd/sysklogd.mk | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/package/sysklogd/sysklogd.mk b/package/sysklogd/sysklogd.mk new file mode 100644 index 000000000..9f18eb839 --- /dev/null +++ b/package/sysklogd/sysklogd.mk @@ -0,0 +1,57 @@ +############################################################# +# +# sysklogd +# +############################################################# +SYSKLOGD_VER:=1.4.1 +SYSKLOGD_SOURCE:=sysklogd-$(SYSKLOGD_VER).tar.gz +SYSKLOGD_SITE:=http://www.infodrom.org/projects/sysklogd/download +SYSKLOGD_DIR:=$(BUILD_DIR)/sysklogd-$(SYSKLOGD_VER) +SYSKLOGD_SYSLOGD_BINARY:=syslogd +SYSKLOGD_KLOGD_BINARY:=klogd +SYSKLOGD_BINARY:=$(SYSKLOGD_KLOGD_BINARY) +SYSKLOGD_SYSLOGD_TARGET_BINARY:=sbin/syslogd +SYSKLOGD_KLOGD_TARGET_BINARY:=sbin/klogd +SYSKLOGD_TARGET_BINARY:=$(SYSKLOGD_KLOGD_TARGET_BINARY) + +$(DL_DIR)/$(SYSKLOGD_SOURCE): + $(WGET) -P $(DL_DIR) $(SYSKLOGD_SITE)/$(SYSKLOGD_SOURCE) + +sysklogd-source: $(DL_DIR)/$(SYSKLOGD_SOURCE) + +$(SYSKLOGD_DIR)/.unpacked: $(DL_DIR)/$(SYSKLOGD_SOURCE) + zcat $(DL_DIR)/$(SYSKLOGD_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - + toolchain/patch-kernel.sh $(SYSKLOGD_DIR) package/sysklogd/ sysklogd\*.patch + touch $(SYSKLOGD_DIR)/.unpacked + +$(SYSKLOGD_DIR)/$(SYSKLOGD_BINARY): $(SYSKLOGD_DIR)/.unpacked + $(MAKE) CC=$(TARGET_CC) -C $(SYSKLOGD_DIR) + $(STRIP) $(SYSKLOGD_DIR)/$(SYSKLOGD_SYSLOGD_BINARY) + $(STRIP) $(SYSKLOGD_DIR)/$(SYSKLOGD_KLOGD_BINARY) + +$(TARGET_DIR)/$(SYSKLOGD_TARGET_BINARY): $(SYSKLOGD_DIR)/$(SYSKLOGD_BINARY) + $(INSTALL) -m 0755 -D $(SYSKLOGD_DIR)/$(SYSKLOGD_SYSLOGD_BINARY) $(TARGET_DIR)/$(SYSKLOGD_SYSLOGD_TARGET_BINARY) + $(INSTALL) -m 0755 -D $(SYSKLOGD_DIR)/$(SYSKLOGD_KLOGD_BINARY) $(TARGET_DIR)/$(SYSKLOGD_KLOGD_TARGET_BINARY) + $(INSTALL) -m 0755 -D package/sysklogd/init-syslog $(TARGET_DIR)/etc/init.d/S25syslog + $(INSTALL) -m 0644 -D package/sysklogd/syslog.conf $(TARGET_DIR)/etc/syslog.conf + +sysklogd: uclibc $(TARGET_DIR)/$(SYSKLOGD_TARGET_BINARY) + +sysklogd-clean: + rm -f $(TARGET_DIR)/$(SYSKLOGD_SYSLOGD_TARGET_BINARY) + rm -f $(TARGET_DIR)/$(SYSKLOGD_KLOGD_TARGET_BINARY) + rm -f $(TARGET_DIR)/etc/init.d/S25syslogd + rm -f $(TARGET_DIR)/etc/syslog.conf + -$(MAKE) -C $(SYSKLOGD_DIR) clean + +sysklogd-dirclean: + rm -rf $(SYSKLOGD_DIR) + +############################################################# +# +# Toplevel Makefile options +# +############################################################# +ifeq ($(strip $(BR2_PACKAGE_SYSKLOGD)),y) +TARGETS+=sysklogd +endif |