Lines 102-108
Link Here
|
102 |
sed -i \ |
102 |
sed -i \ |
103 |
-e "s:LDFLAGS = :LDFLAGS = -L../lib :g" \ |
103 |
-e "s:LDFLAGS = :LDFLAGS = -L../lib :g" \ |
104 |
*/Makefile || die "sed failed" |
104 |
*/Makefile || die "sed failed" |
105 |
emake || die "emake failed" |
105 |
emake -j1 || die "emake failed" |
106 |
fi |
106 |
fi |
107 |
} |
107 |
} |
108 |
|
108 |
|
Lines 111-124
Link Here
|
111 |
newinitd "${FILESDIR}"/${PN}.init ${PN} |
111 |
newinitd "${FILESDIR}"/${PN}.init ${PN} |
112 |
newconfd "${FILESDIR}"/${PN}.conf ${PN} |
112 |
newconfd "${FILESDIR}"/${PN}.conf ${PN} |
113 |
if ! use bindist; then |
113 |
if ! use bindist; then |
114 |
cp "${S}"/ca-bundle.crt "${D}"/var/lib/${PN} |
114 |
cp "${S}"/curl/ca-bundle.crt "${D}"/var/lib/${PN} |
115 |
make install DESTDIR="${D}" || die "make install failed" |
115 |
make install DESTDIR="${D}" || die "make install failed" |
116 |
# icon |
116 |
# icon |
117 |
newicon "${S}"/sea/${PN}mgr.48x48.png ${PN}.png |
117 |
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 |
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 |
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 |
120 |
#echo "cd \"/var/lib/${PN}\" && exec /usr/bin/${PN}mgr \$@" > "${D}"/usr/bin/${PN}_gui |
121 |
chmod 755 "${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() { |