Commit graph

30 commits

Author SHA1 Message Date
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
rillig
683d99d674 Fixed pkglint warnings. 2006-06-16 09:32:33 +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
jlam
792529759b * Honor PKGINFODIR.
* List the info files directly in the PLIST.
2006-03-30 03:44:41 +00:00
rillig
1407e8ccdc Fixed pkglint warnings. 2006-03-10 23:26:31 +00:00
jlam
6e0c050321 * Teach the tools framework how to supply the pkgsrc version of
makeinfo if no native makeinfo executable exists.  Honor TEXINFO_REQD
  when determining whether the native makeinfo can be used.

* Remove USE_MAKEINFO and replace it with USE_TOOLS+=makeinfo.

* Get rid of all the "split" argument deduction for makeinfo since
  the PLIST module already handles varying numbers of split info files
  correctly.

NOTE: Platforms that have "makeinfo" in the base system should check
      that the makeinfo entries of pkgsrc/mk/tools.${OPSYS}.mk are
      correct.
2006-03-05 16:27:22 +00:00
joerg
5911def816 Recursive revision bump / recommended bump for gettext ABI change. 2006-02-05 23:08:03 +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
579e977969 Ran "pkglint --autofix", which corrected some of the quoting issues in
CONFIGURE_ARGS.
2005-12-05 23:55:01 +00:00
recht
c0782d7d80 Add a patch from gnats CSV to fix the security problem noted in:
http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2005-2180

Patch by adrianp@.

ChangeLog from gnats CSV:
* Makefile.in (install-gnats-tools, install-gnats-bin): Removed chown
and chmod entries for setting binaries suid.  CAN-2005-2180 advisory.
gen-index as setuid root can overwrite any system file.

Bump PKGREVISION to 1.
2005-08-28 12:36:42 +00:00
recht
a043abe05f Update to gnats 4.1.0.
Make a overhaul of the package and bring it closer to pkgsrc standards.
Addresses PR 26174 by Hauke Fath.

changes:

This is GNATS 4.1.0, a release that incorporates multiple bug fixes
and enhancements that have been committed to CVS since the release of
GNATS 4.0.  Notable enhancements include:

- Upgrade to autoconf 2.59 generated configure scripts.
- New PR numbers are reported to the client upon new submissions
- Rewrite of install-sid.  Now, rather than editing send-pr, which can
  be installed on a read-only partition, install-sid creates or edits
  user or site configuration files ~/.send-pr.conf or
  /etc/gnats/send-pr.conf.
- Removal of libiberty, old manpages, and old build framework cruft
- Performance enhancements to indexing code
- Various cleanups and bugfixes.  See the ChangeLog files for details.
2005-08-27 22:24:02 +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
cf4dfe44a5 Use REQD_DIRS instead of MAKE_DIRS for directories under ${PREFIX} so
that these directories will be conditionally removed (based on reference
counts), regardless of the value of PKG_CONFIG.  Bump the PKGREVISION
for packages that were modified as a result.
2005-08-20 19:16:21 +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
tv
f816d81489 Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used. 2005-04-11 21:44:48 +00:00
soren
1af62ec56c Update to gnats 4.0.1.
Fixes vulnerabilities described in
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2004-0623 .
2004-11-14 10:59:58 +00:00
soren
c33227b897 Update using the databases/gnats4 package. gnats3 has numerous security
problems and is no longer supported.
2004-11-10 21:34:46 +00:00
recht
8175aa6a4a Fix typo: =gnats/ should be :=gnats/ in MASTER_SITE_GNU 2004-03-06 18:27:47 +00:00
grant
f9d1cda00b USE_GNU_TOOLS+=m4 instead of BUILD_DEPENDS. 2004-01-25 02:55:14 +00:00
grant
c044c82d67 replace deprecated USE_GMAKE with USE_GNU_TOOLS+=make. 2004-01-22 08:02:15 +00:00
seb
d97c42145f Remove info files entries from PLIST file.
Also dynamically handle the send-pr.info* files in ${PREFIX}/share/gnats/dist
2004-01-20 18:05:35 +00:00
seb
8d15907ec2 USE_NEW_TEXINFO is unnecessary now. 2003-08-09 10:38:23 +00:00
grant
91f00f1cbc s/netbsd.org/NetBSD.org/ 2003-07-17 21:21:03 +00:00
seb
6ed3821f7f Convert to USE_NEW_TEXINFO. 2003-06-29 12:54:57 +00:00
wiz
c29a6481cb Moved to GNU repo -- change homepage and download locations.
Noted by Katsuhiko Fujii in PR 21832.
2003-06-09 14:05:36 +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
seb
84f5136017 Use bsd.pkg.install.mk infrastructure to create the `gnats' user and
some directories. In the process kill PLIST @exec -except for those related
to install-info.
While here substitute some leftover `/usr/pkg' in MESSAGE.

XXX Marking this package as USE_BUILDLINK2 will make my life easier
for forthcoming changes but as it is not really necessary for the build
it self I guess it is not a good option?
2003-05-30 22:14:28 +00:00
cjep
a0acc780b0 Test for useradd rather than user. The package then installs cleanly on
Solaris.
2003-01-05 14:39:41 +00:00
seb
66111c6d15 Introduce new framework for handling info files generation and installation.
Summary of changes:
- removal of USE_GTEXINFO
- addition of mk/texinfo.mk
- inclusion of this file in package Makefiles requiring it
- `install-info' substituted by `${INSTALL_INFO}' in PLISTs
- tuning of mk/bsd.pkg.mk:
    removal of USE_GTEXINFO
    INSTALL_INFO added to PLIST_SUBST
    `${INSTALL_INFO}' replace `install-info' in target rules
    print-PLIST target now generate `${INSTALL_INFO}' instead of `install-info'
- a couple of new patch files added for a handful of packages
- setting of the TEXINFO_OVERRIDE "switch" in packages Makefiles requiring it
- devel/cssc marked requiring texinfo 4.0
- a couple of packages Makefiles were tuned with respect of INFO_FILES and
  makeinfo command usage

See -newly added by this commit- section 10.24 of Packages.txt for
further information.
2002-02-18 15:14:00 +00:00
martti
e7e0895702 Added the GNATS package which was submitted in pkg/13330.
GNATS (GNU Problem Report Management System) is a problem tracking
system written to help report on, and track, problem reports or bugs.
2001-10-11 11:42:26 +00:00