# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="3" inherit git-2 eutils systemd DESCRIPTION="Scripts to support compressed swap devices or ramdisks with zram" HOMEPAGE="https://github.com/mystilleef/FedoraZram" EGIT_REPO_URI="git://github.com/mystilleef/FedoraZram" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" S="${WORKDIR}/${P}" EGIT_SOURCEDIR="${WORKDIR}" src_prepare() { rm "${WORKDIR}"/{Makefile,zram.spec,README.md} } src_install() { dodir /etc/sysconfig/ insinto /etc/sysconfig/ doins zram insinto /usr/sbin dosbin zramstart dosbin zramstat dosbin zramstop systemd_dounit zram.service } pkg_postinst() { elog elog "For detailed configuring go read to http://wiki.gentoo.org/wiki/Zram" elog elog "To use zram, activate it in your kernel and add it to autostart:" elog "systemctl enable zram" }