new user/group naming schema
bumped PKGNAME except for xcept
This commit is contained in:
parent
749c5a55e7
commit
5d94e73bb5
@ -7,10 +7,10 @@ You must also add
|
||||
|
||||
xcept 20005/tcp #XCEPT
|
||||
|
||||
to /etc/services, add a 'xcept' user in your system
|
||||
to /etc/services, add an '_xcept' user in your system with uid 522
|
||||
and put the user in group 'dialer', then put the line
|
||||
|
||||
xcept stream tcp nowait xcept ${PREFIX}/libexec/ceptd ceptd
|
||||
xcept stream tcp nowait _xcept ${PREFIX}/libexec/ceptd ceptd
|
||||
|
||||
in /etc/inetd.conf on your server host, and restart inetd.
|
||||
|
||||
|
@ -1,8 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.12 2003/05/02 18:17:02 sturm Exp $
|
||||
# $OpenBSD: Makefile,v 1.13 2003/06/22 10:05:28 sturm Exp $
|
||||
|
||||
COMMENT= "GNU Problem Report Management System"
|
||||
|
||||
DISTNAME= gnats-3.113.1
|
||||
PKGNAME= ${DISTNAME}p0
|
||||
CATEGORIES= databases devel
|
||||
MASTER_SITES= ${MASTER_SITE_GNU:=gnats/}
|
||||
|
||||
@ -17,7 +18,7 @@ PERMIT_PACKAGE_FTP= Yes
|
||||
NO_REGRESS= Yes
|
||||
|
||||
CONFIGURE_STYLE=gnu dest
|
||||
CONFIGURE_ARGS+=--with-full-gnats --with-release-based
|
||||
CONFIGURE_ARGS+=--with-full-gnats --with-release-based --with-gnats-user=_gnats
|
||||
CONFIGURE_ENV+= SEND_PR=/usr/bin/false
|
||||
|
||||
INSTALL_TARGET= install-gnats install-send-pr install-info
|
||||
|
@ -8,18 +8,18 @@ support 1529/tcp # GNATS
|
||||
|
||||
2. Add the following to /etc/inetd.conf and HUP inetd:
|
||||
|
||||
support stream tcp nowait gnats y0y0y0/libexec/gnats/gnatsd gnatsd
|
||||
support stream tcp nowait _gnats y0y0y0/libexec/gnats/gnatsd gnatsd
|
||||
|
||||
3. Edit the config files in y0y0y0/share/gnats/gnats-db/gnats-adm
|
||||
(see the GNATS info documentation, HTML'ized at
|
||||
http://sunsite.ualberta.ca/Documentation/Gnu/gnats-3.113/)
|
||||
to your liking, then run (as root):
|
||||
|
||||
su -m gnats -c 'GNATS_ROOT=y0y0y0/share/gnats/gnats-db y0y0y0/libexec/gnats/mkcat'
|
||||
su -m _gnats -c 'GNATS_ROOT=y0y0y0/share/gnats/gnats-db y0y0y0/libexec/gnats/mkcat'
|
||||
|
||||
4. As root, do
|
||||
|
||||
su -m gnats -c 'crontab -e'
|
||||
su -m _gnats -c 'crontab -e'
|
||||
|
||||
and add the following entry:
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
# $OpenBSD: DEINSTALL,v 1.2 2003/05/02 18:17:02 sturm Exp $
|
||||
# $OpenBSD: DEINSTALL,v 1.3 2003/06/22 10:05:28 sturm Exp $
|
||||
#
|
||||
# De-installation setup of gnats
|
||||
|
||||
@ -12,10 +12,10 @@ do_accts()
|
||||
{
|
||||
echo ""
|
||||
echo "+---------------"
|
||||
echo "| Delete the 'gnats' user account for a full de-installation."
|
||||
echo "| To do this: execute 'user del gnats' as root."
|
||||
echo "| You can also remove any crontab entries for 'gnats' by"
|
||||
echo "| executing 'crontab -u gnats -r' as root."
|
||||
echo "| Delete the '_gnats' user account for a full de-installation."
|
||||
echo "| To do this: execute 'user del _gnats' as root."
|
||||
echo "| You can also remove any crontab entries for '_gnats' by"
|
||||
echo "| executing 'crontab -u _gnats -r' as root."
|
||||
echo "+---------------"
|
||||
echo ""
|
||||
}
|
||||
|
@ -1,19 +1,21 @@
|
||||
#!/bin/sh
|
||||
# $OpenBSD: INSTALL,v 1.2 2003/05/02 18:17:02 sturm Exp $
|
||||
# $OpenBSD: INSTALL,v 1.3 2003/06/22 10:05:28 sturm Exp $
|
||||
#
|
||||
# Pre/post-installation setup of gnats
|
||||
|
||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||
PREFIX=${PKG_PREFIX:-/usr/local}
|
||||
CONFIG_FILE=${SYSCONFDIR}/gnats-db.conf
|
||||
USER=_gnats
|
||||
ID=501
|
||||
|
||||
# Function: set up gnats user account.
|
||||
#
|
||||
do_accts()
|
||||
{
|
||||
userinfo -e gnats
|
||||
userinfo -e $USER
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "===> Using account 'gnats' for gnats"
|
||||
echo "===> Using account '$USER' for gnats"
|
||||
else
|
||||
echo "===> Creating gnats user"
|
||||
useradd \
|
||||
@ -21,8 +23,7 @@ do_accts()
|
||||
-c "GNATS database owner" \
|
||||
-d $PREFIX/share/gnats \
|
||||
-s /sbin/nologin \
|
||||
-p \* \
|
||||
gnats
|
||||
-u $ID $USER
|
||||
fi
|
||||
}
|
||||
|
||||
@ -38,7 +39,6 @@ do_configs()
|
||||
echo "| current sample file, ${PREFIX}/share/examples/gnats/gnats-db.conf"
|
||||
echo "| and update your configuration as needed."
|
||||
echo "+---------------"
|
||||
echo ""
|
||||
else
|
||||
# Install config files.
|
||||
install -o root -g wheel -m 644 ${PREFIX}/share/examples/gnats/gnats-db.conf ${CONFIG_FILE}
|
||||
@ -49,8 +49,13 @@ do_configs()
|
||||
echo "| installed. Please view this file and change"
|
||||
echo "| the configuration to meet your needs."
|
||||
echo "+---------------"
|
||||
echo ""
|
||||
fi
|
||||
echo "| WARNING!"
|
||||
echo "|"
|
||||
echo "| This port has changed its user from 'gnats' to '_gnats'. If you"
|
||||
echo "| installed this port before, ensure all permissions are set"
|
||||
echo "| correctly and then \"rmuser gnats\"."
|
||||
echo "+---------------"
|
||||
}
|
||||
|
||||
# verify proper execution
|
||||
|
@ -1,4 +1,4 @@
|
||||
@comment $OpenBSD: PLIST,v 1.4 2002/05/09 16:16:02 millert Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.5 2003/06/22 10:05:28 sturm Exp $
|
||||
@unexec install-info --delete --info-dir=%D/info %D/info/gnats.info
|
||||
@unexec install-info --delete --info-dir=%D/info %D/info/send-pr.info
|
||||
@unexec install-info --delete --info-dir=%D/info %D/info/standards.info
|
||||
@ -39,7 +39,7 @@ libexec/gnats/pr-edit
|
||||
libexec/gnats/pr-mail
|
||||
libexec/gnats/queue-pr
|
||||
libexec/gnats/rmcat
|
||||
@exec chown gnats %D/libexec/gnats/gen-index %D/libexec/gnats/pr-edit %D/libexec/gnats/queue-pr
|
||||
@exec chown _gnats %D/libexec/gnats/gen-index %D/libexec/gnats/pr-edit %D/libexec/gnats/queue-pr
|
||||
@exec chmod 4555 %D/libexec/gnats/gen-index %D/libexec/gnats/pr-edit %D/libexec/gnats/queue-pr
|
||||
man/man1/edit-pr.1
|
||||
man/man1/query-pr.1
|
||||
@ -81,7 +81,7 @@ share/gnats/gnats-db/gnats-adm/submitters
|
||||
@exec mkdir -p %D/share/gnats/gnats-db/pending
|
||||
@exec mkdir -p %D/share/gnats/gnats-db/gnats-queue
|
||||
@exec mkdir -p %D/share/gnats/gnats-db/gnats-adm/locks
|
||||
@exec chown -R gnats %D/share/gnats
|
||||
@exec chown -R _gnats %D/share/gnats
|
||||
@dirrm share/gnats/gnats-db/pending
|
||||
@dirrm share/gnats/gnats-db/gnats-queue
|
||||
@dirrm share/gnats/gnats-db/gnats-adm/locks
|
||||
|
@ -1,8 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.21 2003/05/01 16:11:53 sturm Exp $
|
||||
# $OpenBSD: Makefile,v 1.22 2003/06/22 10:05:28 sturm Exp $
|
||||
|
||||
COMMENT= "mailing list manager with web interface"
|
||||
|
||||
DISTNAME= mailman-2.1.2
|
||||
PKGNAME= ${DISTNAME}p0
|
||||
CATEGORIES= mail www
|
||||
|
||||
HOMEPAGE= http://www.gnu.org/software/mailman/
|
||||
|
@ -1,4 +1,4 @@
|
||||
$OpenBSD: README.OpenBSD,v 1.5 2003/05/12 05:11:44 sturm Exp $
|
||||
$OpenBSD: README.OpenBSD,v 1.6 2003/06/22 10:05:28 sturm Exp $
|
||||
|
||||
Throughout this document $mailmandir is the directory mailman is installed
|
||||
in. This defaults to /usr/local/lib/mailman. If you install your ports
|
||||
@ -74,7 +74,7 @@ OpenBSD specific comments added. It's a good time to become root, now.
|
||||
crontab entry by executing these commands:
|
||||
|
||||
% cd $mailmandir/cron
|
||||
% crontab -u mailman crontab.in
|
||||
% crontab -u _mailman crontab.in
|
||||
|
||||
- Start the Mailman qrunner daemon, by executing the following
|
||||
from the $mailmandir directory:
|
||||
|
@ -1,4 +1,4 @@
|
||||
$OpenBSD: patch-configure,v 1.3 2003/05/01 16:11:53 sturm Exp $
|
||||
$OpenBSD: patch-configure,v 1.4 2003/06/22 10:05:29 sturm Exp $
|
||||
--- configure.orig Tue Apr 22 05:34:49 2003
|
||||
+++ configure Thu May 1 12:23:55 2003
|
||||
@@ -1206,52 +1206,7 @@ fi
|
||||
@ -51,7 +51,7 @@ $OpenBSD: patch-configure,v 1.3 2003/05/01 16:11:53 sturm Exp $
|
||||
-fi
|
||||
-echo "$ac_t""okay" 1>&6
|
||||
-
|
||||
+MAILMAN_USER=mailman
|
||||
+MAILMAN_USER=_mailman
|
||||
|
||||
# Check for some other gid to use than `mailman'
|
||||
echo $ac_n "checking for --with-groupname""... $ac_c" 1>&6
|
||||
@ -160,7 +160,7 @@ $OpenBSD: patch-configure,v 1.3 2003/05/01 16:11:53 sturm Exp $
|
||||
-fi
|
||||
-echo "$ac_t""$status" 1>&6
|
||||
-
|
||||
+MAILMAN_GROUP=mailman
|
||||
+MAILMAN_GROUP=_mailman
|
||||
|
||||
# Now find the UIDs and GIDs
|
||||
# Support --with-mail-gid and --with-cgi-gid
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
# $OpenBSD: DEINSTALL,v 1.1.1.1 2001/08/29 02:13:06 shell Exp $
|
||||
# $OpenBSD: DEINSTALL,v 1.2 2003/06/22 10:05:29 sturm Exp $
|
||||
#
|
||||
# mailman de-installation
|
||||
|
||||
@ -16,13 +16,13 @@ if [ -d $MMHOME ]; then
|
||||
echo "| not been deleted. To completely deinstall the $1"
|
||||
echo "| package you need to perform these steps as root:"
|
||||
echo "|"
|
||||
echo "| rmuser mailman"
|
||||
echo "| rmuser _mailman"
|
||||
echo "| rm -fr $MMSPOOL"
|
||||
echo "|"
|
||||
echo "| If you don't delete user mailman, make sure to remove his crontab"
|
||||
echo "| If you don't delete user _mailman, make sure to remove his crontab"
|
||||
echo "| entries with:"
|
||||
echo "|"
|
||||
echo "| crontab -u mailman -r"
|
||||
echo "| crontab -u _mailman -r"
|
||||
echo "|"
|
||||
echo "| Finally reverse the configuration changes to your webserver"
|
||||
echo "| and mailserver."
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
# $OpenBSD: INSTALL,v 1.2 2003/01/18 16:52:17 sturm Exp $
|
||||
# $OpenBSD: INSTALL,v 1.3 2003/06/22 10:05:29 sturm Exp $
|
||||
#
|
||||
# Pre/post-installation setup of mailman
|
||||
|
||||
@ -10,36 +10,37 @@ PREFIX=${PKG_PREFIX:-/usr/local}
|
||||
|
||||
MMHOME=${PREFIX}/lib/mailman
|
||||
MMSPOOL=/var/spool/mailman
|
||||
MM=_mailman
|
||||
ID=504
|
||||
|
||||
# add user/group mailman if they don't already exist
|
||||
do_accts()
|
||||
{
|
||||
groupinfo -e mailman
|
||||
groupinfo -e $MM
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "===> Using existing group 'mailman'"
|
||||
echo "===> Using existing group '$MM'"
|
||||
else
|
||||
echo "===> Creating group 'mailman'"
|
||||
groupadd mailman
|
||||
echo "===> Creating group '$MM'"
|
||||
groupadd -g $ID $MM
|
||||
fi
|
||||
|
||||
userinfo -e mailman
|
||||
userinfo -e $MM
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "===> Using existing account 'mailman'"
|
||||
echo "===> Using existing account '$MM'"
|
||||
else
|
||||
echo "===> Creating user 'mailman'"
|
||||
useradd -g mailman \
|
||||
echo "===> Creating user '$MM'"
|
||||
useradd -g $MM \
|
||||
-c "Mailing List Manager" \
|
||||
-m -d $MMHOME \
|
||||
-s /sbin/nologin \
|
||||
-p \* \
|
||||
mailman
|
||||
-u $ID $MM
|
||||
fi
|
||||
}
|
||||
|
||||
# create installation directories
|
||||
do_dirs()
|
||||
{
|
||||
INSTALL_DIR="install -d -o mailman -g mailman -m 0775"
|
||||
INSTALL_DIR="install -d -o $MM -g $MM -m 0775"
|
||||
|
||||
if [ ! -d $MMSPOOL ]; then
|
||||
$INSTALL_DIR $MMSPOOL
|
||||
@ -57,7 +58,7 @@ do_dirs()
|
||||
|
||||
do_files()
|
||||
{
|
||||
INSTALL="install -o mailman -g mailman -m 664"
|
||||
INSTALL="install -o $MM -g $MM -m 664"
|
||||
|
||||
if [ ! -f $MMHOME/Mailman/mm_cfg.py ]; then
|
||||
$INSTALL $MMHOME/Mailman/mm_cfg.py.dist $MMHOME/Mailman/mm_cfg.py;
|
||||
@ -67,7 +68,7 @@ do_files()
|
||||
do_perms()
|
||||
{
|
||||
cd ${MMHOME}
|
||||
chown -R mailman:mailman *
|
||||
chown -R $MM:$MM *
|
||||
find . -type d -exec chmod 0775 {} \;
|
||||
for file in mail/mailman cgi-bin/*; do
|
||||
chmod 2755 $file;
|
||||
|
@ -7,3 +7,9 @@
|
||||
| ${PREFIX}/share/doc/mailman/UPGRADING and run
|
||||
| ${PREFIX}/lib/mailman/bin/update as root.
|
||||
+---------------
|
||||
| WARNING!
|
||||
|
|
||||
| This port has changed its user/group from 'mailman' to '_mailman'. If you
|
||||
| installed this port before, ensure all permissions are set correctly and
|
||||
| then "rmuser mailman".
|
||||
+---------------
|
||||
|
@ -1,9 +1,10 @@
|
||||
# $OpenBSD: Makefile,v 1.8 2002/12/25 16:48:12 sturm Exp $
|
||||
# $OpenBSD: Makefile,v 1.9 2003/06/22 10:05:29 sturm Exp $
|
||||
|
||||
COMMENT= "client for anonymous remailing"
|
||||
|
||||
VERSION= 2.9.0
|
||||
DISTNAME= mixmaster-${VERSION}
|
||||
PKGNAME= ${DISTNAME}p0
|
||||
CATEGORIES= mail security
|
||||
|
||||
MAINTAINER= Nikolay Sturm <sturm@openbsd.org>
|
||||
|
@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
# $OpenBSD: DEINSTALL,v 1.2 2002/09/14 15:21:14 naddy Exp $
|
||||
# $OpenBSD: DEINSTALL,v 1.3 2003/06/22 10:05:29 sturm Exp $
|
||||
#
|
||||
# mixmaster de-installation
|
||||
|
||||
@ -15,7 +15,7 @@ if [ -d $CONFIG_DIR ]; then
|
||||
echo "| these steps as root:"
|
||||
echo "|"
|
||||
echo "| rm -fr /var/spool/mixmaster"
|
||||
echo "| rmuser mixmaster"
|
||||
echo "| rmuser _mixmaster"
|
||||
echo "+---------------"
|
||||
echo ""
|
||||
fi
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh
|
||||
|
||||
# $OpenBSD: INSTALL,v 1.4 2003/04/14 15:02:09 wilfried Exp $
|
||||
# $OpenBSD: INSTALL,v 1.5 2003/06/22 10:05:29 sturm Exp $
|
||||
#
|
||||
# Mixmaster installation script, using many ideas from
|
||||
# Adam Shostack's Install-Mix.
|
||||
@ -13,6 +13,9 @@ MIXDIR=${PREFIX}/share/examples/mixmaster
|
||||
MIXDEST=${SYSCONFDIR}/mixmaster
|
||||
MIXSPOOL=/var/spool/mixmaster
|
||||
|
||||
MM=_mixmaster
|
||||
ID=505
|
||||
|
||||
# verify proper execution
|
||||
#
|
||||
if [ $# -ne 2 ]; then
|
||||
@ -24,26 +27,25 @@ fi
|
||||
#
|
||||
do_accts()
|
||||
{
|
||||
groupinfo -e mixmaster
|
||||
groupinfo -e $MM
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "===> Using existing group 'mixmaster'"
|
||||
echo "===> Using existing group '$MM'"
|
||||
else
|
||||
echo "===> Creating group 'mixmaster'"
|
||||
groupadd mixmaster
|
||||
echo "===> Creating group '$MM'"
|
||||
groupadd -g $ID $MM
|
||||
fi
|
||||
|
||||
userinfo -e mixmaster
|
||||
userinfo -e $MM
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "===> Using existing account 'mixmaster'"
|
||||
echo "===> Using existing account '$MM'"
|
||||
else
|
||||
echo "===> Creating user 'mixmaster'"
|
||||
echo "===> Creating user '$MM'"
|
||||
useradd \
|
||||
-g mixmaster \
|
||||
-g $MM\
|
||||
-c "Anonymous Remailer" \
|
||||
-m -d $MIXDEST \
|
||||
-s /sbin/nologin \
|
||||
-p \* \
|
||||
mixmaster
|
||||
-u $ID $MM
|
||||
fi
|
||||
}
|
||||
|
||||
@ -52,10 +54,16 @@ last_message()
|
||||
|
||||
echo "| Installation of mixmaster client complete."
|
||||
echo "|"
|
||||
echo "| The binary is suid 'mixmaster' and can only be executed by members of"
|
||||
echo "| the group 'mixmaster'. Add all users to that group, that are allowed"
|
||||
echo "| The binary is suid '$MM' and can only be executed by members of"
|
||||
echo "| the group '$MM'. Add all users to that group, that are allowed"
|
||||
echo "| sending anonymous mail via the mixmaster network."
|
||||
echo "+---------------"
|
||||
echo "| WARNING!"
|
||||
echo "|"
|
||||
echo "| This port has changed its user/group from 'mixmaster' to '_mixmaster'."
|
||||
echo "| If you installed this port before, ensure all permissions are set"
|
||||
echo "| correctly and then \"rmuser mixmaster\"."
|
||||
echo "+---------------"
|
||||
echo ""
|
||||
|
||||
exit 0
|
||||
@ -68,12 +76,12 @@ echo ""
|
||||
echo "+---------------"
|
||||
if [ ! -d $MIXDEST ]
|
||||
then
|
||||
install -d -o mixmaster -g mixmaster -m 0710 $MIXDEST
|
||||
install -d -o $MM -g $MM -m 0710 $MIXDEST
|
||||
elif [ -f $MIXDEST/mix.cfg ]
|
||||
then
|
||||
echo "| $MIXDEST/mix.cfg does already exist. It will not be updated by this"
|
||||
echo "| script. If this is not your intention, please deinstall mixmaster,"
|
||||
echo "| delete $MIXDEST and reinstall."
|
||||
echo "| $MIXDEST/mix.cfg does already exist. It will not be updated"
|
||||
echo "| by this script. If this is not your intention, please deinstall"
|
||||
echo "| mixmaster, delete $MIXDEST and reinstall."
|
||||
echo "|"
|
||||
last_message
|
||||
fi
|
||||
@ -87,12 +95,12 @@ fi
|
||||
cd $MIXDIR
|
||||
for i in "mix.cfg mlist.txt pubring.mix *.blk"
|
||||
do
|
||||
install -o mixmaster -g mixmaster -m 0640 $i $MIXDEST
|
||||
install -o $MM -g $MM -m 0640 $i $MIXDEST
|
||||
done
|
||||
|
||||
if [ ! -d $MIXSPOOL ]
|
||||
then
|
||||
install -d -o mixmaster -g mixmaster -m 0770 $MIXSPOOL
|
||||
install -d -o $MM -g $MM -m 0770 $MIXSPOOL
|
||||
fi
|
||||
|
||||
last_message
|
||||
@ -107,7 +115,7 @@ case $2 in
|
||||
;;
|
||||
POST-INSTALL)
|
||||
: install config files, see below
|
||||
chown mixmaster:mixmaster $MIXMASTER_BIN
|
||||
chown $MM:$MM $MIXMASTER_BIN
|
||||
chmod 4550 $MIXMASTER_BIN
|
||||
do_install
|
||||
exit 0
|
||||
|
Loading…
Reference in New Issue
Block a user