# # tinc-1.0.4.ebuild # # Custom ebuild for Tinc VPN software # to keep it up-to-date with the latest version from the author # # Paul Littlefield # # Changelog: # 2006-03-06 17:04:24 / initial version # # Newbie instructions (to test your file before the usual 'emerge' command)! # -------------------------------------------------------------------------- # 1. Add the following line to your /etc/make.conf file # PORTDIR_OVERLAY="/usr/local/portage" # 2. Create the directory for the new ebuild file # $ mkdir -p /usr/local/portage/net-misc/tinc # 3. Download this file to the directory above # $ wget http://www.littlefield.info/linux/tinc-1.0.4.ebuild # 4. Run the following commands to perform step-by-step installation # $ ebuild /usr/local/portage/net-misc/tinc/tinc-1.0.4.ebuild digest # $ ebuild /usr/local/portage/net-misc/tinc/tinc-1.0.4.ebuild unpack # $ ebuild /usr/local/portage/net-misc/tinc/tinc-1.0.4.ebuild compile # $ ebuild /usr/local/portage/net-misc/tinc/tinc-1.0.4.ebuild install # $ ebuild /usr/local/portage/net-misc/tinc/tinc-1.0.4.ebuild qmerge # $ ebuild /usr/local/portage/net-misc/tinc/tinc-1.0.4.ebuild postinst # $ ebuild /usr/local/portage/net-misc/tinc/tinc-1.0.4.ebuild clean # 5. Check the package has successfully installed # $ emerge -s tinc # 6. Restart the Tinc daemon script # $ /etc/init.d/tincd restart # 7. Check the system log # $ tail /var/log/syslog # 8. From now on, just keep your overlay files up to date and after a sync # you can update the software using the following command instead # $ emerge -av net-misc/tinc # DESCRIPTION="tinc is an easy to configure VPN implementation" HOMEPAGE="http://tinc.nl.linux.org/" SRC_URI="http://tinc.nl.linux.org/packages/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~arm ~sparc ~x86 ~ppc" IUSE="" DEPEND=">=dev-libs/openssl-0.9.7c virtual/linux-sources >=dev-libs/lzo-1.08 >=sys-libs/zlib-1.1.4-r2" src_compile() { econf --enable-jumbograms || die emake || die } src_install() { make DESTDIR=${D} install || die dodoc AUTHORS INSTALL NEWS README THANKS TODO exeinto /etc/init.d ; newexe ${FILESDIR}/tincd tincd } pkg_postinst() { einfo "This package requires the tun/tap kernel device." einfo "Look at http://tinc.nl.linux.org/ for how to configure tinc" }