Commit 7f38cc72 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Initial commit

parents
<project name="sysvinit">
<target name="boot-sysvinit">
<property name="makedir" value="${builddir}/sysvinit-2.88dsf"/>
<mkdir dir="${makedir}"/>
<exec executable="tar" failonerror="true">
<arg line="xf packages/sysvinit/sysvinit-2.88dsf.tar.bz2 -C ${builddir}"/>
</exec>
<exec executable="patch" dir="${makedir}" failonerror="true">
<arg line="-Np1 -i ${basedir}/packages/sysvinit/sysvinit-2.88dsf-tools_updates-1.patch"/>
</exec>
<exec executable="make" dir="${makedir}" failonerror="true">
<env key="PATH" path="${PATH}"/>
<env key="CC" value="${CLFS_TARGET}-gcc"/>
<env key="CXX" value="${CLFS_TARGET}-g++"/>
<env key="AR" value="${CLFS_TARGET}-ar"/>
<env key="AS" value="${CLFS_TARGET}-as"/>
<env key="RANLIB" value="${CLFS_TARGET}-ranlib"/>
<env key="LD" value="${CLFS_TARGET}-ld"/>
<env key="STRIP" value="${CLFS_TARGET}-strip"/>
<arg line="-C src clobber"/>
</exec>
<exec executable="make" dir="${makedir}" failonerror="true">
<env key="PATH" path="${PATH}"/>
<env key="CC" value="${CLFS_TARGET}-gcc"/>
<env key="CXX" value="${CLFS_TARGET}-g++"/>
<env key="AR" value="${CLFS_TARGET}-ar"/>
<env key="AS" value="${CLFS_TARGET}-as"/>
<env key="RANLIB" value="${CLFS_TARGET}-ranlib"/>
<env key="LD" value="${CLFS_TARGET}-ld"/>
<env key="STRIP" value="${CLFS_TARGET}-strip"/>
<arg line="-C src CC=${CLFS_TARGET}-gcc"/>
</exec>
<exec executable="make" dir="${makedir}" failonerror="true">
<env key="PATH" path="${PATH}"/>
<env key="CC" value="${CLFS_TARGET}-gcc"/>
<env key="CXX" value="${CLFS_TARGET}-g++"/>
<env key="AR" value="${CLFS_TARGET}-ar"/>
<env key="AS" value="${CLFS_TARGET}-as"/>
<env key="RANLIB" value="${CLFS_TARGET}-ranlib"/>
<env key="LD" value="${CLFS_TARGET}-ld"/>
<env key="STRIP" value="${CLFS_TARGET}-strip"/>
<arg line="-C src ROOT=${sysrootdir}/tools install"/>
</exec>
<echo file="${sysrootdir}/tools/etc/inittab"># Begin /tools/etc/inittab
id:3:initdefault:
si::sysinit:/tools/etc/rc.d/init.d/rc sysinit
l0:0:wait:/tools/etc/rc.d/init.d/rc 0
l1:S1:wait:/tools/etc/rc.d/init.d/rc 1
l2:2:wait:/tools/etc/rc.d/init.d/rc 2
l3:3:wait:/tools/etc/rc.d/init.d/rc 3
l4:4:wait:/tools/etc/rc.d/init.d/rc 4
l5:5:wait:/tools/etc/rc.d/init.d/rc 5
l6:6:wait:/tools/etc/rc.d/init.d/rc 6
ca:12345:ctrlaltdel:/tools/sbin/shutdown -t1 -a -r now
su:S016:once:/tools/sbin/sulogin
1:2345:respawn:/tools/sbin/agetty --noclear -I '\033(K' tty1 9600
2:2345:respawn:/tools/sbin/agetty --noclear -I '\033(K' tty2 9600
3:2345:respawn:/tools/sbin/agetty --noclear -I '\033(K' tty3 9600
4:2345:respawn:/tools/sbin/agetty --noclear -I '\033(K' tty4 9600
5:2345:respawn:/tools/sbin/agetty --noclear -I '\033(K' tty5 9600
6:2345:respawn:/tools/sbin/agetty --noclear -I '\033(K' tty6 9600
c0:12345:respawn:/tools/sbin/agetty --autologin root --login-program /root/build --noclear 115200 ${CONSOLE} vt100
# End /tools/etc/inittab
</echo>
<delete dir="${makedir}"/>
</target>
</project>
diff -Naur sysvinit-2.88dsf.orig/src/Makefile sysvinit-2.88dsf/src/Makefile
--- sysvinit-2.88dsf.orig/src/Makefile 2010-04-11 05:30:27.000000000 -0400
+++ sysvinit-2.88dsf/src/Makefile 2014-04-14 17:00:32.000000000 -0400
@@ -16,27 +16,20 @@
# For some known distributions we do not build all programs, otherwise we do.
BIN =
SBIN = init halt shutdown runlevel killall5 fstab-decode
-USRBIN = last mesg
-MAN1 = last.1 lastb.1 mesg.1
MAN5 = initscript.5 inittab.5
MAN8 = halt.8 init.8 killall5.8 pidof.8 poweroff.8 reboot.8 runlevel.8
MAN8 += shutdown.8 telinit.8 fstab-decode.8
ifeq ($(DISTRO),)
-BIN += mountpoint
-SBIN += sulogin bootlogd
-USRBIN += utmpdump wall
-MAN1 += utmpdump.1 mountpoint.1 wall.1
-MAN8 += sulogin.8 bootlogd.8
+SBIN += bootlogd
+MAN8 += bootlogd.8
endif
ifeq ($(DISTRO),Debian)
CPPFLAGS+= -DACCTON_OFF
-BIN += mountpoint
-SBIN += sulogin bootlogd
-MAN1 += mountpoint.1
-MAN8 += sulogin.8 bootlogd.8
+SBIN += bootlogd
+MAN8 += bootlogd.8
endif
ifeq ($(DISTRO),Owl)
@@ -46,11 +39,8 @@
ifeq ($(DISTRO),SuSE)
CPPFLAGS+= -DUSE_SYSFS -DSANE_TIO -DSIGINT_ONLYONCE -DUSE_ONELINE
-BIN += mountpoint
-SBIN += sulogin
-USRBIN += utmpdump
-MAN1 += utmpdump.1 mountpoint.1
-MAN8 += sulogin.8
+SBIN +=
+MAN8 +=
endif
ID = $(shell id -u)
@@ -78,7 +68,7 @@
endif
# Additional libs for GNU libc.
-ifneq ($(wildcard /usr/lib*/libcrypt.a),)
+ifneq ($(wildcard /tools/lib*/libcrypt.a),)
SULOGINLIBS += -lcrypt
endif
@@ -96,11 +86,8 @@
last: last.o oldutmp.h
-mesg: mesg.o
-mountpoint: mountpoint.o
-utmpdump: utmpdump.o
runlevel: runlevel.o
diff -Naur sysvinit-2.88dsf.orig/src/paths.h sysvinit-2.88dsf/src/paths.h
--- sysvinit-2.88dsf.orig/src/paths.h 2010-04-11 05:30:27.000000000 -0400
+++ sysvinit-2.88dsf/src/paths.h 2014-04-14 17:00:36.000000000 -0400
@@ -26,7 +26,7 @@
#define CONSOLE "/dev/console" /* Logical system console */
#define SECURETTY "/etc/securetty" /* List of root terminals */
#define SDALLOW "/etc/shutdown.allow" /* Users allowed to shutdown */
-#define INITTAB "/etc/inittab" /* Location of inittab */
+#define INITTAB "/tools/etc/inittab" /* Location of inittab */
#define INIT "/sbin/init" /* Location of init itself. */
#define NOLOGIN "/etc/nologin" /* Stop user logging in. */
#define FASTBOOT "/fastboot" /* Enable fast boot. */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment