1 ################################################################################
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
21 ifeq ($(BR2_PACKAGE_LIBSELINUX
),y
)
22 SYSVINIT_DEPENDENCIES
+= libselinux
23 SYSVINIT_MAKE_OPTS
+= WITH_SELINUX
="yes"
26 define SYSVINIT_DEBIAN_PATCHES
27 if
[ -d
$(@D
)/debian
/patches
]; then \
28 $(APPLY_PATCHES
) $(@D
) $(@D
)/debian
/patches \
*.patch
; \
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
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; \
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
50 $(eval
$(generic-package
))