summaryrefslogtreecommitdiff
blob: 13e7da430dd6b54705797e8a050b0c59d4d717e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Copyright 1999-2001 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Geert Bevin <gbevin@theleaf.be>
# $Header: /var/cvsroot/gentoo-x86/net-mail/qmail-pop3d/qmail-pop3d-1.03-r1.ebuild,v 1.1 2001/12/07 17:55:16 gbevin Exp $

S=${WORKDIR}/${P}
DESCRIPTION="Pop3 configuration for qmail which used the maildirs of the users"
HOMEPAGE="http://www.qmail.org"

SRC_URI=""

DEPEND=">=net-mail/qmail-1.03-r6"

src_unpack() {

    einfo "Nothing to unpack ..."

}

src_compile() {

    einfo "Nothing to compile ..."

}


src_install() {

    einfo "Setting up the pop3d service ..."
    insopts -o root -g root -m 755
    diropts -m 755 -o root -g root
    dodir /service
    dodir /var/qmail/supervise/qmail-pop3d
    dodir /var/qmail/supervise/qmail-pop3d/log
    chmod +t ${D}/var/qmail/supervise/qmail-pop3d
    diropts -m 755 -o qmaill
    dodir /var/log/qmail/qmail-pop3d

    insinto /var/qmail/supervise/qmail-pop3d
    newins ${FILESDIR}/run-qmailpop3d run
    insinto /var/qmail/supervise/qmail-pop3d/log
    newins ${FILESDIR}/run-qmailpop3dlog run                            

}

pkg_postinst() {

    echo -e "\e[32;01m To start qmail-pop3d at boot you have to start /etc/init.d/svscan at boot \033[0m"
    echo -e "\e[32;01m and create the following link : \033[0m"
    echo -e "\e[32;01m ln -s /var/qmail/supervise/qmail-pop3d /service/qmail-pop3d \033[0m"

}