2001-11-08 15:24:26 +00:00
|
|
|
# New ports collection makefile for: freenet6
|
|
|
|
# Date created: 11 Oct 2001
|
|
|
|
# Whom: Edwin Groothuis (edwin@mavetju.org)
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= freenet6
|
2003-01-13 21:21:38 +00:00
|
|
|
PORTVERSION= 0.9.7
|
2001-11-08 15:24:26 +00:00
|
|
|
CATEGORIES= net ipv6
|
|
|
|
MASTER_SITES= # fetch manually
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
|
|
|
MAINTAINER= edwin@mavetju.org
|
2003-02-21 13:28:59 +00:00
|
|
|
COMMENT= Freenet6 Tunnel Setup Protocol Client - Free IPv6 tunnel
|
2001-11-08 15:24:26 +00:00
|
|
|
|
2003-01-13 21:21:38 +00:00
|
|
|
RESTRICTED= "Must Agree to License at http://www.freenet6.net/ on the download page for FreeBSD"
|
|
|
|
NO_CDROM= ${RESTRICTED}
|
|
|
|
NO_PACKAGE= ${RESTRICTED}
|
|
|
|
|
2002-07-19 09:26:31 +00:00
|
|
|
USE_REINPLACE= yes
|
|
|
|
|
2001-11-08 15:24:26 +00:00
|
|
|
MAN8= tspc.8
|
|
|
|
MAN5= tspc.conf.5
|
|
|
|
|
2001-11-20 20:45:55 +00:00
|
|
|
PKGMESSAGE= ${WRKSRC}/pkg-message
|
|
|
|
|
2001-11-08 15:24:26 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} < 400000
|
|
|
|
IGNORE= This program might not be working on FreeBSD version below 4.0
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX})
|
|
|
|
IGNORE= May not be automatically fetched due to licensing\
|
|
|
|
restrictions. You MUST manually fetch the version\
|
|
|
|
after reading and agreeing to the license at:\
|
|
|
|
http://www.freenet6.net/cgi-bin/download.cgi?fn=${DISTFILES} \
|
|
|
|
Once it has been downloaded, move it to\
|
|
|
|
${DISTDIR} and then restart this build.\
|
|
|
|
You also can register to use this service at\
|
|
|
|
http://www.freenet6.net/cgi-bin/new_account.pl
|
|
|
|
.endif
|
|
|
|
|
|
|
|
NO_CDROM= "Redistribution not allowed"
|
|
|
|
NO_PACKAGE= "Redistribution not allowed"
|
|
|
|
|
|
|
|
.if ${OSVERSION} >= 440000
|
|
|
|
MAKE_ARGS= target=freebsd44 installdir=${PREFIX}
|
|
|
|
.else
|
|
|
|
MAKE_ARGS= target=freebsd4 installdir=${PREFIX}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/bin/tspc ${PREFIX}/bin/tspc
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/bin/tspc.conf ${PREFIX}/etc/tspc.conf.sample
|
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/template/checktunnel.sh ${PREFIX}/bin/checktunnel.sh
|
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/template/freebsd44.sh ${PREFIX}/bin/tspc-freebsd44.sh
|
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/template/freebsd4.sh ${PREFIX}/bin/tspc-freebsd4.sh
|
|
|
|
@${INSTALL_MAN} ${WRKSRC}/man/man8/tspc.8 ${PREFIX}/man/man8
|
|
|
|
@${INSTALL_MAN} ${WRKSRC}/man/man5/tspc.conf.5 ${PREFIX}/man/man5
|
2001-11-20 20:45:55 +00:00
|
|
|
@${INSTALL_SCRIPT} ${WRKSRC}/freenet6.sh ${PREFIX}/etc/rc.d/
|
2001-11-08 15:24:26 +00:00
|
|
|
|
|
|
|
post-install:
|
2001-11-20 20:45:55 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2001-11-08 15:24:26 +00:00
|
|
|
|
|
|
|
post-patch:
|
2002-07-19 09:26:31 +00:00
|
|
|
@${REINPLACE_CMD} -e "s|tspc.conf|${PREFIX}/etc/tspc.conf|" \
|
|
|
|
${WRKSRC}/src/tspc.c
|
|
|
|
|
|
|
|
@${CP} ${FILESDIR}/freenet6.sh.in ${WRKSRC}/freenet6.sh
|
|
|
|
@${REINPLACE_CMD} -e "s|@@PREFIX@@|${PREFIX}|g" ${WRKSRC}/freenet6.sh
|
2001-11-08 15:24:26 +00:00
|
|
|
|
2002-07-19 09:26:31 +00:00
|
|
|
@${CP} ${FILESDIR}/pkg-message.in ${WRKSRC}/pkg-message
|
|
|
|
@${REINPLACE_CMD} -e "s|@@PREFIX@@|${PREFIX}|g" ${WRKSRC}/pkg-message
|
2001-11-08 15:24:26 +00:00
|
|
|
|
2002-07-19 09:26:31 +00:00
|
|
|
@${REINPLACE_CMD} -e "s|@@PREFIX@@|${PREFIX}|g" \
|
|
|
|
${WRKSRC}/man/man8/tspc.8
|
2001-11-08 15:24:26 +00:00
|
|
|
|
2002-07-19 09:26:31 +00:00
|
|
|
@${REINPLACE_CMD} -e "s|@@PREFIX@@|${PREFIX}|g" \
|
|
|
|
${WRKSRC}/man/man5/tspc.conf.5
|
2001-11-08 15:24:26 +00:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|