xref: /OK3568_Linux_fs/buildroot/package/start-stop-daemon/start-stop-daemon.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# start-stop-daemon
4#
5################################################################################
6
7# Debian start-stop-daemon is part of dpkg. Since start-stop-daemon is the only
8# interesting tool in it, we call the buildroot package start-stop-daemon.
9
10START_STOP_DAEMON_VERSION = 1.20.7.1
11START_STOP_DAEMON_SOURCE = dpkg_$(START_STOP_DAEMON_VERSION).tar.xz
12START_STOP_DAEMON_SITE = https://snapshot.debian.org/archive/debian/20210109T083441Z/pool/main/d/dpkg
13START_STOP_DAEMON_CONF_OPTS = \
14	--disable-dselect \
15	--disable-update-alternatives \
16	--disable-install-info \
17	--exec-prefix=/
18START_STOP_DAEMON_CONF_ENV = \
19	dpkg_cv_va_copy=yes \
20	dpkg_cv_c99_snprintf=yes \
21	DPKG_DEVEL_MODE=1
22START_STOP_DAEMON_DEPENDENCIES = host-pkgconf
23# Patching m4/dpkg-arch.m4
24START_STOP_DAEMON_AUTORECONF = YES
25START_STOP_DAEMON_LICENSE = GPL-2.0+
26START_STOP_DAEMON_LICENSE_FILES = COPYING
27
28define START_STOP_DAEMON_BUILD_CMDS
29	$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/lib/compat
30	$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)/utils
31endef
32
33define START_STOP_DAEMON_INSTALL_TARGET_CMDS
34	$(INSTALL) -m 0755 -D $(@D)/utils/start-stop-daemon \
35		$(TARGET_DIR)/sbin/start-stop-daemon
36endef
37
38$(eval $(autotools-package))
39