summaryrefslogtreecommitdiff
path: root/net/tspc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net/tspc/Makefile')
-rw-r--r--net/tspc/Makefile45
1 files changed, 45 insertions, 0 deletions
diff --git a/net/tspc/Makefile b/net/tspc/Makefile
new file mode 100644
index 00000000000..871767fca66
--- /dev/null
+++ b/net/tspc/Makefile
@@ -0,0 +1,45 @@
+# $NetBSD: Makefile,v 1.10 2005/12/28 12:10:44 ghen Exp $
+
+DISTNAME= tspc-2.1.1-src
+PKGNAME= ${DISTNAME:S/-src//}
+CATEGORIES= net
+MASTER_SITES= http://www.hexago.com/files/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= ghen@NetBSD.org
+COMMENT= Tunnel Setup Protocol Client for Freenet6
+HOMEPAGE= http://www.hexago.com/
+
+# USE_INET6 (pick this up for README-IPv6.html)
+
+ONLY_FOR_PLATFORM= NetBSD-*-*
+ONLY_FOR_PLATFORM+= OpenBSD-*-*
+ONLY_FOR_PLATFORM+= FreeBSD-*-*
+ONLY_FOR_PLATFORM+= Linux-*-*
+ONLY_FOR_PLATFORM+= Darwin-*-*
+ONLY_FOR_PLATFORM+= SunOS-*-*
+
+.if "${OPSYS}" == "SunOS"
+TARGET= solaris
+.else
+TARGET= ${LOWER_OPSYS}
+.endif
+
+MAKE_ENV+= target=${TARGET:Q}
+
+WRKSRC= ${WRKDIR}/tspc2
+
+USE_PKGINSTALL= yes
+CONF_FILES+= ${PREFIX}/share/examples/tspc/tspc.conf ${PKG_SYSCONFDIR}/tspc.conf
+CONF_FILES_MODE= 0600
+
+RCD_SCRIPTS= tspc
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/bin/tspc ${PREFIX}/sbin/
+ ${INSTALL_MAN} ${WRKSRC}/man/man5/tspc.conf.5 ${PREFIX}/${PKGMANDIR}/man5/
+ ${INSTALL_MAN} ${WRKSRC}/man/man8/tspc.8 ${PREFIX}/${PKGMANDIR}/man8/
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/tspc/
+ ${INSTALL_DATA} ${WRKSRC}/bin/tspc.conf.sample ${PREFIX}/share/examples/tspc/tspc.conf
+
+.include "../../mk/bsd.pkg.mk"