diff options
author | taca <taca> | 2001-06-10 15:15:06 +0000 |
---|---|---|
committer | taca <taca> | 2001-06-10 15:15:06 +0000 |
commit | e207303c0e387c562655fa8e99756e7c68571c39 (patch) | |
tree | 52a7d52623c17cc5f6226cdd8429dec7886a6fbd /mail/poppassd | |
parent | 688737d43cbec2301a2290a68afb68f8951b084a (diff) | |
download | pkgsrc-e207303c0e387c562655fa8e99756e7c68571c39.tar.gz |
Importing poppassd included in qpopper 4.0.3 now.
Diffstat (limited to 'mail/poppassd')
-rw-r--r-- | mail/poppassd/Makefile | 35 | ||||
-rw-r--r-- | mail/poppassd/distinfo | 9 | ||||
-rw-r--r-- | mail/poppassd/patches/patch-aa | 91 | ||||
-rw-r--r-- | mail/poppassd/patches/patch-ab | 22 | ||||
-rw-r--r-- | mail/poppassd/patches/patch-ac | 124 | ||||
-rw-r--r-- | mail/poppassd/pkg/DESCR | 2 | ||||
-rw-r--r-- | mail/poppassd/pkg/INSTALL | 22 | ||||
-rw-r--r-- | mail/poppassd/pkg/PLIST | 4 |
8 files changed, 309 insertions, 0 deletions
diff --git a/mail/poppassd/Makefile b/mail/poppassd/Makefile new file mode 100644 index 00000000000..2a3c18e538b --- /dev/null +++ b/mail/poppassd/Makefile @@ -0,0 +1,35 @@ +# $NetBSD: Makefile,v 1.1.1.1 2001/06/10 15:15:06 taca Exp $ +# + +DISTNAME= qpopper${VERSION} +PKGNAME= poppassd-${VERSION} +CATEGORIES= mail +MASTER_SITES= ftp://ftp.qualcomm.com/eudora/servers/unix/popper/ + +PATCH_SITES= http://www.imasy.or.jp/~ume/ipv6/ +PATCHFILES= qpopper4.0.3-ipv6-20010504.diff.gz +PATCH_DIST_STRIP= -p1 + +MAINTAINER= mellon@fugue.com +HOMEPAGE= http://www.eudora.com/qpopper/ +COMMENT= Qualcomm's password change server mainly for Eudora + +VERSION= 4.0.3 +CONFIGURE_ARGS+= --enable-poppassd +CONFIGURE_ENV+= CDEFS='-DSMBPASSWD_BINARY=\"${LOCALBASE}/bin/smbpasswd\"' + +.include "../qpopper/Makefile.common" + +do-build: + cd ${WRKSRC}/common; ${MAKE} ${ALL_TARGET} + cd ${WRKSRC}/password; ${MAKE} ${ALL_TARGET} + +# popper makefile doesn't have an install target... +do-install: + cd ${WRKSRC}/password; ${MAKE} ${INSTALL_TARGET} + ${INSTALL_MAN} ${WRKSRC}/man/poppassd.8 ${LOCALBASE}/man/man8 + ${INSTALL_DATA} ${WRKSRC}/License.txt \ + ${LOCALBASE}/share/doc/poppassd.License; + @${SETENV} PKG_PREFIX=${LOCALBASE} ${SH} ${INSTALL_FILE} + +.include "../../mk/bsd.pkg.mk" diff --git a/mail/poppassd/distinfo b/mail/poppassd/distinfo new file mode 100644 index 00000000000..cba5605ef4f --- /dev/null +++ b/mail/poppassd/distinfo @@ -0,0 +1,9 @@ + + +SHA1 (qpopper4.0.3.tar.gz) = 67b343a57e10250c98eb87660e6d563be6c018cc +Size (qpopper4.0.3.tar.gz) = 2326127 bytes +SHA1 (qpopper4.0.3-ipv6-20010504.diff.gz) = cc74bffbd769a6589ee945916a33b17ea4d7873f +Size (qpopper4.0.3-ipv6-20010504.diff.gz) = 21263 bytes +SHA1 (patch-aa) = 3dfad411477bae676ec4ea3dadf1d47d53ce1383 +SHA1 (patch-ab) = ba6795e6b6e1cd4565f76747f4af3a5f9c70fc5b +SHA1 (patch-ac) = 0b53ae1c11a922546708b1a71bb8ee57f05608ee diff --git a/mail/poppassd/patches/patch-aa b/mail/poppassd/patches/patch-aa new file mode 100644 index 00000000000..32b5e769483 --- /dev/null +++ b/mail/poppassd/patches/patch-aa @@ -0,0 +1,91 @@ +$NetBSD: patch-aa,v 1.1.1.1 2001/06/10 15:15:06 taca Exp $ + +--- man/poppassd.8.orig Wed Apr 4 09:23:13 2001 ++++ man/poppassd.8 +@@ -12,27 +12,28 @@ + .SH SYNOPSIS + .B poppassd + [ +-.B \-\? ++.B \-h + ] [ + .B \-d + ] [ + .BI \-l " tls-usage" + ] ++] [ ++.B \-P ++] + .if n .ti +9n + [ + .B \-p +-[ + .I passwd-path +-] + ] [ + .B \-R ++] [ ++.B \-S + ] + .if n .ti +9n + [ + .B \-s +-[ + .I smbpasswd-path +-] + ] [ + .B \-v + ] +@@ -58,7 +59,7 @@ + .PP + .SH OPTIONS + .TP +-.B \-\? ++.B \-h + Prints a summary of options and exits. + .TP + .B \-d +@@ -83,26 +84,36 @@ + Causes Qpopper to attempt TLS negotiation when a client first connects. + This is for alternate-port support. + .TP +-.B \-p " [ " passwd-path " ]" ++.B \-P + Instructs + .I poppassd +-to change the system password (which is the default) and optionally +-specifies the path to the executable to use. The default is /usr/bin/passwd. ++to change the system password (which is the default). ++.TP ++.B \-p passwd-path ++Instructs ++.I poppassd ++to change the system password (which is the default) and specifies ++the path to the executable to use. The default is /usr/bin/passwd. + .TP + .B \-R + Disables the reverse DNS lookup normally done on the client IP address. + .TP +-.B \-s " [ " smbpasswd-path " ]" ++.B \-S + Instructs + .I poppassd +-to change the smb password and optionally +-specifies the path to the executable to use. The default is /usr/bin/smbpasswd. ++to change the smb password. + If this option is used, + .I poppassd + by default does not also change the system password. To change both, use this + option and the +-.I \-p ++.I \-P + option. ++.TP ++.B \-s smbpasswd-path ++Instructs ++.I poppassd ++to change the smb password and specifies the path to the executable ++to use. The default is /usr/bin/smbpasswd. + .TP + .BI \-t " tracefile" + Turns on debug tracing, and causes all trace and log output to be diff --git a/mail/poppassd/patches/patch-ab b/mail/poppassd/patches/patch-ab new file mode 100644 index 00000000000..ccae146f7b6 --- /dev/null +++ b/mail/poppassd/patches/patch-ab @@ -0,0 +1,22 @@ +$NetBSD: patch-ab,v 1.1.1.1 2001/06/10 15:15:06 taca Exp $ + +--- password/Makefile.in.orig Mon May 7 10:00:48 2001 ++++ password/Makefile.in +@@ -30,7 +30,7 @@ + VPATH = @srcdir@ + prefix = @prefix@ + exec_prefix = @exec_prefix@ +-installdir = @bindir@ ++installdir = @libexecdir@ + + common_srcdir = ${top_srcdir}/common + popper_srcdir = ${top_srcdir}/popper +@@ -80,7 +80,7 @@ + all: ${poppassd} + + install: +- ${INSTALL} -m 4755 -o root -g root poppassd ${installdir}/poppassd; \ ++ @${INSTALL} -m 4755 -o root -g wheel poppassd ${installdir}/poppassd; \ + echo "Installed poppassd as ${installdir}/poppassd" + + poppassd: ${OBJS} ${common_dir}/libcommon.a diff --git a/mail/poppassd/patches/patch-ac b/mail/poppassd/patches/patch-ac new file mode 100644 index 00000000000..cee1ec60177 --- /dev/null +++ b/mail/poppassd/patches/patch-ac @@ -0,0 +1,124 @@ +$NetBSD: patch-ac,v 1.1.1.1 2001/06/10 15:15:07 taca Exp $ + +--- password/poppassd.c.orig Sun Jun 10 22:54:40 2001 ++++ password/poppassd.c +@@ -167,8 +167,13 @@ + /* LANMAN allows up to 14 char passwords (truncates if longer), but tacacs + only seems to allow 11. */ + ++#ifndef PASSWD_BINARY + #define PASSWD_BINARY "/usr/bin/passwd" /* TBD: config.h */ ++#endif ++ ++#ifndef SMBPASSWD_BINARY + #define SMBPASSWD_BINARY "/usr/bin/smbpasswd" /* TBD: config.h */ ++#endif + + #include "config.h" + +@@ -294,6 +299,7 @@ + + static char *P1[] = + { ++ "changing local password for *\nold password: ", /* BSD */ + "changing password for *\nold password: ", /* shadow */ + "enter login password: ", /* Solaris */ + "old smb password: ", /* smb */ +@@ -353,7 +359,7 @@ + char oldpass [BUFSIZE] = ""; + char newpass [BUFSIZE] = ""; + int nopt = -1; +- static char options [] = "dl:p:Rs:t:vy:?"; ++ static char options [] = "dhl:Pp:RSs:t:vy:"; + int mode = 0; + char *ptr = NULL; + POP p; +@@ -375,8 +381,6 @@ + pname = ptr + 1; + } + +- openlog ( pname, POP_LOGOPTS, LOG_LOCAL2 ); +- + /* + * Set up some stuff in -p- so we can call Qpopper routines + */ +@@ -384,6 +388,17 @@ + p.AuthType = noauth; + p.myname = pname; + ++#ifndef POP_FACILITY ++# if defined(OSF1) || defined(LINUX) ++# define POP_FACILITY LOG_MAIL ++# else ++# define POP_FACILITY LOG_LOCAL0 ++# endif /* OSF1 or Linux */ ++#endif /* POP_FACILITY not defined */ ++ ++ p.log_facility = (log_facility_type) POP_FACILITY; ++ openlog ( pname, POP_LOGOPTS, p.log_facility ); ++ + /* + * Handle command-line options + */ +@@ -392,9 +407,9 @@ + { + switch (nopt) + { +- case '?': +- fprintf ( stderr, "%s [-?] [-d] [-l 0|1|2] [-p [passd-path]] " +- "[-R] [-s [smbpasswd-path]]\n\t" ++ case 'h': ++ fprintf ( stderr, "%s [-h] [-d] [-l 0|1|2] [-p [passd-path]] " ++ "[-P] [-R] [-S] [-s [smbpasswd-path]]\n\t" + "[-t trace-file] [-v] [-y log-facility]\n", + pname ); + exit (1); +@@ -411,20 +426,34 @@ + verbose = TRUE; + break; + ++ case 'S': ++ mode |= RUN_SMBPASSWD; ++ TRACE ( trace_file, POP_DEBUG, HERE, ++ "Changing SMB password enabled" ); ++ break; ++ ++ + case 's': + mode |= RUN_SMBPASSWD; + if ( optarg != NULL && *optarg != '\0' ) + smb_binary = optarg; + TRACE ( trace_file, POP_DEBUG, HERE, +- "Changing SMB passwords using %s", smb_binary ); ++ "Changing SMB password using %s", smb_binary ); ++ break; ++ ++ case 'P': ++ mode |= RUN_PASSWD; ++ TRACE ( trace_file, POP_DEBUG, HERE, ++ "Changing standard password enabled" ); + break; + ++ + case 'p': + mode |= RUN_PASSWD; + if ( optarg != NULL && *optarg != '\0' ) + pwd_binary = optarg; + TRACE ( trace_file, POP_DEBUG, HERE, +- "Changing standard passwords using %s", pwd_binary ); ++ "Changing standard password using %s", pwd_binary ); + break; + + case 't': +@@ -781,6 +810,11 @@ + + chdir ("/"); + umask (0); ++ ++ if (setlogin(userid) < 0) { ++ err_msg ( HERE, "setlogin failed: %m" ); ++ return(0); ++ } + + /* + * Become the user and run passwd. Linux shadowed passwd doesn't need diff --git a/mail/poppassd/pkg/DESCR b/mail/poppassd/pkg/DESCR new file mode 100644 index 00000000000..9a26e9fc15f --- /dev/null +++ b/mail/poppassd/pkg/DESCR @@ -0,0 +1,2 @@ +poppassd is password update daemon, using passwd and/or smbpasswd +command as back end. It has integrated into qpopper package. diff --git a/mail/poppassd/pkg/INSTALL b/mail/poppassd/pkg/INSTALL new file mode 100644 index 00000000000..d03e10d9e0d --- /dev/null +++ b/mail/poppassd/pkg/INSTALL @@ -0,0 +1,22 @@ +#! /bin/sh +# +# $NetBSD: INSTALL,v 1.1.1.1 2001/06/10 15:15:06 taca Exp $ +# + +case "$2" in + ""|POST-INSTALL) cat <<EOF +================================================================= + +In order to enable poppassd service, you should add the following line +to your /etc/services: + + poppass 106/tcp poppassd + +And /etc/inetd.conf: + + poppass stream tcp nowait root ${PKG_PREFIX}/libexec/poppassd poppassd + +================================================================= +EOF + ;; +esac diff --git a/mail/poppassd/pkg/PLIST b/mail/poppassd/pkg/PLIST new file mode 100644 index 00000000000..34a79eb7c5e --- /dev/null +++ b/mail/poppassd/pkg/PLIST @@ -0,0 +1,4 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2001/06/10 15:15:06 taca Exp $ +libexec/poppassd +man/man8/poppassd.8 +share/doc/poppassd.License |