aboutsummaryrefslogtreecommitdiffstats
path: root/net/pppoa/Makefile
blob: dc54b32b4f141f165f93e0b0f637479ed557409d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# New ports collection makefile for:    speedtouch
# Date created:         August 30 2001
# Whom:                 Brian Somers <brian@freebsd-services.com>
#
# $FreeBSD$
#

PORTNAME=       pppoa
PORTVERSION=        1.3.1
PORTEPOCH=      2
CATEGORIES=     net
MASTER_SITES=       http://download.ethomson.com/download/:mngt \
            ${MASTER_SITE_SOURCEFORGE:S/$/:src/}
MASTER_SITE_SUBDIR= speedtouch/:src
DISTFILES=      ${SPEEDTOUCH}.tar.bz2:src ${ALCATELDRIVER}:mngt
EXTRACT_ONLY=       ${SPEEDTOUCH}.tar.bz2

MAINTAINER=     tom@FreeBSD.org
COMMENT=        Run PPP over Alcatel's USB Speedtouch device

GNU_CONFIGURE=      yes
USE_GMAKE=      yes
USE_REINPLACE=      yes
SPEEDTOUCH=     speedtouch-${PORTVERSION}
ALCATELDRIVER=      speedmgmt.tar.gz
RESTRICTED=     "http://www.speedtouchdsl.com/disclaimer_lx.htm"
RESTRICTED_FILES=   ${ALCATELDRIVER}

WRKSRC=         ${WRKDIR}/${SPEEDTOUCH}

MAN8=           modem_run.8 pppoa2.8 pppoa3.8
USE_BZIP2=      yes

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 700000
BROKEN=         "Does not build on FreeBSD >= 7.0"
.endif

post-extract:
    @${TAR} -zxf ${DISTDIR}/${ALCATELDRIVER} -C ${WRKSRC}
    @${REINPLACE_CMD} s/-lkse/${PTHREAD_LIBS}/g ${WRKSRC}/configure

post-patch:
    @${REINPLACE_CMD} 's/\@INSTALL_MAN\@/${INSTALL_MAN}/' \
        ${WRKSRC}/doc-bsd/Makefile.in

post-install:
    ${INSTALL} -m 0755 -o root -g wheel -d ${PREFIX}/libdata
    ${INSTALL_DATA} ${WRKSRC}/mgmt/mgmt.o ${PREFIX}/libdata
    ${INSTALL_DATA} ${FILESDIR}/quick-install \
        ${PREFIX}/share/doc/speedtouch/.
    @${CAT} ${PREFIX}/share/doc/speedtouch/quick-install

.include <bsd.port.post.mk>