/[gentoo-x86]/net-misc/br2684ctl/br2684ctl-20040226.ebuild
Gentoo

Contents of /net-misc/br2684ctl/br2684ctl-20040226.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Sat Jul 21 14:01:16 2012 UTC (7 years, 4 months ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +1 -1 lines
FILE REMOVED
Remove package

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/br2684ctl/br2684ctl-20040226.ebuild,v 1.10 2009/04/10 22:48:22 mrness Exp $
4
5 inherit eutils toolchain-funcs linux-info
6
7 DEBIANPKG_TARBALL="${PN}_${PV}.orig.tar.gz"
8 DEBIANPKG_PATCH="${PN}_${PV}-1.diff.gz"
9 DEBIANPKG_BASE="mirror://debian/pool/main/${PN:0:1}/${PN}"
10
11 DESCRIPTION="Utility for configuring RFC 2684 ATM/Ethernet bridging"
12 HOMEPAGE="http://packages.debian.org/stable/net/br2684ctl"
13 SRC_URI="${DEBIANPKG_BASE}/${DEBIANPKG_TARBALL}
14 ${DEBIANPKG_BASE}/${DEBIANPKG_PATCH}"
15
16 LICENSE="GPL-2"
17 SLOT="0"
18 KEYWORDS="amd64 ~ppc x86"
19 IUSE=""
20
21 RDEPEND="=net-dialup/linux-atm-2.4.1*"
22 DEPEND="virtual/os-headers
23 ${RDEPEND}"
24
25 S=${WORKDIR}/${P}.orig
26
27 src_unpack() {
28 unpack ${DEBIANPKG_TARBALL}
29 cd "${S}"
30 EPATCH_OPTS="-p1" epatch "${DISTDIR}/${DEBIANPKG_PATCH}"
31 }
32
33 src_compile() {
34 local MY_CC=$(tc-getCC)
35 echo ${MY_CC} ${CFLAGS} -latm ${PN}.c -o ${PN}
36 ${MY_CC} ${CFLAGS} -latm ${PN}.c -o ${PN} || die "Failed to compile!"
37 }
38
39 src_install() {
40 doman ${PN}.8
41 into /
42 dosbin ${PN}
43 # there really is no better documentation than the sourcecode :-)
44 dodoc ${PN}.c
45 }
46
47 pkg_postinst() {
48 if get_version ; then
49 echo
50 ewarn "If any of the following kernel configuration options is missing,"
51 ewarn "you should reconfigure and rebuild your kernel before running br2684ctl."
52 CONFIG_CHECK="~ATM_BR2684"
53 check_extra_config
54 echo
55 fi
56
57 einfo "br2684ctl can be use to setup Ethernet bridge interface of"
58 einfo "some ADSL USB modem devices"
59 einfo "Ethernet interface name are nas0 (,nas1,nas2 ...) not eth0"
60 einfo "You can use >=sys-apps/baselayout-1.10, where it can be start with"
61 einfo "preup script to run br2684ctl and setup bridge before start"
62 einfo "PPPoE, dhcp or configure interface using /etc/init.d/net.nas0"
63 einfo "and /etc/conf/net"
64 einfo ""
65 einfo "Example:"
66 einfo "preup() {"
67 einfo " if [ \"\${IFACE}\"=\"nas0\" ]; then"
68 einfo " einfo \"Setting up RFC2684 ATM Brigde for \${IFACE}\""
69 einfo " /sbin/br2684ctl -a 0.100 -b 1 || return 1"
70 einfo " return 0"
71 einfo " fi"
72 einfo "}"
73 einfo ""
74 einfo "Using >=sys-apps/baselayout-1.11.6 strongly recommended."
75 einfo "Note: Replace 0.100 with your VPI.VCI of your provider"
76 einfo " see br2684ctl(8) for more information"
77 }

  ViewVC Help
Powered by ViewVC 1.1.20