Hanno Böck commited on 2007-05-01 20:47:12
Zeige 5 geänderte Dateien mit 0 Einfügungen und 169 Löschungen.
... | ... |
@@ -1,16 +0,0 @@ |
1 |
- |
|
2 |
-* courierpasswd-1.1.0-RC1 |
|
3 |
- |
|
4 |
- Removed old ebuilds and created new one for latest courierpasswd |
|
5 |
- version. |
|
6 |
- |
|
7 |
- The courierpasswd binary moved from /bin/ to /sbin/. Please check |
|
8 |
- all programs that might have hard linked the binary (eg. squirrelmail |
|
9 |
- plugin, qmail-smtp, ...) |
|
10 |
- |
|
11 |
- |
|
12 |
-* courierpasswd-1.0.1-r1 |
|
13 |
- |
|
14 |
- missing flag in IUSE |
|
15 |
- |
|
16 |
- |
... | ... |
@@ -1,16 +0,0 @@ |
1 |
-AUX mailpasswd 1996 RMD160 ef824c844f7fd3eb4394f9f7fbd7a714db63b307 SHA1 50aaa4c2bf2265d52d40a05d26786cbeda923b85 SHA256 6369913428b852b12ab60531eafdbedc38ce94e1b91a7b7f2e6801c64b921753 |
|
2 |
-MD5 214f2981b21f074f79b19ef02f438bf7 files/mailpasswd 1996 |
|
3 |
-RMD160 ef824c844f7fd3eb4394f9f7fbd7a714db63b307 files/mailpasswd 1996 |
|
4 |
-SHA256 6369913428b852b12ab60531eafdbedc38ce94e1b91a7b7f2e6801c64b921753 files/mailpasswd 1996 |
|
5 |
-DIST courierpasswd-1.1.0.tar.gz 0 RMD160 9c1185a5c5e9fc54612808977ee8f548b2258d31 SHA1 da39a3ee5e6b4b0d3255bfef95601890afd80709 SHA256 e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 |
|
6 |
-EBUILD courierpasswd-1.1.0.ebuild 1610 RMD160 2ac217bb023f78e0e0792399e6217f05017cd39f SHA1 526670a7d615dd6d013b84a7dc6d343309d32a07 SHA256 8e60f5dfb0668b8f73ded6792a133bbbe5f2e3c176b2b82b9c15f2399f545fff |
|
7 |
-MD5 7743d0fd4377e3b781e6adc298e1f221 courierpasswd-1.1.0.ebuild 1610 |
|
8 |
-RMD160 2ac217bb023f78e0e0792399e6217f05017cd39f courierpasswd-1.1.0.ebuild 1610 |
|
9 |
-SHA256 8e60f5dfb0668b8f73ded6792a133bbbe5f2e3c176b2b82b9c15f2399f545fff courierpasswd-1.1.0.ebuild 1610 |
|
10 |
-MISC Changelog 333 RMD160 f79292a85d3696043aa25571c7c858cc6b184275 SHA1 743e348f64026da18d7313e4cdeb67cf3891c152 SHA256 437abd4ecb33202134ebdaef319de6e560d53260adaa623241ffd1d829dccead |
|
11 |
-MD5 a8137cd06b939de6d9698dc61f174ba8 Changelog 333 |
|
12 |
-RMD160 f79292a85d3696043aa25571c7c858cc6b184275 Changelog 333 |
|
13 |
-SHA256 437abd4ecb33202134ebdaef319de6e560d53260adaa623241ffd1d829dccead Changelog 333 |
|
14 |
-MD5 9503633fe62ab48d0fb904315a28bae3 files/digest-courierpasswd-1.1.0 244 |
|
15 |
-RMD160 4e0b7e91ba31462ac8bee7c8bdcd120f87a19000 files/digest-courierpasswd-1.1.0 244 |
|
16 |
-SHA256 bf68a280fe498f97db71fe5bd6857c718d0c936f829d22bced582c22bc02e73a files/digest-courierpasswd-1.1.0 244 |
... | ... |
@@ -1,55 +0,0 @@ |
1 |
-# Copyright 1999-2007 Gentoo Foundation |
|
2 |
-# Distributed under the terms of the GNU General Public License v2 |
|
3 |
-# $Header: $ |
|
4 |
- |
|
5 |
-inherit eutils |
|
6 |
- |
|
7 |
-DESCRIPTION="A password checking interface that works with the courier-imap authdaemon" |
|
8 |
-HOMEPAGE="http://www.arda.homeunix.net/store/" |
|
9 |
-SRC_URI="http://www.arda.homeunix.net/store/${P}.tar.gz" |
|
10 |
- |
|
11 |
-S="${WORKDIR}/${P}" |
|
12 |
- |
|
13 |
-LICENSE="GPL-2" |
|
14 |
-SLOT="0" |
|
15 |
-KEYWORDS="x86 amd64" |
|
16 |
-IUSE="" |
|
17 |
- |
|
18 |
-DEPEND=">=net-libs/courier-authlib-0.57" |
|
19 |
- |
|
20 |
-src_compile() { |
|
21 |
- CFLAGS="$CFLAGS -Wl,-z,now" |
|
22 |
- econf || die "Error in configure" |
|
23 |
- emake || die "Error in make" |
|
24 |
-} |
|
25 |
- |
|
26 |
-src_install() { |
|
27 |
- einfo Installing courierpasswd setuid root. |
|
28 |
- dosbin courierpasswd || die "Cannot install courierpasswd" |
|
29 |
- |
|
30 |
- # chown root $(sbindir)/courierpasswd |
|
31 |
- fperms 4511 /sbin/courierpasswd |
|
32 |
- |
|
33 |
- dobin ${FILESDIR}/mailpasswd |
|
34 |
- |
|
35 |
- doman courierpasswd.8 |
|
36 |
- dodoc AUTHORS INSTALL COPYING NEWS README ChangeLog |
|
37 |
-} |
|
38 |
- |
|
39 |
-warning() { |
|
40 |
- |
|
41 |
- ewarn "courierpasswd has been installed setuid root. Otherwise the authdeamon" |
|
42 |
- ewarn "wouldn't allow courierpasswd to connect." |
|
43 |
- |
|
44 |
- einfo "To use courierpasswd for qmail AUTH you have to modify |
|
45 |
- einfo "/var/qmail/control/conf-smtpd and set "QMAIL_SMTP_CHECKPASSWORD=\"/sbin/courierpasswd\"." |
|
46 |
- |
|
47 |
- einfo "You can use courierpasswd to change you e-mail password by executing" |
|
48 |
- einfo "mailpasswd or courierpasswd directly (see manpage). There is a" |
|
49 |
- einfo "courierchange_pass is a courierchange_pass available for Squirrelmail" |
|
50 |
- einfo "as well." |
|
51 |
- |
|
52 |
- ewarn "The courierpasswd binary moved from /bin/ to /sbin/. Please check" |
|
53 |
- ewarn "all programs that might have hard linked the binary (eg. squirrelmail" |
|
54 |
- ewarn "plugin, qmail-smtp, ...)" |
|
55 |
-} |
... | ... |
@@ -1,79 +0,0 @@ |
1 |
-#!/bin/bash |
|
2 |
-# |
|
3 |
-# /usr/bin/mailpasswd |
|
4 |
-# |
|
5 |
-# Shell script wrapper for courierpasswd to change passwords |
|
6 |
-# for courier-imapd via authdaemon. |
|
7 |
-# |
|
8 |
-# Originally written for the Gentoo Linux distribution |
|
9 |
-# |
|
10 |
-# Copyright (c) 1999-2005 Gentoo Technologies, Inc |
|
11 |
-# Released under v2 of the GNU GPL |
|
12 |
-# |
|
13 |
-# Author(s) Christoph Probst <chris-sw-ccp@netzpunkt.org> |
|
14 |
-# |
|
15 |
-# Notes - to change passwords you need to emerge courierpasswd. |
|
16 |
-# - If you don't want the password-change dialog then rather use |
|
17 |
-# checkpasswd directly. |
|
18 |
-# - there is a plugin courierchang_pass available for squirrelmail |
|
19 |
-# that uses courierpasswd INSTEAD of courierpassd or poppassd. |
|
20 |
-# |
|
21 |
-# Todo - convert this script to python |
|
22 |
-# |
|
23 |
-# Version 0.1 |
|
24 |
-# |
|
25 |
-# ======================================================================== |
|
26 |
- |
|
27 |
-if [ "${1}x" == "x" ] ; then |
|
28 |
- |
|
29 |
- echo "mailpasswd - Interface to change the password for an e-mail user." |
|
30 |
- echo "Syntax: mailpasswd e-mail-username" |
|
31 |
- |
|
32 |
- exit 2 |
|
33 |
- |
|
34 |
-fi |
|
35 |
- |
|
36 |
-username=${1} |
|
37 |
-echo "Changing password for e-mail user ${username}" |
|
38 |
- |
|
39 |
- |
|
40 |
-echo -n "(current) E-Mail password: " |
|
41 |
-read -s oldpassword |
|
42 |
-echo |
|
43 |
- |
|
44 |
- |
|
45 |
-echo -n "New E-Mail password: " |
|
46 |
-read -s newpassword |
|
47 |
-echo |
|
48 |
- |
|
49 |
-if [ "${newpassword}x" == "x" ] ; then |
|
50 |
- echo "New password is empty, that is not allowed! Password NOT changed." |
|
51 |
- exit 3 |
|
52 |
-fi |
|
53 |
- |
|
54 |
- |
|
55 |
-echo -n "Retype new E-Mail password: " |
|
56 |
-read -s newpassword2 |
|
57 |
-echo |
|
58 |
- |
|
59 |
-if [ "${newpassword}x" == "${newpassword2}x" ] ; then |
|
60 |
- |
|
61 |
- # don't use echo (see courierpasswd manpage) |
|
62 |
- python -c "print \"%s\0%s\0%s\0\" % (\"${username}\",\"${oldpassword}\",\"${newpassword}\")" \ |
|
63 |
- | courierpasswd --changepwd --stdin |
|
64 |
- errcode=$? |
|
65 |
- |
|
66 |
- if [ $errcode == 0 ] ; then |
|
67 |
- echo "Password successfully changed for e-mail user ${username}." |
|
68 |
- exit 0 |
|
69 |
- else |
|
70 |
- echo "Wrong username or password. Password NOT changed." |
|
71 |
- exit ${errcode} |
|
72 |
- fi |
|
73 |
- |
|
74 |
-else |
|
75 |
- echo "New passwords don't match. Password NOT changed." |
|
76 |
- exit 4 |
|
77 |
-fi |
|
78 |
- |
|
79 |
- |
|
80 | 0 |