mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
Add courieruserinfo 1.1.2, user account information retrieval utility.
PR: ports/100900 Submitted by: Andrew St. Jean <andrew at arda.homeunix.net>
This commit is contained in:
parent
4adef23672
commit
c9c4d0a1c6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=168861
6 changed files with 101 additions and 0 deletions
|
@ -68,6 +68,7 @@
|
|||
SUBDIR += courierpassd
|
||||
SUBDIR += courierpasswd
|
||||
SUBDIR += cops
|
||||
SUBDIR += courieruserinfo
|
||||
SUBDIR += cp2fwb
|
||||
SUBDIR += crack
|
||||
SUBDIR += cracklib
|
||||
|
|
40
security/courieruserinfo/Makefile
Normal file
40
security/courieruserinfo/Makefile
Normal file
|
@ -0,0 +1,40 @@
|
|||
# New ports collection makefile for: courieruserinfo
|
||||
# Date created: 27th July 2006
|
||||
# Whom: Andrew St. Jean <andrew@arda.homeunix.net>
|
||||
#
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= courieruserinfo
|
||||
PORTVERSION= 1.1.2
|
||||
CATEGORIES= security mail
|
||||
MASTER_SITES= http://www.arda.homeunix.net/store/
|
||||
|
||||
MAINTAINER= andrew@arda.homeunix.net
|
||||
COMMENT= User account information retrieval utility
|
||||
|
||||
BUILD_DEPENDS= courierauthconfig:${PORTSDIR}/security/courier-authlib-base
|
||||
RUN_DEPENDS= courierauthconfig:${PORTSDIR}/security/courier-authlib-base
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
USE_GMAKE= yes
|
||||
CPPFLAGS+= -I${LOCALBASE}/include
|
||||
LDFLAGS+= -L${LOCALBASE}/lib
|
||||
CONFIGURE_ENV= CPPFLAGS='${CPPFLAGS}' LDFLAGS='${LDFLAGS}'
|
||||
|
||||
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
||||
|
||||
MAN8= courieruserinfo.8
|
||||
|
||||
post-install:
|
||||
.if !defined(NOPORTDOCS)
|
||||
${MKDIR} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/AUTHORS ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/ChangeLog ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/COPYING ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/INSTALL ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/NEWS ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
||||
.endif
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.mk>
|
3
security/courieruserinfo/distinfo
Normal file
3
security/courieruserinfo/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
|||
MD5 (courieruserinfo-1.1.2.tar.gz) = 38efe36ba1cd6a85985b21cde23a7a03
|
||||
SHA256 (courieruserinfo-1.1.2.tar.gz) = 8a3667fc90241ee40af7eb92552ca7d38f38a926beb3124c9e1ea8b7d00d0037
|
||||
SIZE (courieruserinfo-1.1.2.tar.gz) = 283493
|
5
security/courieruserinfo/pkg-descr
Normal file
5
security/courieruserinfo/pkg-descr
Normal file
|
@ -0,0 +1,5 @@
|
|||
courieruserinfo is a utility for retrieving user account information.
|
||||
Account information is accessed through the courier-authlib authentication
|
||||
library.
|
||||
|
||||
WWW: http://www.arda.homeunix.net/store/
|
44
security/courieruserinfo/pkg-message
Normal file
44
security/courieruserinfo/pkg-message
Normal file
|
@ -0,0 +1,44 @@
|
|||
|
||||
#########################################################################
|
||||
NOTES FOR RUNNING COURIERUSERINFO
|
||||
|
||||
In order to use courieruserinfo, it must be able to access the
|
||||
authdaemon domain socket, named 'socket'. When courieruserinfo runs as
|
||||
root, this presents no problem. However, if you need to run courieruserinfo
|
||||
as a non-root user, you have three options, all of which require some
|
||||
manual work.
|
||||
|
||||
Option 1: Add the user courieruserinfo will run as to the group that
|
||||
owns the authdaemon socket directory in /etc/group. More than one user
|
||||
can be added to the group vector in this way. This arrangement works
|
||||
well if courieruserinfo will be run by only a small number of users.
|
||||
If the authdaemon socket directory is owned by courier:courier and you
|
||||
run courieruserinfo as user vmail, your /etc/group file will have a line
|
||||
something like this:
|
||||
|
||||
courier:x:465:vmail
|
||||
|
||||
Option 2: Some programs, such as tcpserver, allow you to separately set
|
||||
the uid and gid of programs they call but don't honour the group vector
|
||||
found in /etc/group. If you invoke courieruserinfo from such a program,
|
||||
set the gid to the group ownership of the authdaemon socket directory.
|
||||
|
||||
Option 3: Change the permissions on courieruserinfo to set gid to the
|
||||
group ownership of the socket directory. Again, if the socket directory
|
||||
is owned by courier:courier, change the ownership and permissions
|
||||
of courieruserinfo like so:
|
||||
|
||||
chgrp courier courieruserinfo
|
||||
chmod g+s courieruserinfo
|
||||
|
||||
Be aware that this will allow any user on the system to access user
|
||||
account information through courieruserinfo.
|
||||
|
||||
To mitigate possible security risks posed by running courieruserinfo
|
||||
setgid, courieruserinfo cannot retrieve passwords.
|
||||
|
||||
The location of the authdaemon domain socket is listed in the
|
||||
authdaemonrc configuration file as the parameter authdaemonvar.
|
||||
|
||||
#########################################################################
|
||||
|
8
security/courieruserinfo/pkg-plist
Normal file
8
security/courieruserinfo/pkg-plist
Normal file
|
@ -0,0 +1,8 @@
|
|||
sbin/courieruserinfo
|
||||
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
|
||||
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
|
||||
%%PORTDOCS%%%%DOCSDIR%%/COPYING
|
||||
%%PORTDOCS%%%%DOCSDIR%%/INSTALL
|
||||
%%PORTDOCS%%%%DOCSDIR%%/NEWS
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
Loading…
Add table
Reference in a new issue