Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-admin/usermin: usermin-1.530.ebuild ChangeLog
Date: Wed, 30 Jan 2013 04:13:33
Message-Id: 20130130041329.7332B2171D@flycatcher.gentoo.org
1 patrick 13/01/30 04:13:29
2
3 Modified: ChangeLog
4 Added: usermin-1.530.ebuild
5 Log:
6 Bump
7
8 (Portage version: 2.2.0_alpha161/cvs/Linux x86_64, unsigned Manifest commit)
9
10 Revision Changes Path
11 1.154 app-admin/usermin/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/usermin/ChangeLog?rev=1.154&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/usermin/ChangeLog?rev=1.154&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/usermin/ChangeLog?r1=1.153&r2=1.154
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-admin/usermin/ChangeLog,v
20 retrieving revision 1.153
21 retrieving revision 1.154
22 diff -u -r1.153 -r1.154
23 --- ChangeLog 12 Jul 2012 15:14:55 -0000 1.153
24 +++ ChangeLog 30 Jan 2013 04:13:29 -0000 1.154
25 @@ -1,6 +1,11 @@
26 # ChangeLog for app-admin/usermin
27 -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-admin/usermin/ChangeLog,v 1.153 2012/07/12 15:14:55 axs Exp $
29 +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/app-admin/usermin/ChangeLog,v 1.154 2013/01/30 04:13:29 patrick Exp $
31 +
32 +*usermin-1.530 (30 Jan 2013)
33 +
34 + 30 Jan 2013; Patrick Lauer <patrick@g.o> +usermin-1.530.ebuild:
35 + Bump
36
37 12 Jul 2012; Ian Stakenvicius <axs@g.o> usermin-1.430.ebuild:
38 added GPL-2 to LICENSE per bug 425880
39
40
41
42 1.1 app-admin/usermin/usermin-1.530.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/usermin/usermin-1.530.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/usermin/usermin-1.530.ebuild?rev=1.1&content-type=text/plain
46
47 Index: usermin-1.530.ebuild
48 ===================================================================
49 # Copyright 1999-2013 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.530.ebuild,v 1.1 2013/01/30 04:13:29 patrick 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 GPL-2"
62 SLOT="0"
63 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~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 }