2001-05-05 23:45:31 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.25 2001/05/06 03:46:22 lebel Exp $
|
|
|
|
|
|
|
|
COMMENT= "SOCKS v5 application layer gateway and clients"
|
1998-04-27 15:53:22 -04:00
|
|
|
|
2000-12-11 13:19:52 -05:00
|
|
|
DISTNAME= socks5-v1.0r11
|
|
|
|
PKGNAME= socks5-1.0.11
|
2000-03-27 18:02:44 -05:00
|
|
|
CATEGORIES= security net
|
2001-05-05 23:45:31 -04:00
|
|
|
NEED_VERSION= 1.402
|
2000-02-17 00:25:13 -05:00
|
|
|
|
2000-08-02 20:06:30 -04:00
|
|
|
HOMEPAGE= http://www.socks.nec.com/
|
2000-06-16 02:00:14 -04:00
|
|
|
|
1999-04-09 00:11:45 -04:00
|
|
|
MAINTAINER= ports@openbsd.org
|
1998-04-27 15:53:22 -04:00
|
|
|
|
2000-02-25 16:28:48 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= commercial
|
|
|
|
PERMIT_PACKAGE_FTP= commercial
|
|
|
|
PERMIT_DISTFILES_CDROM= commercial
|
|
|
|
PERMIT_DISTFILES_FTP= commercial
|
|
|
|
|
1998-04-27 15:53:22 -04:00
|
|
|
# here are some extra configure args you may wish to use
|
|
|
|
# see the readme file before screwing with them
|
|
|
|
#
|
|
|
|
#EXTRA_CONFIGURE_ARGS= \
|
|
|
|
# --with-default-server=socks.mydomain.com \
|
|
|
|
# --with-syslog-facility=LOG_AUTH \
|
|
|
|
# --with-passwd
|
|
|
|
|
2000-08-02 20:06:30 -04:00
|
|
|
CONFIGURE_STYLE= gnu
|
2000-03-27 18:02:44 -05:00
|
|
|
CONFIGURE_ARGS= --with-libconffile="/etc/libsocks5.conf" \
|
|
|
|
--with-srvconffile="/etc/socks5.conf" \
|
2000-02-17 00:25:13 -05:00
|
|
|
--with-srvpidfile="/var/run/socks5.pid" \
|
|
|
|
--with-srvidtfile="/var/run/socks5.ident" \
|
1998-04-27 15:53:22 -04:00
|
|
|
${EXTRA_CONFIGURE_ARGS}
|
1999-03-13 20:40:24 -05:00
|
|
|
|
2000-03-31 00:58:41 -05:00
|
|
|
MAKE_ENV= INSTALL_RUNSOCKS="${INSTALL_RUNSOCKS}"
|
|
|
|
|
2000-02-17 00:25:13 -05:00
|
|
|
WRKDIST= ${WRKDIR}/${DISTNAME}
|
1998-04-27 15:53:22 -04:00
|
|
|
|
1998-07-28 22:57:18 -04:00
|
|
|
do-fetch:
|
|
|
|
@if [ ! -f ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ]; then \
|
2000-03-27 18:02:44 -05:00
|
|
|
echo ""; \
|
|
|
|
echo "NEC requires that you grab the dist files from their"; \
|
2000-06-16 02:00:14 -04:00
|
|
|
echo "web site at ${HOMEPAGE}."; \
|
|
|
|
echo "Please make sure you have ${DISTNAME}${EXTRACT_SUFX}"; \
|
|
|
|
echo "in ${DISTDIR} and run make again."; \
|
2000-03-27 18:02:44 -05:00
|
|
|
echo ""; \
|
|
|
|
exit 1;\
|
1998-07-28 22:57:18 -04:00
|
|
|
fi
|
1998-04-27 15:53:22 -04:00
|
|
|
|
2000-03-27 18:02:44 -05:00
|
|
|
post-build:
|
|
|
|
@if [ ! x"${INSTALL_RUNSOCKS}" = "x" ]; then \
|
|
|
|
sed -e "s,@PREFIX@,${PREFIX},g" ${FILESDIR}/runsocks.in \
|
|
|
|
> ${WRKBUILD}/runsocks; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
do-install:
|
2000-03-31 00:58:41 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/lib/socks
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/socks
|
|
|
|
cd ${WRKBUILD}/server; ${INSTALL_PROGRAM} socks5 stopsocks \
|
|
|
|
${PREFIX}/sbin
|
|
|
|
cd ${WRKBUILD}/clients/pt; ${INSTALL_PROGRAM} rping rtraceroute \
|
|
|
|
${PREFIX}/sbin
|
2000-03-27 18:02:44 -05:00
|
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/clients/finger/finger \
|
|
|
|
${PREFIX}/bin/rfinger
|
|
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/clients/finger/whois \
|
|
|
|
${PREFIX}/bin/rwhois
|
2000-03-31 00:58:41 -05:00
|
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/clients/archie/archie \
|
|
|
|
${PREFIX}/bin/rarchie
|
2000-03-27 18:02:44 -05:00
|
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/clients/ftp/ftp \
|
|
|
|
${PREFIX}/bin/rftp
|
|
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/clients/telnet/telnet \
|
|
|
|
${PREFIX}/bin/rtelnet
|
|
|
|
${INSTALL_DATA} ${WRKBUILD}/include/socks.h ${PREFIX}/include
|
|
|
|
${INSTALL_DATA} ${WRKBUILD}/lib/libsocks5.a ${PREFIX}/lib
|
|
|
|
${INSTALL_MAN} ${WRKBUILD}/man/man1/socks5.1 ${PREFIX}/man/man8/socks5.8
|
|
|
|
${INSTALL_MAN} ${WRKBUILD}/man/man1/stopsocks.1 \
|
|
|
|
${PREFIX}/man/man8/stopsocks.8
|
|
|
|
${INSTALL_MAN} ${WRKBUILD}/man/man1/socks5_clients.1 ${PREFIX}/man/man1
|
|
|
|
${INSTALL_MAN} ${WRKBUILD}/man/man5/* ${PREFIX}/man/man5
|
1999-03-13 20:40:24 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/* ${PREFIX}/lib/socks
|
2000-03-27 18:02:44 -05:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/* ${PREFIX}/share/doc/socks
|
|
|
|
@if [ ! x"$INSTALL_RUNSOCKS" = "x" ]; then \
|
|
|
|
${INSTALL_DATA} ${WRKBUILD}/shlib/libsocks5_sh.so \
|
|
|
|
${PREFIX}/lib; \
|
|
|
|
${INSTALL_SCRIPT} ${WRKBUILD}/runsocks ${PREFIX}/bin; \
|
|
|
|
${INSTALL_MAN} ${WRKBUILD}/man/man1/runsocks.1 \
|
|
|
|
${PREFIX}/man/man1; \
|
|
|
|
fi
|
1998-04-27 15:53:22 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|
2000-03-27 18:02:44 -05:00
|
|
|
|
|
|
|
.if defined(NO_SHARED_LIBS) && ${NO_SHARED_LIBS:U} == YES
|
|
|
|
INSTALL_RUNSOCKS=
|
|
|
|
.else
|
|
|
|
INSTALL_RUNSOCKS= Yes
|
|
|
|
.endif
|