Gentoo Archives: gentoo-dev

From: Pacho Ramos <pacho@g.o>
To: gentoo-dev@l.g.o
Cc: Zac Medico <zmedico@g.o>
Subject: Re: [gentoo-dev] About using a CONFIGURATION (or SETUP) file under /usr/share/doc for configuration information
Date: Tue, 01 Jan 2013 13:40:41
Message-Id: 1357047595.4837.5.camel@belkin4
In Reply to: Re: [gentoo-dev] About using a CONFIGURATION (or SETUP) file under /usr/share/doc for configuration information by Pacho Ramos
1 El mar, 01-01-2013 a las 14:32 +0100, Pacho Ramos escribió:
2 [...]
3 > --- /home/pacho/gentoo-x86/sys-power/acpid/acpid-2.0.17.ebuild
4 > 2012-11-26 09:20:15.000000000 +0100
5 > +++ ./acpid-2.0.17.ebuild 2013-01-01 14:30:18.000000000 +0100
6 > @@ -17,6 +17,11 @@
7 > RDEPEND="selinux? ( sec-policy/selinux-apm )"
8 > DEPEND="${RDEPEND}"
9 >
10 > +CONFIGURATION_INSTRUCTIONS="
11 > + You may wish to read the Gentoo Linux Power Management Guide,
12 > + which can be found online at:
13 > + http://www.gentoo.org/doc/en/power-management-guide.xml"
14 > +
15 > src_configure() {
16 > econf --docdir=/usr/share/doc/${PF}
17 > }
18 > @@ -37,6 +42,9 @@
19 > newconfd "${FILESDIR}"/${PN}-2.0.16-conf.d ${PN}
20 >
21 > systemd_dounit "${FILESDIR}"/systemd/${PN}.{service,socket}
22 > +
23 > + echo ${CONFIGURATION_INSTRUCTIONS} | fmt > CONFIGURATION
24 > + dodoc CONFIGURATION
25 > }
26 >
27 > pkg_postinst() {
28 > @@ -48,6 +56,8 @@
29 > elog
30 > fi
31 >
32 > + echo ${CONFIGURATION_INSTRUCTIONS} | fmt | while read -s ELINE; do
33 > elog "${ELINE}"; done
34 > +
35 > # files/systemd/acpid.socket -> ListenStream=/run/acpid.socket
36 > mkdir -p "${ROOT}"/run
37 >
38 > This could probably be moved to eutils.eclass to use it on this kind of
39 > ebuilds
40
41 Well, "elog" part should be behind:
42 if ! has_version "${CATEGORY}/${PN}"; then
43 echo ${CONFIGURATION_INSTRUCTIONS} | fmt | while read -s ELINE; do elog
44 "${ELINE}"; done
45 fi

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies