Ignore:
Timestamp:
Feb 21, 2006, 1:05:50 AM (18 years ago)
Author:
Jim Gifford <clfs@…>
Branches:
clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
Children:
df7a253
Parents:
b9181e6
Message:

r698@server (orig r696): ryan | 2005-11-13 00:00:47 -0800

r704@rei: lfs | 2005-11-13 19:01:08 +1100
Import updates for untested blfs-scripts



File:
1 edited

Legend:

Unmodified
Added
Removed
  • scripts/scripts/untested/blfs-scripts/blfs-dbus.sh

    rb9181e6 r0b402ff  
    1414fi
    1515
    16 if [ "Y" = "${MULTIARCH}" ]; then
    17    # temporarily set PYTHON env var
    18    export PYTHON=python${suffix}
    19 fi
    20 
    2116unpack_tarball dbus-${DBUS_VER}
    2217cd ${PKGDIR}
     
    2520CC="${CC-gcc} ${ARCH_CFLAGS}" \
    2621CXX="${CXX-g++} ${ARCH_CFLAGS}" \
    27 CFLAGS="${TGT_CFLAGS}" \
    28 CXXFLAGS="${TGT_CFLAGS}" \
     22CFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
     23CXXFLAGS="-O2 -pipe ${TGT_CFLAGS}" \
     24LDFLAGS="-L/usr/${libdirname}" \
    2925./configure --prefix=/usr ${extra_conf} \
    30    --localstatedir=/var \
    31    --sysconfdir=/etc \
    32    --with-xml=libxml \
    33    --mandir=/usr/share/man \
    34    --infodir=/usr/share/info \
     26  --sysconfdir=/etc \
     27  --localstatedir=/var \
     28  --mandir=/usr/share/man \
     29  --infodir=/usr/share/info \
     30  --with-system-socket=/var/lib/dbus/system_bus_socket \
    3531   >> ${LOGFILE} 2>&1 &&
    3632echo " o Configure OK" &&
     
    4238
    4339min_log_init ${INSTLOGS} &&
    44 make install \
    45    >> ${LOGFILE} 2>&1 &&
     40(
     41   # for the moment create messagebus group and user to be 65533...
     42   groupadd -g 65533 messagebus
     43   useradd -u 65533 -g messagebus -c "dbus messagebus user" -d /dev/null \
     44           -s /bin/false messagebus
     45   mkdir /var/lib/dbus
     46   make install
     47
     48   cp bus/rc.messagebus /etc/rc.d/init.d/messagebus
     49
     50   sed -i -e 's@status \$processname@statusproc $processname@g' \
     51          -e '/init.d\/functions/s@^#@@g' \
     52          -e '/^processname=/s@^#@@g' \
     53          -e 's@/usr/bin/dbus-daemon --system@loadproc &@g' \
     54          -e 's@killall@killproc@g' \
     55      /etc/rc.d/init.d/messagebus
     56
     57   for runlevel in 3 4 5; do
     58      ln -sf ../init.d/messagebus /etc/rc.d/rc${runlevel}.d/S97messagebus
     59   done
     60
     61   for runlevel in 0 1 2 6; do
     62      ln -sf ../init.d/messagebus /etc/rc.d/rc${runlevel}.d/K03messagebus
     63   done
     64) >> ${LOGFILE} 2>&1 &&
    4665echo " o ALL OK" || barf
    4766
    48 # Need to create a startup script
     67cat <<EOF
     68--------------------------------------------------------
     69  Please edit /etc/rc.d/init.d/messagebus and fix up
     70  the stop function so /var/run/dbus.pid gets removed
     71--------------------------------------------------------
     72EOF
     73
Note: See TracChangeset for help on using the changeset viewer.