1996-11-01 02:37:35 +00:00
|
|
|
# New ports collection makefile for: modula-3-socks
|
|
|
|
# Version required: A.B9.06
|
|
|
|
# Date created: 31 Oct 1996
|
|
|
|
# Whom: John Polstra <jdp@polstra.com>
|
|
|
|
#
|
1996-11-12 02:19:40 +00:00
|
|
|
# $Id: Makefile,v 1.1.1.1 1996/11/01 02:37:33 jdp Exp $
|
1996-11-01 02:37:35 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= modula-3-socks
|
|
|
|
PKGNAME= modula-3-socks-1.0
|
1996-11-12 02:19:40 +00:00
|
|
|
CATEGORIES= lang
|
1996-11-01 02:37:35 +00:00
|
|
|
MASTER_SITES= ftp://ftp.cup.hp.com/dist/socks/A.B9.06/
|
|
|
|
DISTFILES= socks.tar.gz
|
|
|
|
|
|
|
|
MAINTAINER= jdp@polstra.com
|
|
|
|
|
|
|
|
NO_WRKSUBDIR= yes
|
|
|
|
|
|
|
|
libm3socks_files= accept.c bind.c close.c connect.c dup.c dup2.c \
|
|
|
|
gethostbyaddr.c gethostbyname.c getpeername.c \
|
|
|
|
getsockname.c listen.c read.c recv.c recvfrom.c \
|
|
|
|
select.c send.c sendto.c shutdown.c socket.c \
|
|
|
|
socksconf.h wrap.h write.c
|
|
|
|
|
|
|
|
m3socks_files= m3socks.sh m3socks.1 m3socks.conf.5
|
|
|
|
|
|
|
|
post-extract:
|
1996-11-12 02:19:40 +00:00
|
|
|
@${CP} -p ${FILESDIR}/Makefile.top ${WRKSRC}/Makefile
|
|
|
|
@test -d ${WRKSRC}/libm3socks || ${MKDIR} ${WRKSRC}/libm3socks
|
1996-11-01 02:37:35 +00:00
|
|
|
@cd ${FILESDIR}; \
|
1996-11-12 02:19:40 +00:00
|
|
|
${CP} -p Makefile.libm3socks ${WRKSRC}/libm3socks/Makefile; \
|
|
|
|
${CP} -p ${libm3socks_files} ${WRKSRC}/libm3socks
|
|
|
|
@test -d ${WRKSRC}/m3socks || ${MKDIR} ${WRKSRC}/m3socks
|
1996-11-01 02:37:35 +00:00
|
|
|
@cd ${FILESDIR}; \
|
1996-11-12 02:19:40 +00:00
|
|
|
${CP} -p Makefile.m3socks ${WRKSRC}/m3socks/Makefile; \
|
|
|
|
${CP} -p ${m3socks_files} ${WRKSRC}/m3socks
|
1996-11-01 02:37:35 +00:00
|
|
|
|
|
|
|
pre-install:
|
|
|
|
@cd ${PREFIX}/lib; \
|
|
|
|
test -d m3/FreeBSD2 || { \
|
1996-11-12 02:19:40 +00:00
|
|
|
${MKDIR} m3/FreeBSD2; \
|
1996-11-01 02:37:35 +00:00
|
|
|
chown ${BINOWN}.${BINGRP} m3 m3/FreeBSD2; \
|
|
|
|
}
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@if [ ! -f ${PREFIX}/etc/m3socks.conf ]; then \
|
|
|
|
echo -n "Please create a configuration file in "; \
|
|
|
|
echo "${PREFIX}/etc/m3socks.conf"; \
|
|
|
|
echo "Read m3socks.conf(5) for details"; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|