1 |
On 04:07 Thu 21 Feb , Rajiv Aaron Manglani (rajiv) wrote: |
2 |
> 1.1 net-misc/asterisk-addons/asterisk-addons-1.2.8.ebuild |
3 |
> |
4 |
> file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/asterisk-addons/asterisk-addons-1.2.8.ebuild?rev=1.1&view=markup |
5 |
> plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/asterisk-addons/asterisk-addons-1.2.8.ebuild?rev=1.1&content-type=text/plain |
6 |
|
7 |
> pkg_setup() { |
8 |
> local n dosleep=0 |
9 |
> einfo "Running pre-flight checks..." |
10 |
> |
11 |
> if use h323 && built_with_use net-misc/asterisk h323; then |
12 |
> echo |
13 |
> ewarn "h323: Emerging ${PN} with the h323 flag enabled will overwrite asterisk's chan_h323.so!" |
14 |
> ewarn "h323: Be sure to upgrade ${ROOT}etc/asterisk/h323.conf afterwards!" |
15 |
> dosleep=1 |
16 |
> fi |
17 |
> |
18 |
> if use sqlite && built_with_use net-misc/asterisk sqlite; then |
19 |
> echo |
20 |
> ewarn "sqlite: Emerging ${PN} with the sqlite flag enabled will overwrite asterisk's res_sqlite.so!" |
21 |
> ewarn "sqlite: Be sure to upgrade ${ROOT}etc/asterisk/res_sqlite.conf afterwards!" |
22 |
> dosleep=1 |
23 |
> fi |
24 |
> |
25 |
> echo |
26 |
> if [[ $dosleep -gt 0 ]]; then |
27 |
> ebeep |
28 |
> n=10 |
29 |
> while [[ $n -gt 0 ]]; do |
30 |
> echo -en " Waiting $n seconds...\r" |
31 |
> sleep 1 |
32 |
> (( n-- )) |
33 |
> done |
34 |
|
35 |
This is what epause() is for, or ebeep() if you really want people to |
36 |
notice. |
37 |
|
38 |
> fi |
39 |
> } |
40 |
> |
41 |
> src_unpack() { |
42 |
> unpack ${A} |
43 |
> cd ${S} |
44 |
> |
45 |
> # |
46 |
> # gentoo patchset |
47 |
> # |
48 |
> epatch ${FILESDIR}/${PN}-1.2.0-gentoo-base.diff |
49 |
> epatch ${FILESDIR}/${PN}-1.2.0-gentoo-res_sqlite3.diff |
50 |
> epatch ${FILESDIR}/${PN}-1.2.2-gentoo-format_mp3.diff |
51 |
> epatch ${FILESDIR}/${PN}-1.2.3-gentoo-ooh323c.diff |
52 |
> |
53 |
> # patch from jaervosz for uclibc |
54 |
> if use elibc_uclibc; then |
55 |
> epatch ${FILESDIR}/${PN}-1.2.2-uclibc.diff |
56 |
> epatch ${FILESDIR}/${PN}-1.2.4-uclibc.diff |
57 |
> fi |
58 |
> # patch sqlite |
59 |
> if use sqlite; then |
60 |
> cd ${WORKDIR}/sqlite-${SQLITE_PV} |
61 |
> |
62 |
> epatch ${FILESDIR}/sqlite-${SQLITE_PV}-data-corruption.patch |
63 |
> epunt_cxx |
64 |
> fi |
65 |
> |
66 |
> # rebuild ooh323c configure |
67 |
> if use h323; then |
68 |
> cd ${S}/asterisk-ooh323c |
69 |
> eautoreconf |
70 |
> fi |
71 |
> } |
72 |
|
73 |
Repoman should be yelling at you about lack of quotes here. Are you on |
74 |
the latest version? |
75 |
|
76 |
> src_install() { |
77 |
> make DESTDIR=${D} install || die "Make install failed" |
78 |
|
79 |
Does emake work? If not, please note why in a comment. Same question for |
80 |
other 'make' calls. |
81 |
|
82 |
> if use h323 || use mysql; then |
83 |
> einfo "Fixing permissions" |
84 |
> chown -R root:asterisk ${D}etc/asterisk |
85 |
> chmod -R u=rwX,g=rX,o= ${D}etc/asterisk |
86 |
> fi |
87 |
|
88 |
You could change these to fperms/fowners while you're fixing. |
89 |
|
90 |
Thanks, |
91 |
Donnie |
92 |
-- |
93 |
gentoo-dev@l.g.o mailing list |