summaryrefslogtreecommitdiff
path: root/mk
AgeCommit message (Collapse)AuthorFilesLines
2001-11-21Forgot an EOF in the last commit.jlam1-1/+2
2001-11-20Remind the user that some rc.conf settings may need to be removed afterjlam1-1/+8
the package has been deleted.
2001-11-20We should only depend on sysutils/user in the !exists(/usr/sbin/user) case.jlam1-2/+2
2001-11-20Add definitions for ROOT_USER and ROOT_GROUP that are the symbolic names ofjlam4-4/+16
the root user and root group.
2001-11-19For completeness, add a SUPPORT_FILES_PERMS that acts like CONF_FILES_PERMSjlam4-24/+29
but the user isn't prompted to customize the files at post-install time.
2001-11-19Common INSTALL/DEINSTALL scripts and Makefile magic to automatically performjlam5-0/+577
many of the tasks that need to be done when package is installed or deinstalled: * creating user/group for the package, * creating and removing directories with special permissions and ownership, * copying config files to their final locations, and removing them at deinstall time if they don't differ from the example ones, * reminding the package admin of files he may want to customize or of files/directories he may want to remove.
2001-11-19Add definitions for USERADD and GROUPADD, used to create new users andjlam4-4/+28
groups. These commands follow the basic interface of the NetBSD/Solaris useradd and groupadd programs. For platforms on which these commands don't exist, either sysutils/user is added as a dependency, or these are set to ${FALSE}, and the package admin is responsible for creating them himself prior to the installation of a package.
2001-11-19Create a new variable CONFDIR that represents the directory where packagejlam1-1/+7
config files should go. It may be overridden on a per-package basis by defining CONFDIR.${PKGBASE}, e.g. CONFDIR.php. ${CONFDIR} defaults to ${PREFIX}/etc, but it may be overridden in /etc/mk.conf, e.g. by setting CONFDIR=/etc. Packages will eventually be altered to find their config files in ${CONFDIR}.
2001-11-16Remove GNOME on "ftp.fh-rosenheim.de" which doesn't carry any files attron1-3/+2
the moment.
2001-11-15Remove superfluous definitions.agc1-4/+1
2001-11-14Convert some spaces to tabs.jlam1-3/+3
2001-11-14Allow MESSAGE_SRC to be a space-separated list of files, like PLIST_SRC,jlam1-5/+9
that are concatenated together to form the whole MESSAGE file.
2001-11-14Add ${PKGBASE} to the things to substitute for in PLISTs.jlam1-1/+2
2001-11-12Set values only when not defined yet.enami1-4/+4
2001-11-11Set a default value for BUILDLINK_DIR so that if no buildlink.mk files arejlam1-3/+5
included, then it still points to a sensible location (${LOCALBASE}).
2001-11-09Check for DESCR_SRC, PLIST_SRC, MESSAGE_SRC, DEINSTALL and INSTALL filesagc1-1/+19
in ${.CURDIR} as well as ${PKGDIR}, just in case the pkg/ directory still exists but is empty.
2001-11-08Set the default values of SU_CMD and PRE_ROOT_CMD in bsd.pkg.defaults.mk,agc2-12/+7
not bsd.pkg.mk, so that the user is more aware of them (there were placeholder examples of both definitions in bsd.pkg.defaults.mk already). Explain PRE_ROOT_CMD a bit more throroughly, and correct an example of its use. Make an alternative definition for SU_CMD sync with reality.
2001-11-08Following on from the removal of the automatic "is there a script to run" logic,agc1-30/+30
more speedups for building packages. Get rid of a .USE macro, and do not spawn sub-makes for the pre-, do- and post-target stages, replacing them with standard make(1) targets. Timing information as follows (multiple runs performed, best results taken): 800 MHz Celeron, 128 MB, local pkgsrc, local obj scripts/, pre,do,post-*: 0.731u 0.261s 0:02.04 48.5% 0+0k 29+168io 9pf+0w no scripts/, pre,do,post-*: 0.678u 0.242s 0:01.30 70.0% 0+0k 0+169io 0pf+0w no scripts/, no pre,do,post-*: 0.267u 0.089s 0:00.90 37.7% 0+0k 0+155io 0pf+0w 40 MHz Sparc, 36 MB, nfs pkgsrc, local obj scripts/, pre,do,post-*: 22.590u 6.839s 0:33.31 88.3% 0+0k 121+254io 0pf+0w no scripts/, pre,do,post-*: 22.481u 6.442s 0:33.30 86.8% 0+0k 120+251io 0pf+0w no scripts/, no pre,do,post-*: 8.534u 4.189s 0:16.48 77.1% 0+0k 105+242io 0pf+0w
2001-11-08Change running output from build to include timestamp and current package.jmc1-2/+2
Makes the output a bit long at times but gives a nice concise idea of where you're at and if the build is moving
2001-11-07The $DEPENDS file has the pkg's directory in the first column, followed byhubertf1-2/+2
whitespeace, followed by it's required pkgs. Make sure to look for that whitespace, to not catch any wrong positives, e.g. egrep "x11/kdebase.*" $DEPENDSFILE will catch depends for both KDE1 and KDE2 and do weird things then (among other things, think that kdelibs-2.2.1 is ok as a dependency when building in x11/kdebase, which is certainly not!) Eight broken pkgs less in the bulk builds by adding a single space! (Now if adding some more would help further... :-)
2001-11-06"bulk-install" already makes a binary package and cleans up after itself,hubertf1-2/+2
no need to make "bulk-package" or "clean" after it!
2001-11-04My thanks to Thorsten - this part of my change for Darwin support wasagc1-3/+1
lost. However, modify previous change to let Darwin know about SHAREOWN, SHAREGRP and SHAREMODE in a different way - no point in checking for OPSYS here, since every OPSYS has to know about them.
2001-11-04"Darwin" needs to know about SHAREOWN, SHAREGRP and SHAREMODE too.frueauf1-2/+2
2001-11-03Also substitute for CHMOD, CHOWN, CHGRP in PLISTs.jlam1-1/+4
2001-11-02Add GQMPEG_NO_JAPANESE variable to allow keeping gqmpeg from interpretinghubertf1-1/+9
russian-language ID3 tags as japanese-language ones. Patch submitted by Sergey Svishchev <svs@ropnet.ru> in PR 14426.
2001-11-01So many of our PLIST use mkdir, rmdir, and true, and we have full paths tojlam1-2/+5
these utilities in ${MKDIR}, ${RMDIR}, and ${TRUE}, so substitute for them.
2001-10-31Make REPLACE_PERL work -- recent "-e s,/bin/perl,${PERL5}" addition broke it.zuntum1-5/+2
Now the sed command is "s,#!.*/bin/perl,#!${PERL5},"
2001-10-31Fix an improper newline in a comment (was <TAB>bing all the way to column 80).tv1-2/+3
2001-10-30Add initial support for Darwin (1.4) to pkgsrc.agc5-12/+1006
2001-10-29On Solaris 7, when `find dir -name foo -name bar' in invoked, only anjlam2-12/+13
implicit `-print' action is performed on bar and not on foo. Surround the search pattern in \( ... \) and add an explict -print so that all of the results of the find are printed. Problem noted and patch to fix this received in private email from Stoned Elipot <seb@netbsd.org>.
2001-10-29Make print-PLIST generateskrll1-2/+2
@exec ${MKDIR} %D/... instead of @exec ${MKDIR} ${PREFIX}/... Hopefully this might mean I don't commit incorrect PLISTs.
2001-10-26Add a new "show-vars" target which allows to display several makefiletron2-3/+9
variables at once.
2001-10-26If AUTOMAKE_OVERRIDE=YES then we touch files in ${WRKSRC} in such a wayjlam1-2/+24
that GNU autoconf/automake are not executed during the build process, even if the tools exist in the build environment. This prevents the build process from overwriting any changes made to the configure script or to the Makefile.in files.
2001-10-26Expand description of the ${PKG_JVM} selector to note that ${JAVA_HOME} isjwise1-3/+4
set based on this choice if unset, and that blackdown-jdk13 is the default on powerpc.
2001-10-26Correct description of ${JAVA_HOME}. ${JAVA_HOME} is used to select anjwise1-2/+4
installed JVM to use to build java-based packages. ${JAVA_HOME} is not used to select where to install java based packages. All packages which install java .jar files should install them in ${PREFIX}/lib/java, so that they will be accessible to multiple installed JVMs.
2001-10-26Also delete the magic invocation of scripts/configure andagc1-13/+1
scripts/{pre,post}-install - there is nothing that uses any of these, and it incurs needless overhead.
2001-10-26Changed PKGDIR assignment to allow migration of files currently held inwulf1-2/+6
${.CURDIR}/pkg directory to the toplevel of the package. It remains backward compatible with the existing system allowing a progressive transision process. The long term goal is a reduction of overheads and processing time when working with the cvs tree.
2001-10-26At present, if there is a pre-<target> or post-<target> script inagc1-9/+1
the scripts/ directory, it will be run automatically as part of the build process, by bsd.pkg.mk. There are now exactly 5 packages in pkgsrc which use this facility, and yet, for every package build, the existence of a script is checked by bsd.pkg.mk once before the target is executed, and once afterwards. This incurs needless overhead. Move the separate pre- and post- script handling out of bsd.pkg.mk into the individual package Makefiles, where it's much more obvious what is happening, anyway.
2001-10-26Update REPLACE_PERL to work for /bin/perl and use it in kdelibs2 insteadskrll1-2/+3
of home grown post-patch target.
2001-10-26Fix ltcf-cxx.sh to work on -current/new toolchains. That is make sure thatskrll1-2/+2
/usr/lib/crtbeginS.o and /usr/lib/crtendS.o make it into {pre,post}dep_objects. Fixes pkg/14353 from Witold J. Wnuk <witek@pd37.warszawa.sdi.tpnet.pl> Tested as "still" working on 1.5.2. Bump minor number of pkg and make pkgsrc depend on this version.
2001-10-25Sort "PATCH_SITES" using "MASTER_SORT" and "MASTER_SORT_REGEX", too.tron2-6/+7
2001-10-25Make it easier to debug for the a.out case on an ELF machine.jlam1-2/+2
2001-10-24I am a triple idiot. The only relevant variable that x11.buildlink.mkjlam1-4/+1
redefines about which buildlink.mk files would care is BUILDLINK_X11_DIR, which points to the location of the X11R6 hierarchy used during building. If x11.buildlink.mk isn't included, then BUILDLINK_X11_DIR defaults to ${X11BASE} (set in bsd.pkg.mk), so its value is always safe to use. Remove the ifdefs surrounding the use of BUILDLINK_X11_DIR in tk/buildlink.mk and revert changes to move x11.buildlink.mk before the other buildlink.mk files.
2001-10-24Rearrange some of the logic to consolidate the code that is a.out-specific.jlam1-7/+10
Also name the replace-libnames-configure as part of ${_CONFIGURE_PREREQ} instead of as a prerequisite to pre-configure. This is needed so that the replacement occurs _after_ pre-configure target is run, which may call autoconf/automake to regenerate the configure scripts. Before this change, the replacement would be overwritten when the configure scripts were regenerated. This should fix a problem first noticed by Alistair Crooks <agc@netbsd.org> in the net/mtr package.
2001-10-24The do-configure target has some "stuff" that is supposed to be done afterjlam1-17/+26
the pre-configure target is called but before the configure script is called, but it's added in a non-extensible way. This "stuff" is the replace-ncurses step and the ltconfig-override step. Move these steps out into their own targets that are named as prerequisites to the do-configure step. The prerequisites are specified in the private variable _CONFIGURE_PREREQ, to which other independent targets may be appended.
2001-10-24Make some more variables "private" by prepending with an underscore.jlam1-7/+7
2001-10-23x11.buildlink.mk needs to be included before any buildlink.mk files thatjlam1-1/+4
use X11_BUILDLINK_MK as a test value. Generally just reordering the inclusions so that x11.buildlink.mk comes before the other buildlink.mk files will make everthing work.
2001-10-22Replace the -and/-or options with -a/-o as the former don't work withjlam1-4/+4
Solaris find. The latter work across Solaris/NetBSD/Linux. Patch received in private e-mail from Stoned Elipot <seb@netbsd.org>.
2001-10-21Added support variables for chat/ircd-hybridseb1-1/+132
2001-10-20When working out if an installed package should be left as itabs1-1/+4
matches one of the DEPENDS, the bulk-build system looked up the package in the INDEXFILE, then used the pkgdir returned to check against the DEPENDS. If for some reason the package was not found in the index file the package was left installed as 'requires installed package'.