Commit graph

46 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
wiz
5bed3a4340 Make sure the directory for the pidfile exists (/var/run is cleaned on
some machines...).
Bump PKGREVISION.
2007-02-01 23:19:56 +00:00
adrianp
9a2d793f15 pkglintification 2006-11-05 17:48:16 +00:00
adrianp
1182d548d2 Fix installation path of help files
Fixes PR# 34189 reported by Brad Harder
2006-08-15 11:16:41 +00:00
adrianp
13c39fa83a Update to 7.2.2
> -- ircd-hybrid-7.2.2 RELNOTES
> o) Added channel::disable_fake_channels config directive
> o) Fixed broken FORCEJOIN  (contrib)
> o) Added missing documentation for connect::vhost
> o) Fixed problem with G-Line voting
> o) Fixed "STATS ?" so it doesn't report negative traffic statistics
> o) Fixed core in m_mkpasswd.c  (contrib)
> o) Reduced memory usage for channel members
> o) Added general::stats_e_disabled which simply disables "STATS e"
>    for other operators and administrators
> o) Ignore signal SIGXFSZ to prevent the daemon from dying on missconfigured
>    file size limits
> o) Slight optimizations to the block allocator
> o) Fixed harmless bug that could result in incorrect bytes sent statistics
>    in "STATS t"
> o) "STATS y|Y" now shows whether a class is active or disabled
> o) Added ircd-brazilian_pt.lang language file
> o) Misc. ACCEPT fixes. E.g. don't remove an accept record if a client is
>    changing between equivalent nicknames like 'nick' and 'NiCk'.
> o) Minor resolv.conf parser fixes.  Added missing support for ';' comments
> o) Fixed core on MODRESTART
2006-08-11 16:53:39 +00:00
adrianp
181a38a068 Bump to 7.2.1
-- ircd-hybrid-7.2.1 RELNOTES
o) Fixed build on SRV4
o) Fixed problem where ircd would disconnect all SSL connections
o) Added initial CAP support.  Additional documentation can be found
in doc/technical
o) Speeded up command parsing
o) Fixed occasional core dump on UN*LINE
o) Fixed bug where particular clients would always receive
   "Load is temporarily too heavy" message
o) Improved memory consumption, i.e. memory consumption has
   been reduced for remote clients
o) Fixed possible core in case default_cipher_preference directive isn't set
o) Fixed "CHANSERV INVITE" bug with anope services
o) Updated example configuration files to reflect new topicburst flags
   directive in connect{} blocks
o) Fixed core if using the operator{} 'umodes' directive
o) Don't allow shared k-lines to be set without a valid reason
o) Improved channel ban match processing.  This also fixes CIDR bans
2006-06-06 13:04:55 +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
daad0f3d6c Modify the pkginstall framework so that it manages all aspects of
INSTALL/DEINSTALL script creation within pkgsrc.

If an INSTALL or DEINSTALL script is found in the package directory,
it is automatically used as a template for the pkginstall-generated
scripts.  If instead, they should be used simply as the full scripts,
then the package Makefile should set INSTALL_SRC or DEINSTALL_SRC
explicitly, e.g.:

	INSTALL_SRC=	${PKGDIR}/INSTALL
	DEINSTALL_SRC=	# emtpy

As part of the restructuring of the pkginstall framework internals,
we now *always* generate temporary INSTALL or DEINSTALL scripts.  By
comparing these temporary scripts with minimal INSTALL/DEINSTALL
scripts formed from only the base templates, we determine whether or
not the INSTALL/DEINSTALL scripts are actually needed by the package
(see the generate-install-scripts target in bsd.pkginstall.mk).

In addition, more variables in the framework have been made private.
The *_EXTRA_TMPL variables have been renamed to *_TEMPLATE, which are
more sensible names given the very few exported variables in this
framework.  The only public variables relating to the templates are:

	INSTALL_SRC		INSTALL_TEMPLATE
	DEINSTALL_SRC		DEINSTALL_TEMPLATE
				HEADER_TEMPLATE

The packages in pkgsrc have been modified to reflect the changes in
the pkginstall framework.
2006-03-14 01:14:26 +00:00
adrianp
f3b8ec4794 pkglint fixes. No version bumps required. 2006-02-04 15:22:06 +00:00
adrianp
2458cc00c4 Install the correct documentation and update the PLIST accordingly
Make sure mkpasswd is only installed once as ircd-hybrid-mkpasswd
Make .if defined statements a little more bulletbroof
Bump to nb1
2006-01-10 22:26:32 +00:00
adrianp
d5b3d7dae7 Update to 7.2.0
> -- ircd-hybrid-7.2.0 RELNOTES
> o) Fixed broken operwall = yes;
> o) Added 'umode' directive to oper{}.  List of modes to get on /OPER.
> o) Fixed a WHOIS bug
> o) Fixed bug where we would increase Count.invisi even
>    if invisible_on_connect is turned off
> o) Removed invite_ops_only, controlled by paranoid (+p) now
> o) Better DDoS protection
> o) Fixed va_list bug on amd64
> o) Fixed /dev/poll
>
>
> -- ircd-hybrid-7.2rc1 RELNOTES
> o) ircd can dynamically change all its client/fd limits at runtime
> o) Added epoll as the primary I/O engine under Linux
> o) Local channels will not show up in remote /WHOIS
> o) Added hidden_name which allows customized hidden server names
> o) Added restrict_channels to define a static channel set
> o) Added --disable-gline-voting to disable G-Line votes
>    for small networks or people who don't want it.
> o) Allow accumulating more ip= entries in an exempt{} block
> o) Various improvements and bugfixes
> o) Make win32 build usable
> o) Fixed ban caching bug
> o) Cosmetical fixes to TIME
> o) Get "KLINE nick" to work with clients that have a spoof
> o) Fixed RESV/XLINE bug in conjunction with names that include escaped
>    characters such as \*, \?, \#.
>
>
> -- ircd-hybrid-7.2beta1 RELNOTES
> o) Usermode +G, like +g, but allow messaging from people on common channels
> o) Usermode +D - "deaf", don't receive channel messages
> o) RXLINE and RKLINE - commands for setting regexp K/X lines
> o) Join flood is now detected and reported to +b opers
> o) Re-added REJECT_HOLD - lock clients for a while before throwing away
> o) ping_warning, a class{} option to notify opers before "Ping timeout"
> o) New hooking system, modularised: usermodes, iauth, message filtering etc.
> o) Network I/O speedups
> o) Various cleanups and bugfixes
> o) Support for client SSL
> o) Support for services (contrib/m_services.c)
> o) IP cloaking module (contrib/ip_cloaking.c)
> o) Native win32 build
2006-01-03 13:09:25 +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
joerg
e649d04cc7 Let us assume for a moment that OpenSSL version numbers are increasing
and replace a bogus check with >=, since 6 & 7 != 6.
2005-12-13 18:03:24 +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
rillig
b71a1d488b Fixed pkglint warnings. The warnings are mostly quoting issues, for
example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some
other changes are outlined in

    http://mail-index.netbsd.org/tech-pkg/2005/12/02/0034.html
2005-12-05 20:49:47 +00:00
adrianp
34ce61d256 Fix PAX problems on 1.6.x 2005-11-16 22:59:19 +00:00
adrianp
74c263c7fe Fix commented description for ziplinks 2005-11-13 22:58:05 +00:00
adrianp
d85acc995b Add a CONFLICTS for ircu 2005-11-13 22:47:40 +00:00
adrianp
74df2bdae4 Update ircd-hybrid 6.2 => 7.1.3
In brief:
- We now support a completely new platform, Tru64 UNIX
- We have mostly revamped the Windows Cygwin port
- The IRIX port has been brought up to date
- The HPUX port has been retested and minor warnings have been fixed
- The configure script has been massively revamped
- Most noticeable is that we generate make dependencies on the fly now
- We now use our own .lang files to provide translated numeric messages
- IPv6 support is now automatically enabled/disabled
- Cryptlinks now use Nagle's TCP_NODELAY algorithm
- X-line (gecos ban) support has been added
- Nick and channel RESVs are now stored in nresv.conf and cresv.conf
2005-11-13 22:40:00 +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
bd2788d930 Merge CONF_FILES/SUPPORT_FILES and CONF_FILES_PERMS/SUPPORT_FILES_PERMS
as the INSTALL and DEINSTALL scripts no longer distinguish between
the two types of files.  Drop SUPPORT_FILES{,_PERMS} and modify the
packages in pkgsrc accordingly.
2005-08-19 18:12:36 +00:00
grant
754b2dfad6 use ${NOLOGIN}, not hardcoded /sbin/nologin. 2005-07-12 04:15:50 +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
tv
f816d81489 Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used. 2005-04-11 21:44:48 +00:00
seb
4f4b4d384d Relinquish stewardship. I do not use this IRC server anymore and I don't
have enough time to update the package.
2005-03-31 01:23:14 +00:00
agc
0cbe9b3900 Add RMD160 digests in addition to SHA1 ones 2005-02-23 15:59:10 +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
tv
c487cb967a Libtool fix for PR pkg/26633, and other issues. Update libtool to 1.5.10
in the process.  (More information on tech-pkg.)

Bump PKGREVISION and BUILDLINK_DEPENDS of all packages using libtool and
installing .la files.

Bump PKGREVISION (only) of all packages depending directly on the above
via a buildlink3 include.
2004-10-03 00:12:51 +00:00
reed
06e49aba4f Installation of the RCD_SCRIPTS rc.d script is done automatic
here. So don't install it twice.

(Anyways, ${PREFIX}/etc/rc.d is not the correct location; the
RCD_SCRIPTS uses ${RCD_SCRIPTS_EXAMPLEDIR}.)
2004-04-27 20:51:10 +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
snj
de6330fe07 Set USE_BUILDLINK3 to YES, don't define it. 2004-04-11 16:08:55 +00:00
snj
0865b39e9e Convert to buildlink3. 2004-04-11 05:48:49 +00:00
grant
05765496d1 whitespace fixes 2004-01-22 08:47:32 +00:00
cjep
0174216952 whitespace fixes 2003-09-01 10:13:08 +00:00
seb
4c6e4da28c Add a missing '/'. 2003-08-23 10:52:50 +00:00
grant
2716c2447f s/Irc/IRC/ in COMMENT. 2003-08-12 13:38:54 +00:00
seb
3f203cfe95 Follow the trend started by jmmv@. Thanks Julio!
Remove IRCD_HYBRID_DPATH from bsd.pkg.defaults.mk and BUILD_DEFS,
set PKG_SYSCONFSUBDIR to 'ircd-hybrid' instead: the package builder is
now expected to adjust Ircd Hybrid configuration directory with
PKG_SYSCONFBASE(.${PKG_SYSCONFVAR}).

Replace local DOC_SUBST stuff with FILES_SUBST from bsd.pkg.install.mk.

Go with the previous PKGREVISION bump.

XXX Having the log files as SUPPORT_FILES is not optimal.
XXX I really should update this package.
2003-07-29 20:21:37 +00:00
jmmv
48e3ab1942 Convert to the bsd.pkg.install.mk framework to handle the daemon's user and
group, the creation of log files and automatic handling of the rc.d script.
Bump PKGREVISION to 1.  Ok'ed by seb@, the maintainer.
2003-07-29 17:25:58 +00:00
grant
b5ea2c4d20 drop some unneeded parens, indenting 2003-06-19 16:21:08 +00:00
grant
262dd056ad improve. 2003-02-11 13:28:46 +00:00
wiz
76d79f60d0 buildlink1 -> buildlink2. 2002-10-10 09:37:12 +00:00
wiz
2317688735 Standardize. 2002-09-12 17:12:36 +00:00
tv
84428646d9 Set $rcvar so this can be properly enabled/disabled in rc.conf. 2002-07-06 20:36:58 +00:00
abs
2b325a79cd prdownloads.sourceforge.net is no longer any use.
Switch to MASTER_SITE_SOURCEFORGE.
2002-05-12 10:16:44 +00:00
zuntum
461042de91 Move pkg/ files into package's toplevel directory 2001-10-31 20:06:16 +00:00
seb
bbe8e2dce2 Added ircd-hybrid version 6.2, an IRC daemon. 2001-10-21 21:26:51 +00:00