2005-09-13 22:58:37 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# sysklogd
|
|
|
|
#
|
|
|
|
#############################################################
|
2007-07-11 16:06:06 +02:00
|
|
|
SYSKLOGD_VERSION:=1.4.1
|
|
|
|
SYSKLOGD_SOURCE:=sysklogd-$(SYSKLOGD_VERSION).tar.gz
|
2005-09-13 22:58:37 +02:00
|
|
|
SYSKLOGD_SITE:=http://www.infodrom.org/projects/sysklogd/download
|
2007-07-11 16:06:06 +02:00
|
|
|
SYSKLOGD_DIR:=$(BUILD_DIR)/sysklogd-$(SYSKLOGD_VERSION)
|
2005-09-13 22:58:37 +02:00
|
|
|
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):
|
2009-01-16 12:42:52 +01:00
|
|
|
$(call DOWNLOAD,$(SYSKLOGD_SITE),$(SYSKLOGD_SOURCE))
|
2005-09-13 22:58:37 +02:00
|
|
|
|
|
|
|
sysklogd-source: $(DL_DIR)/$(SYSKLOGD_SOURCE)
|
|
|
|
|
|
|
|
$(SYSKLOGD_DIR)/.unpacked: $(DL_DIR)/$(SYSKLOGD_SOURCE)
|
2006-10-01 17:17:52 +02:00
|
|
|
$(ZCAT) $(DL_DIR)/$(SYSKLOGD_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2005-09-13 22:58:37 +02:00
|
|
|
toolchain/patch-kernel.sh $(SYSKLOGD_DIR) package/sysklogd/ sysklogd\*.patch
|
|
|
|
touch $(SYSKLOGD_DIR)/.unpacked
|
|
|
|
|
|
|
|
$(SYSKLOGD_DIR)/$(SYSKLOGD_BINARY): $(SYSKLOGD_DIR)/.unpacked
|
2009-03-05 16:30:57 +01:00
|
|
|
$(MAKE) CC="$(TARGET_CC) $(TARGET_CFLAGS)" -C $(SYSKLOGD_DIR)
|
2007-10-01 18:15:31 +02:00
|
|
|
$(STRIPCMD) $(SYSKLOGD_DIR)/$(SYSKLOGD_SYSLOGD_BINARY)
|
|
|
|
$(STRIPCMD) $(SYSKLOGD_DIR)/$(SYSKLOGD_KLOGD_BINARY)
|
2005-09-13 22:58:37 +02:00
|
|
|
|
|
|
|
$(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)
|
2009-03-09 15:09:25 +01:00
|
|
|
if [ ! -f $(TARGET_DIR)/etc/init.d/S25syslog ]; then \
|
|
|
|
$(INSTALL) -m 0755 -D package/sysklogd/S25syslog $(TARGET_DIR)/etc/init.d; \
|
|
|
|
fi
|
|
|
|
if [ ! -f $(TARGET_DIR)/etc/syslog.conf ]; then \
|
|
|
|
$(INSTALL) -m 0644 -D package/sysklogd/syslog.conf $(TARGET_DIR)/etc/syslog.conf; \
|
|
|
|
fi
|
2005-09-13 22:58:37 +02:00
|
|
|
|
2009-09-02 17:02:02 +02:00
|
|
|
sysklogd: $(TARGET_DIR)/$(SYSKLOGD_TARGET_BINARY)
|
2005-09-13 22:58:37 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_SYSKLOGD),y)
|
2005-09-13 22:58:37 +02:00
|
|
|
TARGETS+=sysklogd
|
|
|
|
endif
|