blob: a4c28166af3e27ff6c7ba32a84da4d2ebf288744 (
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
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/usermin/usermin-0.980.ebuild,v 1.3 2003/02/13 05:32:28 vapier Exp $
IUSE="ssl"
DESCRIPTION="Usermin, a web-based user administration interface"
SRC_URI="mirror://sourceforge/webadmin/${P}.tar.gz"
HOMEPAGE="http://www.webmin.com/index6.html"
SLOT="0"
LICENSE="BSD"
KEYWORDS="~x86 ~sparc ~alpha ~ppc"
DEPEND="sys-devel/perl
sys-apps/lsof
ssl? ( dev-perl/Net-SSLeay )
dev-perl/Authen-PAM"
src_install() {
dodir /usr/libexec/usermin
dodir /usr/sbin
mv *.* ${D}/usr/libexec/usermin
mv * ${D}/usr/libexec/usermin
exeinto /etc/init.d
newexe ${FILESDIR}/patch/usermin usermin
exeinto /usr/libexec/usermin
newexe ${FILESDIR}/patch/setup.sh setup.sh
newexe ${FILESDIR}/patch/usermin-init usermin-init
dosym /usr/libexec/usermin /etc/usermin
dosym /usr/libexec/usermin/usermin-init /usr/sbin/usermin
insinto /etc/pam.d
newins ${FILESDIR}/${PN}.pam ${PN}
}
pkg_postinst() {
einfo "Configure usermin by running \"usermin setup\"."
echo
einfo "Point your web browser to http://localhost:20000 to use usermin."
}
pkg_prerm() {
usermin stop
}
#pkg_postrm() {
# /usr/libexec/usermin/uninstall.sh
#}
|