diff options
author | Mike Gilbert <floppym@gentoo.org> | 2013-07-29 00:01:43 +0000 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2013-07-29 00:01:43 +0000 |
commit | 7f1162f768236369f2bf3a016dc437e0feb7962a (patch) | |
tree | eb2c8f00ec31e086348437dcd0f8205da553640d /net-dialup/xl2tpd/xl2tpd-1.3.1-r3.ebuild | |
parent | Fix dependence on php, bug #478186 (diff) | |
download | gentoo-2-7f1162f768236369f2bf3a016dc437e0feb7962a.tar.gz gentoo-2-7f1162f768236369f2bf3a016dc437e0feb7962a.tar.bz2 gentoo-2-7f1162f768236369f2bf3a016dc437e0feb7962a.zip |
Install systemd unit, bug 477800 by nE0sIghT.
(Portage version: 2.2.0_alpha190/cvs/Linux x86_64, signed Manifest commit with key 0BBEEA1FEA4843A4)
Diffstat (limited to 'net-dialup/xl2tpd/xl2tpd-1.3.1-r3.ebuild')
-rw-r--r-- | net-dialup/xl2tpd/xl2tpd-1.3.1-r3.ebuild | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/net-dialup/xl2tpd/xl2tpd-1.3.1-r3.ebuild b/net-dialup/xl2tpd/xl2tpd-1.3.1-r3.ebuild new file mode 100644 index 000000000000..fd718ba4106e --- /dev/null +++ b/net-dialup/xl2tpd/xl2tpd-1.3.1-r3.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-dialup/xl2tpd/xl2tpd-1.3.1-r3.ebuild,v 1.1 2013/07/29 00:01:43 floppym Exp $ + +EAPI="5" + +inherit eutils systemd toolchain-funcs vcs-snapshot + +DESCRIPTION="A modern version of the Layer 2 Tunneling Protocol (L2TP) daemon" +HOMEPAGE="http://www.xelerance.com/services/software/xl2tpd/" +SRC_URI="https://github.com/xelerance/${PN}/tarball/v${PV} -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="dnsretry +kernel" + +DEPEND="net-libs/libpcap" +RDEPEND="${DEPEND} + net-dialup/ppp" +DEPEND+=" kernel? ( >=sys-kernel/linux-headers-2.6.23 )" + +src_prepare() { + epatch "${FILESDIR}/${PN}-1.3.0-LDFLAGS.patch" + epatch "${FILESDIR}/${PN}-1.3.1-CFLAGS.patch" + epatch "${FILESDIR}/${PN}-1.3.1-no-type-punning-b119c0da.patch" + epatch "${FILESDIR}/${PN}-1.3.1-kernelmode.patch" + sed -i Makefile -e 's| -O2||g' || die "sed Makefile" + # The below patch is questionable. Why wasn't it submitted upstream? If it + # ever breaks, it will just be removed. -darkside 20120914 + use dnsretry && epatch "${FILESDIR}/${PN}-dnsretry.patch" + # Remove bundled headers + rm -r linux || die +} + +src_compile() { + tc-export CC + export OSFLAGS="-DLINUX" + use kernel && OSFLAGS+=" -DUSE_KERNEL" + emake +} + +src_install() { + emake PREFIX=/usr DESTDIR="${D}" install + dodoc CREDITS README.xl2tpd BUGS CHANGES TODO doc/README.patents doc/rfc2661.txt + insinto /etc/xl2tpd + newins doc/l2tpd.conf.sample l2tpd.conf + newins doc/l2tp-secrets.sample l2tp-secrets + fperms 0600 /etc/xl2tpd/l2tp-secrets + newinitd "${FILESDIR}"/xl2tpd-init-r1 xl2tpd + systemd_dounit "${FILESDIR}"/xl2tpd.service + systemd_dotmpfilesd "${FILESDIR}"/xl2tpd.conf +} |