systemd-sysv-utils-217.ebuild 872 B

1234567891011121314151617181920212223242526272829303132333435
  1. # Copyright 1999-2014 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. MY_P=systemd-${PV}
  5. DESCRIPTION="sysvinit compatibility symlinks and manpages"
  6. HOMEPAGE="https://www.freedesktop.org/wiki/Software/systemd"
  7. SRC_URI="https://www.freedesktop.org/software/systemd/${MY_P}.tar.xz"
  8. LICENSE="GPL-2"
  9. SLOT="0"
  10. KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sparc ~x86"
  11. IUSE=""
  12. # new enough util-linux to have tools that were provided by sysvinit
  13. # earlier.
  14. RDEPEND="!sys-apps/sysvinit
  15. >=sys-apps/systemd-201
  16. >=sys-apps/util-linux-2.24.1-r2"
  17. S=${WORKDIR}/${MY_P}/man
  18. src_install() {
  19. : ${ROOTPREFIX=/usr}
  20. for app in halt poweroff reboot runlevel shutdown telinit; do
  21. doman ${app}.8
  22. dosym "..${ROOTPREFIX}/bin/systemctl" /sbin/${app}
  23. done
  24. newman init.1 init.8
  25. dosym "..${ROOTPREFIX}/lib/systemd/systemd" /sbin/init
  26. }