openbsd-ports/security/socks5/Makefile

96 lines
3.0 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.25 2001/05/06 03:46:22 lebel Exp $
COMMENT= "SOCKS v5 application layer gateway and clients"
DISTNAME= socks5-v1.0r11
PKGNAME= socks5-1.0.11
CATEGORIES= security net
NEED_VERSION= 1.402
2000-08-02 20:06:30 -04:00
HOMEPAGE= http://www.socks.nec.com/
MAINTAINER= ports@openbsd.org
2000-02-25 16:28:48 -05:00
PERMIT_PACKAGE_CDROM= commercial
PERMIT_PACKAGE_FTP= commercial
PERMIT_DISTFILES_CDROM= commercial
PERMIT_DISTFILES_FTP= commercial
# 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
CONFIGURE_ARGS= --with-libconffile="/etc/libsocks5.conf" \
--with-srvconffile="/etc/socks5.conf" \
--with-srvpidfile="/var/run/socks5.pid" \
--with-srvidtfile="/var/run/socks5.ident" \
${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}"
WRKDIST= ${WRKDIR}/${DISTNAME}
1998-07-28 22:57:18 -04:00
do-fetch:
@if [ ! -f ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ]; then \
echo ""; \
echo "NEC requires that you grab the dist files from their"; \
echo "web site at ${HOMEPAGE}."; \
echo "Please make sure you have ${DISTNAME}${EXTRACT_SUFX}"; \
echo "in ${DISTDIR} and run make again."; \
echo ""; \
exit 1;\
1998-07-28 22:57:18 -04:00
fi
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
${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
${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
${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
.include <bsd.port.mk>
.if defined(NO_SHARED_LIBS) && ${NO_SHARED_LIBS:U} == YES
INSTALL_RUNSOCKS=
.else
INSTALL_RUNSOCKS= Yes
.endif