The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / sysvinit / sysvinit.mk
1 ################################################################################
2 #
3 # sysvinit
4 #
5 ################################################################################
6
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
13
14 # Override BusyBox implementations if BusyBox is enabled.
15 ifeq ($(BR2_PACKAGE_BUSYBOX),y)
16 SYSVINIT_DEPENDENCIES = busybox
17 endif
18
19 define SYSVINIT_DEBIAN_PATCHES
20         if [ -d $(@D)/debian/patches ]; then \
21                 $(APPLY_PATCHES) $(@D) $(@D)/debian/patches \*.patch; \
22         fi
23 endef
24
25 SYSVINIT_POST_PATCH_HOOKS = SYSVINIT_DEBIAN_PATCHES
26
27 define SYSVINIT_BUILD_CMDS
28         # Force sysvinit to link against libcrypt as it otherwise
29         # use an incorrect test to see if it's available
30         $(MAKE) $(TARGET_CONFIGURE_OPTS) SULOGINLIBS="-lcrypt" -C $(@D)/src
31 endef
32
33 define SYSVINIT_INSTALL_TARGET_CMDS
34         for x in halt init shutdown killall5; do \
35                 $(INSTALL) -D -m 0755 $(@D)/src/$$x $(TARGET_DIR)/sbin/$$x || exit 1; \
36         done
37         # Override BusyBox's inittab with an inittab compatible with
38         # sysvinit
39         $(INSTALL) -D -m 0644 package/sysvinit/inittab $(TARGET_DIR)/etc/inittab
40         ln -sf /sbin/halt $(TARGET_DIR)/sbin/reboot
41         ln -sf /sbin/halt $(TARGET_DIR)/sbin/poweroff
42         ln -sf killall5 $(TARGET_DIR)/sbin/pidof
43 endef
44
45 $(eval $(generic-package))