![Yann E. MORIN](/assets/img/avatar_default.png)
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
43 lines
1.4 KiB
Makefile
43 lines
1.4 KiB
Makefile
################################################################################
|
|
#
|
|
# sysklogd
|
|
#
|
|
################################################################################
|
|
|
|
SYSKLOGD_VERSION = 1.5.1
|
|
SYSKLOGD_SITE = http://www.infodrom.org/projects/sysklogd/download
|
|
SYSKLOGD_LICENSE = GPL-2.0+
|
|
SYSKLOGD_LICENSE_FILES = COPYING
|
|
|
|
# Override SKFLAGS which is used as CFLAGS.
|
|
define SYSKLOGD_BUILD_CMDS
|
|
$(MAKE) $(TARGET_CONFIGURE_OPTS) SKFLAGS="$(TARGET_CFLAGS) -DSYSV" \
|
|
-C $(@D)
|
|
endef
|
|
|
|
define SYSKLOGD_INSTALL_TARGET_CMDS
|
|
$(INSTALL) -D -m 0500 $(@D)/syslogd $(TARGET_DIR)/sbin/syslogd
|
|
$(INSTALL) -D -m 0500 $(@D)/klogd $(TARGET_DIR)/sbin/klogd
|
|
$(INSTALL) -D -m 0644 package/sysklogd/syslog.conf \
|
|
$(TARGET_DIR)/etc/syslog.conf
|
|
endef
|
|
|
|
define SYSKLOGD_INSTALL_INIT_SYSV
|
|
$(INSTALL) -m 755 -D package/sysklogd/S01logging \
|
|
$(TARGET_DIR)/etc/init.d/S01logging
|
|
endef
|
|
|
|
define SYSKLOGD_INSTALL_INIT_SYSTEMD
|
|
$(INSTALL) -D -m 644 $(SYSKLOGD_PKGDIR)/syslogd.service \
|
|
$(TARGET_DIR)/usr/lib/systemd/system/syslogd.service
|
|
$(INSTALL) -D -m 644 $(SYSKLOGD_PKGDIR)/klogd.service \
|
|
$(TARGET_DIR)/usr/lib/systemd/system/klogd.service
|
|
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
|
ln -sf ../../../../usr/lib/systemd/system/syslogd.service \
|
|
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/syslogd.service
|
|
ln -sf ../../../usr/lib/systemd/system/syslogd.service \
|
|
$(TARGET_DIR)/etc/systemd/system/syslog.service
|
|
endef
|
|
|
|
$(eval $(generic-package))
|