Commit graph

29 commits

Author SHA1 Message Date
jlam
95fd1f6ec9 Massive cleanup of buildlink3.mk and builtin.mk files in pkgsrc.
Several changes are involved since they are all interrelated.  These
changes affect about 1000 files.

The first major change is rewriting bsd.builtin.mk as well as all of
the builtin.mk files to follow the new example in bsd.builtin.mk.
The loop to include all of the builtin.mk files needed by the package
is moved from bsd.builtin.mk and into bsd.buildlink3.mk.  bsd.builtin.mk
is now included by each of the individual builtin.mk files and provides
some common logic for all of the builtin.mk files.  Currently, this
includes the computation for whether the native or pkgsrc version of
the package is preferred.  This causes USE_BUILTIN.* to be correctly
set when one builtin.mk file includes another.

The second major change is teach the builtin.mk files to consider
files under ${LOCALBASE} to be from pkgsrc-controlled packages.  Most
of the builtin.mk files test for the presence of built-in software by
checking for the existence of certain files, e.g. <pthread.h>, and we
now assume that if that file is under ${LOCALBASE}, then it must be
from pkgsrc.  This modification is a nod toward LOCALBASE=/usr.  The
exceptions to this new check are the X11 distribution packages, which
are handled specially as noted below.

The third major change is providing builtin.mk and version.mk files
for each of the X11 distribution packages in pkgsrc.  The builtin.mk
file can detect whether the native X11 distribution is the same as
the one provided by pkgsrc, and the version.mk file computes the
version of the X11 distribution package, whether it's built-in or not.

The fourth major change is that the buildlink3.mk files for X11 packages
that install parts which are part of X11 distribution packages, e.g.
Xpm, Xcursor, etc., now use imake to query the X11 distribution for
whether the software is already provided by the X11 distribution.
This is more accurate than grepping for a symbol name in the imake
config files.  Using imake required sprinkling various builtin-imake.mk
helper files into pkgsrc directories.  These files are used as input
to imake since imake can't use stdin for that purpose.

The fifth major change is in how packages note that they use X11.
Instead of setting USE_X11, package Makefiles should now include
x11.buildlink3.mk instead.  This causes the X11 package buildlink3
and builtin logic to be executed at the correct place for buildlink3.mk
and builtin.mk files that previously set USE_X11, and fixes packages
that relied on buildlink3.mk files to implicitly note that X11 is
needed.  Package buildlink3.mk should also include x11.buildlink3.mk
when linking against the package libraries requires also linking
against the X11 libraries.  Where it was obvious, redundant inclusions
of x11.buildlink3.mk have been removed.
2005-06-01 18:02:37 +00:00
jlam
585534220c Remove USE_GNU_TOOLS and replace with the correct USE_TOOLS definitions:
USE_GNU_TOOLS	-> USE_TOOLS
	awk		-> gawk
	m4		-> gm4
	make		-> gmake
	sed		-> gsed
	yacc		-> bison
2005-05-22 20:07:36 +00:00
tv
f816d81489 Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used. 2005-04-11 21:44:48 +00:00
wiz
c2bf053ad7 Update to 0.69:
v0.69 make distclean should now also remove "rej" files.
        Antonio Querubin: update getopt.h . More cleanups using
        new infrastructure.
        rcw: Fixed IPV6 support: When compiled in an IPV6-supporting
        environment, but when the kernel doesn't support IPV6, mtr would
        fail to start.
  v0.68 included some old patches.
        included patch from Antonio Querubin for better IPV6 support
        restructured some more whitespace.
        added mtr.h where "global" things should go. Not finished
        moving things around, but now that the infrastructure is there,
        it should be easy.
2005-02-27 22:49:43 +00:00
agc
b12d62efb5 Add RMD160 digests. 2005-02-24 12:13:41 +00:00
wiz
189e4462bd Add patch based on christos' etherape patch-ab to make name lookups work
on -current. Bump PKGREVISION.
2005-02-01 17:02:00 +00:00
wiz
ac429c3d7e Update to 0.67:
v0.67 Bad keyboarding by REW caused this one out the door. Sorry.
        No changes.
  v0.66 Through the Debian bugtracking system a bug report and
        fix was sent my way, that deals with stupid optmization
        trying to save some 768 bytes of memory, sacrificing "it
        works" on a different architecture... (default char signedness)
2004-12-25 21:24:45 +00:00
grant
3f3232b93b fix build on Solaris by linking against ncurses instead of libtermcap
libtermcap == libcurses on Solaris 9 but it lacks the wattr_{on,off}
functions and the configure script doesn't check for them.

no PKGREVISION bump as this was already depending on ncurses where
appropriate.
2004-11-05 09:01:11 +00:00
wiz
a22b7de337 Update to 0.65, based on PR 27562 by Andreas Wrede.
Changes since 0.54:
  v0.65 Dancer Vesperman noted that mtr no longer traces past
        a section of non-responding hosts. Apparently I added
        a line in net.c that didn't make sense in mtr-0.56. I
        can't find the reason for adding that line, so someone
        who thinks (s)he needs it, should holler.

  v0.64 Philippe suggests to do the time_t thingy before socket.h.
        Apparently, MAC OS X doesn't compile socket.h otherwise.

  v0.63 Suggestion by RCW: Add -lm at line 70 of Configure.in.
        On my system no ill effects ensued, so this version released
        so that he can test if it still works on his sytem.

        Let me add that it's stupid that I have to specify that this
        this program now requires Automake version 1.5 to build, where
        Automake was intended to make software independent of different
        versions of build software!

        For those concerned about the above statement: If you're just
        trying to compile and use MTR, there is no need for automake.
        Just when you're messing with the configure and build system of
        mtr is automake a tool you need.

  v0.62 Apparently someone changed gethostbyname into gethostbyname2
        in mtr.c in an attempt to add IPV6 support. For systems without
        ipv6 support, the old gethostbyname should be used! Linux
        has the call even if you don't enable IPV6. Thanks Gary (rsub)

  v0.61 Attempt to get/print the local IP address. Now shows as
        0.0.0.0 :-( Hints and tips appreciated! -- REW
        Lots of blank space reformatting.
        moved the interface address setting to net.c (where it
        belongs).

  v0.60 John Thacker submitted a surprisingly simple patch to
        enable linking against GTK2.  (up to 2.4.0)

  v0.59 Josh Martin suggested to add some bounds checking to
        the dynamic field code. This caused me to delve in, and
        rewrite some things. Now 50 lines of code less, but cleaner
        code. :-)

  v0.58 I don't remember. Fogot to update this. :-( Check the
        patch.

  v0.57 Lots of whitespace cleanups. And a DNS fix: Don't do DNS
        lookups in raw mode with -n specified.

  v0.56 Fixed compile warnings. Now compiles with -Wall. If your
        compiler finds things mine didn't feel free to shout.

  v0.55 Cleanup patch. I'm going to do some maintenance on MTR,
        but I want to be able to say: Can you see which version
        fixed/broke things for you, so you're going to see a
        bunch of new releases soon.
2004-10-27 16:18:31 +00:00
tv
c487cb967a Libtool fix for PR pkg/26633, and other issues. Update libtool to 1.5.10
in the process.  (More information on tech-pkg.)

Bump PKGREVISION and BUILDLINK_DEPENDS of all packages using libtool and
installing .la files.

Bump PKGREVISION (only) of all packages depending directly on the above
via a buildlink3 include.
2004-10-03 00:12:51 +00:00
grant
6eab5759a3 replace deprecated USE_GMAKE with USE_GNU_TOOLS+=make. 2004-01-24 14:50:05 +00:00
jlam
457d023fac bl3ify 2004-01-06 07:05:24 +00:00
jlam
a9f08159c4 Back out last change related to moving ncurses/buildlink2.mk to
curses.buildlink2.mk.  This was wrong because we _really_ do want to
express that we want _n_curses when we include the buildlink2.mk file.

We should have a better way to say that the NetBSD curses doesn't
quite work well enough.  In fact, it's far better to depend on ncurses
by default, and exceptionally note when it's okay to use NetBSD curses
for specific packages.  We will look into this again in the future.
2003-09-28 09:13:55 +00:00
grant
7a71199b50 move ncurses/buildlink2.mk to mk/curses.buildlink2.mk, as it provides
support for base system curses/ncurses as well as ncurses itself.

suggested by wiz.
2003-09-27 17:07:34 +00:00
grant
ca3be631f2 s/netbsd.org/NetBSD.org/ 2003-07-17 22:50:55 +00:00
wiz
43fa0c7cb6 PKGREVISION bump for libiconv update. 2003-07-13 13:50:19 +00:00
wiz
9012b9cf99 Update to 0.54:
v0.54 Added "scrolling" patch from Roland Illig, to allow
        scrolling in text mode. I've always wanted this......
  v0.53 Added fix for raw mode.
2003-05-23 07:28:24 +00:00
jmmv
f1446ddf2b Drop trailing whitespace. Ok'ed by wiz. 2003-05-06 17:40:18 +00:00
jmmv
8a555528c0 PKGREVISION goes after PKGNAME. 2003-05-05 19:05:05 +00:00
wiz
7166660e08 Dependency bumps, needed because of devel/pth's major bump, and related
dependency bumps.
2003-05-02 11:53:34 +00:00
mycroft
9a4eb7067c Update from 0.51 to 0.52. Miscellaneous build and portability fixes. 2003-01-09 16:32:10 +00:00
wiz
03f32f8640 Update to 0.51:
v0.51 Fixed the bug introduced by the previous select loop fix...
        Thanks Evgeniy
  v0.50 Make "interface address" option work.
        Changes to "select" loop to allow window resizes (select
        interruption) to work. Thanks Mike!
2002-08-30 23:50:34 +00:00
jlam
1c57323789 Merge packages from the buildlink2 branch back into the main trunk that
have been converted to USE_BUILDLINK2.
2002-08-25 21:48:57 +00:00
wiz
42753fc182 Update mtr packages to 0.49. Changes since 0.42:
v0.49 Fix compilation problems on several platforms.
v0.48 Draw names in red (GTK) or bold (Curses) if host doesn't
      respond.
v0.47 Fixed a (believed-) non-exploitable bufferoverflow.
      Thanks Damian.
v0.46 Included patch to be able to specify outgoing interface
      address.
v0.45 People are pressuring me to release new versions with their
      changes. That's fine. Now this version just adds dynamic
      switching between numeric / dns names, and some minor
      stuff I forgot. This release serves as a code-sycn-release.
      new version with even more new stuff in about two weeks!
      I'm afraid I don't know how to fix the MaxOS-X compilation
      problems in the source. Help wanted...
v0.44 David Stone adds the "last" column to the gtk version.
v0.43 Compile fixes.
2002-03-13 02:16:11 +00:00
agc
57aa4707d7 s/root/${ROOT_USER}/g, now that the definition appears in the
defs.${OPSYS}.mk files.
2001-12-05 15:00:44 +00:00
hubertf
5542206cba Get rid of manually adding "nbX" to PKGNAME when a pkg was changed in
pkgsrc. Instead, a new variable PKGREVISION is invented that can get
bumped independent of DISTNAME and PKGNAME.

Example #1:
        DISTNAME=       foo-X.Y
        PKGREVISION=    Z
     => PKGNAME=        foo-X.YnbZ

Example #2:
        DISTNAME=       barthing-X.Y
        PKGNAME=        bar-X.Y
        PKGREVISION=    Z
     => PKGNAME=        bar=X.YnbZ (!)

On subsequent changes, only PKGREVISION needs to be bumped, no more risk
of getting DISTNAME changed accidentally.
2001-11-29 01:12:24 +00:00
wiz
2557f230f0 Add patch to add rudimentary cname chasing to the ptr lookup stuff so
that classless in-addr lookups work.
Patch by atatat.
Bump to 0.42nb1.
2001-11-04 14:09:31 +00:00
zuntum
d038a73ebd Move pkg/ files into package's toplevel directory 2001-10-31 22:52:58 +00:00
agc
37beb7be58 Import the mtr-gtk-0.42 package, split off from the standard curses-based
package, to make things easier for those who may prefer not to link in
all of the gtk-based functionality.
2001-10-16 15:11:00 +00:00