El mar, 01-01-2013 a las 14:32 +0100, Pacho Ramos escribió: [...] > --- /home/pacho/gentoo-x86/sys-power/acpid/acpid-2.0.17.ebuild > 2012-11-26 09:20:15.000000000 +0100 > +++ ./acpid-2.0.17.ebuild 2013-01-01 14:30:18.000000000 +0100 > @@ -17,6 +17,11 @@ > RDEPEND="selinux? ( sec-policy/selinux-apm )" > DEPEND="${RDEPEND}" > > +CONFIGURATION_INSTRUCTIONS=" > + You may wish to read the Gentoo Linux Power Management Guide, > + which can be found online at: > + http://www.gentoo.org/doc/en/power-management-guide.xml" > + > src_configure() { > econf --docdir=/usr/share/doc/${PF} > } > @@ -37,6 +42,9 @@ > newconfd "${FILESDIR}"/${PN}-2.0.16-conf.d ${PN} > > systemd_dounit "${FILESDIR}"/systemd/${PN}.{service,socket} > + > + echo ${CONFIGURATION_INSTRUCTIONS} | fmt > CONFIGURATION > + dodoc CONFIGURATION > } > > pkg_postinst() { > @@ -48,6 +56,8 @@ > elog > fi > > + echo ${CONFIGURATION_INSTRUCTIONS} | fmt | while read -s ELINE; do > elog "${ELINE}"; done > + > # files/systemd/acpid.socket -> ListenStream=/run/acpid.socket > mkdir -p "${ROOT}"/run > > This could probably be moved to eutils.eclass to use it on this kind of > ebuilds
Well, "elog" part should be behind: if ! has_version "${CATEGORY}/${PN}"; then echo ${CONFIGURATION_INSTRUCTIONS} | fmt | while read -s ELINE; do elog "${ELINE}"; done fi
signature.asc
Description: This is a digitally signed message part