ppp: fix installation.

--HG--
extra : convert_revision : 8be6556e898e89eeadc86bca190acfb77fa94e77
This commit is contained in:
Juan RP 2010-04-24 17:34:43 +02:00
parent 1836bdc7c7
commit bc87f59791

View file

@ -44,8 +44,18 @@ pre_configure()
sed -i "s:^#CBCP=y:CBCP=y:" ${wrksrc}/pppd/Makefile.linux
}
pre_install()
{
for f in $(find ${wrksrc} -type f -name Makefile); do
sed -i -e "s|\$(INSTALL) -s|\$(INSTALL|g" ${f} || return 1
done
}
post_install()
{
chmod 755 ${DESTDIR}/usr/lib/pppd/${version}/*.so
install -m755 ${wrksrc}/pppd/pppd ${DESTDIR}/usr/sbin
install -D -m644 ${FILESDIR}/options \
${DESTDIR}/etc/ppp/options || return 1
install -D -m755 ${FILESDIR}/ip-up \