summaryrefslogtreecommitdiff
path: root/mk
AgeCommit message (Collapse)AuthorFilesLines
2003-09-11s/vulnerabilities/pkg-vulnerabilitesdmcmahill1-2/+2
2003-09-10During print-PLIST, use PKGNAME_NOREV to search for matches, not PKGNAMEjmmv1-2/+2
(though, keep the ${PKGNAME} replacement, as it contains the right value in the PLIST).
2003-09-10There's no need to preserve mode bits when copying the x11-links tree.jlam2-4/+4
This fixes problems where .buildlink assumes the mode of ${LOCALBASE}/share/x11-links, which may be read-only.
2003-09-10Create TEST_ENV variable that's initially just MAKE_ENV, but can be addedjlam1-2/+3
to by a package Makefile. This is passed as the environment when running the test target. We often need this since packages can require setting up LD_LIBRARY_PATH so that we can test before installation.
2003-09-10Check that ${_PKG_DBDIR} exists before cd'ing into it. This makesjlam1-2/+5
building using buildlink3 on systems that have never seen pkgsrc before work properly.
2003-09-09Update PKGTOOLS_REQD to 20030907. Critical fixes include makingjlam1-2/+2
"pkg_delete -O pkgname" actually remove file entries for pkgname from the pkgdb.byfile.db database. This makes FORCE_PKG_REGISTER work again (this must have been broken for a long time).
2003-09-09Check that the lockfile isn't stale from being left over across a systemjlam1-1/+6
reboot by testing whether or not /var/run/dmesg.boot is newer than it or not. Fix suggested by agc@NetBSD.org and simonb@NetBSD.org.
2003-09-09Use pax(1) instead of "cp -R" so we preserve symlinks instead of followingjlam2-4/+4
them.
2003-09-09Note how package views is also similar to GNU Stow, but state clearly thejlam1-6/+12
main difference in philosophy between package views and these other software management systems.
2003-09-09Document this file, and do the command length reduction by suppressingjlam1-2/+48
repeated options as is done in in revision 1.3 of wrapper.sh.
2003-09-09Remove this unsupported float comparison. How did this worked? I wonder...seb1-4/+13
Introduce private variables _{MAKEINFO,TEXINFO_REQD}_{MAJOR,MINOR} holding the major and minor number version numbers of available makeinfo and of the minimum required version. Use these to sort out if devel/gtexinfo is needed as dependency.
2003-09-08Reduce length of command lines executed by not appending some options thatjlam1-2/+30
we've already seen: -[DILR]*|-Wl,-R*|-Wl,-*,/* These are all only useful the first time we see them. All other instances are redundant. -l* Extra libraries are suppressed if they're repeated, e.g., "-lm -lm -lm -lX11 -lX11 -lm -lm" -> "-lm -lX11 -lm". The screen output is still likely to be very verbose, but you can check in work/.work.log to see the actual commands executed.
2003-09-08Provide URL for CMU depot.jlam1-3/+6
2003-09-08Instead of canonicalizing all ${DEPOTBASE}/* into ${LOCALBASE}, don'tjlam1-29/+43
do it for rpath specifications, e.g. -Wl,-R/dir, -Wl,-rpath,/dir, etc. This lets the depot directory for a package, in addition to the usual /usr/pkg/lib, to be added to the rpath of a program or shared library of an "overwrite" package. Now, if the package instance in the default view is forcibly removed, then shared library references will still resolve to the existing shared libraries in the depot directory. In the following example, I've built jpeg as a pkgviews package, and tiff as an "overwrite" package: % ldd /usr/pkg/lib/libtiff.so /usr/pkg/lib/libtiff.so: -ljpeg.62 => /usr/pkg/lib/libjpeg.so.62 -lz.0 => /usr/lib/libz.so.0 -lm.0 => /usr/lib/libm387.so.0 -lm.0 => /usr/lib/libm.so.0 % pkg_delete -f jpeg-6b pkg_delete: package `jpeg-6b' is required by other packages: tiff-3.5.7nb1 % ldd /usr/pkg/lib/libtiff.so /usr/pkg/lib/libtiff.so: -ljpeg.62 => /usr/pkg/packages/jpeg-6b/lib/libjpeg.so.62 -lz.0 => /usr/lib/libz.so.0 -lm.0 => /usr/lib/libm387.so.0 -lm.0 => /usr/lib/libm.so.0 The benefit here is that if the jpeg package is updated and also has a bump in the major number of the shared lib, e.g. libjpeg.so.63.0, then you can remove the old jpeg instance from the default view and add the new jpeg package into the default view, and /usr/pkg/lib/libtiff.so will _still_ resolve its libjpeg.so.62 reference. Welcome to the power of Package Views!
2003-09-08Rename BUILDLINK_PKG_DBDIR into _BLNK_PKG_DBDIR. This really is a privatejlam1-10/+10
implementation variable.
2003-09-08Allow BUILD_VIEWS to be "yes" or "YES".jlam1-2/+3
2003-09-08We want to add consistently add to the default view if we use pkgviewsjlam1-2/+2
and pkg_add'ing.
2003-09-06Suggest a good default value for RCD_SCRIPTS_DIR for pkgviews users.jlam1-2/+3
2003-09-06Move RCD_SCRIPTS_DIR definition to bsd.pkg.defaults.mk. This implies thatjlam2-3/+8
RCD_SCRIPTS_DIR is user-settable in /etc/mk.conf.
2003-09-06Install the rcd scripts at post-install time, not at post-install-scriptjlam1-2/+3
time. The rc.d script needs to be recorded in the PLIST, and post-install-script time is too late if we use dynamic PLISTs.
2003-09-06Add .PHONY targets for Makefile correctness.jlam1-1/+7
2003-09-06Move PKG_SYSCONFBASE definition into bsd.pkg.defaults.mk. This impliesjlam2-3/+8
that it's user-settable from /etc/mk.conf.
2003-09-06Also descend to sub directories for make lintcjep1-1/+2
2003-09-05Remove "/pub" from pathnames on "ftp.fu-berlin.de" because such a directorytron1-2/+2
doesn't exist. It's apparently only mapped in the FTP server configuration.
2003-09-05"make deinstall" now tries to just delete this particular package firstjlam1-2/+5
before trying to delete all packages with the same PKGBASE. This is better semantics in a pkgviews world.
2003-09-05Use LOCALBASE instead of ZOULARISBASEmartti2-8/+18
2003-09-05Move BUILDLINK_CHECK_BUILTIN.<pkg> documentation into bsd.buildlink3.mk.jlam1-2/+6
2003-09-05Package Makefiles should refer to PKG_SYSCONFBASEDIR instead ofjlam5-30/+33
PKG_SYSCONFBASE when they want PKG_SYSCONFDIR stripped of PKG_SYSCONFSUBDIR. This makes PKG_SYSCONFBASE=/etc work with pkgviews by installing all config files into /etc/packages/<pkg> instead of occasionally putting some directly into /etc. Also only create PKG_SYSCONFDIR if we're actually going to copy config files.
2003-09-05Typojlam1-2/+2
2003-09-05Check that USE_BUILDLINK2 is defined before including buildlink2.mk files.jlam1-2/+4
2003-09-04Allow buildlink3.mk file to specify BUILDLINK_CFLAGS.<pkg> that arejlam1-6/+27
automatically added to CFLAGS and CXXFLAGS. Note that -D... and -I... settings should go into BUILDLINK_CPPFLAGS.<pkg> instead. BUILDLINK_CFLAGS is reserved for stuff like "-pthread" or other compiler-specific flags. Also note why we add BUILDLINK_CPPFLAGS.<pkg> to both CFLAGS and CXXFLAGS (because a lot of software just uses CFLAGS and ignores any CPPFLAGS value that we pass to it).
2003-09-04Provide a default definition for BUILDLINK_IS_BUILTIN.<pkg> that is yes/nojlam1-3/+8
depending on whether or not the <pkg> is provided in the base system. Also tighten the BUILDLINK_PKG_DBDIR.<pkg> definition.
2003-09-04Add an apache.mk, similar to java-vm.mk and emacs.mk, that allows apacheerh1-0/+161
modules that will work with more than one version of the apache web server to not require a separate package for each version of apache. This was originally based on java-vm.mk Makefile variables added: PKG_APACHE_ACCEPTED : Contains the list of valid versions of apache. USE_APR : If set, the package required apr to run. User variabled added: PKG_APACHE_DEFAULT : The version of apache to install, if there is none yet. Defaults to apache13 Variables set: PKG_APACHE : Which version of apache is being used.
2003-09-03Fix typo ;; -> :;jlam1-2/+2
2003-09-03The package vulnerability list is now called "pkg-vulnerabilities".tron1-7/+7
2003-09-03Require 20030824 of the pkg_install tools to get the changes for usingjlam1-2/+2
pkg_add(1) on non-NetBSD (or more precisely, non-poll) systems.
2003-09-03Don't restrict the user to only the default view. Also allow user tojlam2-4/+7
customize the default view through setting DEFAULT_VIEW in /etc/mk.conf.
2003-09-02No need to substitute anymore for ${INSTALL_INFO} in PLIST.seb1-2/+1
2003-09-02Test for ${PREFIX} existence before mkdir'ing it.seb1-2/+2
This fix NO_MTREE installation on Solaris when ${PREFIX} already exists and is a symlink. Example: # uname -sr SunOS 5.9 # cd /tmp # rm -f foo # ln -s /etc foo # /bin/mkdir -p /tmp/foo mkdir: "/tmp/foo": Exists but is not a directory #
2003-09-02Merge pkgviews-mk branch into the HEAD by running:jlam66-214/+3004
cd pkgsrc/mk cvs update -Pd -A cvs update -Pd -j pkgviews-mk-base -j pkgviews-mk
2003-08-31Create new variables PKG_*_CMD that contain just the paths to the variousjlam1-7/+13
pkg_install tools.
2003-08-31Add belnet and keihanna sourceforge mirrors; remove switch and osdn.wiz1-3/+3
Addresses PR 22641.
2003-08-31bsd.buildlink2.mk says that Solaris 9 works with full caching.jlam1-2/+2
2003-08-31Remove N/A from this file... it's much easier to read now.jlam1-7/+7
2003-08-31Don't allow -R* options in dependency_libs -- rpath info shouldn't be injlam1-1/+5
there.
2003-08-31Strip bare -L${BUILDLINK_DIR}, -L${BUILDLINK_X11_DIR} and -L${WRKSRC}, asjlam1-3/+5
well as stripping -L to subdirs of these directories from dependency_libs lines in *.lai files. This corrects the changes in revision 1.18 of this file and restores some functionality accidentally removed in version 1.19 of this file. Should fix the subversion buildlink/libtool problem reported on tech-pkg@.
2003-08-30Back out last revision since we modified bsd.pkg.install.mk to requirejlam1-9/+9
that {,DE}INSTALL_EXTRA_TMPL to be set if a package Makefile wants to use them.
2003-08-30No longer assume that a DEINSTALL/INSTALL script in the package directoryjlam1-9/+1
is meant for {,DE}INSTALL_EXTRA_TMPL. Package makefiles should explicitly set those variables if they want to use them in conjunction with USE_PKGINSTALL.
2003-08-30Reorder the inclusion of bsd.pkg.install.mk so that it appears *before*jlam1-9/+9
texinfo.mk. This ensures that {,DE}INSTALL_EXTRA_TMPL isn't defined by texinfo.mk before bsd.pkg.install.mk checks those variables.
2003-08-30Add for use by the INSTALL/DEINSTALL scripts.jlam2-2/+4