summaryrefslogtreecommitdiff
path: root/mk/platform/Interix.mk
AgeCommit message (Collapse)AuthorFilesLines
2010-07-08Begin cleanup of setgid game infrastructure.dholland1-15/+1
* Introduce USE_GAMESGROUP, which causes the games user and group to be made available. * Retain SETGIDGAME as an alias for USE_GAMESGROUP. Describe it as deprecated. * Always define GAMES_USER, GAMES_GROUP, GAMEMODE, GAMEDIRMODE, and GAMEDATAMODE, regardless of whether USE_GAMESGROUP is turned on or not. * Define these variables in defaults/mk.conf instead of separately in every platform/*.mk file. The definitions used to be the same for each of these platforms anyway, except for some where they were randomly missing or commented out for no clear reason, leading to broken game packages. * Handle all these variables properly when unprivileged. * Update the comments/documentation for these variables. * Describe GAMEOWN and GAMEGRP as deprecated. These need to be retained as aliases for GAMES_USER and GAMES_GROUP respectively for supporting packages that use bsd.*.mk but should otherwise not be used. * Add GAMEDATA_PERMS and GAMEDIR_PERMS using GAMEDATAMODE and GAMEDIRMODE respectively. * Fix a bug I noticed that was improperly mixing the "games" group and "games" user. Things this does *not* do: - get rid of GAMES_USER, for which there should ultimately be no need. - move the declaration/documentation/default value of USE_GAMESGROUP to a suitable place. (It is currently where SETGIDGAME was, which is suboptimal.) - touch any of the games, all of which need updating with at least s/SETGIDGAME/USE_GAMESGROUP/ and probably more. - update the guide to explain how to handle games properly. Also, it would be nice if using GAMES_GROUP without setting USE_GAMESGROUP=yes caused an error but as far as I know there isn't any particularly good way to arrange this right now. Note that these changes may alter the build/install behavior of broken game packages, e.g. some may silently become setgid when they weren't before or things like that. If you run into any of this file a PR. While one might arguably bump the PKGREVISION of all games or other packages using any of these variables as a precaution, that seems like a bad idea. Instead, I think I will be bumping each game once it itself has been fixed up to do everything the right way.
2009-12-16Force libtool 2.2 on all platforms.joerg1-2/+1
2009-07-26Get rid of an abstraction violation which has been in the tree sinceagc1-1/+3
March 2008. Not vital, but the previous way does not scale well/at all.
2009-06-02Remove WRAPPER_DEBUG definition, it doesn't change anything.joerg1-3/+1
2009-06-02GCC_USE_SYMLINKS has been renamed and is the default now, so remove itjoerg1-2/+1
here.
2009-04-01Remove PAX definition, it is not forcefully installed as part of thejoerg1-2/+1
bootstrap any longer, so this is plainly wrong.
2008-09-22Reverting my previous openmotif->lesstif changes.ahoka1-2/+2
2008-09-14As the openmotif license doesnt allow usage on close source systems,ahoka1-2/+2
there is no good reason to be default on those platforms. Change the default to lesstif on AIX, BSDOS, Darwin, HPUX, Interix, OSF1.
2008-03-04+ Conditionally add GAMES_USER and GAMES_GROUP to the platform *.mkjlam1-3/+5
files. These variables are currently usable if ${SETGIDGAME} == yes. These variables should be used when describing ownership of files and directories to the pkginstall framework, e.g. SPECIAL_PERMS= bin/foogame ${GAMES_USER} ${GAMES_GROUP} 2555 + Rename SETGID_GAME_PERMS to SETGID_GAMES_PERMS because the default group name is "games". + Define SETGID_GAMES_PERMS in terms of GAMES_USER and GAMES_GROUP so that these names are protected from the normal flow of unprivileged.mk. This fixes the +INSTALL scripts in "user-destdir" packages to correctly refer to the games:games instead of the user:group of the user that built the packages.
2008-02-21Kill _OPSYS_NEEDS_XPKGWEDGE. It was only used by two platforms and theytnn1-6/+1
will default to USE_XPKGWEDGE anyway.
2007-10-19Reverted the last changes, which factored out some definitions that arerillig1-3/+6
usually the same on the supported platforms. The reason for having duplicate code in these files is to make it easier to port pkgsrc to a new platform: You just have to copy one of the existing platform files and edit the values in it. With some values factored out, you would have to look at one more file. Pointed out by agc@.
2007-10-18Factored out the parts that are common between all the supportedrillig1-6/+3
platforms, mainly because it wouldn't have made sense to document the variables in one of those files, but they need to be documented somewhere. Added the file defaults.mk, which now serves as the reference document which provides useful default values and _explains_ the variables.
2007-07-02Remove RSH definition.joerg1-2/+1
2006-07-20Remove USE_GNU_GETTEXT from pkgsrc. Packages generally only neededjlam1-2/+1
it for plurals support, but that is already handled correctly (FSVO "correctly") by the pkgsrc/mk/tools/msgfmt.sh script. Also remove _USE_GNU_GETTEXT definitions from pkgsrc/mk/platform/*.mk files as that value has been unused by pkgsrc for quite some time (going back several branches).
2006-04-12Add INSTALL_GAME_DIR to complement INSTALL_GAME_DATA. The directoriesjoerg1-1/+2
are group-writeable by the games user on those platforms, where GAMEMODE includes setgid. It defaults to PKGDIRMODE otherwise.
2006-03-18Remove leftover code sections guarded by _USE_PLIST_MODULE which wasjlam1-9/+1
mainlined long ago.
2006-01-12Initial commit of a new module that encapsulates all of the codejlam1-1/+8
for manipulating PLISTs. This module is not used by default pending more widespread testing -- currently the variable _USE_PLIST_MODULE must be defined in /etc/mk.conf to enable its use. The main features of the new PLIST module are: (1) Splits out the PLIST-handling code from bsd.pkg.mk into a separate "plist" module. (2) Splits out giant, multi-line awk scripts stored in make variables into separate awk scripts that may be joined together to post-process PLISTs. Each of these awk scripts consolidates the processing for one set of files, e.g., man pages, info pages, etc., and is more easily commented than a make variable. (3) Splits out the print-PLIST code from the regular PLIST code since they have no common pieces (print-plist.mk vs. plist.mk). (4) Completely re-implements the shared-library handling to be more efficient. Along the way, this also fixes a problem for Mac OS X users where the PLISTs incorrectly contained absolute paths. (5) Completely re-implements the info-file handling so that we can migrate from INFO_FILES definitions to just adding info/foo.info entries in the static PLISTs. (6) Adds commented-out support for automatically compressed or decompressed info page entries based on the value of MANZ. These changes will be activated after texinfo.mk has been replaced by something that is built using the more modern primitives now available in pkgsrc. (7) Move the file compression logic into a separate script "doc-compress" that compresses or decompresses files while minding symlinks. This script is now called by bsd.pkg.mk to do the "autmoatic man page handling". In the future, it will also handle the "automatic info page handling" and possible others. In general, the idea is to move stuff out of the Makefiles and into separate files where we don't need to worry about quoting rules and where each file can have a separate history of commits. This simplifies the makefile logic (especially in terms of readability) and also simplifies maintenance of the code.
2005-12-04Add IMAKE_GAMEMAN_SUFFIX and IMAKE_GAMEMAN_DIR to allow PLISTsjoerg1-1/+3
to pick up the correct locations. XXX Default values are guessed, x11/xsnow can be used for testing
2005-11-09libtool-base-1.5.18nb6:tv1-1/+2
Fix major problem brought to the surface by buildlink3 on Interix. For C++ or F77 libraries only, the soname did not always make it into the final binary, resulting in runtime link failures in some cases and runtime linking with a missing major version in others. This is unfortunately a flag day for Interix + pkgsrc. Identifying all the PKGREVISIONs normally requiring a bump is a little too unwieldy. However, existing binaries not experiencing the runtime link failure will continue to run, but will be linking against the unversioned ".so" at runtime until the binaries have been rebuilt. While here, fix a couple wrong assumptions in the libtool config for Interix. shlibvar_overrides_runpath should have been "no", and hardcode_direct should have been "yes".
2005-11-04Add comment about possibly supporting SIOCGIFADDR in the future.tv1-1/+8
2005-11-01Abstract [LOWER_]OS_VERSION into a ${...:sh} construct, so that other OStv1-10/+1
blocks can override it without running the commands at all. Move Interix [LOWER_]OS_VERSION speedup hack into bsd.prefs.mk, since it must happen early at runtime. While here, speed up the OS_VERSION calculation slightly for OSF1.
2005-11-01Add some extra default overrides for Interix, to:tv1-1/+44
- speed up the build (avoiding a few != settings that are inferrable instead) - reduce the number of settings that the user needs to have in mk.conf
2005-10-31Force recognition of hstrerror(3) on Interix when GNU_CONFIGURE.tv1-1/+4
2005-10-26...and gawk is no longer needed, either, so all these extras can nowtv1-4/+1
go away.
2005-10-26sysutils/coreutils is no longer needed in bulk builds, with the Perl tflat.tv1-2/+2
2005-09-21Bump LIBTOOL_REQD to 1.5.18nb5. This pulls in the -avoid-version fix fortv1-2/+1
some platforms, which includes all non-ELFs and many ELF-like platforms (that still use a.out naming conventions). Since a branch is coming, bump the version in a blanket rather than per platform.
2005-08-02Replace references of pkgsrc/mk/bsd.pkg.defaults.mk toreed1-3/+3
pkgsrc/mk/defaults/mk.conf. This is from PR 30741 from anonymous AT example.net.
2005-07-03Set _OPSYS_LIBTOOL_REQD to 1.5.18nb4.tv1-1/+2
2005-06-24Drop the perl-5.6.x package from pkgsrc. Remove lang/perl58 and updatejlam1-2/+2
lang/perl5 to perl-5.8.6nb4. Modify packages that referred to lang/perl58 to point to lang/perl5 instead.
2005-06-01Turn IMAKE_MAKE into a public variable that may be set via /etc/mk.conf.jlam1-2/+2
2005-05-22Remove the old tools framework and references to _USE_NEW_TOOLS.jlam1-71/+1
2005-05-03First pass at converting pkgsrc to use the new tools framework (stilljlam1-8/+12
not on by default). Separate out the variable defintions that are now made by the new tools framework. Some of the trickier platforms (AIX, IRIX, Interix, OSF1) still need more work.
2005-05-03Back out part of a change from revision 1.756 of bsd.pkg.mk. It wasjlam1-2/+1
a mistake to include "GZIP" as an ${OPSYS}-specific variable as there is nothing ${OPSYS}-specific there to tune. Define GZIP in defaults/mk.conf instead, and remove the definition from each of the existing platform/${OPSYS}.mk files.
2005-04-20On Interix, memorysize is actually "vmemory"; use ulimit -v.tv1-2/+2
Noted by Steve O'Hara-Smith <steve@sohara.org>.
2005-03-28With the SORT=gsort hack for Interix, all hell breaks loose on pkg_addtv1-4/+1
because pkginstall encodes it into its scripts. sigh. Hack around this. For bulk builds on Interix only, use gsort for "tflat"; use the system-supplied sort for the rest of the build.
2005-03-24Unfortunately, BULK_PREREQ doesn't shield its prerequisites from beingtv1-1/+2
deleted because one of *their* dependencies are deleted. So add the dependencies of lang/gawk and sysutils/coreutils to BULK_PREREQ too.
2005-03-22Bump LIBTOOL_REQD to 1.5.14; this unifies all the support again and fixestv1-2/+1
a good number of bugs.
2005-03-21Move "GNU replacements" block to the top.tv1-15/+13
Use gsort from coreutils instead of /bin/sort if coreutils is installed. Install coreutils in BULK_PREREQ to get gsort; /bin/sort can't handle the amazingly long lines produced by the dependency-tree printing script.
2005-03-19The gawk that comes with Interix is 2.15, which works for most purposestv1-1/+8
but can be buggy in some situations (like the bulk build environment). If pkgsrc gawk happens to be installed, use that; also add lang/gawk to BULK_PREREQ so it is always used in that case. If lang/gawk is not installed, ${AWK} will default to /usr/contrib/bin/gawk as it did before.
2005-03-18Fix a gleaming illustration of why using YES/NO variables everywheretv1-5/+3
possible, just for the sake of doing so, is not a good thing to do: The platform files define _STRIPFLAG_* to determine whether to strip things. But since this is included in bsd.prefs.mk, ".if ..." checks cannot take things set in the Makefile into account. So convert INSTALL_UNSTRIPPED=YES to a defined/undefined variable check in bsd.pkg.mk, and use the :D:U idiom in the _STRIPFLAG_* variables. This should fix PR pkg/28772 and PR pkg/29031.
2005-02-04Bump PKGTOOLS_REQD to 20050204. This version of pkg_install passesjlam1-2/+1
the correct information to the +INSTALL and +DEINSTALL scripts to fix problems with binary packages incorrectly locating the reference counts database, e.g. /var/db.refcount.
2005-01-28Don't make pkgsrc depend on dc(1) to be present in the system. Sincejlam1-2/+1
we already use awk so pervasively in pkgsrc, simply use awk in place of dc for simple computations.
2005-01-25Relax need to put GNU_CONFIGURE before inclusion of bsd.prefs.mk:tv1-2/+2
Convert _OPSYS_MAX_CMDLEN to a plain _OPSYS_MAX_CMDLEN_CMD variable, which is not evaluated by a shell until CONFIGURE_ENV is expanded (and only then if USE_LIBTOOL+GNU_CONFIGURE are both set).
2005-01-24Add python22, python24 to base addresses list.tv1-1/+3
2005-01-21Add NOLINT=1 for BSD-.mk based packages.tv1-2/+2
2005-01-21Add ruby16/ruby18 to base addresses list.tv1-1/+5
2005-01-21Defer the check of GNU_CONFIGURE until later; should fix build of net/ORBittv1-6/+2
(and perhaps other packages) which set GNU_CONFIGURE only after bsd.prefs.mk.
2005-01-18Force manpages to be man-only (no catpages) when using BSD .mk files intv1-1/+5
a package build. This may change once groff is fixed, but for now, there's no guarantee of a nroff available on the host system.
2005-01-18Add <bsd.lib.mk> to base addresses list.tv1-1/+2
2005-01-18Add python23 to the base-address list.tv1-1/+2