public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in net-misc/gogoc: gogoc-1.2-r1.ebuild ChangeLog gogoc-1.2.ebuild
@ 2010-10-11 23:00 Diego Petteno (flameeyes)
  0 siblings, 0 replies; only message in thread
From: Diego Petteno (flameeyes) @ 2010-10-11 23:00 UTC (permalink / raw
  To: gentoo-commits

flameeyes    10/10/11 23:00:39

  Modified:             ChangeLog
  Added:                gogoc-1.2-r1.ebuild
  Removed:              gogoc-1.2.ebuild
  Log:
  Polish around some of the problems found while trying to run this in production.
  
  (Portage version: 2.2_rc92/cvs/Linux x86_64)

Revision  Changes    Path
1.2                  net-misc/gogoc/ChangeLog

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/gogoc/ChangeLog?rev=1.2&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/gogoc/ChangeLog?rev=1.2&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/gogoc/ChangeLog?r1=1.1&r2=1.2

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/net-misc/gogoc/ChangeLog,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ChangeLog	11 Oct 2010 21:34:24 -0000	1.1
+++ ChangeLog	11 Oct 2010 23:00:38 -0000	1.2
@@ -1,6 +1,13 @@
 # ChangeLog for net-misc/gogoc
 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/gogoc/ChangeLog,v 1.1 2010/10/11 21:34:24 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/gogoc/ChangeLog,v 1.2 2010/10/11 23:00:38 flameeyes Exp $
+
+*gogoc-1.2-r1 (11 Oct 2010)
+
+  11 Oct 2010; Diego E. Pettenò <flameeyes@gentoo.org> -gogoc-1.2.ebuild,
+  +gogoc-1.2-r1.ebuild, files/gogoc.rc:
+  Polish around some of the problems found while trying to run this in
+  production.
 
 *gogoc-1.2 (11 Oct 2010)
 



1.1                  net-misc/gogoc/gogoc-1.2-r1.ebuild

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/gogoc/gogoc-1.2-r1.ebuild?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/gogoc/gogoc-1.2-r1.ebuild?rev=1.1&content-type=text/plain

Index: gogoc-1.2-r1.ebuild
===================================================================
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/gogoc/gogoc-1.2-r1.ebuild,v 1.1 2010/10/11 23:00:38 flameeyes Exp $

EAPI=2

inherit eutils versionator toolchain-funcs

MY_P=${PN}-$(replace_all_version_separators "_")
if [[ ${MY_P/_beta/} != ${MY_P} ]]; then
	MY_P=${MY_P/_beta/-BETA}
else
	MY_P=${MY_P}-RELEASE
fi

DESCRIPTION="Client to connect to a tunnel broker using the TSP protocol (freenet6 for example)"
HOMEPAGE="http://gogonet.gogo6.com/page/download-1"
SRC_URI="http://gogo6.com/downloads/${MY_P}.tar.gz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE="debug"

DEPEND="dev-libs/openssl"
RDEPEND="${DEPEND}
	sys-apps/iproute2"

S="${WORKDIR}/${MY_P}"

src_prepare() {
	epatch "${FILESDIR}"/${P}-overflow.patch

	# Make the makefile handle linking correctly
	find . -name Makefile -exec sed -i \
		-e 's:LDFLAGS:LDLIBS:g' \
		-e '/\$(LDLIBS)/s:-o:$(LDFLAGS) -o:' \
		{} + || die "multised failed"

	sed -i -e 's:/usr/local/etc/gogoc:/etc/gogoc:' \
		gogoc-tsp/platform/*/tsp_local.c \
		|| die "sed failed"
}

src_configure() { :; }

src_compile() {
	# parallel make fails as inter-directory dependecies are missing.
	emake -j1 \
		AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" \
		CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getCXX)" \
		EXTRA_CFLAGS="${CFLAGS}" EXTRA_CXXFLAGS="${CXXFLAGS}" \
		$(use debug && echo DEBUG=1) \
		all target=linux || die "Build Failed"

	emake -C gogoc-tsp/conf \
		PLATFORM=linux PLATFORM_DIR=../platform BIN_DIR=../bin \
		gogoc.conf.sample || die
}

src_install() {
	cd "${S}"/gogoc-tsp
	dosbin bin/gogoc || die

	dodoc bin/gogoc.conf.sample || die

	exeinto /etc/gogoc/template
	doexe template/linux.sh || die

	newinitd "${FILESDIR}"/gogoc.rc gogoc || die

	doman man/{man5/gogoc.conf.5,man8/gogoc.8} || die
	keepdir /var/lib/gogoc || die

	diropts -m0700
	keepdir /etc/gogoc || die
}

pkg_postinst() {
	elog "You should create an /etc/gogoc/gogoc.conf file starting from"
	elog "the sample configuration in /usr/share/doc/${PF}/gogo.conf.sample.*"
	elog ""
	elog "To add support for a TSP IPv6 connection at startup,"
	elog "remember to run:"
	elog "# rc-update add gogoc default"
}






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-10-11 23:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-11 23:00 [gentoo-commits] gentoo-x86 commit in net-misc/gogoc: gogoc-1.2-r1.ebuild ChangeLog gogoc-1.2.ebuild Diego Petteno (flameeyes)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox