diff options
author | seb <seb@pkgsrc.org> | 2001-11-29 11:41:28 +0000 |
---|---|---|
committer | seb <seb@pkgsrc.org> | 2001-11-29 11:41:28 +0000 |
commit | 40b4c40b4aafd59575b13f67492ad81a4e3e85fb (patch) | |
tree | eea43466e723fd76f0fe8abb4039ebc16cb2c31c /net/hesiod | |
parent | 5c40bc73d0f6ba3fa0150551ccccd89c2b34834f (diff) | |
download | pkgsrc-40b4c40b4aafd59575b13f67492ad81a4e3e85fb.tar.gz |
Initial import of hesiod-3.0.2.
Provided in PR 14649 by Kevin P. Neal <kpneal@pobox.com>.
Minor enhancements and buildlink.mk made by seb.
A package builder can force the use of this package by defining NEED_HESIOD in
case the base system already provides Hesiod API in the C library.
Note: NetBSD's C library provides minimum Hesiod support, the library included
in this package is the MIT original one and so provides the whole Hesiod API.
Hesiod is a name service library that can provide general name service for a
variety of applications. It is based on the Domain Name system (DNS).
The Hesiod library and hesinfo tool allow easy queries to Hesiod name service.
Diffstat (limited to 'net/hesiod')
-rw-r--r-- | net/hesiod/DESCR | 3 | ||||
-rw-r--r-- | net/hesiod/Makefile | 18 | ||||
-rw-r--r-- | net/hesiod/PLIST | 19 | ||||
-rw-r--r-- | net/hesiod/buildlink.mk | 53 | ||||
-rw-r--r-- | net/hesiod/distinfo | 4 |
5 files changed, 97 insertions, 0 deletions
diff --git a/net/hesiod/DESCR b/net/hesiod/DESCR new file mode 100644 index 00000000000..e38fb636a49 --- /dev/null +++ b/net/hesiod/DESCR @@ -0,0 +1,3 @@ +Hesiod is a name service library that can provide general name service for a +variety of applications. It is based on the Domain Name system (DNS). +The Hesiod library and hesinfo tool allow easy queries to Hesiod name service. diff --git a/net/hesiod/Makefile b/net/hesiod/Makefile new file mode 100644 index 00000000000..d84bffa2f68 --- /dev/null +++ b/net/hesiod/Makefile @@ -0,0 +1,18 @@ +# $NetBSD: Makefile,v 1.1.1.1 2001/11/29 11:41:28 seb Exp $ + +DISTNAME= hesiod-3.0.2 +CATEGORIES= net +MASTER_SITES= ftp://athena-dist.mit.edu/pub/ATHENA/hesiod/ + +MAINTAINER= kpneal@pobox.org +COMMENT= Hesiod network database client and library + +GNU_CONFIGURE= YES + +.if exists(/usr/include/hesiod.h) && !defined(NEED_HESIOD) +IGNORE= "${PKGNAME} is part of your ${OPSYS} distribution" +.endif + +CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} + +.include "../../mk/bsd.pkg.mk" diff --git a/net/hesiod/PLIST b/net/hesiod/PLIST new file mode 100644 index 00000000000..b290f027859 --- /dev/null +++ b/net/hesiod/PLIST @@ -0,0 +1,19 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2001/11/29 11:41:28 seb Exp $ +bin/hesinfo +include/hesiod.h +lib/libhesiod.a +man/man1/hesinfo.1 +man/man3/hesiod.3 +man/man3/hesiod_end.3 +man/man3/hesiod_free_list.3 +man/man3/hesiod_free_passwd.3 +man/man3/hesiod_free_postoffice.3 +man/man3/hesiod_free_servent.3 +man/man3/hesiod_getmailhost.3 +man/man3/hesiod_getpwnam.3 +man/man3/hesiod_getpwuid.3 +man/man3/hesiod_getservbyname.3 +man/man3/hesiod_init.3 +man/man3/hesiod_resolve.3 +man/man3/hesiod_to_bind.3 +man/man5/hesiod.conf.5 diff --git a/net/hesiod/buildlink.mk b/net/hesiod/buildlink.mk new file mode 100644 index 00000000000..b8a8f454f47 --- /dev/null +++ b/net/hesiod/buildlink.mk @@ -0,0 +1,53 @@ +# $NetBSD: buildlink.mk,v 1.1.1.1 2001/11/29 11:41:28 seb Exp $ +# +# This Makefile fragment is included by packages that use the Hesiod name +# service library. +# +# To use this Makefile fragment, simply: +# +# (1) Optionally define USE_HESIOD to force use of the hesiod library +# included in this package. +# (2) Optionally define BUILDLINK_DEPENDS.hesiod to the dependency pattern +# for the version of hesiod library desired. +# (3) Include this Makefile fragment in the package Makefile, +# (4) Add ${BUILDLINK_DIR}/include to the front of the C preprocessor's header +# search path, and +# (5) Add ${BUILDLINK_DIR}/lib to the front of the linker's library search +# path. + +.if !defined(HESIOD_BUILDLINK_MK) +HESIOD_BUILDLINK_MK= # defined + +.include "../../mk/bsd.buildlink.mk" + +BUILDLINK_DEPENDS.hesiod?= hesiod>=3.0.2 + +.if defined(USE_HESIOD) +_NEED_HESIOD= YES +.else +. if exists(/usr/include/hesiod.h) +_NEED_HESIOD= NO +. else +_NEED_HESIOD= YES +. endif +.endif + +.if ${_NEED_HESIOD} == "YES" +DEPENDS+= ${BUILDLINK_DEPENDS.hesiod}:../../net/hesiod +EVAL_PREFIX+= BUILDLINK_PREFIX.hesiod=hesiod +BUILDLINK_PREFIX.hesiod_DEFAULT= ${LOCALBASE} +.else +BUILDLINK_PREFIX.hesiod= /usr +.endif + +BUILDLINK_FILES.hesiod= include/hesiod.h +# if lib/libhesiod.* does not exists assume hesiod service is included in libc +BUILDLINK_FILES.hesiod+= lib/libhesiod.* + +BUILDLINK_TARGETS.hesiod= hesiod-buildlink +BUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.hesiod} + +pre-configure: ${BUILDLINK_TARGETS.hesiod} +hesiod-buildlink: _BUILDLINK_USE + +.endif # HESIOD_BUILDLINK_MK diff --git a/net/hesiod/distinfo b/net/hesiod/distinfo new file mode 100644 index 00000000000..ac765241879 --- /dev/null +++ b/net/hesiod/distinfo @@ -0,0 +1,4 @@ +$NetBSD: distinfo,v 1.1.1.1 2001/11/29 11:41:28 seb Exp $ + +SHA1 (hesiod-3.0.2.tar.gz) = bc88fc2ae3e7cf96af26d041ec113ab28f112d1d +Size (hesiod-3.0.2.tar.gz) = 31974 bytes |