2001-05-29 13:11:52 +02:00
|
|
|
# New ports collection makefile for: stone
|
|
|
|
# Date created: 25 April 2001
|
|
|
|
# Whom: Yoshihiko Sarumaru <mistral@imasy.or.jp>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= stone
|
2008-04-28 19:25:52 +02:00
|
|
|
PORTVERSION= 2.3e
|
2006-01-09 14:56:03 +01:00
|
|
|
CATEGORIES= net ipv6
|
2001-05-29 13:11:52 +02:00
|
|
|
MASTER_SITES= http://www.gcd.org/sengoku/stone/
|
|
|
|
|
2009-01-16 10:50:00 +01:00
|
|
|
MAINTAINER= sarumaru@jp.FreeBSD.org
|
2003-02-21 14:28:59 +01:00
|
|
|
COMMENT= Stone is a TCP/IP packet repeater in the application layer
|
2001-05-29 13:11:52 +02:00
|
|
|
|
2008-04-28 19:25:52 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-2.3d-2.3.2.7
|
|
|
|
|
2006-01-09 14:56:03 +01:00
|
|
|
MAN1= stone.1
|
2001-05-29 13:11:52 +02:00
|
|
|
MANLANG= "" ja
|
|
|
|
|
2006-01-09 14:56:03 +01:00
|
|
|
USE_RC_SUBR= stone.sh
|
|
|
|
USE_OPENSSL= yes
|
2001-05-29 13:11:52 +02:00
|
|
|
|
2006-01-09 14:56:03 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
2003-06-08 14:16:52 +02:00
|
|
|
|
2006-01-09 14:56:03 +01:00
|
|
|
.if defined(WITHOUT_SSL)
|
|
|
|
.undef USE_OPENSSL
|
|
|
|
ALL_TARGET= bsd-pop
|
|
|
|
MAKE_ARGS= POP_LIBS="-lmd" LIBS="-DUNIX_DAEMON"
|
|
|
|
post-extract:
|
2003-06-08 14:16:52 +02:00
|
|
|
${TOUCH} ${WRKSRC}/global.h
|
2006-01-09 14:56:03 +01:00
|
|
|
.else
|
|
|
|
ALL_TARGET= bsd-ssl
|
|
|
|
MAKE_ARGS= SSL_FLAGS="-DUSE_SSL -I${OPENSSLINC}" \
|
|
|
|
SSL_LIBS="-L${OPENSSLLIB} -lssl -lcrypto" LIBS="-DUNIX_DAEMON"
|
2001-05-29 13:11:52 +02:00
|
|
|
.endif
|
|
|
|
|
2006-01-09 14:56:03 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e '/^CFLAGS/d' ${WRKSRC}/${MAKEFILE}
|
|
|
|
|
2001-05-29 13:11:52 +02:00
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/stone ${PREFIX}/bin/stone
|
2006-01-09 14:56:03 +01:00
|
|
|
${INSTALL_MAN} ${FILESDIR}/stone.1 ${PREFIX}/man/man1/stone.1
|
|
|
|
${INSTALL_MAN} ${FILESDIR}/stone.1.ja ${PREFIX}/man/ja/man1/stone.1
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/stone.cnf ${PREFIX}/etc/stone.cnf.sample
|
|
|
|
.if !exists(${PREFIX}/etc/stone.cnf)
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/stone.cnf ${PREFIX}/etc
|
|
|
|
.endif
|
2001-05-29 13:11:52 +02:00
|
|
|
|
2006-01-09 14:56:03 +01:00
|
|
|
.include <bsd.port.post.mk>
|