pkgsrc/net/tspc/Makefile
salo a076b470af Update to version 0.9.7.
Addresses PR pkg/20169 by Quentin Garnier.

Changes:

- follow PKG_SYSCONFDIR
- use CONF_FILES correctly
- simplify Makefile and clean it up a bit

0.9.7
=====
- Add support for Darwin (MacOS X) (thanks to Tim Buchheim)
- Add new feature : 'retry_delay' option to retry tunnel request
  to server every n seconds (thanks to Peter Todd of Linux Journal
  who suggested this feature)
- Correct WindowsNT-2K-XP bugs of directory separator and environment
  variables setting (thanks to Christian Meyer)
- Correct digest-md5 bug (thanks to Love from ngtrans)
- Correct linux.sh template to add default route to 2000::/3 (thanks
  to Peter Schneider-Kamp)
- Correct openbsd.sh template bugs in radvd config file generation
  (thanks to Stephen Harrell)
- Correct netbsd.sh template bug of radvdconfigfile variable name
  (thanks to Brad Forschinger)
- Modify code to be tsp-draft compliant
- Update man pages and documentation
2003-02-15 02:02:12 +00:00

66 lines
2.2 KiB
Makefile

# $NetBSD: Makefile,v 1.3 2003/02/15 02:02:12 salo Exp $
#
DISTNAME= freenet6-0.9.7
PKGNAME= ${DISTNAME:S/freenet6/tspc/}
CATEGORIES= net
MASTER_SITES= # empty
EXTRACT_SUFX= .tgz
MAINTAINER= grant@netbsd.org
HOMEPAGE= http://www.freenet6.net/
COMMENT= freenet6 IPv6 tunnel server protocol client
USE_PKGINSTALL= yes
NO_CONFIGURE= yes
INTERACTIVE_STAGE= fetch
ONLY_FOR_PLATFORM= NetBSD-*-* Linux-*-* SunOS-5.[8-9]-* Darwin-*-*
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "SunOS"
TARGET= ${LOWER_OPSYS}8
.else
TARGET= ${LOWER_OPSYS}
.endif
ALL_TARGET= all target="${TARGET}"
INSTALL_TARGET= ${ALL_TARGET}
DOWNLOAD= http://www.freenet6.net/cgi-bin/download.cgi?fn=${DISTNAME}${EXTRACT_SUFX}
_FETCH_MESSAGE= \
${ECHO} "==============================================================="; \
${ECHO} " The Freenet6 client must be fetched"; \
${ECHO} " into ${DISTDIR} from"; \
${ECHO} " ${DOWNLOAD}."; \
${ECHO} "==============================================================="
FILES_SUBST+= TSP_DIR=${PREFIX}/share/tspc
EGDIR= ${PREFIX}/share/examples/tspc
CONF_FILES= ${EGDIR}/tspc.conf.default ${PKG_SYSCONFDIR}/tspc.conf
pre-build:
.for f in man/man5/tspc.conf.5 man/man8/tspc.8 src/Makefile \
src/tspc.c src/tspc.c src/tspc.conf.in
@${MV} ${WRKSRC}/${f} ${WRKSRC}/${f}.orig
@${SED} ${FILES_SUBST_SED} ${WRKSRC}/${f}.orig > ${WRKSRC}/${f}
.endfor
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bin/tspc ${PREFIX}/sbin
${INSTALL_MAN} ${WRKSRC}/man/man5/tspc.conf.5 ${PREFIX}/man/man5
${INSTALL_MAN} ${WRKSRC}/man/man8/tspc.8 ${PREFIX}/man/man8
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/tspc
${INSTALL_DATA} ${WRKSRC}/bin/tspc.conf ${EGDIR}/tspc.conf.default
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/tspc
${INSTALL_DATA} ${WRKSRC}/CONTRIB.txt ${PREFIX}/share/doc/tspc
${INSTALL_DATA} ${WRKSRC}/LEGAL ${PREFIX}/share/doc/tspc
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/tspc
${INSTALL_DATA_DIR} ${PREFIX}/share/tspc
${INSTALL_DATA_DIR} ${PREFIX}/share/tspc/template
cd ${WRKSRC}/template && \
${INSTALL_SCRIPT} checktunnel.sh cisco.sh darwin.sh freebsd4.sh \
freebsd44.sh linux.sh netbsd.sh openbsd.sh solaris8.sh \
${PREFIX}/share/tspc/template
.include "../../mk/bsd.pkg.mk"