diff options
author | leeym <leeym@FreeBSD.org> | 2004-10-13 08:53:36 +0800 |
---|---|---|
committer | leeym <leeym@FreeBSD.org> | 2004-10-13 08:53:36 +0800 |
commit | 26908d2466281442ce21320f2005466e4bf01b99 (patch) | |
tree | 03d8e4ebc0a932a74af6061c948c55f905386900 /sysutils | |
parent | 0b32123630bd85f1faeb8b5fa3e58797c0bc5156 (diff) | |
download | freebsd-ports-gnome-26908d2466281442ce21320f2005466e4bf01b99.tar.gz freebsd-ports-gnome-26908d2466281442ce21320f2005466e4bf01b99.tar.zst freebsd-ports-gnome-26908d2466281442ce21320f2005466e4bf01b99.zip |
- 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
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/ipsc/Makefile | 14 | ||||
-rw-r--r-- | sysutils/ipsc/files/patch-main.c | 33 | ||||
-rw-r--r-- | sysutils/ipsc/pkg-plist | 2 |
3 files changed, 38 insertions, 11 deletions
diff --git a/sysutils/ipsc/Makefile b/sysutils/ipsc/Makefile index 93ed1afd8cd8..0e2aece7499c 100644 --- a/sysutils/ipsc/Makefile +++ b/sysutils/ipsc/Makefile @@ -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> diff --git a/sysutils/ipsc/files/patch-main.c b/sysutils/ipsc/files/patch-main.c new file mode 100644 index 000000000000..8fd395c9b354 --- /dev/null +++ b/sysutils/ipsc/files/patch-main.c @@ -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); + } diff --git a/sysutils/ipsc/pkg-plist b/sysutils/ipsc/pkg-plist deleted file mode 100644 index 5921d23e46cd..000000000000 --- a/sysutils/ipsc/pkg-plist +++ /dev/null @@ -1,2 +0,0 @@ -bin/ipsc -%%GNOME:%%bin/gipsc |