minit-0.10.ebuild 951 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # Copyright 1999-2012 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. inherit eutils
  4. DESCRIPTION="a small yet feature-complete init"
  5. HOMEPAGE="http://www.fefe.de/minit/"
  6. SRC_URI="http://dl.fefe.de/${P}.tar.bz2"
  7. LICENSE="GPL-2"
  8. SLOT="0"
  9. KEYWORDS="~x86"
  10. IUSE=""
  11. DEPEND=">=dev-libs/libowfat-0.28-r1
  12. dev-libs/dietlibc"
  13. RDEPEND="${DEPEND}"
  14. src_unpack() {
  15. unpack ${A}
  16. epatch "${FILESDIR}"/minit-0.10-fixes.diff
  17. }
  18. src_compile() {
  19. emake CFLAGS="${CFLAGS} -I/usr/include/libowfat" \
  20. LDFLAGS="${LDFLAGS}" DIET="diet" CC="$(tc-getCC)" || die
  21. }
  22. src_install() {
  23. emake install-files DESTDIR="${D}" || die
  24. mv "${D}"/sbin/shutdown "${D}"/sbin/minit-shutdown || die
  25. mv "${D}"/sbin/killall5 "${D}"/sbin/minit-killall5 || die
  26. rm "${D}"/sbin/init || die
  27. dodoc CHANGES README TODO
  28. }
  29. pkg_postinst() {
  30. [ -e /etc/minit/in ] || mkfifo "${ROOT}"/etc/minit/in
  31. [ -e /etc/minit/out ] || mkfifo "${ROOT}"/etc/minit/out
  32. }