Since l2tpd is somewhat outdated, so Xelerance Corporation has re-packaged l2tpd into new distribution toolkit : http://www.xelerance.com/software/xl2tpd/ "Our version contains many patches that have not yet been integrated into the mainstream release. These patches are needed to run on modern distributions with DEVFS, or to support L2TP over IPsec, when used in conjunction with Openswan."
Created attachment 87258 [details] ebuild Initial ebuild, based on net-dialup/l2tpd
Created attachment 87260 [details] init.d file init.d file
Created attachment 87363 [details, diff] Patch for init.d script This small patch correct init.d file about configuration files location (/etc/xl2tp)
Commited to the tree, but with several modifications: - the configuration directory is /etc/l2tpd (this is the default) - xl2tpd is blocked by net-dialup/l2tpd and vice-versa (both daemons have the same name and path) - net-dialup/ppp has been added to RDEPEND - no /etc/l2tpd/l2tpd.conf gets installed by default (that sample file isn't suited to be the default l2tpd.conf file). Instead, I've changed init script to check the existence of that file. - l2tp-secrets file is installed with mode 0600. Those modifications were also applied to net-dialup/l2tpd.