Commit graph

38 commits

Author SHA1 Message Date
jlam
e46a9dd380 Create directories before installing files into them. 2005-06-17 03:50:19 +00:00
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
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
wiz
393af94024 Add RMD160 checksums to the SHA1 ones. 2005-02-23 17:36:09 +00:00
reed
32d8f290c2 The default location of the pkgsrc-installed rc.d scripts is now
under share/examples/rc.d. The variable name already was named
RCD_SCRIPTS_EXAMPLEDIR.

This is from ideas from Greg Woods and others.

Also bumped PKGREVISION for all packages using RCD_SCRIPTS mechanism
(as requested by wiz).
2004-12-28 02:47:40 +00:00
reed
62071c8b2f RCD_SCRIPTS_EXAMPLEDIR was just changed to be a relative directory
under ${PREFIX} instead of being an absolute path.

So fix the references using RCD_SCRIPTS_EXAMPLEDIR to be
${PREFIX}/${RCD_SCRIPTS_EXAMPLEDIR}.

This should have no changes to use before.

Please note that the MESSAGE files in most cases are wrong in the
first place. We have automated mechanisms and could have an automated
message for explaining rc.d script usage. (This is something to do!)
2004-10-11 22:14:51 +00:00
reed
2d4122dd45 Fix references to rc.d scripts. This package uses RCD_SCRIPTS
which installs to ${RCD_SCRIPTS_EXAMPLEDIR}. But the MESSAGE
referred to wrong hard-coded location if the RCD_SCRIPTS_EXAMPLEDIR
was not the default. So use RCD_SCRIPTS_EXAMPLEDIR instead.

PKGREVISION not bumped because if someone had changed
RCD_SCRIPTS_EXAMPLEDIR before recent change of autoregistration
of rc.d script in PLIST, then it could not have been packaged
in first place.

Note that this commit does not imply that the MESSAGE is correct.
In some cases, the MESSAGE is clearly wrong such as suggesting
running the rc.d script from the example directory (which will work
although).
2004-04-23 22:43:20 +00:00
reed
9c790735db mk/bsd.pkg.install.mk now automatically registers
the RCD_SCRIPTS rc.d script(s) to the PLIST.

This GENERATE_PLIST idea is part of Greg A. Woods'
PR #22954.

This helps when the RC_SCRIPTS are installed to
a different ${RCD_SCRIPTS_EXAMPLEDIR}. (Later,
the default RCD_SCRIPTS_EXAMPLEDIR will be changed
to be more clear that they are the examples.)

These patches also remove the etc/rc.d/ scripts from PLISTs
(of packages that use RCD_SCRIPTS). (This also removes
now unused references from openssh* makefiles. Note that
qmail package has not been changed yet.)

I have been doing automatic PLIST registration for RC_SCRIPTS
for over a year. Not all of these packages have been tested,
but many have been tested and used.

Somethings maybe to do:
- a few packages still manually install the rc.d scripts to
  hard-coded etc/rc.d. These need to be fixed.
- maybe  remove from mk/${OPSYS}.pkg.dist mtree specifications too.
2004-04-23 22:07:52 +00:00
kristerw
cc32130045 Convert varargs-macros to old-style macros, to make the package
compile when using gcc 2.95.
2004-02-14 22:27:30 +00:00
wiz
aca4ceef48 Convert to look in the TTF subdir for its fonts (instead of the
TrueType subdir), since that's where all ttf fonts in pkgsrc are
installed into. PKGREVISION=1.
2004-01-25 20:46:19 +00:00
grant
9b4feec99c replace deprecated USE_GMAKE with USE_GNU_TOOLS+=make. 2004-01-24 15:30:32 +00:00
salo
70534c8ac6 Oops. Forgot in previous commit. 2004-01-02 13:06:39 +00:00
salo
4838594602 Update to version 1.6.
- correct usage of PREFIX in MESSAGE
- sort PLIST

Changes:

1.6:
====
- Fixed ttSyncAll only looking at fontdir subdirectories
- Added more robust checking for cachedir
- Removed a constant path size limitation (for the Hurd)
- Fixed a typo in "syncing"
- Minor indentation fixes
- Started the transition to using C++ strings
- Changed the libfstt API:
    Fixed multiple memory leakages
    The member getString doesn't need the conversion buffer anymore
- Fixed the output format of --gslist

1.5.1:
======
- Fixed a possible security problem by checking the byteorder magic in
  the connection handshake:
    bugtraq id 8255

1.5:
====
- Fixed multiple buffer overflows in the network packet handling code:
   CAN-2003-0581
- New encoding: iso8859-14
- Moved hardcoded dir locations to configure space
- Mkdir the fontdir and cachedir in the make install target
- Improve error messages when cachedir does not exist
- Remove --gslist dependency on order of arguments
- Replaced dprintfN with a debug function
- Cleaned the debugging output
- Indentation and minor source cosmetic changes
- Updated to gettext 0.12.1, version 0.11.5 was buggy
- Added a System V init file example
- Cleaned the examples in doc/examples: font.properties, test.sh
- Updated the documentation: doc/FAQ, INSTALL, THANKS, TODO, xfstt.1x
2004-01-01 20:06:11 +00:00
grant
9fd7c8297c add missing trailing / to HOMEPAGE. 2003-12-20 10:42:45 +00:00
grant
ca3be631f2 s/netbsd.org/NetBSD.org/ 2003-07-17 22:50:55 +00:00
jschauma
e366d0c694 Use tech-pkg@ in favor of packages@ as MAINTAINER for orphaned packages.
Should anybody feel like they could be the maintainer for any of thewe packages,
please adjust.
2003-06-02 01:15:31 +00:00
jmmv
f1446ddf2b Drop trailing whitespace. Ok'ed by wiz. 2003-05-06 17:40:18 +00:00
salo
72d0786818 Updated to version 1.4.
Changes:

- added MESSAGE file with post-install instructions
- minor cleanups

1.4:
====
- Auto* tools
- Initial i18n support (not used yet)
- Fixed slow down with some programs using FS_ListFontsWithXInfo
- Fixed childs unlinking unix socket when father uid == childs uid
- Added an option to specify pidfile location
- Added endpwent() to prevent leaking one fd
- Changed usage output

1.3.1:
======
- Added --cache description to man page
2003-02-22 13:33:31 +00:00
jlam
d7f69e47ce Instead of including bsd.pkg.install.mk directly in a package Makefile,
have it be automatically included by bsd.pkg.mk if USE_PKGINSTALL is set
to "YES".  This enforces the requirement that bsd.pkg.install.mk be
included at the end of a package Makefile.  Idea suggested by Julio M.
Merino Vidal <jmmv at menta.net>.
2003-01-28 22:03:00 +00:00
wiz
3ea8862051 Two fixes from Urban Boquist. Closes PR 18197. 2002-09-29 12:58:37 +00:00
grant
0353d416d5 Make this work with xpkgwedge by using PREFIX instead of X11BASE.
Bump PKGREVISION.

Fixes pkg/18197 from Urban Boquist <urban@boquist.net>.
2002-09-27 17:03:21 +00:00
grant
157d169588 * use bsd.pkg.install.mk and automatic rc.d script handling.
* convert to rc.subr-style script.
2002-09-27 14:47:06 +00:00
grant
cfe3e9c04c add missing RCD Id. 2002-09-20 04:05:45 +00:00
grant
72a3c85b68 grr, files missed in last commit.
Update to xfstt-1.3.

Significant changes since 1.2:

* Fixed unix socket and its dir permissions
* Added full path to unix socket address and use sockaddr_un instead
* Added support for --notcp
* Removed hard coded limits on path length (needed by the Hurd)

Significant changes since 1.1:

* Fixes bug that broke xfstt when using unix
* domain sockets under linux 2.4
* Fixed bug in realloc() use.
* Added Patch for Boxdrawing glyphs
* New Encodings: iso8859_11 (latin/Thai) and  koi8_u
* Now compiles properly under newer versions of gcc
2002-08-22 02:22:14 +00:00
grant
69151d1ebf Update to xfstt-1.3.
Significant changes since 1.2:

* Fixed unix socket and its dir permissions
* Added full path to unix socket address and use sockaddr_un instead
* Added support for --notcp
* Removed hard coded limits on path length (needed by the Hurd)

Significant changes since 1.1:

* Fixes bug that broke xfstt when using unix
* domain sockets under linux 2.4
* Fixed bug in realloc() use.
* Added Patch for Boxdrawing glyphs
* New Encodings: iso8859_11 (latin/Thai) and  koi8_u
* Now compiles properly under newer versions of gcc
2002-08-22 02:21:07 +00:00
grant
a736b5ccd9 use @X11BASE@ in xfstt.1 instead of '/usr/X11R6' - yuck! 2002-07-18 05:24:49 +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
zuntum
d3db18607d Move pkg/ files into package's toplevel directory 2001-10-31 22:03:21 +00:00
skrll
7c75053771 Move to sha1 digests, and add distfile sizes. 2001-04-19 11:07:33 +00:00
agc
8f972b049a + move the distfile digest/checksum value from files/md5 to distinfo
+ move the patch digest/checksum values from files/patch-sum to distinfo
2001-04-17 12:12:16 +00:00
wiz
33fa520b25 $() -> ${} 2001-02-28 10:42:03 +00:00
wiz
9d1f44690c We want RCS Ids in the patches.
This is one of the things pkglint checks, so _please_ use it.
2001-02-28 10:26:02 +00:00
hubertf
d32e698de6 Cleanup MKDIR usage => INSTALL_*_DIR
XXX need to teach pkglint to be more picky about this
2001-02-25 04:17:35 +00:00
hubertf
e75d1c12d5 rc.d script, from PR 12201 2001-02-18 04:37:37 +00:00
hubertf
b5c468d2d3 * Add --notcp option, to only listen on unix domain socket, not TCP socket.
* Add rc.d startup script
 * Update pkg name to xfstt-1.1nb1

Code based on FreeBSD port,
submitted by Martti Kuparinen <martti.kuparinen@iki.fi> in PR 12201
2001-02-18 04:34:15 +00:00
wiz
a486f11406 Update to new COMMENT style: COMMENT var in Makefile instead of pkg/COMMENT. 2001-02-17 17:06:11 +00:00
kim
2eb9c1522a TrueType font server for X11 2000-09-04 15:49:36 +00:00