mirror of
https://git.freebsd.org/ports.git
synced 2025-06-05 12:56:28 -04: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
3 changed files with 38 additions and 11 deletions
|
@ -15,28 +15,24 @@ DISTNAME= ${PORTNAME}-${PORTVERSION}-src
|
||||||
MAINTAINER= jeremy@external.org
|
MAINTAINER= jeremy@external.org
|
||||||
COMMENT= An IP Subnet Calculator
|
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
|
WRKSRC= ${WRKDIR}/ipsc/src
|
||||||
|
|
||||||
WANT_GNOME= yes
|
WANT_GNOME= yes
|
||||||
|
PLIST_FILES= bin/ipsc
|
||||||
.include <bsd.port.pre.mk>
|
|
||||||
|
|
||||||
.if defined(HAVE_GNOME)
|
.if defined(HAVE_GNOME)
|
||||||
USE_X_PREFIX= yes
|
USE_X_PREFIX= yes
|
||||||
USE_GNOME= yes
|
USE_GNOME= yes
|
||||||
ALL_TARGET= all
|
ALL_TARGET= all
|
||||||
|
PLIST_FILES+= bin/gipsc
|
||||||
.else
|
.else
|
||||||
ALL_TARGET= ipsc
|
ALL_TARGET= ipsc
|
||||||
.endif
|
.endif
|
||||||
|
|
||||||
.if ${OSVERSION} >= 500113
|
|
||||||
BROKEN= "Does not compile on FreeBSD ${OSVERSION}"
|
|
||||||
.endif
|
|
||||||
|
|
||||||
post-extract:
|
post-extract:
|
||||||
@${LN} -s ${WRKDIRPREFIX}${.CURDIR}/../prips/work/prips \
|
@${LN} -s ${WRKDIRPREFIX}${PORTSDIR}/sysutils/prips/work/prips \
|
||||||
${WRKDIR}/prips
|
${WRKDIR}/prips
|
||||||
|
|
||||||
do-install:
|
do-install:
|
||||||
|
@ -45,4 +41,4 @@ do-install:
|
||||||
${INSTALL_PROGRAM} ${WRKSRC}/gipsc ${PREFIX}/bin
|
${INSTALL_PROGRAM} ${WRKSRC}/gipsc ${PREFIX}/bin
|
||||||
.endif
|
.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…
Add table
Reference in a new issue