mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-27 05:10:36 +00:00
Update to prips-0.9.5, released by me after adopting the upstream package.
This commit is contained in:
parent
4d7a08644e
commit
f30270f4b1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=231160
@ -6,24 +6,23 @@
|
||||
#
|
||||
|
||||
PORTNAME= prips
|
||||
PORTVERSION= 0.9.4
|
||||
PORTVERSION= 0.9.5
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= ${MASTER_SITE_DEBIAN_POOL}
|
||||
DISTNAME= ${PORTNAME}_${PORTVERSION}.orig
|
||||
MASTER_SITES= http://devel.ringlet.net/sysutils/prips/
|
||||
|
||||
MAINTAINER= roam@FreeBSD.org
|
||||
COMMENT= Prints IP subnet ranges by list or CIDR
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
||||
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}"
|
||||
|
||||
PORTDOCS= README
|
||||
PLIST_FILES= bin/prips
|
||||
MAN1= prips.1
|
||||
MANCOMPRESSED= yes
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/prips ${PREFIX}/bin
|
||||
${INSTALL_DATA} ${WRKSRC}/prips.1.gz ${PREFIX}/man/man1/
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
||||
|
@ -1,3 +1,3 @@
|
||||
MD5 (prips_0.9.4.orig.tar.gz) = e09f2825c81c44a7e27528b942989d61
|
||||
SHA256 (prips_0.9.4.orig.tar.gz) = 0bc9b696810f3b05bd5b174fa60a393a37884831b3bbed3ec2fc690d21beb87b
|
||||
SIZE (prips_0.9.4.orig.tar.gz) = 6292
|
||||
MD5 (prips-0.9.5.tar.gz) = 1c9a569abca6e1f1181cda5389313b35
|
||||
SHA256 (prips-0.9.5.tar.gz) = 7715a5fcf65750b9143c8b2020f08259fb51f909eefd26b310e1e38dc27b2761
|
||||
SIZE (prips-0.9.5.tar.gz) = 15168
|
||||
|
@ -1,9 +0,0 @@
|
||||
--- except.c.orig Wed Jun 2 10:50:51 1999
|
||||
+++ except.c Fri May 26 03:59:25 2006
|
||||
@@ -1,5 +1,6 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
+#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <math.h>
|
||||
#include <assert.h>
|
@ -1,52 +0,0 @@
|
||||
--- main.c.orig Mon Oct 20 17:59:26 2003
|
||||
+++ main.c Mon Oct 20 18:02:56 2003
|
||||
@@ -1,9 +1,9 @@
|
||||
/* program that prints IP address ranges */
|
||||
+#include "prips.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
-#include "prips.h"
|
||||
#include "except.h"
|
||||
|
||||
typedef enum {
|
||||
@@ -16,11 +16,11 @@
|
||||
|
||||
const char *MAINTAINER = "dan@vertekcorp.com";
|
||||
const char *VERSION =
|
||||
- "\rprips 0.9.4
|
||||
- \rThis program comes with NO WARRANTY,
|
||||
- \rto the extent permitted by law.
|
||||
- \rYou may redistribute copies under
|
||||
- \rthe terms of the GNU General Public License.\n";
|
||||
+ "\rprips 0.9.4\n"\
|
||||
+" \rThis program comes with NO WARRANTY,\n"\
|
||||
+" \rto the extent permitted by law.\n"\
|
||||
+" \rYou may redistribute copies under\n"\
|
||||
+" \rthe terms of the GNU General Public License.\n";
|
||||
|
||||
void usage(char *prog);
|
||||
AddrFormat get_format(char *format);
|
||||
@@ -166,14 +166,13 @@
|
||||
|
||||
void usage(char *prog)
|
||||
{
|
||||
- fprintf(stderr, "usage: %s [options] <start end | CIDR block>
|
||||
- -c print range in CIDR notation
|
||||
- -d <x> set the delimeter 'x' where 0 =< x =< 255
|
||||
- -f <x> set the format of addresses (hex, dec, or dot)
|
||||
- -i <x> set the increment to 'x'
|
||||
- -e <x.x.x,x.x> e.g. -e ..4. will not print 192.168.4.[0-255]
|
||||
-
|
||||
- \rReport bugs to %s\n",
|
||||
+ fprintf(stderr, "usage: %s [options] <start end | CIDR block>\n"\
|
||||
+" -c print range in CIDR notation\n"\
|
||||
+" -d <x> set the delimeter 'x' where 0 =< x =< 255\n"\
|
||||
+" -f <x> set the format of addresses (hex, dec, or dot)\n"\
|
||||
+" -i <x> set the increment to 'x'\n"\
|
||||
+" -e <x.x.x,x.x> e.g. -e ..4. will not print 192.168.4.[0-255]\n\n"\
|
||||
+" \rReport bugs to %s\n",
|
||||
prog, MAINTAINER);
|
||||
}
|
||||
|
@ -1,12 +0,0 @@
|
||||
--- prips.c.orig Tue Dec 14 12:44:46 1999
|
||||
+++ prips.c Fri May 26 03:56:39 2006
|
||||
@@ -1,8 +1,7 @@
|
||||
+#include "prips.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <math.h>
|
||||
-#include <arpa/inet.h>
|
||||
-#include "prips.h"
|
||||
|
||||
#if !defined(INET_ADDRSTRLEN)
|
||||
#define INET_ADDRSTRLEN 16
|
@ -2,6 +2,6 @@ prips is a tool that can be used to print all of the IP address on a given
|
||||
range. It can enhance the usability of tools that are made to work on only
|
||||
one host at a time (e.g. whois).
|
||||
|
||||
WWW: http://directory.fsf.org/ipsc.html
|
||||
WWW: http://devel.ringlet.net/sysutils/prips/
|
||||
|
||||
-Jeremy <jeremy@external.org>
|
||||
|
Loading…
Reference in New Issue
Block a user