|
Lines 38-48
Link Here
|
| 38 |
|
38 |
|
| 39 |
src_configure() { |
39 |
src_configure() { |
| 40 |
econf \ |
40 |
econf \ |
| 41 |
--with-erlang=/usr/lib/erlang/usr/include \ |
41 |
--with-erlang="${EPREFIX}"/usr/lib/erlang/usr/include \ |
| 42 |
--localstatedir=/var \ |
42 |
--localstatedir="${EPREFIX}"/var \ |
| 43 |
--with-js-lib=/usr/lib |
43 |
--with-js-lib="${EPREFIX}"/usr/lib |
| 44 |
# bug 296609, upstream bug #COUCHDB-621 |
44 |
# bug 296609, upstream bug #COUCHDB-621 |
| 45 |
sed -e "s#localdocdir = /usr/share/doc/couchdb#localdocdir = /usr/share/doc/${PF}#" -i Makefile || die "sed failed" |
45 |
sed -e "s#localdocdir = /usr/share/doc/couchdb#localdocdir = "${EPREFIX}"/usr/share/doc/${PF}#" -i Makefile || die "sed failed" |
| 46 |
} |
46 |
} |
| 47 |
|
47 |
|
| 48 |
src_compile() { |
48 |
src_compile() { |
|
Lines 62-75
Link Here
|
| 62 |
/var/lib/couchdb \ |
62 |
/var/lib/couchdb \ |
| 63 |
/var/log/couchdb |
63 |
/var/log/couchdb |
| 64 |
|
64 |
|
| 65 |
for f in "${D}"/etc/couchdb/*.ini ; do |
65 |
for f in "${ED}"/etc/couchdb/*.ini ; do |
| 66 |
fowners root:couchdb "${f#${D}}" |
66 |
fowners root:couchdb "${f#${ED}}" |
| 67 |
fperms 660 "${f#${D}}" |
67 |
fperms 660 "${f#${ED}}" |
| 68 |
done |
68 |
done |
| 69 |
fperms 664 /etc/couchdb/default.ini |
69 |
fperms 664 /etc/couchdb/default.ini |
| 70 |
|
70 |
|
| 71 |
newinitd "${FILESDIR}/couchdb.init-4" couchdb |
71 |
newinitd "${FILESDIR}/couchdb.init-4" couchdb |
| 72 |
newconfd "${FILESDIR}/couchdb.conf-2" couchdb |
72 |
newconfd "${FILESDIR}/couchdb.conf-2" couchdb |
| 73 |
|
73 |
|
| 74 |
sed -i -e "s:LIBDIR:$(get_libdir):" "${D}/etc/conf.d/couchdb" |
74 |
sed -i -e "s:LIBDIR:$(get_libdir):" "${ED}/etc/conf.d/couchdb" |
| 75 |
} |
75 |
} |