/[gentoo-x86]/net-misc/nstx/nstx-1.1_beta6-r3.ebuild
Gentoo

Contents of /net-misc/nstx/nstx-1.1_beta6-r3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (hide annotations) (download)
Mon Mar 10 10:59:21 2014 UTC (6 years ago) by ssuominen
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +3 -5 lines
Punt virtual/libc dependency.

(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 4868F14D)

1 ssuominen 1.5 # Copyright 1999-2014 Gentoo Foundation
2 robbat2 1.1 # Distributed under the terms of the GNU General Public License v2
3 ssuominen 1.5 # $Header: /var/cvsroot/gentoo-x86/net-misc/nstx/nstx-1.1_beta6-r3.ebuild,v 1.4 2010/07/07 09:21:44 hwoarang Exp $
4 robbat2 1.1
5     inherit versionator toolchain-funcs eutils linux-info
6    
7     MY_PV=$(replace_version_separator 2 - "${PV}")
8     MY_P="${PN}-${MY_PV}"
9     DEBIAN_PV="5"
10     DEBIAN_A="${PN}_${MY_PV}-${DEBIAN_PV}.diff.gz"
11    
12     DESCRIPTION="IP over DNS tunnel"
13     SRC_URI="http://dereference.de/nstx/${MY_P}.tgz
14     mirror://debian/pool/main/${PN:0:1}/${PN}/${DEBIAN_A}"
15     HOMEPAGE="http://dereference.de/nstx/"
16 ssuominen 1.5 DEPEND="virtual/os-headers"
17 hwoarang 1.4 KEYWORDS="amd64 x86"
18 robbat2 1.1 IUSE=""
19     LICENSE="GPL-2"
20     SLOT="0"
21     S="${WORKDIR}/${MY_P}"
22    
23     CONFIG_CHECK="~TUN"
24    
25     src_unpack() {
26     unpack "${MY_P}.tgz"
27 xarthisius 1.3 epatch "${DISTDIR}"/${DEBIAN_A} \
28     "${FILESDIR}"/${PN}-1.1_beta6_00-linux-tuntap.patch \
29     "${FILESDIR}"/${PN}-1.1_beta6_01-bind-interface-name.patch \
30     "${FILESDIR}"/${PN}-1.1_beta6_02-warn-on-frag.patch \
31     "${FILESDIR}"/${PN}-1.1_beta6_03-delete-dwrite.patch \
32     "${FILESDIR}"/${PN}-1.1_beta6_04-delete-werror.patch \
33     "${FILESDIR}"/${PN}-1.1_beta6_05-respect-ldflags.patch
34 robbat2 1.1 }
35    
36     src_compile() {
37     emake CC="$(tc-getCC)" || die
38     }
39    
40     src_install() {
41     into /usr
42 xarthisius 1.3 dosbin nstxcd nstxd || die
43     dodoc README Changelog || die
44     doman *.8 || die
45 robbat2 1.1
46     newinitd "${FILESDIR}"/nstxd.init nstxd
47     newconfd "${FILESDIR}"/nstxd.conf nstxd
48     newinitd "${FILESDIR}"/nstxcd.init nstxcd
49     newconfd "${FILESDIR}"/nstxcd.conf nstxcd
50     }
51    
52     pkg_postinst() {
53     einfo "Please read the documentation provided in"
54     einfo " `find /usr/share/doc/${PF}/ -name 'README*'`"
55     }

  ViewVC Help
Powered by ViewVC 1.1.20