aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/ruby-snmp
diff options
context:
space:
mode:
authorAkinori MUSHA <knu@FreeBSD.org>2000-09-07 14:39:47 +0000
committerAkinori MUSHA <knu@FreeBSD.org>2000-09-07 14:39:47 +0000
commit6be33926020dcfa43ec8a1bf94700238962f3b92 (patch)
treeb915338a31558eaf368cfd16cdf2b7ec1e6e80db /net-mgmt/ruby-snmp
parent79507948280cacb290417077cbdc3e8420c3f9c1 (diff)
downloadports-6be33926020dcfa43ec8a1bf94700238962f3b92.tar.gz
ports-6be33926020dcfa43ec8a1bf94700238962f3b92.zip
Notes
Diffstat (limited to 'net-mgmt/ruby-snmp')
-rw-r--r--net-mgmt/ruby-snmp/Makefile25
-rw-r--r--net-mgmt/ruby-snmp/pkg-plist16
2 files changed, 17 insertions, 24 deletions
diff --git a/net-mgmt/ruby-snmp/Makefile b/net-mgmt/ruby-snmp/Makefile
index 851dbf33e82f..e85279e0191b 100644
--- a/net-mgmt/ruby-snmp/Makefile
+++ b/net-mgmt/ruby-snmp/Makefile
@@ -9,27 +9,22 @@ PORTNAME= snmp
PORTVERSION= 0.2.1
CATEGORIES= net ruby
MASTER_SITES= http://w3cic.riken.go.jp/~tsuruoka/
-PKGNAMEPREFIX= ruby-
+PKGNAMEPREFIX= ${RUBY_PKGNAMEPREFIX}
DISTNAME= ruby${PORTNAME}-${PORTVERSION}
EXTRACT_SUFX= .tgz
DIST_SUBDIR= ruby
MAINTAINER= knu@FreeBSD.org
-BUILD_DEPENDS= ruby:${PORTSDIR}/lang/ruby
LIB_DEPENDS= snmp.4:${PORTSDIR}/net/ucd-snmp
-RUN_DEPENDS= ruby:${PORTSDIR}/lang/ruby
+
+USE_RUBY= yes
+USE_RUBY_EXTCONF= yes
WRKSRC= ${WRKDIR}/SNMP
INSTALL_TARGET= site-install
CONFIGURE_ARGS= --with-snmp-dir="${LOCALBASE}"
-PLIST_SUB= RUBY_VER="${RUBY_VER}" RUBY_ARCH="${RUBY_ARCH}"
-
-RUBY?= ${LOCALBASE}/bin/ruby
-RUBY_VER?= 1.4
-RUBY_ARCH?= ${ARCH}-freebsd${OSREL}
-
DOCS_EN= mib_view.html \
rubysnmp.html \
sampleout.html \
@@ -37,16 +32,14 @@ DOCS_EN= mib_view.html \
snmp_session.html \
snmp_var.html
-do-configure:
- @cd ${WRKSRC}; \
- ${SETENV} ${CONFIGURE_ENV} ${RUBY} extconf.rb ${CONFIGURE_ARGS}
-
post-install:
.if !defined(NOPORTDOCS)
- ${MKDIR} ${PREFIX}/share/doc/ruby/snmp
+ ${MKDIR} ${RUBY_DOCDIR}/snmp
.for f in ${DOCS_EN}
- ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/doc/ruby/snmp/
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${RUBY_DOCDIR}/snmp/
.endfor
.endif
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+.include "${PORTSDIR}/Mk/bsd.ruby.mk"
+.include <bsd.port.post.mk>
diff --git a/net-mgmt/ruby-snmp/pkg-plist b/net-mgmt/ruby-snmp/pkg-plist
index 661480ab4dd7..3cebc9cb7bb8 100644
--- a/net-mgmt/ruby-snmp/pkg-plist
+++ b/net-mgmt/ruby-snmp/pkg-plist
@@ -1,8 +1,8 @@
-lib/ruby/site_ruby/%%RUBY_VER%%/%%RUBY_ARCH%%/snmp.so
-share/doc/ruby/snmp/mib_view.html
-share/doc/ruby/snmp/rubysnmp.html
-share/doc/ruby/snmp/sampleout.html
-share/doc/ruby/snmp/snmp_module.html
-share/doc/ruby/snmp/snmp_session.html
-share/doc/ruby/snmp/snmp_var.html
-@dirrm share/doc/ruby/snmp
+%%RUBY_SITEARCHLIBDIR%%/snmp.so
+%%RUBY_DOCDIR%%/snmp/mib_view.html
+%%RUBY_DOCDIR%%/snmp/rubysnmp.html
+%%RUBY_DOCDIR%%/snmp/sampleout.html
+%%RUBY_DOCDIR%%/snmp/snmp_module.html
+%%RUBY_DOCDIR%%/snmp/snmp_session.html
+%%RUBY_DOCDIR%%/snmp/snmp_var.html
+@dirrm %%RUBY_DOCDIR%%/snmp