libpdel - the Packet Design Embedded Library. Exist in freebsd ports in devel category. Need for packages mpd4x and mpd5x (in freebsd ports in category net). Mpd is a netgraph(4) based implementation of the multi-link PPP protocol for FreeBSD. May be usefull with some internet providers that uses vpn. In attachment archive with ebuilds and patches.
Created attachment 195516 [details] ebuild script and patches.
Created attachment 265809 [details] net-libs/libpdel-0.5.3 for fbsd-8.0
Created attachment 265811 [details, diff] libpdel-0.5.3-fbsd.patch for fbsd-8.0 got from FreeBSD port
Created attachment 265813 [details] net-dialup/mpd-4.4.1 for fbsd-8.0
Created attachment 265815 [details, diff] mpd-4.4.1-fbsd patch for fbsd-8.0 got from FreeBSD port
Yesterday I had success on installing and using mpd4 on g/fbsd-8.0 :)
Created attachment 268421 [details] mpd-5.5.ebuild
Created attachment 268423 [details, diff] mpd-5.5-gentoo.patch
Created attachment 268425 [details] mpd5.init.d
Comment on attachment 268423 [details, diff] mpd-5.5-gentoo.patch >--- conf/Makefile.orig 2008-04-07 17:22:24 +0400 >+++ conf/Makefile 2009-06-21 05:10:20 +0400 >@@ -1,7 +1,7 @@ > # $Id: Makefile.conf,v 1.6 2007/07/29 11:20:20 amotin Exp $ > > PREFIX?= /usr/local >-BINDIR?= /etc/mpd5 >+MPD_CONF_DIR?= ${PREFIX}/etc/mpd5 > > MPD_SAMPLES+= mpd.conf.sample > MPD_SAMPLES+= mpd.links.sample >@@ -13,8 +13,8 @@ > all clean cleandir depend: > > afterinstall: >- [ -d ${DESTDIR}${PREFIX}${BINDIR} ] || mkdir ${DESTDIR}${PREFIX}${BINDIR} >+ [ -d ${DESTDIR}${MPD_CONF_DIR} ] || ${INSTALL} -d ${DESTDIR}${MPD_CONF_DIR} > ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m ${SHAREMODE} ${MPD_SAMPLES} \ >- ${DESTDIR}${PREFIX}${BINDIR} >+ ${DESTDIR}${MPD_CONF_DIR} > > .include <bsd.prog.mk> >diff -urBb mpd-4.4.1-orig/doc/Makefile mpd-4.4.1/doc/Makefile >--- doc/Makefile.orig 2008-04-07 17:22:24 +0400 >+++ doc/Makefile 2009-06-21 05:13:50 +0400 >@@ -19,12 +19,13 @@ > > mpd4.8: mpd4.8.in > sed -e "s,@PREFIX@,${PREFIX},g" < ${.ALLSRC} > ${.TARGET} >+ gzip -c mpd5.8 > mpd5.8.gz > > .if !defined(NOPORTDOCS) > afterinstall: >- [ -d ${DOCDIR} ] || mkdir ${DOCDIR} >+ [ -d ${DESTDIR}${DOCDIR} ] || ${INSTALL} -d ${DESTDIR}${DOCDIR} > ${INSTALL} -c -o ${DOCOWN} -g ${DOCGRP} -m ${DOCMODE} \ >- ${MPD_DOC_FILES} ${DOCDIR} >+ ${MPD_DOC_FILES} ${DESTDIR}${DOCDIR} > .endif > > .include <bsd.prog.mk>