summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2004-01-03 23:21:44 +0000
committertron <tron@pkgsrc.org>2004-01-03 23:21:44 +0000
commit073d8a6c0ee522d180b50d90908d060f98b55436 (patch)
tree21a57c2fbc29a3e10e384a54efbce4393e1da9d7 /net
parent339cd13cb2e6dedfb07f792d4748aad67fe2788b (diff)
downloadpkgsrc-073d8a6c0ee522d180b50d90908d060f98b55436.tar.gz
Import new "oidentd" package:
Configurable IDENT server that supports NAT/IP masq
Diffstat (limited to 'net')
-rw-r--r--net/oidentd/DESCR6
-rw-r--r--net/oidentd/Makefile26
-rw-r--r--net/oidentd/PLIST6
-rw-r--r--net/oidentd/distinfo6
-rw-r--r--net/oidentd/files/oidentd.sh40
-rw-r--r--net/oidentd/patches/patch-aa22
-rw-r--r--net/oidentd/patches/patch-ab13
7 files changed, 119 insertions, 0 deletions
diff --git a/net/oidentd/DESCR b/net/oidentd/DESCR
new file mode 100644
index 00000000000..32a42419e8f
--- /dev/null
+++ b/net/oidentd/DESCR
@@ -0,0 +1,6 @@
+oidentd is an ident (rfc1413 compliant) daemon that runs on Linux, Darwin,
+FreeBSD, OpenBSD, NetBSD and Solaris. oidentd can handle IP masqueraded/NAT
+connections on Linux, Darwin, FreeBSD (ipf only), OpenBSD and NetBSD.
+oidentd has a flexible mechanism for specifying ident responses. Users can
+be granted permission to specify their own ident responses. Responses can be
+specified according to host and port pairs.
diff --git a/net/oidentd/Makefile b/net/oidentd/Makefile
new file mode 100644
index 00000000000..ee1ac81edbb
--- /dev/null
+++ b/net/oidentd/Makefile
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/01/03 23:21:44 tron Exp $
+
+DISTNAME= oidentd-2.0.7
+CATEGORIES= net
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=ojnk/}
+
+MAINTAINER= tron@NetBSD.org
+HOMEPAGE= http://dev.ojnk.net/
+COMMENT= Configurable IDENT server that supports NAT/IP masq
+
+GNU_CONFIGURE= YES
+CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
+USE_PKGINSTALL= YES
+RCD_SCRIPTS= oidentd
+
+.include "../../mk/bsd.prefs.mk"
+
+BUILD_DEFS+= USE_INET6
+.if defined(USE_INET6) && ${USE_INET6} != "YES"
+CONFIGURE_ARGS+= --disable-ipv6
+.endif
+
+post-configure:
+ ${ECHO} >>${WRKSRC}/config.h "#define PKG_SYSCONFDIR \"${PKG_SYSCONFDIR}\""
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/oidentd/PLIST b/net/oidentd/PLIST
new file mode 100644
index 00000000000..04ccc0f5110
--- /dev/null
+++ b/net/oidentd/PLIST
@@ -0,0 +1,6 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/01/03 23:21:44 tron Exp $
+etc/rc.d/oidentd
+man/man5/oidentd.conf.5
+man/man5/oidentd_masq.conf.5
+man/man8/oidentd.8
+sbin/oidentd
diff --git a/net/oidentd/distinfo b/net/oidentd/distinfo
new file mode 100644
index 00000000000..5c4e409e669
--- /dev/null
+++ b/net/oidentd/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/01/03 23:21:44 tron Exp $
+
+SHA1 (oidentd-2.0.7.tar.gz) = c973b436e6f8cab87b5e2f557e901722e27f1e79
+Size (oidentd-2.0.7.tar.gz) = 196027 bytes
+SHA1 (patch-aa) = b5c82f425fc9f5174dd4efb4c4d13bdf78486beb
+SHA1 (patch-ab) = 264178c5cc79c744354ab228678cb41bdc27b198
diff --git a/net/oidentd/files/oidentd.sh b/net/oidentd/files/oidentd.sh
new file mode 100644
index 00000000000..e65f1c3199e
--- /dev/null
+++ b/net/oidentd/files/oidentd.sh
@@ -0,0 +1,40 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: oidentd.sh,v 1.1.1.1 2004/01/03 23:21:45 tron Exp $
+#
+
+# PROVIDE: oidentd
+# REQUIRE: DAEMON
+
+conf_file="@PKG_SYSCONFDIR@/oidentd.conf"
+
+name="oidentd"
+rcvar=$name
+command="@PREFIX@/sbin/${name}"
+required_files="${conf_file}"
+
+if [ -f /etc/rc.subr -a -d /etc/rc.d -a -f /etc/rc.d/DAEMON ]; then
+ . /etc/rc.subr
+ . /etc/rc.conf
+
+ load_rc_config $name
+ run_rc_command "$1"
+
+else # old NetBSD, Solaris, Linux, etc...
+
+ case $1 in
+ start)
+ if [ -x ${command} -a -f ${conf_file} ] ; then
+ eval ${command} && @ECHO@ -n " ${name}"
+ fi
+ ;;
+ stop)
+ ${stop_cmd}
+ ;;
+ *)
+ @ECHO@ "Usage: $0 {start|stop}" 1>&2
+ exit 64
+ ;;
+ esac
+
+fi
diff --git a/net/oidentd/patches/patch-aa b/net/oidentd/patches/patch-aa
new file mode 100644
index 00000000000..253ac958b93
--- /dev/null
+++ b/net/oidentd/patches/patch-aa
@@ -0,0 +1,22 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/01/03 23:21:45 tron Exp $
+
+--- src/oidentd.h.orig Fri Jul 11 16:11:25 2003
++++ src/oidentd.h Sun Jan 4 00:06:40 2004
+@@ -24,7 +24,7 @@
+ ** us.
+ */
+
+-#define MASQ_MAP "/etc/oidentd_masq.conf"
++#define MASQ_MAP PKG_SYSCONFDIR "/oidentd_masq.conf"
+
+ /*
+ ** String prepended to a random number when the -r flag is specified
+@@ -36,7 +36,7 @@
+ ** System-wide configuration file.
+ */
+
+-#define CONFFILE "/etc/oidentd.conf"
++#define CONFFILE PKG_SYSCONFDIR "/oidentd.conf"
+
+ /*
+ ** Per-user configuration file. This file is relative to the user's
diff --git a/net/oidentd/patches/patch-ab b/net/oidentd/patches/patch-ab
new file mode 100644
index 00000000000..bdbab86ee11
--- /dev/null
+++ b/net/oidentd/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1.1.1 2004/01/03 23:21:45 tron Exp $
+
+--- src/oidentd_options.c.orig Sun Apr 27 22:17:43 2003
++++ src/oidentd_options.c Sat Jan 3 23:59:04 2004
+@@ -385,7 +385,7 @@
+ "\nUsage: oidentd [options]\n"
+ "-a or --address <address> Bind to <address>\n"
+ "-c or --charset <charset> Specify an alternate charset\n"
+-"-C or --config <config file> Use the specifed file instead of /etc/oidentd.conf\n"
++"-C or --config <config file> Use the specifed file instead of " CONFFILE "\n"
+ "-d or --debug Enable debugging\n"
+ "-e or --error Return \"UNKNOWN-ERROR\" for all errors\n"
+