Commit graph

27 commits

Author SHA1 Message Date
joerg
62d1ba2bac Remove @dirrm entries from PLISTs 2009-06-14 18:03:28 +00:00
joerg
2d1ba244e9 Simply and speed up buildlink3.mk files and processing.
This changes the buildlink3.mk files to use an include guard for the
recursive include. The use of BUILDLINK_DEPTH, BUILDLINK_DEPENDS,
BUILDLINK_PACKAGES and BUILDLINK_ORDER is handled by a single new
variable BUILDLINK_TREE. Each buildlink3.mk file adds a pair of
enter/exit marker, which can be used to reconstruct the tree and
to determine first level includes. Avoiding := for large variables
(BUILDLINK_ORDER) speeds up parse time as += has linear complexity.
The include guard reduces system time by avoiding reading files over and
over again. For complex packages this reduces both %user and %sys time to
half of the former time.
2009-03-20 19:23:50 +00:00
sketch
ceab9dfc98 #if -> #ifdef, fix Sun Studio 64bit build. PR#35559. 2009-02-21 00:39:45 +00:00
joerg
f605fec2db Mark as destdir ready. 2008-07-14 12:55:56 +00:00
jlam
4390d56940 Make it easier to build and install packages "unprivileged", where
the owner of all installed files is a non-root user.  This change
affects most packages that require special users or groups by making
them use the specified unprivileged user and group instead.

(1) Add two new variables PKG_GROUPS_VARS and PKG_USERS_VARS to
    unprivileged.mk.  These two variables are lists of other bmake
    variables that define package-specific users and groups.  Packages
    that have user-settable variables for users and groups, e.g. apache
    and APACHE_{USER,GROUP}, courier-mta and COURIER_{USER,GROUP},
    etc., should list these variables in PKG_USERS_VARS and PKG_GROUPS_VARS
    so that unprivileged.mk can know to set them to ${UNPRIVILEGED_USER}
    and ${UNPRIVILEGED_GROUP}.

(2) Modify packages to use PKG_GROUPS_VARS and PKG_USERS_VARS.
2007-07-04 20:54:31 +00:00
jlam
c16221a4db Change the format of BUILDLINK_ORDER to contain depth information as well,
and add a new helper target and script, "show-buildlink3", that outputs
a listing of the buildlink3.mk files included as well as the depth at
which they are included.

For example, "make show-buildlink3" in fonts/Xft2 displays:

	zlib
	fontconfig
	    iconv
	    zlib
	    freetype2
	    expat
	freetype2
	Xrender
	    renderproto
2006-07-08 23:10:35 +00:00
jlam
9430e49307 Track information in a new variable BUILDLINK_ORDER that informs us
of the order in which buildlink3.mk files are (recursively) included
by a package Makefile.
2006-07-08 22:38:58 +00:00
jlam
802ce74fcb Modify packages that set PKG_USERS and PKG_GROUPS to follow the new
syntax as specified in pkgsrc/mk/install/bsd.pkginstall.mk:1.47.
2006-04-23 00:12:35 +00:00
reed
5abef9be14 Over 1200 files touched but no revisions bumped :)
RECOMMENDED is removed. It becomes ABI_DEPENDS.

BUILDLINK_RECOMMENDED.foo becomes BUILDLINK_ABI_DEPENDS.foo.

BUILDLINK_DEPENDS.foo becomes BUILDLINK_API_DEPENDS.foo.

BUILDLINK_DEPENDS does not change.

IGNORE_RECOMMENDED (which defaulted to "no") becomes USE_ABI_DEPENDS
which defaults to "yes".

Added to obsolete.mk checking for IGNORE_RECOMMENDED.

I did not manually go through and fix any aesthetic tab/spacing issues.

I have tested the above patch on DragonFly building and packaging
subversion and pkglint and their many dependencies.

I have also tested USE_ABI_DEPENDS=no on my NetBSD workstation (where I
have used IGNORE_RECOMMENDED for a long time). I have been an active user
of IGNORE_RECOMMENDED since it was available.

As suggested, I removed the documentation sentences suggesting bumping for
"security" issues.

As discussed on tech-pkg.

I will commit to revbump, pkglint, pkg_install, createbuildlink separately.

Note that if you use wip, it will fail!  I will commit to pkgsrc-wip
later (within day).
2006-04-06 06:21:32 +00:00
rillig
69cfff7af6 Fixed pkglint warnings. 2006-02-12 05:26:39 +00:00
tron
8c1106154c Update "howl" package to version 1.0.0. Changes since version 0.9.10:
- update to mDNSResponder core 58-8-1
- compile out heap debugging when NDEBUG macro is set during compilation
- errors encountered when parsing conf file are logged
- fix various unsafe sprintf calls (contributed by
  David Young dyoung@pobox.com)
- compiles cleanly using cygwin
- support for compiling under OpenBSD
- error in docs regarding swapped parameters to sw_discovery_publish_reply
2006-01-01 18:27:53 +00:00
jlam
dc9594e09d Remove USE_PKGINSTALL from pkgsrc now that mk/install/pkginstall.mk
automatically detects whether we want the pkginstall machinery to be
used by the package Makefile.
2005-12-29 06:21:30 +00:00
rillig
7a95adad42 The real user name in PKG_USERS does not need to be escaped with double
backslashes anymore. A single backslash is enough. Changed the
definition in all affected packages. For those that are not caught, an
additional check is placed into bsd.pkginstall.mk.
2005-08-23 11:48:47 +00:00
jlam
7820875fff Remove the abuse of buildlink that was pkg-config/buildlink3.mk. That
file's sole purpose was to provide a dependency on pkg-config and set
some environment variables.  Instead, turn pkg-config into a "tool"
in the tools framework, where the pkg-config wrapper automatically
adds PKG_CONFIG_LIBDIR to the environment before invoking the real
pkg-config.

For all package Makefiles that included pkg-config/buildlink3.mk, remove
that inclusion and replace it with USE_TOOLS+=pkg-config.
2005-08-10 20:56:10 +00:00
wiz
d774725534 Change path from devel/pkgconfig to devel/pkg-config.
No PKGREVISION bump since pkg-config is only a BUILD_DEPENDS.
2005-07-21 16:29:42 +00:00
reed
ee8be9d0c1 RCD_SCRIPTS_EXAMPLEDIR is no longer customizable.
And always is defined as share/examples/rc.d
which was the default before.

This rc.d scripts are not automatically added to PLISTs now also.
So add to each corresponding PLIST as required.

This was discussed on tech-pkg in late January and late April.

Todo: remove the RCD_SCRIPTS_EXAMPLEDIR uses in MESSAGES and elsewhere
and remove the RCD_SCRIPTS_EXAMPLEDIR itself.
2005-05-02 20:33:57 +00:00
tv
f816d81489 Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used. 2005-04-11 21:44:48 +00:00
nathanw
9d88a90663 Update to Howl 0.9.10.
Version 0.9.10 (Jan 28 2005)

    * FIX: use config.h in mDNSClientAPI.h to determine which headers to include
    * FIX: don't clobber CFLAGS in Makefile.am files

Version 0.9.9 (Jan 27 2005)

    * FIX: use memmove rather than memcpy
    * FIX: use memcmp to compare oids, rather than strcmp (contributed by
           John Wiseman jjwiseman@yahoo.com)
    * FIX: sw_autoip_network_interface_make_initial_ip_address() uses
           uninitialized m_mac_addr (contributed by Andrea Campi
           andrea+howl@webcom.it)
    * FIX: include stdint.h and use standard types in mDNSClientAPI.h
           (contributed by Jeff Waugh jdub@perkypants.com)
    * FIX: make posix_interface.c easier to port other OSes (contributed by
           Andrea Campi andrea+how@webcom.it)
    * FIX: check interface status before looking at link (contributed by
           Andrea Campi andrea+howl@webcom.it)
    * FIX: builddir != srcdir problem (contributed by Thomas Fitzsimmons
           fitzsim@redhat.com)
    * FIX: memory leaks on cleanup
    * FIX: mDNSResponder, nifd, autoipd shouldn't be linked statically
2005-03-22 19:55:37 +00:00
agc
b12d62efb5 Add RMD160 digests. 2005-02-24 12:13:41 +00:00
schmonz
8ab68520f7 Update to 0.9.8, mostly from Ian Zagorskih on tech-pkg@. Changes:
- FIX: shared library naming scheme included the howl version number
  (jdub@perkypants.org)
- FIX: pkgconfig include pathing included the howl version number
  (eloli@hotmail.com)
- FIX: howl_config.h was being included when compiling apps that use howl
  (sebastien.estienne@gmail.com)
- FIX: publish sample had reversed callback parameters
  (sebastien.estienne@gmail.com)
- nicer printing of text records in browse example
  (sebastien.estienne@gmail.com)

Additional pkgsrc changes by me:

* Create a "howl" user and group.
* Add rc.d script.
* Format DESCR.
2005-01-08 06:24:41 +00:00
jlam
c06a6dd151 Auto-add the PTHREAD_* variables to CFLAGS, LDFLAGS, and LIBS so that
these packages will pick up -lpthread on NetBSD 1.6.x when linking
applications.
2004-12-18 20:58:30 +00:00
mjl
b7adfd544b Update howl to 0.9.7
- FIX: network interface index was not being initialized correctly on non-Linux platforms
- FIX: sw_mdns_stub_init() was not initializing m_pending_ops
- FIX: autoipd was not handling return code from fcntl correctly
- FIX: portability patches from GNOME team
- integration of patches necessary to build and run on Solaris
- Separate Apple code into separate mDNSResponder library.
- Add sw_discovery_query_record() to discovery API to query individual resource records
- Support for discovery operations on specific network interfaces
- Support for 64 bit Linux
- FIX: client side memory leak when cancelling discovery operations
- FIX: FreeBSD mDNSResponder didn't work with -a switch
- FIX: mDNSResponder would occasionally crash  when waking from sleep on Windows
- FIX: mDNSResponder code for parsing config files had buffer overflow
2004-11-20 14:43:32 +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
jlam
1a280185e1 Mechanical changes to package PLISTs to make use of LIBTOOLIZE_PLIST.
All library names listed by *.la files no longer need to be listed
in the PLIST, e.g., instead of:

	lib/libfoo.a
	lib/libfoo.la
	lib/libfoo.so
	lib/libfoo.so.0
	lib/libfoo.so.0.1

one simply needs:

	lib/libfoo.la

and bsd.pkg.mk will automatically ensure that the additional library
names are listed in the installed package +CONTENTS file.

Also make LIBTOOLIZE_PLIST default to "yes".
2004-09-22 08:09:14 +00:00
schmonz
f921e1b5d2 Include pthread.buildlink3.mk. Should fix the problem seen in
Krister's 1.6.2 bulk build.
2004-08-16 23:21:56 +00:00
lha
a1aaa47795 NetBSD needs SO_REUSEPORT, should use "int" not "long" otherwise it
wont work on big-endian LP64 machines.
2004-06-10 10:20:28 +00:00
nathanw
430ea6efc6 Initial import of Howl 0.9.5.
Howl is a cross-platform implementation of the Zeroconf networking standard.
Branded as Rendezvous tm by Apple Computer, Inc., Zeroconf standardizes
networking protocols for delivering hassle-free ad-hoc networking, service
discovery, and IP configuration.

Howl version 0.6 contains both runtime components, which deliver the
Zeroconf/Rendezvous functionality, and an SDK for embedding Zeroconf/Rendezvous
functionality in your applications.
2004-06-05 19:03:12 +00:00