#! /bin/bash # D-Bus # Source: https://dbus.freedesktop.org/releases/dbus/dbus-1.14.10.tar.xz # # DEPS # Required: NONE # Recommended: Xorg Libraries and elogind (build first without) # Optional: PyGobject,valgrind, Doxygen, mito, DuckType, Yelp Tools # LTO: Tested with LLVM # If optimizing: # LTO not recommended export CFLAGS="-march=native -mtune=native -pipe " export CFLAGS+="-fno-lto -fstack-protector-strong -fzero-call-used-regs=used " ./configure --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --docdir=/usr/share/doc/dbus-1.14.10 \ --disable-selinux \ --enable-inotify \ --with-dbus-user=messagebus \ --disable-static \ --disable-tests \ --enable-epoll \ --disable-asserts \ --disable-systemd \ --with-system-socket=/run/dbus/system_bus_socket \ --disable-doxygen-docs \ --with-system-pid-file=/run/dbus/pid \ --with-console-auth-dir=/run/console \ --disable-user-session $BUILDTRUPLE --enable-x11-autolaunch --with-x && read -p "Compile? " && make -j2 && read -p "Press Enter to install" && sudo -S make DESTDIR=${BUILD} install && sudo -S mkdir -pv /BMAN/install sudo -S mkdir -pv /BMAN/usr/share sudo -S mv $BUILD/usr/share/doc /BMAN/usr/share/ read -p "Press Enter to create pakage description." && cd $BUILD && sudo mkdir -v install && cat > /tmp/slack-desc << "EOF" # HOW TO EDIT THIS FILE: # The "handy ruler" below makes it easier to edit a package description. Line # up the first '|' above the ':' following the base package name, and the '|' # on the right side marks the last column you can put a character in. You must # make exactly 11 lines for the formatting to be correct. It's also # customary to leave one space after the ':'. |-----handy-ruler------------------------------------------------------| dbus: dbus (D-Bus message bus system) dbus: dbus: D-Bus supplies both a system daemon (for events such as "new hardware dbus: device added" or "printer queue changed") and a per user login dbus: session daemon (for general IPC needs among user applications). dbus: Also, the message bus is built on top of a general one-to-one message dbus: passing framework, which can be used by any two apps to communicate dbus: directly (without going through the message bus daemon). dbus: dbus: dbus: EOF sudo -S mv /tmp/slack-desc install/ && sudo -S ln -sv /var/lib/dbus/machine-id etc && read -p "Enter to build and install package" && sudo -S makepkg -l y -c n $PKGS/dbus-1.14.10-$PSUFFIX && cp -v install/doinst.sh /tmp/ cat >> /tmp/doinst.sh << "EOF" echo "Fixing permissions for launcher..." chown -v root:messagebus /usr/libexec/dbus-daemon-launch-helper && chmod -v 4750 /usr/libexec/dbus-daemon-launch-helper echo "Creating machine ID..." && dbus-uuidgen --ensure EOF sudo mv -v /tmp/doinst.sh install/doinst.sh && sudo -S makepkg -l y -c n $PKGS/dbus-1.14.10-$PSUFFIX && cd /BMAN cat > /tmp/slack-desc << "EOF" dbus-doc: Manuals for dbus (D-Bus message bus system) dbus-doc: dbus-doc: D-Bus supplies both a system daemon (for events such as "new hardware dbus-doc: device added" or "printer queue changed") and a per user login dbus-doc: session daemon (for general IPC needs among user applications). dbus-doc: Also, the message bus is built on top of a general one-to-one message dbus-doc: passing framework, which can be used by any two apps to communicate dbus-doc: directly (without going through the message bus daemon). dbus-doc: EOF sudo -S mv /tmp/slack-desc install/ sudo -S makepkg -l y -c n $PKGS/dbus-doc-1.14.10-$NOPSUFFIX sudo rm -rf $BUILD/* sudo rm -rf /BMAN/*