Gentoo Archives: gentoo-commits

From: "Raul Porcel (armin76)" <armin76@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-admin/usermin: ChangeLog usermin-1.300.ebuild usermin-1.290.ebuild
Date: Fri, 21 Sep 2007 19:01:13
Message-Id: E1IYncf-0004zA-IF@stork.gentoo.org
1 armin76 07/09/21 18:53:05
2
3 Modified: ChangeLog
4 Added: usermin-1.300.ebuild
5 Removed: usermin-1.290.ebuild
6 Log:
7 Version bump
8 (Portage version: 2.1.3.9)
9
10 Revision Changes Path
11 1.129 app-admin/usermin/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/usermin/ChangeLog?rev=1.129&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/usermin/ChangeLog?rev=1.129&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/usermin/ChangeLog?r1=1.128&r2=1.129
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-admin/usermin/ChangeLog,v
20 retrieving revision 1.128
21 retrieving revision 1.129
22 diff -u -r1.128 -r1.129
23 --- ChangeLog 20 Sep 2007 17:20:22 -0000 1.128
24 +++ ChangeLog 21 Sep 2007 18:53:05 -0000 1.129
25 @@ -1,6 +1,12 @@
26 # ChangeLog for app-admin/usermin
27 # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-admin/usermin/ChangeLog,v 1.128 2007/09/20 17:20:22 armin76 Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-admin/usermin/ChangeLog,v 1.129 2007/09/21 18:53:05 armin76 Exp $
30 +
31 +*usermin-1.300 (21 Sep 2007)
32 +
33 + 21 Sep 2007; Raúl Porcel <armin76@g.o> -usermin-1.290.ebuild,
34 + +usermin-1.300.ebuild:
35 + Version bump
36
37 *usermin-1.290 (20 Sep 2007)
38
39
40
41
42 1.1 app-admin/usermin/usermin-1.300.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/usermin/usermin-1.300.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/usermin/usermin-1.300.ebuild?rev=1.1&content-type=text/plain
46
47 Index: usermin-1.300.ebuild
48 ===================================================================
49 # Copyright 1999-2007 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/app-admin/usermin/usermin-1.300.ebuild,v 1.1 2007/09/21 18:53:05 armin76 Exp $
52
53 IUSE="ssl"
54
55 inherit eutils pam
56
57 DESCRIPTION="a web-based user administration interface"
58 HOMEPAGE="http://www.webmin.com/index6.html"
59 SRC_URI="mirror://sourceforge/webadmin/${P}.tar.gz"
60
61 LICENSE="BSD"
62 SLOT="0"
63 KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
64
65 DEPEND="dev-lang/perl"
66
67 RDEPEND="${DEPEND}
68 sys-process/lsof
69 ssl? ( dev-perl/Net-SSLeay )"
70
71 # pam? ( dev-perl/Authen-PAM )
72
73 src_unpack() {
74 unpack ${A}
75
76 cd ${S}
77
78 # Point to the correct mysql location
79 sed -i -e "s:/usr/local/mysql:/usr:g" mysql/config
80
81 epatch ${FILESDIR}/${PN}-1.080-safestop.patch
82 epatch ${FILESDIR}/${PN}-1.150-setup-nocheck.patch
83 }
84
85 src_install() {
86 # Change /usr/local/bin/perl references
87 find . -type f | xargs sed -i -e 's:^#!.*/usr/local/bin/perl:#!/usr/bin/perl:'
88
89 dodir /usr/libexec/usermin
90 cp -pR * ${D}/usr/libexec/usermin
91
92 newinitd ${FILESDIR}/init.d.usermin usermin
93
94 newpamd ${FILESDIR}/${PN}.pam-include.1 ${PN}
95
96 # Fix ownership
97 chown -R root:0 ${D}
98
99 dodir /etc/usermin
100 dodir /var/log/usermin
101
102 config_dir=${D}/etc/usermin
103 var_dir=${D}/var/log/usermin
104 perl=/usr/bin/perl
105 autoos=1
106 port=20000
107 login=root
108 crypt="XXX"
109 host=`hostname`
110 use ssl && ssl=1 || ssl=0
111 atboot=0
112 nostart=1
113 nochown=1
114 autothird=1
115 nouninstall=1
116 noperlpath=1
117 tempdir="${T}"
118 export config_dir var_dir perl autoos port login crypt host ssl atboot nostart nochown autothird nouninstall noperlpath tempdir
119 ${D}/usr/libexec/usermin/setup.sh > ${T}/usermin-setup.out 2>&1 || die "Failed to create initial usermin configuration."
120
121 # Fixup the config files to use their real locations
122 sed -i -e "s:^pidfile=.*$:pidfile=/var/run/usermin.pid:" ${D}/etc/usermin/miniserv.conf
123 find ${D}/etc/usermin -type f | xargs sed -i -e "s:${D}:/:g"
124
125 # Cleanup from the config script
126 rm -rf ${D}/var/log/usermin
127 keepdir /var/log/usermin/
128 }
129
130 pkg_postinst() {
131 elog "To make usermin start at boot time, run: 'rc-update add usermin default'."
132 elog "Point your web browser to https://localhost:20000 to use usermin."
133 }
134
135
136
137 --
138 gentoo-commits@g.o mailing list