python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / sysvinit / sysvinit.mk
blobfaefd5c913d43435f0c359a80e0baec6e7f6404b
1 ################################################################################
3 # sysvinit
5 ################################################################################
7 SYSVINIT_VERSION = 2.88
8 SYSVINIT_SOURCE = sysvinit_$(SYSVINIT_VERSION)dsf.orig.tar.gz
9 SYSVINIT_PATCH = sysvinit_$(SYSVINIT_VERSION)dsf-13.1+squeeze1.diff.gz
10 SYSVINIT_SITE = http://snapshot.debian.org/archive/debian/20141023T043132Z/pool/main/s/sysvinit
11 SYSVINIT_LICENSE = GPLv2+
12 SYSVINIT_LICENSE_FILES = COPYING
14 SYSVINIT_MAKE_OPTS = SYSROOT=$(STAGING_DIR)
16 # Override BusyBox implementations if BusyBox is enabled.
17 ifeq ($(BR2_PACKAGE_BUSYBOX),y)
18 SYSVINIT_DEPENDENCIES = busybox
19 endif
21 ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
22 SYSVINIT_DEPENDENCIES += libselinux
23 SYSVINIT_MAKE_OPTS += WITH_SELINUX="yes"
24 endif
26 define SYSVINIT_DEBIAN_PATCHES
27 if [ -d $(@D)/debian/patches ]; then \
28 $(APPLY_PATCHES) $(@D) $(@D)/debian/patches \*.patch; \
30 endef
32 SYSVINIT_POST_PATCH_HOOKS = SYSVINIT_DEBIAN_PATCHES
34 define SYSVINIT_BUILD_CMDS
35 # Force sysvinit to link against libcrypt as it otherwise
36 # use an incorrect test to see if it's available
37 $(TARGET_CONFIGURE_OPTS) $(MAKE) $(SYSVINIT_MAKE_OPTS) -C $(@D)/src
38 endef
40 define SYSVINIT_INSTALL_TARGET_CMDS
41 for x in halt init shutdown killall5; do \
42 $(INSTALL) -D -m 0755 $(@D)/src/$$x $(TARGET_DIR)/sbin/$$x || exit 1; \
43 done
44 $(INSTALL) -D -m 0644 package/sysvinit/inittab $(TARGET_DIR)/etc/inittab
45 ln -sf /sbin/halt $(TARGET_DIR)/sbin/reboot
46 ln -sf /sbin/halt $(TARGET_DIR)/sbin/poweroff
47 ln -sf killall5 $(TARGET_DIR)/sbin/pidof
48 endef
50 $(eval $(generic-package))