diff options
author | miwi <miwi@FreeBSD.org> | 2011-01-29 22:22:55 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2011-01-29 22:22:55 +0800 |
commit | cd93a56979645e6d3f389fb0d54eb498320ea30d (patch) | |
tree | b4c7eb5cd9539fa912f188974cccbfd51f81d755 /net/omcmd | |
parent | a0733bba43a34be8be43e5f56ce4ecaa523dc8d1 (diff) | |
download | freebsd-ports-gnome-cd93a56979645e6d3f389fb0d54eb498320ea30d.tar.gz freebsd-ports-gnome-cd93a56979645e6d3f389fb0d54eb498320ea30d.tar.zst freebsd-ports-gnome-cd93a56979645e6d3f389fb0d54eb498320ea30d.zip |
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
Diffstat (limited to 'net/omcmd')
-rw-r--r-- | net/omcmd/Makefile | 26 | ||||
-rw-r--r-- | net/omcmd/distinfo | 2 | ||||
-rw-r--r-- | net/omcmd/files/patch-Makefile | 10 | ||||
-rw-r--r-- | net/omcmd/files/patch-base64.c | 10 | ||||
-rw-r--r-- | net/omcmd/files/patch-omfuncs.c | 11 | ||||
-rw-r--r-- | net/omcmd/pkg-descr | 6 |
6 files changed, 65 insertions, 0 deletions
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 |