From b3ccc5ff878630ff95f8b0dcce1b3b7e9fbcfdd7 Mon Sep 17 00:00:00 2001 From: Anton Bolshakov Date: Mon, 7 Oct 2013 15:36:37 +0000 Subject: [PATCH] f5vpn-login: new live ebuild --- net-misc/f5vpn-login/Manifest | 2 ++ net-misc/f5vpn-login/f5vpn-login-9999.ebuild | 27 +++++++++++++++++++ .../files/f5vpn-login-makefile.patch | 25 +++++++++++++++++ 3 files changed, 54 insertions(+) create mode 100644 net-misc/f5vpn-login/Manifest create mode 100644 net-misc/f5vpn-login/f5vpn-login-9999.ebuild create mode 100644 net-misc/f5vpn-login/files/f5vpn-login-makefile.patch diff --git a/net-misc/f5vpn-login/Manifest b/net-misc/f5vpn-login/Manifest new file mode 100644 index 000000000..4e125df5e --- /dev/null +++ b/net-misc/f5vpn-login/Manifest @@ -0,0 +1,2 @@ +AUX f5vpn-login-makefile.patch 845 SHA256 d72926b708cca4c80efcaf6e00f978f0dfd01d4bc2821daf5c0530405f5da011 SHA512 4a6dcce7ef2dc3c0f1e5aa0eca9a8a9623ad11f3eb3468d2c5cc109ed9d0b1d2e96b384a4f7bc810b99b2e9abca9f14acfb6d5d29d898be8149063b97111fc6c WHIRLPOOL e9dc9c2d6b04b646a3cc77a95803726e5dc446b5b5536ad5acc1e3d95efd70404b19c107ec67b9c210294826c8f3897936c41dacea28091f7d4574b37e039e2d +EBUILD f5vpn-login-9999.ebuild 543 SHA256 4955830bca769d321def03802c0bfd9398324305be39650c4cd18c2a5f1f598b SHA512 4b340a26df66ef7e9c52a568292c54736dcb6771cb92c4e64da52fdb1deeab8c2cf278a1b75552e7ddb3367e6c67f9be7a38c676660a1483d647fd15a9943042 WHIRLPOOL 5b269a982911b4cf6b1b633d909636cdab47d155f87b96d1f3f18c20251dfdfc87805b5347d39a23c0b7d5a776b1c7ea51d8a21dc7706abc1f5faecad4defa80 diff --git a/net-misc/f5vpn-login/f5vpn-login-9999.ebuild b/net-misc/f5vpn-login/f5vpn-login-9999.ebuild new file mode 100644 index 000000000..ea1af61c5 --- /dev/null +++ b/net-misc/f5vpn-login/f5vpn-login-9999.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: blshkv $ + +EAPI=5 + +PYTHON_COMPAT=( python2_{6,7} ) +inherit git-2 eutils python-r1 + +DESCRIPTION="F5 VPN Command-line client" +HOMEPAGE="https://github.com/hackedd/f5vpn-login" +EGIT_REPO_URI="https://github.com/hackedd/f5vpn-login.git" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND="" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/"${PN}"-makefile.patch +} + +src_install() { + emake DESTDIR="${D}" install +} diff --git a/net-misc/f5vpn-login/files/f5vpn-login-makefile.patch b/net-misc/f5vpn-login/files/f5vpn-login-makefile.patch new file mode 100644 index 000000000..6dce30379 --- /dev/null +++ b/net-misc/f5vpn-login/files/f5vpn-login-makefile.patch @@ -0,0 +1,25 @@ +--- Makefile.orig 2013-10-07 14:30:02.000000000 +0800 ++++ Makefile 2013-10-07 15:01:05.524739958 +0800 +@@ -3,13 +3,17 @@ + PYTHON ?= /usr/bin/python + PREFIX ?= /usr + ++all: build ++ + build: +- gcc -DPYTHON=\"$(PYTHON)\" -DPREFIX=\"$(PREFIX)\" -o f5vpn-login-runner f5vpn-login-runner.c ++ gcc $(CFLAGS) $(LDFLAGS) -DPYTHON=\"$(PYTHON)\" -DPREFIX=\"$(PREFIX)\" -o f5vpn-login-runner f5vpn-login-runner.c + +-install: build +- cp f5vpn-login.py $(PREFIX)/sbin/f5vpn-login.py +- cp f5vpn-login-runner $(PREFIX)/bin/f5vpn-login +- chmod u+s $(PREFIX)/bin/f5vpn-login ++install: ++ mkdir -p $(DESTDIR)/$(PREFIX)/sbin/ ++ cp f5vpn-login.py $(DESTDIR)/$(PREFIX)/sbin/f5vpn-login.py ++ mkdir -p $(DESTDIR)/$(PREFIX)/bin/ ++ cp f5vpn-login-runner $(DESTDIR)/$(PREFIX)/bin/f5vpn-login ++ chmod u+s $(DESTDIR)/$(PREFIX)/bin/f5vpn-login + + clean: + rm f5vpn-login-runner