summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2011-01-29 14:22:55 +0000
committerMartin Wilke <miwi@FreeBSD.org>2011-01-29 14:22:55 +0000
commit65c6806a90ecad02e414416e918dc01dab3e365c (patch)
treeba254a252e8a3bb70cfea11c856abfaa2b865576 /net
parent- Update to version 1.13 (diff)
omcmd is a CLI utility for performing OMAPI queries and updates on a
running ISC DHCP server, such as adding a host entry or querying a lease. Unlike omshell, it is designed to be readily usable by shell scripts; it has simple one-shot commands and returns error codes. WWW: http://freshmeat.net/projects/omcmd PR: ports/148398 Submitted by: Pavel Volkov Feature safe: yes
Notes
Notes: svn path=/head/; revision=268379
Diffstat (limited to 'net')
-rw-r--r--net/Makefile1
-rw-r--r--net/omcmd/Makefile26
-rw-r--r--net/omcmd/distinfo2
-rw-r--r--net/omcmd/files/patch-Makefile10
-rw-r--r--net/omcmd/files/patch-base64.c10
-rw-r--r--net/omcmd/files/patch-omfuncs.c11
-rw-r--r--net/omcmd/pkg-descr6
7 files changed, 66 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile
index 4cbc7f404b11..e19cb813be70 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -457,6 +457,7 @@
SUBDIR += nylon
SUBDIR += ohphone
SUBDIR += olsrd
+ SUBDIR += omcmd
SUBDIR += omnitty
SUBDIR += onenetd
SUBDIR += onion-fec
diff --git a/net/omcmd/Makefile b/net/omcmd/Makefile
new file mode 100644
index 000000000000..de500a96c541
--- /dev/null
+++ b/net/omcmd/Makefile
@@ -0,0 +1,26 @@
+# New ports collection makefile for: omcmd
+# Date created: 05 Jul 2010
+# Whom: Pavel Volkov
+#
+# $FreeBSD$
+#
+
+PORTNAME= omcmd
+PORTVERSION= 0.4.8
+CATEGORIES= net
+MASTER_SITES= http://people.bridgewater.edu/~dparsley/omcmd/
+
+MAINTAINER= pavelivolkov@googlemail.com
+COMMENT= CLI utility for performing OMAPI queries and updates on a ISC DHCP
+
+BUILD_DEPENDS= ${LOCALBASE}/sbin/dhcpd:${PORTSDIR}/net/isc-dhcp41-server
+
+PLIST_FILES= bin/${PORTNAME}
+
+MAN1= ${PORTNAME}.1
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MAN1PREFIX}/man/man1
+
+.include <bsd.port.mk>
diff --git a/net/omcmd/distinfo b/net/omcmd/distinfo
new file mode 100644
index 000000000000..a51cd924ca76
--- /dev/null
+++ b/net/omcmd/distinfo
@@ -0,0 +1,2 @@
+SHA256 (omcmd-0.4.8.tar.gz) = eda03815bd6e21d7a6a789b3b407951839afb3a47dc34627c3aab4581bbe1622
+SIZE (omcmd-0.4.8.tar.gz) = 90174
diff --git a/net/omcmd/files/patch-Makefile b/net/omcmd/files/patch-Makefile
new file mode 100644
index 000000000000..400d1e7823a5
--- /dev/null
+++ b/net/omcmd/files/patch-Makefile
@@ -0,0 +1,10 @@
+--- Makefile.orig 2010-07-05 14:25:42.000000000 +0400
++++ Makefile 2010-07-05 14:31:08.000000000 +0400
+@@ -1,6 +1,6 @@
+ objects = base64.o omfuncs.o
+ #DEBUG=-g
+-CFLAGS=$(DEBUG)
++CFLAGS=$(DEBUG) -I/usr/local/include -L/usr/local/lib
+
+ all: omcmd
+
diff --git a/net/omcmd/files/patch-base64.c b/net/omcmd/files/patch-base64.c
new file mode 100644
index 000000000000..678f40300848
--- /dev/null
+++ b/net/omcmd/files/patch-base64.c
@@ -0,0 +1,10 @@
+--- base64.c.orig 2010-07-05 14:55:31.000000000 +0400
++++ base64.c 2010-07-05 14:56:37.000000000 +0400
+@@ -13,6 +13,7 @@
+ * Removed unneeded encode function. 2004-07-17 David L. Parsley
+ * parsley@linuxjedi.org
+ */
++#include <sys/time.h>
+ #include <ctype.h>
+ #include "omcmd.h"
+
diff --git a/net/omcmd/files/patch-omfuncs.c b/net/omcmd/files/patch-omfuncs.c
new file mode 100644
index 000000000000..d1358cee1633
--- /dev/null
+++ b/net/omcmd/files/patch-omfuncs.c
@@ -0,0 +1,11 @@
+--- omfuncs.c.orig 2010-07-05 14:29:11.000000000 +0400
++++ omfuncs.c 2010-07-05 14:30:01.000000000 +0400
+@@ -6,6 +6,8 @@
+ #include <time.h>
+ #include <string.h>
+ #include <stdarg.h>
++#include <sys/types.h>
++#include <sys/socket.h>
+ #include <arpa/inet.h>
+ #include <netinet/in.h>
+ #include <stdlib.h>
diff --git a/net/omcmd/pkg-descr b/net/omcmd/pkg-descr
new file mode 100644
index 000000000000..ca9ff2543cfa
--- /dev/null
+++ b/net/omcmd/pkg-descr
@@ -0,0 +1,6 @@
+omcmd is a CLI utility for performing OMAPI queries and updates on a
+running ISC DHCP server, such as adding a host entry or querying a lease.
+Unlike omshell, it is designed to be readily usable by shell scripts;
+it has simple one-shot commands and returns error codes.
+
+WWW: http://freshmeat.net/projects/omcmd