summaryrefslogtreecommitdiff
path: root/net/tspc/Makefile
diff options
context:
space:
mode:
authorgrant <grant@pkgsrc.org>2002-08-22 18:14:51 +0000
committergrant <grant@pkgsrc.org>2002-08-22 18:14:51 +0000
commit12fdec6728a8b1b416742901c13ca05a9700d1f3 (patch)
tree4925649ea39765bba9bd1ec9279b8294254150ee /net/tspc/Makefile
parent041c2bed3ce3039bf1969f38379b1c9d0067f772 (diff)
downloadpkgsrc-12fdec6728a8b1b416742901c13ca05a9700d1f3.tar.gz
Initlal import of tspc-0.9.6 into the NetBSD packages collection.
tspc is a tunnel server protocol client used to establish an IPv6 tunnel to Freenet6, an free IPv6 over IPv4 provider.
Diffstat (limited to 'net/tspc/Makefile')
-rw-r--r--net/tspc/Makefile67
1 files changed, 67 insertions, 0 deletions
diff --git a/net/tspc/Makefile b/net/tspc/Makefile
new file mode 100644
index 00000000000..6fd0794f6dd
--- /dev/null
+++ b/net/tspc/Makefile
@@ -0,0 +1,67 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/08/22 18:14:51 grant Exp $
+#
+
+DISTNAME= freenet6-0.9.6
+PKGNAME= tspc-0.9.6
+CATEGORIES= net
+MASTER_SITES= # empty
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= grant@netbsd.org
+HOMEPAGE= http://www.freenet6.net/
+COMMENT= freenet6 IPv6 tunnel server protocol client
+
+NO_CONFIGURE= yes
+INTERACTIVE_STAGE= fetch
+ONLY_FOR_PLATFORM= NetBSD-*-* Linux-*-* SunOS-5.[8-9]-*
+
+.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} "==============================================================="
+
+TSP_DIR= ${PREFIX}/share/tspc
+CONF_FILES= ${WRKSRC}/bin/tspc.conf ${PREFIX}/etc/tspc.conf
+
+pre-build:
+.for file in src/Makefile src/tspc.c man/man8/tspc.8
+ ${MV} ${WRKSRC}/${file} ${WRKSRC}/${file}.orig
+ ${SED} -e 's|@PREFIX@|${PREFIX}|' ${WRKSRC}/${file}.orig > \
+ ${WRKSRC}/${file}
+.endfor
+.for file in src/tspc.c src/tspc.conf.in
+ ${MV} ${WRKSRC}/${file} ${WRKSRC}/${file}.orig
+ ${SED} -e 's|@TSP_DIR@|${TSP_DIR}|' ${WRKSRC}/${file}.orig > \
+ ${WRKSRC}/${file}
+.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/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
+.for template in checktunnel.sh cisco.sh freebsd4.sh freebsd44.sh linux.sh netbsd.sh openbsd.sh solaris8.sh
+ ${INSTALL_SCRIPT} ${WRKSRC}/template/${template} ${PREFIX}/share/tspc/template
+.endfor
+
+.include "../../mk/bsd.pkg.install.mk"
+.include "../../mk/bsd.pkg.mk"