summaryrefslogtreecommitdiff
path: root/databases/ruby-ldap/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'databases/ruby-ldap/Makefile')
-rw-r--r--databases/ruby-ldap/Makefile38
1 files changed, 38 insertions, 0 deletions
diff --git a/databases/ruby-ldap/Makefile b/databases/ruby-ldap/Makefile
new file mode 100644
index 00000000000..3a92213e25f
--- /dev/null
+++ b/databases/ruby-ldap/Makefile
@@ -0,0 +1,38 @@
+# $NetBSD: Makefile,v 1.1.1.1 2009/11/29 08:10:59 obache Exp $
+
+DISTNAME= ruby-ldap-${VER}
+PKGNAME= ${RUBY_PKGPREFIX}-ldap-${VER}
+CATEGORIES= databases ruby
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ruby-ldap/}
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= obache@NetBSD.org
+HOMEPAGE= http://ruby-ldap.sourceforge.net/
+COMMENT= LDAP extension module for Ruby
+LICENSE= modified-bsd
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+VER= 0.9.8
+
+REPLACE_RUBY_DIRS= example/pr_ctl example/cgi/search.cgi
+RUBY_HAS_ARCHLIB= yes
+USE_RUBY_EXTCONF= yes
+USE_TOOLS+= pax
+
+CONFIGURE_ARGS+= --with-openldap2
+CONFIGURE_ARGS+= --with-ldap-dir=${BUILDLINK_PREFIX.openldap-client}
+
+DOCS= ChangeLog FAQ README TODO
+
+INSTALLATION_DIRS= ${RUBY_DOCDIR}/ldap ${RUBY_EXAMPLESDIR}/ldap
+
+post-install:
+.for f in ${DOCS}
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${RUBY_DOCDIR}/ldap
+.endfor
+ cd ${WRKSRC}/example && pax -rw -pp * ${DESTDIR}${RUBY_EXAMPLESDIR}/ldap
+
+.include "../../databases/openldap-client/buildlink3.mk"
+.include "../../lang/ruby/modules.mk"
+.include "../../mk/bsd.pkg.mk"