aboutsummaryrefslogtreecommitdiff
path: root/package/sysklogd/sysklogd.mk
diff options
context:
space:
mode:
authorGravatar Fabrice Fontaine <fontaine.fabrice@gmail.com>2019-04-05 22:16:37 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2019-04-06 19:12:31 +0200
commit8995c40e209fd96f3852edcedcc7559c7d38a083 (patch)
tree0c28f09973b20aac28e2aaeb89d4175b74bd3d59 /package/sysklogd/sysklogd.mk
parent655acd1df02e5e9ce318aadc33bd6fa8042fc455 (diff)
downloadbuildroot-8995c40e209fd96f3852edcedcc7559c7d38a083.tar.gz
buildroot-8995c40e209fd96f3852edcedcc7559c7d38a083.tar.bz2
package/sysklogd: bump to version 1.6
- Switch site to github - Drop all patches (already in version or not needed anymore) - Switch to autotools infrastructure - Add hash for license file Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/sysklogd/sysklogd.mk')
-rw-r--r--package/sysklogd/sysklogd.mk20
1 files changed, 8 insertions, 12 deletions
diff --git a/package/sysklogd/sysklogd.mk b/package/sysklogd/sysklogd.mk
index 976438c110..8cd7f9573c 100644
--- a/package/sysklogd/sysklogd.mk
+++ b/package/sysklogd/sysklogd.mk
@@ -4,24 +4,20 @@
#
################################################################################
-SYSKLOGD_VERSION = 1.5.1
-SYSKLOGD_SITE = http://www.infodrom.org/projects/sysklogd/download
+SYSKLOGD_VERSION = 1.6
+SYSKLOGD_SITE = $(call github,troglobit,sysklogd,v$(SYSKLOGD_VERSION))
SYSKLOGD_LICENSE = GPL-2.0+
SYSKLOGD_LICENSE_FILES = COPYING
+# From git
+SYSKLOGD_AUTORECONF = YES
-# 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
+define SYSKLOGD_INSTALL_SAMPLE_CONFIG
$(INSTALL) -D -m 0644 package/sysklogd/syslog.conf \
$(TARGET_DIR)/etc/syslog.conf
endef
+SYSKLOGD_POST_INSTALL_TARGET_HOOKS += SYSKLOGD_INSTALL_SAMPLE_CONFIG
+
define SYSKLOGD_INSTALL_INIT_SYSV
$(INSTALL) -m 755 -D package/sysklogd/S01syslogd \
$(TARGET_DIR)/etc/init.d/S01syslogd
@@ -41,4 +37,4 @@ define SYSKLOGD_INSTALL_INIT_SYSTEMD
$(TARGET_DIR)/etc/systemd/system/syslog.service
endef
-$(eval $(generic-package))
+$(eval $(autotools-package))