Created attachment 390806 [details] peervpn-0.041.ebuild This is an ebuild for PeerVPN, which is a peer to peer VPN daemon. It builds an encrypted layer 2 VPN using a shared secret, and creates a TAP device for tunneling. Upstream homepage is at http://www.peervpn.net. The ebuild creates a new folder /etc/peervpn/, which is supposed to store the config files. It is set to mode 700, as the config files contain secret keys and should therefore not be visible to everyone on a system.
Comment on attachment 390806 [details] peervpn-0.041.ebuild >EAPI=4 Why not 5? >DESCRIPTION="An open source peer-to-peer VPN daemon" >SRC_URI="http://www.peervpn.net/files/peervpn-0-041.tar.gz" If you could mangle the ebuild version appropriately (perhaps 0_p041?) then you could do: SRC_URI="http://www.peervpn.net/files/${MY_P}.tar.gz" >RDEPEND=" > sys-apps/iproute2 >" >DEPEND=" > dev-libs/openssl I suspect openssl is a run-time dependency too, so: DEPEND="dev-libs/openssl" RDEPEND=" ${DEPEND} sys-apps/iproute2 "
(In reply to Jeroen Roovers from comment #1) > Comment on attachment 390806 [details] > peervpn-0.041.ebuild > If you could mangle the ebuild version appropriately (perhaps 0_p041?) then > you could do: > > SRC_URI="http://www.peervpn.net/files/${MY_P}.tar.gz" SRC_URI="http://www.peervpn.net/files/${P/./-}.tar.gz"
Created attachment 390852 [details] peervpn-0.041.ebuild
Thanks for the feedback. I updated the ebuild according to the suggestions.
Are there any remaining issues with the ebuild that I should fix?
Created attachment 396576 [details] peervpn-0.042
Created attachment 396578 [details] metadata for peervpn ebuild
Created attachment 396580 [details] peervpn-0.042.confd
Created attachment 396582 [details] peervpn-0.042.initd
1. Version bump. 2. Added init script,its config, and metadata. 3. Added check for TUN/TAP driver. 4. Removed hardcoded CFLAGS. 5. Create system user peervpn during install. Tested on amd64 and x86.
Created attachment 428970 [details] peervpn-0.044.ebuild bump to 0.044
Created attachment 428972 [details] metadata.xml
Created attachment 428974 [details] peervpn.initd
It looks like zmedico added this to the tree back in April, but wasn't aware of this bug: commit 5634d7bf2f68d21408eb0007035291c509cd89f2 Author: Zac Medico <zmedico@gentoo.org> Date: Mon Apr 11 03:41:43 2016 -0700 net-misc/peervpn: new package Package-Manager: portage-2.2.28