Commit graph

47 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
601583c320 Whitespace cleanup, courtesy of pkglint.
Patch provided by Sergey Svishchev in private mail.
2007-02-22 19:26:05 +00:00
obache
e896edb7fe Rename variable MAKEFILE to MAKE_FILE. 2006-09-09 02:41:53 +00:00
jlam
07bb1e9524 Modify (finally!) to use pkginstall framework. Bump PKGREVISION to 2. 2006-06-16 17:11:25 +00:00
jlam
1d18774782 Remove some extraneous lines from the MESSAGE. 2006-06-16 16:43:37 +00:00
jlam
8bbd65ab36 Formatting nits for DESCR file. 2006-06-16 16:43:23 +00:00
rillig
aadc0fd2bf Fixed pkglint warnings. Mainly removed the "@" before the install
commands and replaced $$ with $$$$, because it was meant to be the pid
of the shell.
2006-06-09 08:59:01 +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
jlam
5ee52161e8 Use the pkginstall framework to create the INSTALL/DEINSTALL scripts
instead.

XXX This package really needs an overhaul to use modern pkgsrc
XXX conventions.
2006-03-10 20:08:57 +00:00
garbled
678c07ce3f Per PR pkg/30133 majordomo conflicts with net/bounce. 2006-01-06 02:35:32 +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
he
4f28c04aa3 Bump PKGREVISION after the resend fix.
Sort PLIST.
2005-07-23 22:56:16 +00:00
he
89734546a0 When the approve script processes a list bounce, remove any
"Delivered-To:" header pointing to the list so that if postfix is
involved in the message delivery, it will not think the message is
looping.

Idea and patch from cjs@
2005-07-23 14:44:39 +00:00
jlam
3e474a90d8 Get rid of USE_PERL5. The new way to express needing the Perl executable
around at either build-time or at run-time is:

	USE_TOOLS+=	perl		# build-time
	USE_TOOLS+=	perl:run	# run-time

Also remove some places where perl5/buildlink3.mk was being included
by a package Makefile, but all that the package wanted was the Perl
executable.
2005-07-16 01:19:06 +00:00
rillig
f795c2e475 Removed trailing white-space. 2005-05-23 08:26:03 +00:00
agc
8758983939 Add RMD160 digests. 2005-02-24 09:59:20 +00:00
wiz
6e02d7ee41 Rename ALL_TARGET to BUILD_TARGET for consistency with other *_TARGETs.
Suggested by Roland Illig, ok'd by various.
2004-12-03 15:14:50 +00:00
wiz
54c3beffc1 Rename .keep_me to keep_me, to avoid filenames starting with a dot.
No change in the package.
2004-11-04 12:20:18 +00:00
jlam
2920a32c71 Prepare for pkgviews by making sure that passing VIEW-INSTALL or
VIEW-DEINSTALL to the INSTALL/DEINSTALL scripts don't cause errors.
2003-08-30 20:22:49 +00:00
jmmv
f1446ddf2b Drop trailing whitespace. Ok'ed by wiz. 2003-05-06 17:40:18 +00:00
seb
b28c04efc0 Add missing ` in m4 macro example. 2003-02-24 13:10:58 +00:00
wiz
e8817c9088 Complete standardization of messages according to latest pkglint. 2002-09-24 12:29:55 +00:00
zuntum
c72c1cf5f9 Move pkg/ files into package's toplevel directory 2001-11-01 00:57:41 +00:00
jlam
6c797a0afa Allow customizing the message for _SU_TARGET by substituting for "$action",
where action can be "install", "package", "create user for", etc., instead
of blindly always saying "install".  Define "action" before calling
${_SU_TARGET} whereever it is used.
2001-10-01 21:15:11 +00:00
agc
fb0b85e623 Use common just-in-time su code from bsd.pkg.mk, rather than homegrown
one.
2001-09-12 11:05:12 +00:00
jtb
52941bc4a7 The license for majordomo is now in pkgsrc/licenses/. 2001-06-04 21:46:57 +00:00
agc
b26a4eb88b Move to sha1 digests, and add distfile sizes. 2001-04-20 13:09:54 +00:00
agc
9e8d6c8b8d + move the distfile digest/checksum value from files/md5 to distinfo
+ move the patch digest/checksum values from files/patch-sum to distinfo
2001-04-17 11:33:31 +00:00
itojun
2e9c5e548c upgrade to 1.94.5.
Changes from 1.94.4 to 1.94.5

A straightforward patch release, 99% from the collected
1.94.4 patches:

o digest_rm_fronter and digest_rm_footer now work.
o unsubcribe_policy now has +confirm feature
o More hostile address checking
o archive2.pl makes archives world readable.
o bounce had an innocuous y2k bug, and wanted a 'bounces' list password even
  when called as unsub
o better description of the moderator function.
o Fixes 'restrict_post = #!$list' substitution and blank lines
  in config files
o Better error reporting when majordomo.cf is wrong.
o Detects some attachments sent as commands
o Approve commands can span lines now.
o resend has better messages for taboo_headers problems
o fixed: header corruption when Subject: is blank and subject tags are used.
2001-04-13 01:42:32 +00:00
agc
4b2b4a974e Move majordomo's digest man page to section 8, so that it doesn't
conflict with digest(1)'s manual page.  The majordomo digest command
lives in libexec, anyway.

Bump version to majordomo-1.94.4nb1

Addresses PR 12385, from Jun-ichiro itojun Hagino
2001-03-27 11:53:17 +00:00
wiz
a13ea108bb Update to new COMMENT style: COMMENT var in Makefile instead of pkg/COMMENT. 2001-02-17 17:52:59 +00:00
wiz
b979f7222a Add automatic ${VARIABLE} handling for MESSAGE files.
Convert most MESSAGE files to new syntax (${VARIABLE} gets replaced,
not @VARIABLE@, nor @@VARIABLE@@).
By default, substitutions are done for LOCALBASE, PKGNAME, PREFIX,
X11BASE, X11PREFIX; additional patterns can be added via MESSAGE_SUBST.
Clean up some packages while I'm there; add RCS tags to most MESSAGEs.
Remove some uninteresting MESSAGEs.
2001-01-29 11:34:21 +00:00
rh
29ca230a62 s/NO_PACKAGE/NO_BIN_ON_{FTP,CDROM}/ 2000-12-28 10:34:03 +00:00
wiz
bef9e409f7 Replace REQ file by INSTALL file, and modify to suit
sysutils/amanda-common style.
2000-12-08 10:09:22 +00:00
tron
86c272194b Aliases are in "/etc/mail/aliases" not in "/etc/sendmail.cf". 2000-08-29 14:37:36 +00:00
wiz
01713b31c0 Use user' instead of addnerd'. Move de-installation instructions
from PLIST to DEINSTALL.
2000-08-18 15:57:47 +00:00
wiz
e554b98852 fixed RCS tag 2000-02-05 19:51:44 +00:00
wiz
a1b66cec15 RCS tags added 2000-01-09 01:28:07 +00:00
hubertf
816c9a4bf1 - Add note that majordom can be removed from /etc/group
- Call 'digest' from correct dir. Addresses PR 8814 by Berndt Josef
   Wulf <wulf@dingo.ping.net.au>
 - Add some headers to wrapper.c to fix several compile time warnings;
   partly submitted in PR 8756 by Berndt Josef Wulf <wulf@dingo.ping.net.au>
1999-11-27 16:50:01 +00:00
sakamoto
99d5c56cc2 Use PLIST_SUBST= HOME=${MAJORDOMO_HOMEDIR} MAJORDOMO_USER=${MAJORDOMO_USER} 1999-09-06 08:08:17 +00:00
agc
f32d265e28 Record build options in the BuildInfo file via BUILD_DEFS. These can be
displayed using the -B option to pkg_info(1).
1999-08-18 08:46:53 +00:00
agc
f4d5171de1 Add package patch checksum files. 1999-07-09 14:09:02 +00:00
bad
ad87d09d87 Prefix the TMDIR and HOMEDIR variables with MAJORDOMO_ too. 1999-06-08 18:26:02 +00:00
bad
b598fe56af Steal some code from bsd.pkg.mk to run the REQ script under SU_CMD when
not configuring as root.
1999-06-08 18:04:10 +00:00
bad
a861a9543b Check for group before invoking addnerd since the latter won't work
correctly when the required group is missing.
1999-06-08 17:58:49 +00:00
bad
1fb38505ee Add a HOMEPAGE=. 1999-06-08 17:54:25 +00:00
bad
bcb41376e5 Initial import of pkg for majordomo-1.94.4, the popular mailing list manager.
Packaged by Brook Milligan brook@trillium.NMSU.Edu.
1999-06-08 17:51:25 +00:00