From bc87f5979159b4702dad591ca6947e179c2e8517 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 24 Apr 2010 17:34:43 +0200 Subject: [PATCH] ppp: fix installation. --HG-- extra : convert_revision : 8be6556e898e89eeadc86bca190acfb77fa94e77 --- srcpkgs/ppp/template | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/srcpkgs/ppp/template b/srcpkgs/ppp/template index bd8bfb24b6..e3d51053b8 100644 --- a/srcpkgs/ppp/template +++ b/srcpkgs/ppp/template @@ -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 \