Gentoo Archives: gentoo-dev

From: Donnie Berkholz <dberkholz@g.o>
To: gentoo-dev@l.g.o, nelchael@g.o
Subject: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in www-servers/resin: ChangeLog resin-3.0.25.ebuild resin-3.1.4.ebuild
Date: Sun, 16 Dec 2007 07:06:30
Message-Id: 20071216070337.GT31432@supernova
1 On 09:42 Fri 14 Dec , Krzysiek Pawlik (nelchael) wrote:
2 > 1.1 www-servers/resin/resin-3.1.4.ebuild
3 >
4 > file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/resin/resin-3.1.4.ebuild?rev=1.1&view=markup
5 > plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-servers/resin/resin-3.1.4.ebuild?rev=1.1&content-type=text/plain
6
7 > src_unpack() {
8 >
9 > unpack ${A}
10 > for i in "${WORKDIR}"/${PV}/resin-${PV}-*; do
11 > epatch "${i}"
12 > done;
13
14 How about:
15
16 epatch "${WORKDIR}"/${PV}/resin-${PV}-*
17
18 > java-ant_bsfix_one "${S}/build.xml"
19 >
20 > sed -i -e 's/256m/384m/' "${S}/build.xml"
21 >
22 > }
23
24 > src_compile() {
25 >
26 > append-flags -fPIC -DPIC
27
28 Somehow it seems wrong to append this for a whole package...
29
30 > chmod 755 "${S}/configure"
31
32 fperms means you don't need S or quotes.
33
34 > src_install() {
35 >
36 > make DESTDIR="${D}" install || die
37
38 Does emake work? If not, please add a comment to that effect.
39
40 > einfo "Fixing permissions..."
41 > chown -R resin:resin "${D}${RESIN_HOME}"
42 > chown -R resin:resin "${D}/etc/resin"
43 > chown -R resin:resin "${D}/var/log/resin"
44 > chown -R resin:resin "${D}/var/lib/resin"
45 > chown -R resin:resin "${D}/var/run/resin"
46 >
47 > chmod 644 "${D}/etc/conf.d/resin"
48 > chmod 755 "${D}/etc/init.d/resin"
49 > chmod 750 "${D}/var/lib/resin"
50 > chmod 750 "${D}/var/run/resin"
51 > chmod 750 "${D}/etc/resin"
52
53 Again, fowners/fperms can make this a bit easier to read.
54
55 Thanks,
56 Donnie
57 --
58 gentoo-dev@g.o mailing list

Replies