summaryrefslogtreecommitdiff
blob: e2e23b7001821ec79db8f59b9b02078e4ef45fac (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
53
54
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/net-mail/qmail-pop3d/qmail-pop3d-1.03-r1.ebuild,v 1.5 2002/08/14 12:05:25 murphy Exp $

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

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 sparc sparc64"

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"

}