summaryrefslogtreecommitdiff
path: root/net/libunp/Makefile
diff options
context:
space:
mode:
authorDan Moschuk <dan@FreeBSD.org>1999-10-02 19:13:06 +0000
committerDan Moschuk <dan@FreeBSD.org>1999-10-02 19:13:06 +0000
commita759fd52db0359173523ebf62e3c4521554d0fcf (patch)
treee7e27217d3de213cc80604d456d25a7f1d6577d7 /net/libunp/Makefile
parentFix odd markup in the man page (diff)
libunp is the library used in W. Richard Steven's book "UNIX Network
Programming Volume 1, 2nd Edition". It contains the library and headers used in the examples as well as all programs from the text that compile on FreeBSD systems. PR: ports/14057 Submitted by: James FitzGibbon <james@targetnet.com>
Notes
Notes: svn path=/head/; revision=22128
Diffstat (limited to 'net/libunp/Makefile')
-rw-r--r--net/libunp/Makefile38
1 files changed, 38 insertions, 0 deletions
diff --git a/net/libunp/Makefile b/net/libunp/Makefile
new file mode 100644
index 000000000000..d923c0f5fff2
--- /dev/null
+++ b/net/libunp/Makefile
@@ -0,0 +1,38 @@
+# Ports collection makefile for: libunp
+# Version required: 1.0
+# Date created: Sept 28, 1999
+# Whom: james@targetnet.com
+#
+# $FreeBSD$
+#
+
+DISTNAME= unpv12e
+PKGNAME= libunp-1.0
+CATEGORIES= net
+MASTER_SITES= ftp://ftp.kohala.com/pub/rstevens/ \
+ http://www.cs.columbia.edu/networks98/stevens/
+
+MAINTAINER= james@targetnet.com
+
+GNU_CONFIGURE= yes
+USE_GMAKE= yes
+
+.include <bsd.port.pre.mk>
+
+pre-patch:
+ @ ${CP} ${WRKSRC}/lib/wrapsock.c ${WRKSRC}/lib/wrapsock_r.c
+
+post-configure:
+ @ ${MKDIR} ${WRKSRC}/unp
+ @ ${LN} -s ${WRKSRC}/config.h ${WRKSRC}/unp/config.h
+ @ ${LN} -s ${WRKSRC}/lib/addrinfo.h ${WRKSRC}/unp/addrinfo.h
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/libunp.a ${PREFIX}/lib
+ ${INSTALL_DATA} ${WRKSRC}/libunp_r.a ${PREFIX}/lib
+ ${MKDIR} ${PREFIX}/include/unp
+ ${INSTALL_DATA} ${WRKSRC}/lib/unp.h ${PREFIX}/include
+ ${INSTALL_DATA} ${WRKSRC}/lib/addrinfo.h ${PREFIX}/include/unp
+ ${INSTALL_DATA} ${WRKSRC}/config.h ${PREFIX}/include/unp
+
+.include <bsd.port.post.mk>