diff options
author | Andrew Ross <aross@gentoo.org> | 2007-10-12 23:02:57 +0000 |
---|---|---|
committer | Andrew Ross <aross@gentoo.org> | 2007-10-12 23:02:57 +0000 |
commit | 333a7cd13d47d2dce6e4767ca574d45b0538d1f0 (patch) | |
tree | db5be90a7df4858577da4e34317a8505ada8a675 | |
parent | Remove old Xen-related ebuilds. (diff) | |
download | aross-333a7cd13d47d2dce6e4767ca574d45b0538d1f0.tar.gz aross-333a7cd13d47d2dce6e4767ca574d45b0538d1f0.tar.bz2 aross-333a7cd13d47d2dce6e4767ca574d45b0538d1f0.zip |
Initial commit of ebuild for l2tpns v2.1.21
svn path=/; revision=53
-rw-r--r-- | net-dialup/l2tpns/Manifest | 16 | ||||
-rw-r--r-- | net-dialup/l2tpns/files/digest-l2tpns-2.1.21 | 3 | ||||
-rw-r--r-- | net-dialup/l2tpns/files/l2tpns-trust-localhost.patch | 54 | ||||
-rw-r--r-- | net-dialup/l2tpns/l2tpns-2.1.21.ebuild | 45 | ||||
-rw-r--r-- | net-dialup/l2tpns/metadata.xml | 12 |
5 files changed, 130 insertions, 0 deletions
diff --git a/net-dialup/l2tpns/Manifest b/net-dialup/l2tpns/Manifest new file mode 100644 index 0000000..1a80934 --- /dev/null +++ b/net-dialup/l2tpns/Manifest @@ -0,0 +1,16 @@ +AUX l2tpns-trust-localhost.patch 1918 RMD160 ec7318eda45cc77a8fd995ba92231479da37d329 SHA1 0880f1d739d43a33d8de7173347daf602f29f3b8 SHA256 1aa5f196c3269d56bdd5be05c2a152d15d786001a71a73fbe58d07fec8df9b58 +MD5 fbf39d54e4681dd72808cf5735a83fc0 files/l2tpns-trust-localhost.patch 1918 +RMD160 ec7318eda45cc77a8fd995ba92231479da37d329 files/l2tpns-trust-localhost.patch 1918 +SHA256 1aa5f196c3269d56bdd5be05c2a152d15d786001a71a73fbe58d07fec8df9b58 files/l2tpns-trust-localhost.patch 1918 +DIST l2tpns-2.1.21.tar.gz 180802 RMD160 8c060345e02c0e5604fef0d3cc2327637ad94123 SHA1 4b4a0f8cbd820fca9dd3448bc0f873596e031943 SHA256 0f8cde15181429e580691e994941492307efca0affe26bf7b4db7ab9477106de +EBUILD l2tpns-2.1.21.ebuild 967 RMD160 06a43fe267d36492082744a2f0ac1f2c2d46ac30 SHA1 1749ba9d2001e4d23a68b19935e704e39741369c SHA256 24cf08f7bf3f9dcceca7caed2ea4af1e7b3fcc705e0e77969be69bc7b9f596ea +MD5 b9f363b4247c4bb6baf3554fc3f0f3cb l2tpns-2.1.21.ebuild 967 +RMD160 06a43fe267d36492082744a2f0ac1f2c2d46ac30 l2tpns-2.1.21.ebuild 967 +SHA256 24cf08f7bf3f9dcceca7caed2ea4af1e7b3fcc705e0e77969be69bc7b9f596ea l2tpns-2.1.21.ebuild 967 +MISC metadata.xml 285 RMD160 46ce88e9982547a3f97f428a8e1af1926cbe7cf8 SHA1 c313b8ed2fce7bfeedef78fc5f1031af273a97c3 SHA256 1ae5f306e2e0889080c8cc7e2aa5198df7413a33f46e6f4b288a8e4a0e50caa9 +MD5 c65ee45954d0cfd9522cd02c777af48a metadata.xml 285 +RMD160 46ce88e9982547a3f97f428a8e1af1926cbe7cf8 metadata.xml 285 +SHA256 1ae5f306e2e0889080c8cc7e2aa5198df7413a33f46e6f4b288a8e4a0e50caa9 metadata.xml 285 +MD5 c06b2cb8a279cab4317da1074aa47556 files/digest-l2tpns-2.1.21 241 +RMD160 ac3fb26a84827926fdeca8cce6e75a56741d690d files/digest-l2tpns-2.1.21 241 +SHA256 d2d7b58d32df7695dc258cd6a6030c0ae5cab84caa73cbbb0acc9c8a2c28dbf9 files/digest-l2tpns-2.1.21 241 diff --git a/net-dialup/l2tpns/files/digest-l2tpns-2.1.21 b/net-dialup/l2tpns/files/digest-l2tpns-2.1.21 new file mode 100644 index 0000000..be9eb28 --- /dev/null +++ b/net-dialup/l2tpns/files/digest-l2tpns-2.1.21 @@ -0,0 +1,3 @@ +MD5 385c58055723ebc6c38062acd2db9c2c l2tpns-2.1.21.tar.gz 180802 +RMD160 8c060345e02c0e5604fef0d3cc2327637ad94123 l2tpns-2.1.21.tar.gz 180802 +SHA256 0f8cde15181429e580691e994941492307efca0affe26bf7b4db7ab9477106de l2tpns-2.1.21.tar.gz 180802 diff --git a/net-dialup/l2tpns/files/l2tpns-trust-localhost.patch b/net-dialup/l2tpns/files/l2tpns-trust-localhost.patch new file mode 100644 index 0000000..fa45cdc --- /dev/null +++ b/net-dialup/l2tpns/files/l2tpns-trust-localhost.patch @@ -0,0 +1,54 @@ +--- l2tpns.h 2006-07-23 19:13:36.000000000 +1000 ++++ l2tpns.h 2006-07-23 19:13:40.000000000 +1000 +@@ -562,6 +562,8 @@ + + int allow_duplicate_users; // allow multiple logins with the same username + ++ int cli_trust_localhost; // allow localhost to connect to telnet CLI without authenticating ++ + in_addr_t default_dns1, default_dns2; + + unsigned long rl_rate; // default throttle rate +--- l2tpns.c 2006-07-23 19:14:13.000000000 +1000 ++++ l2tpns.c 2006-07-23 19:15:15.000000000 +1000 +@@ -127,6 +127,7 @@ + CONFIG("radius_authtypes", radius_authtypes_s, STRING), + CONFIG("radius_dae_port", radius_dae_port, SHORT), + CONFIG("allow_duplicate_users", allow_duplicate_users, BOOL), ++ CONFIG("cli_trust_localhost", cli_trust_localhost, BOOL), + CONFIG("bind_address", bind_address, IPv4), + CONFIG("peer_address", peer_address, IPv4), + CONFIG("send_garp", send_garp, BOOL), +--- etc/startup-config.default 2006-07-23 19:29:12.000000000 +1000 ++++ etc/startup-config.default 2006-07-23 19:29:44.000000000 +1000 +@@ -41,6 +41,9 @@ + # Allow multiple logins for the same username + #set allow_duplicate_users no + ++# Allow localhost to access the telnet CLI without authenticating ++#set cli_trust_localhost yes ++ + # Write usage accounting files into specified directory + set accounting_dir "/var/run/l2tpns/acct" + +--- cli.c 2006-07-23 23:00:27.000000000 +1000 ++++ cli.c 2006-07-24 10:41:35.000000000 +1000 +@@ -295,7 +295,17 @@ + if (fork_and_close()) return; + if (getpeername(sockfd, (struct sockaddr *) &addr, &l) == 0) + { +- require_auth = addr.sin_addr.s_addr != inet_addr("127.0.0.1"); ++ if (addr.sin_addr.s_addr == inet_addr("127.0.0.1")) ++ { ++ if (config->cli_trust_localhost) ++ { ++ require_auth = 0; ++ } ++ else ++ { ++ LOG(3, 0, 0, "Treating localhost as remote\n"); ++ } ++ } + LOG(require_auth ? 3 : 4, 0, 0, "Accepted connection to CLI from %s\n", + fmtaddr(addr.sin_addr.s_addr, 0)); + } diff --git a/net-dialup/l2tpns/l2tpns-2.1.21.ebuild b/net-dialup/l2tpns/l2tpns-2.1.21.ebuild new file mode 100644 index 0000000..08f4737 --- /dev/null +++ b/net-dialup/l2tpns/l2tpns-2.1.21.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit linux-info eutils multilib toolchain-funcs + +DESCRIPTION="Layer 2 tunneling protocol network server (LNS)" +HOMEPAGE="http://sourceforge.net/projects/l2tpns" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND=">=dev-libs/libcli-1.8.5" +RDEPEND="${DEPEND}" + +src_unpack() { + unpack ${A} + + pushd "${S}" + epatch "${FILESDIR}/${PN}-trust-localhost.patch" + + sed -i \ + -e '/^#include <libcli.h>$/ a #include <linux/types.h>' \ + "${S}"/l2tpns.c || die "sed on l2tpns.c failed" +} + +src_compile() { + emake \ + OPTIM="${CFLAGS}" \ + LDFLAGS="${LDFLAGS}" \ + CC="$(tc-getCC)" \ + LD="$(tc-getCC)" \ + libdir="/usr/$(get_libdir)/${PN}" \ + || die "emake failed" +} + +src_install() { + emake install \ + DESTDIR="${D}" \ + libdir="/usr/$(get_libdir)/${PN}" \ + || die "emake install failed" +} diff --git a/net-dialup/l2tpns/metadata.xml b/net-dialup/l2tpns/metadata.xml new file mode 100644 index 0000000..d36422a --- /dev/null +++ b/net-dialup/l2tpns/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd></herd> +<maintainer> +<email>aross@gentoo.org</email> +<name>Andrew Ross</name> +</maintainer> +<longdescription lang="en"> +</longdescription> +</pkgmetadata> + |