mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-30 05:40:06 +00:00
- add patch file
- correct the path of prips - unbreak this port on 5.x - use PLIST_FILES instead of pkg-plist PR: 71900 Submitted by: leeym Approved by: maintainer timeout
This commit is contained in:
parent
98acd5f8a8
commit
83ebdeba60
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=119125
@ -15,28 +15,24 @@ DISTNAME= ${PORTNAME}-${PORTVERSION}-src
|
||||
MAINTAINER= jeremy@external.org
|
||||
COMMENT= An IP Subnet Calculator
|
||||
|
||||
BUILD_DEPENDS= ${PORTSDIR}/sysutils/prips/work/prips/prips.o:${PORTSDIR}/sysutils/prips:build
|
||||
BUILD_DEPENDS= ${WRKDIRPREFIX}${PORTSDIR}/sysutils/prips/work/prips/prips.o:${PORTSDIR}/sysutils/prips:build
|
||||
|
||||
WRKSRC= ${WRKDIR}/ipsc/src
|
||||
|
||||
WANT_GNOME= yes
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
PLIST_FILES= bin/ipsc
|
||||
|
||||
.if defined(HAVE_GNOME)
|
||||
USE_X_PREFIX= yes
|
||||
USE_GNOME= yes
|
||||
ALL_TARGET= all
|
||||
PLIST_FILES+= bin/gipsc
|
||||
.else
|
||||
ALL_TARGET= ipsc
|
||||
.endif
|
||||
|
||||
.if ${OSVERSION} >= 500113
|
||||
BROKEN= "Does not compile on FreeBSD ${OSVERSION}"
|
||||
.endif
|
||||
|
||||
post-extract:
|
||||
@${LN} -s ${WRKDIRPREFIX}${.CURDIR}/../prips/work/prips \
|
||||
@${LN} -s ${WRKDIRPREFIX}${PORTSDIR}/sysutils/prips/work/prips \
|
||||
${WRKDIR}/prips
|
||||
|
||||
do-install:
|
||||
@ -45,4 +41,4 @@ do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/gipsc ${PREFIX}/bin
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
33
sysutils/ipsc/files/patch-main.c
Normal file
33
sysutils/ipsc/files/patch-main.c
Normal file
@ -0,0 +1,33 @@
|
||||
--- main.c.orig Sun Sep 19 13:58:16 2004
|
||||
+++ main.c Sun Sep 19 13:58:51 2004
|
||||
@@ -142,18 +142,18 @@
|
||||
|
||||
void usage(const char *prog)
|
||||
{
|
||||
- fprintf(stderr, "usage: %s [options] <addr/mask | addr/offset | addr>
|
||||
- -C <class> Network class (a, b, or c). Must be used with -B
|
||||
- -B <bits> Subnet bits (must be used with -C)
|
||||
- -i <if> Reverse engineer an interface (e.g. eth0)
|
||||
- -a Print all information available
|
||||
- -g Print general information
|
||||
- -s Print all possible subnets
|
||||
- -h Print host information
|
||||
- -c Print CIDR information
|
||||
- -v Print the program version
|
||||
- -? Print this help message
|
||||
-
|
||||
+ fprintf(stderr, "usage: %s [options] <addr/mask | addr/offset | addr>\n\
|
||||
+ -C <class> Network class (a, b, or c). Must be used with -B\n\
|
||||
+ -B <bits> Subnet bits (must be used with -C)\n\
|
||||
+ -i <if> Reverse engineer an interface (e.g. eth0)\n\
|
||||
+ -a Print all information available\n\
|
||||
+ -g Print general information\n\
|
||||
+ -s Print all possible subnets\n\
|
||||
+ -h Print host information\n\
|
||||
+ -c Print CIDR information\n\
|
||||
+ -v Print the program version\n\
|
||||
+ -? Print this help message\n\
|
||||
+\n\
|
||||
\rReport bugs to %s\n",
|
||||
prog, MAINTAINER);
|
||||
}
|
@ -1,2 +0,0 @@
|
||||
bin/ipsc
|
||||
%%GNOME:%%bin/gipsc
|
Loading…
Reference in New Issue
Block a user