summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorYen-Ming Lee <leeym@FreeBSD.org>2004-10-13 00:53:36 +0000
committerYen-Ming Lee <leeym@FreeBSD.org>2004-10-13 00:53:36 +0000
commit83ebdeba60a859b18f273e5635cee0857c10ef92 (patch)
treee081cd8c3b2de58c5c8032008946be1e6e7e1dbd /sysutils
parent- add USE_GCC=2.95 and unbreak this port (diff)
- 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
Notes
Notes: svn path=/head/; revision=119125
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/ipsc/Makefile14
-rw-r--r--sysutils/ipsc/files/patch-main.c33
-rw-r--r--sysutils/ipsc/pkg-plist2
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