diff options
| author | Andreas Müller <schnitzeltony@googlemail.com> | 2013-01-24 23:37:36 +0100 |
|---|---|---|
| committer | Martin Jansa <Martin.Jansa@gmail.com> | 2013-02-01 17:44:21 +0100 |
| commit | 52bb450cc8c98626228ebd8f1f73bfa98afe97d7 (patch) | |
| tree | 74edbf803cc23e9eccca210ceef983616fef4d4c /meta-systemd/recipes-core/systemd/systemd_git.bb | |
| parent | d6d009b2625d6bcc7152d700fce2fdfecd3e0bd7 (diff) | |
| download | meta-openembedded-52bb450cc8c98626228ebd8f1f73bfa98afe97d7.tar.gz | |
systemd: remove core recipes - they migrated to oe-core
oe-core moved to systemd 197 so no package feeds should break
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-systemd/recipes-core/systemd/systemd_git.bb')
| -rw-r--r-- | meta-systemd/recipes-core/systemd/systemd_git.bb | 263 |
1 files changed, 0 insertions, 263 deletions
diff --git a/meta-systemd/recipes-core/systemd/systemd_git.bb b/meta-systemd/recipes-core/systemd/systemd_git.bb deleted file mode 100644 index f2e168e9ba..0000000000 --- a/meta-systemd/recipes-core/systemd/systemd_git.bb +++ /dev/null | |||
| @@ -1,263 +0,0 @@ | |||
| 1 | DESCRIPTION = "Systemd a init replacement" | ||
| 2 | HOMEPAGE = "http://www.freedesktop.org/wiki/Software/systemd" | ||
| 3 | |||
| 4 | LICENSE = "GPLv2 & LGPLv2.1 & MIT" | ||
| 5 | LIC_FILES_CHKSUM = "file://LICENSE.GPL2;md5=751419260aa954499f7abaabaa882bbe \ | ||
| 6 | file://LICENSE.LGPL2.1;md5=f0df8fd67dfa1db3cc0bd431837f0b89 \ | ||
| 7 | file://LICENSE.MIT;md5=544799d0b492f119fa04641d1b8868ed" | ||
| 8 | |||
| 9 | PROVIDES = "udev" | ||
| 10 | |||
| 11 | DEPENDS = "xz kmod docbook-sgml-dtd-4.1-native intltool-native gperf-native acl readline dbus libcap libcgroup tcp-wrappers usbutils glib-2.0 libgcrypt python" | ||
| 12 | DEPENDS += "${@base_contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)}" | ||
| 13 | |||
| 14 | SERIAL_CONSOLE ?= "115200 /dev/ttyS0" | ||
| 15 | |||
| 16 | SECTION = "base/shell" | ||
| 17 | |||
| 18 | inherit gitpkgv | ||
| 19 | PKGV = "v${GITPKGVTAG}" | ||
| 20 | |||
| 21 | PV = "git" | ||
| 22 | PR = "r13" | ||
| 23 | |||
| 24 | # need to export these variables for python-config to work | ||
| 25 | export BUILD_SYS | ||
| 26 | export HOST_SYS | ||
| 27 | export STAGING_INCDIR | ||
| 28 | export STAGING_LIBDIR | ||
| 29 | |||
| 30 | inherit useradd pkgconfig autotools perlnative pythonnative python-dir | ||
| 31 | |||
| 32 | SRCREV = "decd634e801bee2c554edb35383cc9d43417a850" | ||
| 33 | SRC_URI = "git://anongit.freedesktop.org/systemd/systemd;protocol=git \ | ||
| 34 | file://0001-Revert-systemd-analyze-use-argparse-instead-of-getop.patch \ | ||
| 35 | file://0002-Revert-analyze-use-GDBus-instead-of-dbus-python.patch \ | ||
| 36 | file://gtk-doc.make \ | ||
| 37 | file://touchscreen.rules \ | ||
| 38 | file://modprobe.rules \ | ||
| 39 | file://var-run.conf \ | ||
| 40 | ${UCLIBCPATCHES} \ | ||
| 41 | " | ||
| 42 | UCLIBCPATCHES = "" | ||
| 43 | UCLIBCPATCHES_libc-uclibc = "file://systemd-pam-configure-check-uclibc.patch \ | ||
| 44 | file://systemd-pam-fix-execvpe.patch \ | ||
| 45 | file://systemd-pam-fix-fallocate.patch \ | ||
| 46 | file://systemd-pam-fix-getty-unit.patch \ | ||
| 47 | file://systemd-pam-fix-mkostemp.patch \ | ||
| 48 | file://systemd-pam-fix-msformat.patch \ | ||
| 49 | file://optional_secure_getenv.patch \ | ||
| 50 | " | ||
| 51 | LDFLAGS_libc-uclibc_append = " -lrt" | ||
| 52 | |||
| 53 | S = "${WORKDIR}/git" | ||
| 54 | |||
| 55 | SYSTEMDDISTRO ?= "debian" | ||
| 56 | SYSTEMDDISTRO_angstrom = "angstrom" | ||
| 57 | |||
| 58 | CACHED_CONFIGUREVARS = "ac_cv_file__usr_share_pci_ids=no \ | ||
| 59 | ac_cv_file__usr_share_hwdata_pci_ids=no \ | ||
| 60 | ac_cv_file__usr_share_misc_pci_ids=yes" | ||
| 61 | # The gtk+ tools should get built as a separate recipe e.g. systemd-tools | ||
| 62 | EXTRA_OECONF = " --with-distro=${SYSTEMDDISTRO} \ | ||
| 63 | --with-rootprefix=${base_prefix} \ | ||
| 64 | --with-rootlibdir=${base_libdir} \ | ||
| 65 | --sbindir=${base_sbindir} \ | ||
| 66 | --libexecdir=${base_libdir} \ | ||
| 67 | ${@base_contains('DISTRO_FEATURES', 'pam', '--enable-pam', '--disable-pam', d)} \ | ||
| 68 | --enable-xz \ | ||
| 69 | --disable-manpages \ | ||
| 70 | --disable-coredump \ | ||
| 71 | --disable-introspection \ | ||
| 72 | --with-pci-ids-path=/usr/share/misc \ | ||
| 73 | --disable-gtk-doc-html \ | ||
| 74 | --disable-tcpwrap \ | ||
| 75 | --enable-split-usr \ | ||
| 76 | --disable-microhttpd \ | ||
| 77 | --with-python \ | ||
| 78 | " | ||
| 79 | |||
| 80 | # There's no docbook-xsl-native, so for the xsltproc check to false | ||
| 81 | do_configure_prepend() { | ||
| 82 | export CPP="${HOST_PREFIX}cpp ${TOOLCHAIN_OPTIONS} ${HOST_CC_ARCH}" | ||
| 83 | sed -i /xsltproc/d configure.ac | ||
| 84 | |||
| 85 | cp ${WORKDIR}/gtk-doc.make ${S}/docs/ | ||
| 86 | |||
| 87 | # we only have /home/root, not /root | ||
| 88 | sed -i -e 's:=/root:=/home/root:g' units/*.service* | ||
| 89 | } | ||
| 90 | |||
| 91 | do_install() { | ||
| 92 | autotools_do_install | ||
| 93 | install -d ${D}${base_sbindir} | ||
| 94 | # provided by a seperate recipe | ||
| 95 | rm ${D}${systemd_unitdir}/system/serial-getty* -f | ||
| 96 | |||
| 97 | # provide support for initramfs | ||
| 98 | ln -s ${systemd_unitdir}/systemd ${D}/init | ||
| 99 | |||
| 100 | # create dir for journal | ||
| 101 | install -d ${D}${localstatedir}/log/journal | ||
| 102 | # udevd is needed in initramfs which was provided by udev in OE-Core | ||
| 103 | # so we need to provide that otherwise it pulls in both systemd and | ||
| 104 | # udev | ||
| 105 | ln -s ${systemd_unitdir}/systemd-udevd ${D}${base_sbindir}/udevd | ||
| 106 | # create machine-id | ||
| 107 | # 20:12 < mezcalero> koen: you have three options: a) run systemd-machine-id-setup at install time, b) have / read-only and an empty file there (for stateless) and c) boot with / writable | ||
| 108 | touch ${D}${sysconfdir}/machine-id | ||
| 109 | |||
| 110 | install -m 0644 ${WORKDIR}/*.rules ${D}${sysconfdir}/udev/rules.d/ | ||
| 111 | |||
| 112 | install -m 0644 ${WORKDIR}/var-run.conf ${D}${sysconfdir}/tmpfiles.d/ | ||
| 113 | } | ||
| 114 | |||
| 115 | python populate_packages_prepend (){ | ||
| 116 | systemdlibdir = d.getVar("base_libdir", True) | ||
| 117 | do_split_packages(d, systemdlibdir, '^lib(.*)\.so\.*', 'lib%s', 'Systemd %s library', extra_depends='', allow_links=True) | ||
| 118 | } | ||
| 119 | PACKAGES_DYNAMIC += "^lib(udev|gudev|systemd).*" | ||
| 120 | |||
| 121 | PACKAGES =+ "${PN}-gui ${PN}-vconsole-setup ${PN}-initramfs ${PN}-analyze python-${PN}-journal" | ||
| 122 | |||
| 123 | USERADD_PACKAGES = "${PN}" | ||
| 124 | GROUPADD_PARAM_${PN} = "-r lock" | ||
| 125 | |||
| 126 | FILES_${PN}-analyze = "${bindir}/systemd-analyze" | ||
| 127 | RDEPENDS_${PN}-analyze = "python-dbus python-argparse python-textutils" | ||
| 128 | RRECOMMENDS_${PN}-analyze = "python-pycairo" | ||
| 129 | |||
| 130 | FILES_python-${PN}-journal = "${PYTHON_SITEPACKAGES_DIR}/systemd/*.py* ${PYTHON_SITEPACKAGES_DIR}/systemd/*.so" | ||
| 131 | RDEPENDS_python-${PN}-journal = "python-core" | ||
| 132 | |||
| 133 | FILES_${PN}-initramfs = "/init" | ||
| 134 | RDEPENDS_${PN}-initramfs = "${PN}" | ||
| 135 | |||
| 136 | FILES_${PN}-gui = "${bindir}/systemadm" | ||
| 137 | |||
| 138 | FILES_${PN}-vconsole-setup = "${systemd_unitdir}/systemd-vconsole-setup \ | ||
| 139 | ${systemd_unitdir}/system/systemd-vconsole-setup.service \ | ||
| 140 | ${systemd_unitdir}/system/sysinit.target.wants/systemd-vconsole-setup.service" | ||
| 141 | |||
| 142 | RRECOMMENDS_${PN}-vconsole-setup = "kbd kbd-consolefonts" | ||
| 143 | |||
| 144 | CONFFILES_${PN} = "${sysconfdir}/systemd/journald.conf \ | ||
| 145 | ${sysconfdir}/systemd/logind.conf \ | ||
| 146 | ${sysconfdir}/systemd/system.conf \ | ||
| 147 | ${sysconfdir}/systemd/user.conf" | ||
| 148 | |||
| 149 | FILES_${PN} = " ${base_bindir}/* \ | ||
| 150 | ${datadir}/dbus-1/services \ | ||
| 151 | ${datadir}/dbus-1/system-services \ | ||
| 152 | ${datadir}/polkit-1 \ | ||
| 153 | ${datadir}/${PN} \ | ||
| 154 | ${sysconfdir}/bash_completion.d/ \ | ||
| 155 | ${sysconfdir}/binfmt.d/ \ | ||
| 156 | ${sysconfdir}/dbus-1/ \ | ||
| 157 | ${sysconfdir}/machine-id \ | ||
| 158 | ${sysconfdir}/modules-load.d/ \ | ||
| 159 | ${sysconfdir}/sysctl.d/ \ | ||
| 160 | ${sysconfdir}/systemd/ \ | ||
| 161 | ${sysconfdir}/tmpfiles.d/ \ | ||
| 162 | ${sysconfdir}/xdg/ \ | ||
| 163 | ${sysconfdir}/init.d/README \ | ||
| 164 | ${systemd_unitdir}/* \ | ||
| 165 | ${systemd_unitdir}/system/* \ | ||
| 166 | /lib/udev/rules.d/99-systemd.rules \ | ||
| 167 | ${base_libdir}/security/*.so \ | ||
| 168 | /cgroup \ | ||
| 169 | ${bindir}/systemd* \ | ||
| 170 | ${bindir}/localectl \ | ||
| 171 | ${bindir}/hostnamectl \ | ||
| 172 | ${bindir}/timedatectl \ | ||
| 173 | ${exec_prefix}/lib/tmpfiles.d/*.conf \ | ||
| 174 | ${exec_prefix}/lib/systemd \ | ||
| 175 | ${exec_prefix}/lib/binfmt.d \ | ||
| 176 | ${exec_prefix}/lib/modules-load.d \ | ||
| 177 | ${exec_prefix}/lib/sysctl.d \ | ||
| 178 | ${localstatedir} \ | ||
| 179 | ${libexecdir} \ | ||
| 180 | /lib/udev/rules.d/70-uaccess.rules \ | ||
| 181 | /lib/udev/rules.d/71-seat.rules \ | ||
| 182 | /lib/udev/rules.d/73-seat-late.rules \ | ||
| 183 | /lib/udev/rules.d/99-systemd.rules \ | ||
| 184 | " | ||
| 185 | FILES_${PN}-dbg += "${systemd_unitdir}/.debug ${systemd_unitdir}/*/.debug ${base_libdir}/security/.debug/ ${PYTHON_SITEPACKAGES_DIR}/systemd/.debug/" | ||
| 186 | FILES_${PN}-dev += "${base_libdir}/security/*.la ${datadir}/dbus-1/interfaces/ ${sysconfdir}/rpm/macros.systemd ${PYTHON_SITEPACKAGES_DIR}/systemd/*.la" | ||
| 187 | |||
| 188 | RDEPENDS_${PN} += "udev-systemd" | ||
| 189 | |||
| 190 | # kbd -> loadkeys,setfont | ||
| 191 | # systemd calls 'modprobe -sab --', which busybox doesn't support due to lack | ||
| 192 | # of blacklist support, so use proper modprobe from module-init-tools | ||
| 193 | # And pull in the kernel modules mentioned in INSTALL | ||
| 194 | # swapon -p is also not supported by busybox | ||
| 195 | # busybox mount is broken | ||
| 196 | RRECOMMENDS_${PN} += "systemd-serialgetty \ | ||
| 197 | util-linux-agetty \ | ||
| 198 | util-linux-swaponoff \ | ||
| 199 | util-linux-fsck e2fsprogs-e2fsck \ | ||
| 200 | module-init-tools \ | ||
| 201 | util-linux-mount util-linux-umount \ | ||
| 202 | kernel-module-autofs4 kernel-module-unix kernel-module-ipv6 \ | ||
| 203 | " | ||
| 204 | |||
| 205 | PACKAGES =+ "udev-dbg udev udev-consolekit udev-utils udev-systemd" | ||
| 206 | |||
| 207 | FILES_udev-dbg += "/lib/udev/.debug" | ||
| 208 | |||
| 209 | RDEPENDS_udev += "udev-utils" | ||
| 210 | RPROVIDES_udev = "hotplug" | ||
| 211 | |||
| 212 | FILES_udev += "${base_sbindir}/udevd \ | ||
| 213 | /lib/udev/udevd \ | ||
| 214 | /lib/systemd/systemd-udevd \ | ||
| 215 | /lib/udev/accelerometer \ | ||
| 216 | /lib/udev/ata_id \ | ||
| 217 | /lib/udev/cdrom_id \ | ||
| 218 | /lib/udev/collect \ | ||
| 219 | /lib/udev/findkeyboards \ | ||
| 220 | /lib/udev/keyboard-force-release.sh \ | ||
| 221 | /lib/udev/keymap \ | ||
| 222 | /lib/udev/mtd_probe \ | ||
| 223 | /lib/udev/scsi_id \ | ||
| 224 | /lib/udev/v4l_id \ | ||
| 225 | /lib/udev/keymaps \ | ||
| 226 | /lib/udev/rules.d/4*.rules \ | ||
| 227 | /lib/udev/rules.d/5*.rules \ | ||
| 228 | /lib/udev/rules.d/6*.rules \ | ||
| 229 | /lib/udev/rules.d/70-power-switch.rules \ | ||
| 230 | /lib/udev/rules.d/75*.rules \ | ||
| 231 | /lib/udev/rules.d/78*.rules \ | ||
| 232 | /lib/udev/rules.d/8*.rules \ | ||
| 233 | /lib/udev/rules.d/95*.rules \ | ||
| 234 | /lib/udev/hwdb.d \ | ||
| 235 | ${sysconfdir}/udev \ | ||
| 236 | " | ||
| 237 | |||
| 238 | FILES_udev-consolekit += "/lib/ConsoleKit" | ||
| 239 | RDEPENDS_udev-consolekit += "${@base_contains('DISTRO_FEATURES', 'x11', 'consolekit', '', d)}" | ||
| 240 | |||
| 241 | FILES_udev-utils = "${bindir}/udevadm" | ||
| 242 | |||
| 243 | FILES_udev-systemd = "${systemd_unitdir}/system/*udev* ${systemd_unitdir}/system/*.wants/*udev*" | ||
| 244 | RDEPENDS_udev-systemd = "udev" | ||
| 245 | |||
| 246 | # TODO: | ||
| 247 | # u-a for runlevel and telinit | ||
| 248 | |||
| 249 | pkg_postinst_systemd () { | ||
| 250 | update-alternatives --install ${base_sbindir}/init init ${systemd_unitdir}/systemd 300 | ||
| 251 | update-alternatives --install ${base_sbindir}/halt halt ${base_bindir}/systemctl 300 | ||
| 252 | update-alternatives --install ${base_sbindir}/reboot reboot ${base_bindir}/systemctl 300 | ||
| 253 | update-alternatives --install ${base_sbindir}/shutdown shutdown ${base_bindir}/systemctl 300 | ||
| 254 | update-alternatives --install ${base_sbindir}/poweroff poweroff ${base_bindir}/systemctl 300 | ||
| 255 | } | ||
| 256 | |||
| 257 | pkg_prerm_systemd () { | ||
| 258 | update-alternatives --remove init ${systemd_unitdir}/systemd | ||
| 259 | update-alternatives --remove halt ${base_bindir}/systemctl | ||
| 260 | update-alternatives --remove reboot ${base_bindir}/systemctl | ||
| 261 | update-alternatives --remove shutdown ${base_bindir}/systemctl | ||
| 262 | update-alternatives --remove poweroff ${base_bindir}/systemctl | ||
| 263 | } | ||
