Lines 38-43
Link Here
|
38 |
>=sys-devel/automake-1.8 |
38 |
>=sys-devel/automake-1.8 |
39 |
>=dev-util/pkgconfig-0.15 |
39 |
>=dev-util/pkgconfig-0.15 |
40 |
>=sys-devel/m4-1.4 |
40 |
>=sys-devel/m4-1.4 |
|
|
41 |
app-misc/ca-certificates |
41 |
) |
42 |
) |
42 |
X? ( x11-libs/libXmu |
43 |
X? ( x11-libs/libXmu |
43 |
x11-libs/libXt |
44 |
x11-libs/libXt |
Lines 72-77
Link Here
|
72 |
# do autoreconf |
73 |
# do autoreconf |
73 |
rm "${S}"/m4/libtool.m4 |
74 |
rm "${S}"/m4/libtool.m4 |
74 |
AT_M4DIR="m4" eautoreconf |
75 |
AT_M4DIR="m4" eautoreconf |
|
|
76 |
|
77 |
mkdir "${S}"/curl |
78 |
ln -s /etc/ssl/certs/ca-certificates.crt "${S}"/curl/ca-bundle.crt |
75 |
else |
79 |
else |
76 |
use server && elog "Server feature is working only for source build, please disable bindist if you really intend to use server." |
80 |
use server && elog "Server feature is working only for source build, please disable bindist if you really intend to use server." |
77 |
use x86 && target="i686" || target="x86_64" |
81 |
use x86 && target="i686" || target="x86_64" |
Lines 102-124
Link Here
|
102 |
sed -i \ |
106 |
sed -i \ |
103 |
-e "s:LDFLAGS = :LDFLAGS = -L../lib :g" \ |
107 |
-e "s:LDFLAGS = :LDFLAGS = -L../lib :g" \ |
104 |
*/Makefile || die "sed failed" |
108 |
*/Makefile || die "sed failed" |
105 |
emake || die "emake failed" |
109 |
emake -j1 || die "emake failed" |
106 |
fi |
110 |
fi |
107 |
} |
111 |
} |
108 |
|
112 |
|
109 |
src_install() { |
113 |
src_install() { |
110 |
mkdir -p "${D}"/var/lib/${PN}/ |
114 |
dodir /var/lib/${PN} |
111 |
newinitd "${FILESDIR}"/${PN}.init ${PN} |
115 |
newinitd "${FILESDIR}"/${PN}.init ${PN} |
112 |
newconfd "${FILESDIR}"/${PN}.conf ${PN} |
116 |
newconfd "${FILESDIR}"/${PN}.conf ${PN} |
113 |
if ! use bindist; then |
117 |
if ! use bindist; then |
114 |
cp "${S}"/ca-bundle.crt "${D}"/var/lib/${PN} |
118 |
dosym /etc/ssl/certs/ca-certificates.crt /var/lib/${PN}/ca-bundle.crt |
115 |
make install DESTDIR="${D}" || die "make install failed" |
119 |
make install DESTDIR="${D}" || die "make install failed" |
116 |
# icon |
120 |
# icon |
117 |
newicon "${S}"/sea/${PN}mgr.48x48.png ${PN}.png |
121 |
newicon "${S}"/sea/${PN}mgr.48x48.png ${PN}.png |
118 |
# wrapper to allow gui to load gui_rpc_auth.cfg because ${PN} devs assume curdir to be datadir for ${PN}_gui |
|
|
119 |
mv "${D}"/usr/bin/${PN}_gui "${D}"/usr/bin/${PN}mgr |
120 |
echo "cd \"/var/lib/${PN}\" && exec /usr/bin/${PN}mgr \$@" > "${D}"/usr/bin/${PN}_gui |
121 |
chmod 755 "${D}"/usr/bin/${PN}_gui |
122 |
# desktop |
122 |
# desktop |
123 |
if use X; then |
123 |
if use X; then |
124 |
make_desktop_entry ${PN}_gui ${PN} ${PN} "Education;Science" /var/lib/${PN} |
124 |
make_desktop_entry ${PN}_gui ${PN} ${PN} "Education;Science" /var/lib/${PN} |
Lines 173-179
Link Here
|
173 |
cd "${S}" |
173 |
cd "${S}" |
174 |
fi |
174 |
fi |
175 |
fowners ${PN}:${PN} /var/lib/${PN}/ca-bundle.crt |
175 |
fowners ${PN}:${PN} /var/lib/${PN}/ca-bundle.crt |
176 |
chown ${PN}:${PN} "${D}"/var/lib/${PN} |
176 |
fowners ${PN}:${PN} /var/lib/${PN}/ |
177 |
} |
177 |
} |
178 |
|
178 |
|
179 |
pkg_preinst() { |
179 |
pkg_preinst() { |