diff options
author | knu <knu@FreeBSD.org> | 2001-06-21 20:46:15 +0800 |
---|---|---|
committer | knu <knu@FreeBSD.org> | 2001-06-21 20:46:15 +0800 |
commit | 16d804a52a301153a8af4242e93d770e4e0509c9 (patch) | |
tree | 5b9e0d7ccb6ab9a82279f399b5f7838ddb959530 /net | |
parent | 7273a4f08cbecfb05e719eec5990e59fe406f990 (diff) | |
download | freebsd-ports-gnome-16d804a52a301153a8af4242e93d770e4e0509c9.tar.gz freebsd-ports-gnome-16d804a52a301153a8af4242e93d770e4e0509c9.tar.zst freebsd-ports-gnome-16d804a52a301153a8af4242e93d770e4e0509c9.zip |
Add ruby-nis, a ruby library to use the NIS/YP API.
Diffstat (limited to 'net')
-rw-r--r-- | net/Makefile | 1 | ||||
-rw-r--r-- | net/ruby-nis/Makefile | 36 | ||||
-rw-r--r-- | net/ruby-nis/distinfo | 1 | ||||
-rw-r--r-- | net/ruby-nis/files/patch-extconf.rb | 13 | ||||
-rw-r--r-- | net/ruby-nis/files/patch-yp.c | 10 | ||||
-rw-r--r-- | net/ruby-nis/pkg-comment | 1 | ||||
-rw-r--r-- | net/ruby-nis/pkg-descr | 4 | ||||
-rw-r--r-- | net/ruby-nis/pkg-plist | 9 |
8 files changed, 75 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile index 589d185dc555..de514889fc5e 100644 --- a/net/Makefile +++ b/net/Makefile @@ -316,6 +316,7 @@ SUBDIR += ruby-drb SUBDIR += ruby-icmp SUBDIR += ruby-ldap + SUBDIR += ruby-nis SUBDIR += ruby-pcap SUBDIR += ruby-snmp SUBDIR += ruby-soap diff --git a/net/ruby-nis/Makefile b/net/ruby-nis/Makefile new file mode 100644 index 000000000000..d4b7aa012c74 --- /dev/null +++ b/net/ruby-nis/Makefile @@ -0,0 +1,36 @@ +# New ports collection makefile for: ruby-nis +# Date created: 21 June 2001 +# Whom: Akinori MUSHA aka knu <knu@idaemons.org> +# +# $FreeBSD$ +# + +PORTNAME= nis +PORTVERSION= 0.1.1 +CATEGORIES= net ruby +MASTER_SITES= http://kt-www.jaist.ac.jp/~ttate/ftp/ +PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX} +DISTNAME= ruby-${PORTNAME}-${PORTVERSION} +DIST_SUBDIR= ruby + +MAINTAINER= knu@FreeBSD.org + +USE_RUBY= yes +USE_RUBY_EXTCONF= yes + +WRKSRC= ${WRKDIR}/ruby-${PORTNAME} +INSTALL_TARGET= site-install + +DOCS_EN= README README.html + +post-install: +.if !defined(NOPORTDOCS) + ${MKDIR} ${RUBY_DOCDIR}/${PORTNAME} +.for f in ${DOCS_EN} + ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/${PORTNAME}/ +.endfor + ${MKDIR} ${RUBY_EXAMPLESDIR}/${PORTNAME} + ${INSTALL_DATA} ${WRKSRC}/test/* ${RUBY_EXAMPLESDIR}/${PORTNAME}/ +.endif + +.include <bsd.port.mk> diff --git a/net/ruby-nis/distinfo b/net/ruby-nis/distinfo new file mode 100644 index 000000000000..b37faa60920b --- /dev/null +++ b/net/ruby-nis/distinfo @@ -0,0 +1 @@ +MD5 (ruby/ruby-nis-0.1.1.tar.gz) = bd8d7ea8e7dd15867afc32a612e4a23b diff --git a/net/ruby-nis/files/patch-extconf.rb b/net/ruby-nis/files/patch-extconf.rb new file mode 100644 index 000000000000..8f15e895e352 --- /dev/null +++ b/net/ruby-nis/files/patch-extconf.rb @@ -0,0 +1,13 @@ +--- extconf.rb.orig Fri Apr 20 14:38:57 2001 ++++ extconf.rb Thu Jun 21 21:24:05 2001 +@@ -6,8 +6,8 @@ + nis_h = have_header('rpcsvc/nis.h') + ypclnt_h = have_header('rpcsvc/ypclnt.h') + ypprot_h = have_header('rpcsvc/yp_prot.h') +-libnsl = have_library('nsl') ++have_library('nsl') + +-if( libnsl && ypclnt_h && ypprot_h ) ++if( have_func("yp_all") && ypclnt_h && ypprot_h ) + create_makefile('nis') + end diff --git a/net/ruby-nis/files/patch-yp.c b/net/ruby-nis/files/patch-yp.c new file mode 100644 index 000000000000..a0cfae6260b5 --- /dev/null +++ b/net/ruby-nis/files/patch-yp.c @@ -0,0 +1,10 @@ +--- yp.c.orig Fri Apr 20 16:07:42 2001 ++++ yp.c Thu Jun 21 21:30:30 2001 +@@ -3,6 +3,7 @@ + */ + + #include "nis.h" ++#include <rpc/rpc.h> + #include <rpcsvc/ypclnt.h> + #include <rpcsvc/yp_prot.h> + diff --git a/net/ruby-nis/pkg-comment b/net/ruby-nis/pkg-comment new file mode 100644 index 000000000000..f8e1487506f2 --- /dev/null +++ b/net/ruby-nis/pkg-comment @@ -0,0 +1 @@ +A Ruby library to use the NIS/YP API diff --git a/net/ruby-nis/pkg-descr b/net/ruby-nis/pkg-descr new file mode 100644 index 000000000000..0075cb176f51 --- /dev/null +++ b/net/ruby-nis/pkg-descr @@ -0,0 +1,4 @@ +Ruby/NIS is a ruby library to use the NIS/YP API. + +WWW: http://kt-www.jaist.ac.jp/~ttate/lang/ruby/ruby-nis.html +Author: Takaaki Tateishi <ttate@jaist.ac.jp> diff --git a/net/ruby-nis/pkg-plist b/net/ruby-nis/pkg-plist new file mode 100644 index 000000000000..05dcf6c573b6 --- /dev/null +++ b/net/ruby-nis/pkg-plist @@ -0,0 +1,9 @@ +%%RUBY_SITEARCHLIBDIR%%/nis.so +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/nis/yp_all.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/nis/yp_all2.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/nis/yp_first.rb +%%PORTDOCS%%%%RUBY_EXAMPLESDIR%%/nis/yp_match.rb +%%PORTDOCS%%@dirrm %%RUBY_EXAMPLESDIR%%/nis +%%PORTDOCS%%%%RUBY_DOCDIR%%/nis/README +%%PORTDOCS%%%%RUBY_DOCDIR%%/nis/README.html +%%PORTDOCS%%@dirrm %%RUBY_DOCDIR%%/nis |