diff options
author | Yen-Ming Lee <leeym@FreeBSD.org> | 2004-10-13 00:53:36 +0000 |
---|---|---|
committer | Yen-Ming Lee <leeym@FreeBSD.org> | 2004-10-13 00:53:36 +0000 |
commit | 83ebdeba60a859b18f273e5635cee0857c10ef92 (patch) | |
tree | e081cd8c3b2de58c5c8032008946be1e6e7e1dbd /sysutils/ipsc | |
parent | 98acd5f8a8bf14a412bc44da71031ebf8f59fee1 (diff) |
Notes
Diffstat (limited to 'sysutils/ipsc')
-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 |